/* ===== PALETA DE COLORES OFICIAL - JUAN BAENA ===== */
/* Naranja principal: #FF6B00 */
/* Blanco:            #FFFFFF */
/* Turquesa texto:    #58C0B4 */
/* ===========================
   FUENTE PRINCIPAL - TITULOS
   =========================== */
/* ===== TT Commons Regular ===== */
@font-face {
    font-family: 'TTCommonsPro';
    src: url('../assets/fonts/TT_Commons_Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===========================
   FUENTE DEL BOTÓN ÚNETE
   =========================== */
@font-face {
    font-family: 'RobotCrush';
    src: url('../assets/fonts/Robot_Crush.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* ===== BOTÓN FLOTANTE BURBUJA INTERACTIVA - LADO DERECHO ===== */
.btn-unirse-premium {
    font-family: 'RobotCrush', sans-serif !important;
    text-decoration: none !important;
    position: fixed !important; 
    top: 70%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 999999 !important; 
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.0rem;
    font-weight: 800;
    text-transform: lowercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #B7F3EF 0%, #58C0B4 100%);
    color: #BA281B;
    border: 3px solid #BA281B;
    box-shadow: 0 8px 30px rgba(255, 4, 0, 0.5);
    animation: float-bubble 3s ease-in-out infinite,
    pulse-glow 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    padding: 0;
}

.btn-unirse-premium::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    z-index: -1;
}

.btn-unirse-premium::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    border: 2px solid #B7F3EF;
    animation: border-pulse 2s infinite;
    z-index: 0;
}

.btn-unirse-premium:hover {
    width: 140px;
    height: 140px;
    right: 10px;
    box-shadow: 0 15px 50px rgba(255, 0, 0, 0.8);
    background: linear-gradient(135deg, #b7f3ef 0%, #58C0B4 100%);
    transform: translateY(-50%) scale(1.2);
}

.btn-unirse-premium:active {
    transform: translateY(-50%) scale(0.9);
    box-shadow: 0 5px 15px rgba(186, 40, 27, 0.9);
}

/* ===== ANIMACIONES BOTÓN FLOTANTE ===== */
@keyframes float-bubble {
    0%, 100% {
        transform: translateY(-50%) translateX(0px);
    }
    50% {
        transform: translateY(-50%) translateX(-10px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(255, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 12px 50px rgba(183, 243, 239, 1.0);
    }
}

@keyframes ring-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes border-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 0, 0);
    }
}

/* Responsive - Botón flotante */
@media (max-width: 768px) {
    .btn-unirse-premium {
        width: 70px;
        height: 70px;
        right: 15px;
        font-size: 0.8rem;
    }

    .btn-unirse-premium:hover {
        width: 100px;
        height: 100px;
        right: 8px;
    }
}

@media (max-width: 480px) {
    .btn-unirse-premium {
        width: 60px;
        height: 60px;
        right: 12px;
        font-size: 0.7rem;
        border: 2px solid #FFFFFF;
    }

    .btn-unirse-premium:hover {
        width: 90px;
        height: 90px;
        right: 5px;
    }
}

/* ===== ESTILOS GENERALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'TTCommonsPro', sans-serif;
    line-height: 1.6;
    color: #58C0B4;
    background: #FFFFFF;
}

/* Hero Logo responsivo */
.hero-logo {
    width: 600px;
    height: auto;
    max-width: 100%;
}

@media (max-width: 768px) {
    .hero-logo {
        width: 400px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 280px;
    }
}

/* ===== NAVBAR ===== */
.navbar {
    background: #BA281B !important;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    border-bottom: 3px solid #FFFFFF;
    font-family: 'TTCommonsPro', sans-serif !important;
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 1.4rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.navbar-nav .nav-link {
    color: #FFFFFF !important;
    font-family: 'TTCommonsPro', sans-serif !important;
    font-weight: bold;
    letter-spacing: 1px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -8px;
    left: 0;
    background: #B7F3EF;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: #B7F3EF !important;
    opacity: 0.9;
}

.btn-nav-unete {
    background: #FFFFFF !important;
    color: #BA281B !important;
    font-family: 'RobotCrush', sans-serif !important;
    font-weight: 800;
    border-radius: 10px;
    padding: 8px 20px;
    letter-spacing: 3px;
}

.btn-nav-unete:hover {
    background: #B7F3EF !important;
    color: #BA281B !important;
    box-shadow: 0 6px 20px rgba(255, 21, 0, 0.45);
}

/* ===== NAVBAR BRAND CON FUENTE ROBOT_CRUSH EN MINÚSCULAS ===== */
.brand-baena {
    font-family: 'RobotCrush', sans-serif !important;
    font-size: 3rem;              /* Texto más grande */
    line-height: 1;               /* Evita que el navbar crezca */
    letter-spacing: 5px;
    color: #ffffff !important;
    text-transform: none !important;
    display: flex;
    align-items: center;          /* Alineación vertical perfecta */
    padding: 0 !important;        /* No agrega altura extra */
    margin: 0 !important;
}

/* ===== HERO SECTION (FONDO BLANCO) ===== */
.hero {
    background: #BA281B;
    position: relative;
    overflow: hidden;
    min-height: 85vh;  /* Altura mínima del hero  trabajando */
}

/* ===== SECCIONES GENERALES ===== */
.section-white {
    background: #FFFFFF;
}

.section-title {
    font-size: 3.2rem;
    color: #BA281B;
    font-family: 'RobotCrush', sans-serif !important;
    letter-spacing: 3px;
}

.section-text {
    color: #BA281B;
}

/* ===== SECCIONES CON FONDO ROJO QUIEN SOY ===== */
.section-red {
    background: #FFFFFF;
}

.section-red-title,
.section-red-subtitle,
.section-red-title-cta {
    color: #BA281B;
    font-family: 'RobotCrush', sans-serif !important;
    letter-spacing: 3px;
}

.section-red-title {
    font-size: 3.5rem;
}

/*texto de quien soy*/
.section-red-text {
    color: #1C2831;
    font-size: 1.4rem;
    align-self: center;
}

.section-red-cta {
    padding: 10px 0;
}

.section-red-title-cta {
    font-size: 4.3rem;
    font-weight: bold;
}

/* Iconos sobre fondo rojo */
.icon-on-red {
    color: #58C0B4;
}

/* ======================================================
   CENTRAR CONTENIDO SECCIÓN ¿QUIÉN SOY?
   ====================================================== */
#quienSoy .row {
    justify-content: center;   /* centra horizontalmente */
}

/* TÍTULO CENTRADO */
#quienSoy .section-red-title {
    text-align: center;
}

#quienSoy .col-md-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* centra verticalmente */
    min-height: 100%;
}

/* Ajuste fino para que no quede demasiado ancho */
#quienSoy .col-md-6 {
    max-width: 900px;
    width: 100%;
}

/* Mejora lectura del texto */
#quienSoy p,
#quienSoy ul {
    max-width: 100%;
}

/* ===== NOTICIAS CARROUSEL ===== */

/* =====================================================
   CARRUSEL DE NOTICIAS – TÍTULO ARRIBA + FONDO
   ===================================================== */

/* ===== CARRUSEL NOTICIAS - AJUSTE DE IMAGEN ===== */
#carruselNoticias {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px 20px 50px;
}

/* Contenedor del item */
#carruselNoticias .carousel-item {
    text-align: center;
}

/* Imagen del carrusel */
#carruselNoticias img {
    width: 100%;
    max-width: 900px;          /* controla el ancho máximo */
    height: 420px;             /* altura fija del carrusel */
    object-fit: contain;       /* NO corta la imagen */
    background: #ffffff;       /* quita cualquier fondo raro */
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

/* Título de la noticia */
#carruselNoticias .news-title {
    margin-top: 18px;
    font-family: 'RobotCrush', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ff0000;
    text-align: center;
    text-decoration: none !important;
    border: none !important;
}

/* Flechas */
#carruselNoticias .carousel-control-prev,
#carruselNoticias .carousel-control-next {
    filter: invert(1);
}

/* ===== NOTICIAS – TÍTULO ARRIBA ===== */
#carruselNoticias .carousel-caption h5 {
    color: #BA281B !important;
    font-family: 'RobotCrush', sans-serif !important;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: lowercase;
    margin: 0;
}

#carruselNoticias .carousel-caption {
    background: rgba(183, 243, 239, 0.75); /* rojo marca suave */
    padding: 12px 22px;
    border-radius: 14px;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
}

/* Bordes superiores de cards PLAN DISTRITAL */
.card-border-red {
    border-top: 4px solid #BA281B !important;
}

.card-border-turquoise {
    border-top: 4px solid #BA281B !important;
}

/* Íconos de lista (checks, estrellas, etc.) */
.icon-check {
    color: #BA281B;
}

.icon-check-alt {
    color: #BA281B;
}

.icon-title {
    color: #BA281B;
}

.icon-text {
    color: #58C0B4;
}

/* ===== BOTONES GENERALES ===== */
.btn {
    transition: all 0.3s ease;
    font-weight: 700;
    border-radius: 8px;
    border: none;
}

.btn-primary {
    background: #ff0000 !important;
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background: #BA281B !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
}

.btn-danger {
    background: #ff0000 !important;
    color: #FFFFFF !important;
}

.btn-danger:hover {
    background: #ff0000 !important;
}

/*BOTONES QUIERO UNIRME*/
.btn-join-main {
    background: #FFFFFF;
    color: #BA281B;
    border-radius: 8px;
    border: none;
    box-shadow: 0 8px 25px rgba(110, 219, 241, 0.5);
}

.btn-join-main:hover {
    background: linear-gradient(135deg, #b7f3ef 50%, #58C0B4 100%);
    color: #BA281B;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-join-whatsapp {
    background: #FFFFFF;
    color: #BA281B;
    border-radius: 8px;
    border: none;
    box-shadow: 0 8px 25px rgba(88, 192, 180, 0.5);
}

.btn-join-whatsapp:hover {
    background: linear-gradient(135deg, #b7f3ef 50%, #58C0B4 100%);
    color: #BA281B;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.5);
}

/* ===== FORMULARIO / MODAL (por si lo usas después) ===== */
.modal-content {
    border-radius: 12px;
    border: 2px solid #58C0B4;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: #BA281B !important;
    border-radius: 10px 10px 0 0;
    border: none;
}

.modal-title {
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #FFFFFF;
}

.btn-close-white:focus {
    box-shadow: 0 0 0 0.25rem rgba(88, 192, 180, 0.4);
}

.form-label {
    color: #BA281B !important;
    font-weight: 700;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    border: 2px solid #BA281B !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    border-color: #58C0B4 !important;
    box-shadow: 0 0 0 0.2rem rgba(88, 192, 180, 0.2);
    background-color: #FFFFFF;
}

.form-control::placeholder {
    color: rgba(88, 192, 180, 0.6);
}

/* ===== FOOTER ===== */
.footer-main {
    background: #BA281B;
    border-top: 4px solid #FFFFFF;
}

.footer-text {
    color: #FFFFFF;
    font-weight: 500;
}

.footer-social-link {
    font-size: 1.5rem;
    color: #FFFFFF !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social-link:hover {
    color: #ffffff !important;
    transform: scale(1.25);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

footer svg {
    transition: all 0.3s ease;
    color: #FFFFFF;
}

footer svg:hover {
    filter: drop-shadow(0 0 8px #FFFFFF);
}

/* ===== RESPONSIVE GENERAL ===== */
@media (max-width: 992px) {
    .display-3 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .display-3 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h5 {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 15px;
    }

    .navbar-brand {
        font-size: 0.95rem;
    }
}

/* ===== ACCESIBILIDAD ===== */
.btn:focus {
    outline: 2px solid #58C0B4;
    outline-offset: 2px;
}

a:focus {
    outline: 2px dashed #BA281B;
    outline-offset: 2px;
}

/* ===== ANIMACIONES GENERALES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   HERO NUEVO (LOGO IZQUIERDA + FOTO DERECHA)
   ============================================ */

/* Contenedor principal del hero */
#inicio.hero {
    text-align: center;
    background: #BA281B;
}

/* LOGO HERO IZQUIERDA*/
/*.hero-logo {
    max-width: 250px;
    width: 100%;
    transform: scale(0.7) translateX(-100px) translateY(-50px);
}*/

.hero-logo {
    max-width: 250px;
    width: 100%;
    transform: none;   /* ← CLAVE */
}

/* SOLO LOGO IZQUIERDA DEL HERO */
.hero-logo-left {
    transform: scale(1.7) translateX(20px) translateY(20px);/*ajusta tamaño y anileacion de imagen*/
}

/* SOLO LOGO DERECHA DEL HERO */
.hero-logo-right {
    transform: scale(1.6) translateX(350px) translateY(20px);/*ajusta tamaño y anileacion de imagen*/
}

/* FOTO HERO */
.hero-foto {
    width: 100%;
    max-width: 100px;
    object-fit: contain;
    border-radius: 10px;

    /* Ajustes visuales */ /*---> tener presente*/ 
    transform: scale(1.3) translateX(-190px) translateY(15px); /*ajusta tamaño y anileacion de imagen*/
    transform-origin: center;
    margin-bottom: -160px;

    position: relative;
    z-index: 1; /* CAPA BAJA */
}

/* RESPONSIVE - Tablets */
/* =========================================
   HERO – TABLET (VERTICAL Y HORIZONTAL)
   FIX DEFINITIVO
   ========================================= */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Quitar hacks del desktop*/
    .hero-logo-left,
    .hero-logo-right,
    .hero-foto {
        transform: none !important;
        margin: 0 auto;
        display: block;
    }

    /* Ajuste de tamaños */
    .hero-logo-left,
    .hero-logo-right {
        max-width: 320px;
        margin-bottom: 20px;
    }

    .hero-foto {
        max-width: 340px;
        margin-bottom: -40px;
    }
}

/* RESPONSIVE - Celulares */
@media (max-width: 576px) {
    .hero-logo-left,
    .hero-logo-right {
        transform: none;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 576px) {
    .hero-foto {
        transform: scale(1) translateX(0);
        margin-bottom: -80px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== TARJETAS DE NOTICIAS ===== */
.news-card {
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 8px 25px rgba(88, 192, 180, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(88, 192, 180, 0.25);
}

.news-img-wrapper {
    width: 100%;
    height: 220px;        /* Tamaño ideal para noticias */
    overflow: hidden;     /* Muy importante para encuadrar */
    border-bottom: 3px solid #B7F3EF;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* Recorta sin deformar */
    object-position: center;  /* Centrado perfecto */
    transition: transform 0.4s ease;
}

.news-card:hover .news-img {
    transform: scale(1.06);   /* Ligerísimo zoom */
}

.news-title {
    color: #58C0B4;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 15px;
}

.news-link {
    text-decoration: none;
}

/* ===== UNIFICAR COLOR DE TODAS LAS CARDS DE LOGROS ===== */
#logros .card {
    border-top: 4px solid #B7F3EF !important;
}

#logros .card-header {
    background: #BA281B !important;
    color: #FFFFFF !important;
}

#logros .card-title {
    color: #BA281B !important;
}

#logros .icon-check,
#logros .icon-star,
#logros .icon-title {
    color: #B7F2EF !important;
}

#logros .card-body ul li i {
    color: #B7F3EF !important;
}

/* ===== AJUSTE DE TAMAÑO DE TITULOS Y FUENTES  ===== */
h1, h2, h3, h4, h5, h6,
.section-title,
.section-red-title,
.news-title,
.card-title {
    font-family: 'RobotCrush', sans-serif !important; /*PENDIENTE TRABAJANDO CAMBIAR ajuste de distancia del texto*/
    letter-spacing: 2px;
    text-transform: lowercase;
}

/* Quitar subrayado de los iconos del footer */
.footer-social-link,
.footer-social-link:hover,
.footer-social-link:focus,
footer a svg,
footer a {
    text-decoration: none !important;
}

.section-red-cta {
    background: #FFFFFF !important; /* Fondo blanco por un pais que funcione*/
}

.section-red-cta .section-red-title-cta {
    color: #BA281B !important; /* Texto Rojo */
}

/* Ajuste fino de los botones del hero */
.hero-buttons {
    margin-left: 35px;    /* Los corre ligeramente a la derecha */
}

/* Tablets */
@media (max-width: 992px) {
    .hero-buttons {
        margin-left: 0;
    }
}

/* Celulares */
@media (max-width: 576px) {
    .hero-buttons {
        margin-left: 0;
        text-align: center;
    }
}

#quienSoy img {
    background: transparent !important;  /* elimina el fondo */
    box-shadow: none !important;         /* elimina el borde oscuro */
    padding: 0 !important;               /* elimina espacio interno */
}

/* ===== NOTICIAS MEJORADAS: Imágenes grandes y tarjetas parejas ===== */

/* Altura grande y uniforme para imágenes */
.news-img {
    width: 100%;
    height: 320px !important;   /* <<< TAMAÑO GRANDE */
    object-fit: cover;          /* Recorta sin deformar */
    object-position: center;    /* Centra la imagen */
    border-bottom: 3px solid #BA281B;
}

/* Tarjetas a la misma altura Noticias*/
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(88, 192, 180, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover */
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(88, 192, 180, 0.25);
}

/* Título */
.news-title {
    color: #BA281B;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 15px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* ==== IMÁGENES DE TRAYECTORIA PROFESIONAL ==== */
.trayectoria-img {
    width: 100%;
    max-width: 480px; /* tamaño ideal */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Tablets */
@media (max-width: 992px) {
    .trayectoria-img {
        max-width: 420px;
    }
}

/* Celulares */
@media (max-width: 576px) {
    .trayectoria-img {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/*QUITAR LINEA AZUL DEL CARRUSEL NOTICIAS*/
#Noticias a,
#Noticias a:hover,
#Noticias a:focus,
#Noticias a:active {
    text-decoration: none !important;
    color: inherit !important;
}

/* ============================================
   PLAN DISTRITAL – COLOR DE TÍTULOS
   Movilidad / Innovación / Agua y Ambiente
   ============================================ */
#planDistrital .card-title {
    color: #B7F3EF !important;
}

/* Iconos del título del Plan Distrital */
#planDistrital .card-title {
    color: #ba281b !important;
}

#planDistrital .icon-title {
    color: #58C0B4 !important;
}

/* ============================================
   CARD MAPA – SEDE QUINDÍO (RESTAURAR DISEÑO)
   ============================================ */
#sedes .card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Hover elegante */
#sedes .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

/* Header superior */
#sedes .card-header {
    background: #BA281B !important;
    color: #FFFFFF !important;
    font-family: 'RobotCrush', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    border-bottom: none;
    padding: 16px 20px;
}

/* Ícono del header */
#sedes .card-header i {
    color: #B7F3EF;
    font-size: 1.2rem;
}

/* Cuerpo */
#sedes .card-body {
    padding: 24px;
}

/* Subtítulo */
#sedes .section-subtitle {
    color: #BA281B;
    font-weight: 800;
}

/* Texto e íconos */
#sedes .icon-text {
    color: #58C0B4;
}

/* Línea decorativa superior */
#sedes .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #B7F3EF, #58C0B4);
}

/* ================================
   CARDS – ANIMACIÓN Y ESTILO BASE
================================ */

/* Card base */
.card {
    border-radius: 16px;
    transition: 
        transform 0.35s ease,
        box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* Hover general */
.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

/* Header icon animación */
.card-header i {
    transition: transform 0.4s ease;
}

.card:hover .card-header i {
    transform: scale(1.15) rotate(-3deg);
}

/* Bordes personalizados (NO se pierden) */
.card-border-red {
    border-left: 6px solid #BA281B;
}

.card-border-turquoise {
    border-left: 6px solid #58C0B4;
}

/* Header colores */
.card-header-red {
    background: #BA281B;
    color: #ffffff;
}

.card-header-turquoise {
    background: #58C0B4;
    color: #ffffff;
}

.card-header-white {
    background: #ffffff;
}

/* Títulos */
.card-title {
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Listas */
.card-body ul li {
    transition: transform 0.3s ease;
}

.card-body ul li:hover {
    transform: translateX(6px);
}

/* Iconos */
.icon-check,
.icon-check-alt,
.icon-star {
    opacity: 0.9;
}

/* ================================
   ICONOS DE CARDS – TAMAÑO Y PRESENCIA
================================ */

/* Íconos dentro del header de la card */
.card-header i {
    font-size: 2.8rem;       /* tamaño grande y visible */
    line-height: 1;
}

/* Íconos dentro del cuerpo (listas) */
.card-body i {
    font-size: 1.1rem;
}

/* Íconos destacados (estrellas, checks, etc.) */
.icon-check,
.icon-check-alt,
.icon-star {
    font-size: 1.1rem;
}

/* Íconos grandes específicos del header */
.card-header-icon,
.card-header-icon-red,
.card-header-icon-turquoise {
    font-size: 3rem;
}

/* Animación suave al hover */
.card-header i {
    transition: transform 0.35s ease;
}

.card:hover .card-header i {
    transform: scale(1.15);
}

/* ================================
   TÍTULOS DE CARDS – CENTRADO
================================ */

/* Centrar títulos */
.card-title {
    text-align: center;
    width: 100%;

}

/* Mejorar presencia visual del título */
.card-title {
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

/* Asegurar centrado incluso con íconos */
.card-title i {
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}

/* ============================================
   HERO FIX – TABLET HORIZONTAL (LANDSCAPE)
   ============================================ */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {

    .hero {
        min-height: auto;          /* deja que el contenido mande */
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-foto {
        max-width: 320px;          /* tamaño real */
        transform: none;           /* QUITA el desplazamiento */
        margin-bottom: 0;
    }

    .hero-logo {
        max-width: 320px;
        transform: none;
    }

    .hero-buttons {
        margin-left: 0;
        justify-content: flex-start;
    }
}

/* ============================================
   FIDELIZACIÓN – TEXTOS Y TÍTULO EN BLANCO
   ============================================ */

#fidelizacion {
    background: #BA281B !important;
}

/* TÍTULO */
#fidelizacion .section-red-title {
    color: #FFFFFF !important;
}

/* TEXTOS */
#fidelizacion .section-red-text {
    color: #FFFFFF !important;
}

/* TEXTO PEQUEÑO (candado) */
#fidelizacion p.small {
    color: #FFFFFF !important;
}

/* ÍCONO DE SEGURIDAD */
#fidelizacion .icon-on-red {
    color: #B7F3EF !important;
}


/*trabajando Responsive*/

/* ============================================
   HERO RESPONSIVE – FOTO PEGADA AL BORDE INFERIOR
   ============================================ */

/* BASE */
.hero {
    position: relative;
    overflow: hidden;
}

/* TABLET Y MÓVIL */
@media (max-width: 1024px) {

    .hero {
        min-height: auto;
        padding-bottom: 0; /* CLAVE */
    }

    .hero-foto {
        position: relative;
        display: block;
        margin: 30px auto 0;
        max-width: 300px;
        width: 100%;
        height: auto;
        transform: none !important;
    }

    /* Empuja la imagen hacia abajo */
    .hero-foto {
        margin-bottom: -50px; /* AJUSTE FINO */
    }
}

/* CELULARES */
@media (max-width: 576px) {

    .hero-foto {
        max-width: 260px;
        margin-top: 20px;
        margin-bottom: -50px; /* MÁS PEGADA AL BORDE */
    }
}

/*mapas*/

.sede-btn {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sede-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 -2px 14px rgba(0,0,0,0.2);
}

/* ===== SEDES: mantener ícono pequeño (evita que lo dañe .card-header i global) ===== */
#sedes .card-header i {
  font-size: 1.2rem !important;
  line-height: 1;
}

/* (Opcional) si el borde izquierdo turquesa te cambia el look, lo anulamos SOLO en sedes */
#sedes .card-border-turquoise {
  border-left: 0 !important;
}
