/* Paleta de Colores (Rojo, Negro, Blanco) */
:root {
    /* Colores principales */
    --primary-red: #B71C1C; /* Rojo intenso para CTA y highlights */
    --success-green: #20740f; /* Rojo intenso para CTA y highlights */
    --dark-text: #111111;   /* Negro para texto */
    --light-bg: #ffffff;    /* Blanco para fondos */
    
    /* Colores para el Navbar estilo "Píldora" */
    --nav-container-bg: #F4F4F4; /* Gris muy claro para el fondo del nav central */
    --text-color: var(--dark-text); 
    --active-bg: #FCE4E4; /* Rojo muy claro para el estado activo/hover (Fondo) */
    
    /* Colores para Contacto */
    --contact-icon-color: var(--primary-red);
    
    /* Altura del Top Bar */
    --top-bar-height: 40px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg); 
    /* Se inicializa con un valor de referencia, se ajusta con JS */
    padding-top: calc(var(--top-bar-height) + 80px); 
    transition: padding-top 0.3s ease;
}

/* ------------------------------------------- */
/* --- 1. TOP BAR STYLES --- */
/* ------------------------------------------- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    height: var(--top-bar-height);
    background-color: var(--dark-text); 
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease-in-out; 
}

/* Clase para ocultar el Top Bar en scroll */
.top-bar.hidden {
    transform: translateY(calc(-1 * var(--top-bar-height)));
}

.top-bar a {
    color: inherit;
    text-decoration: none;
    margin-right: 15px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.top-bar a:hover {
    opacity: 1;
    color: var(--primary-red);
}

.social-icons a {
    margin-left: 10px;
    margin-right: 0; 
    font-size: 18px;
}

/* --- Estilos Globales CTA --- */
.btn-acaai-cta {
    background-color: var(--primary-red); 
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none; 
}

.btn-acaai-cta:hover {
    background-color: #8D0E0E; 
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(183, 28, 28, 0.6);
    color: white;
}

/* ------------------------------------------- */
/* --- 2. MAIN NAVBAR STYLES --- */
/* ------------------------------------------- */
.main-navbar {
    background: var(--light-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: var(--top-bar-height); 
    left: 0;
    right: 0;
    z-index: 1050; 
    transition: top 0.3s ease-in-out, box-shadow 0.3s; 
    padding: 10px 0;
}

.main-navbar.shifted {
    top: 0; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark-text);
    font-size: 24px;
    font-weight: 700;
}

.logo-img {
    height: 70px; 
    width: auto;
    object-fit: contain;
}

/* --- Navigation Menu (Estilo de Píldora Central) --- */
.nav-menu-pills {
    background-color: var(--nav-container-bg);
    border-radius: 50px; 
    padding: 5px;
    display: flex;
    flex-grow: 0;
    margin: 0 auto;
}

.navbar-nav-pills .nav-link {
    color: var(--text-color);
    padding: 12px 20px;
    font-weight: 500;
    font-size: 15px;
    text-transform: none;
    border-radius: 40px;
    transition: all 0.2s;
    line-height: 1;
}

/* Estado Activo (La clave para el color rojo) */
.navbar-nav-pills .nav-link.active {
    color: var(--primary-red) !important; 
    background-color: var(--active-bg);
    font-weight: 600;
}

/* Estado Hover (También se destaca, pero el color primario no cambia si no es activo) */
.navbar-nav-pills .nav-link:hover {
    background-color: var(--active-bg);
    color: var(--dark-text); /* Mantenemos el color oscuro en hover si no es activo */
    font-weight: 600;
}


/* --- Elementos de Contacto y Botón Derecho --- */
.contact-cta-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-text);
}

.contact-icon-wrapper {
    background-color: var(--nav-container-bg);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--contact-icon-color);
    transition: background-color 0.2s;
}

.contact-icon-wrapper:hover {
     background-color: var(--active-bg);
}

.contact-text-box span:first-child {
    font-size: 16px;
    font-weight: 600;
}

.contact-text-box span:last-child {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.search-icon-wrapper {
    background-color: var(--nav-container-bg);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dark-text);
    margin-right: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-icon-wrapper:hover {
    background-color: var(--active-bg);
}

/* --- Botón Hamburguesa --- */
.navbar-toggler {
    border: none;
    background: transparent;
    padding: 5px;
    cursor: pointer;
    color: var(--dark-text);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* --- Mobile Styles --- */
@media (max-width: 1200px) {
    .contact-info {
        display: none;
    }
}

@media (max-width: 991px) {
    /* Ocultar Top Bar en móvil */
    .top-bar {
        display: none !important; 
    }
    body {
        padding-top: 80px; /* Sólo el padding del main-navbar en móvil */
    }
    .main-navbar {
        top: 0; /* Asegurar que el navbar principal esté arriba en móvil */
        padding: 5px 0;
    }
    .navbar-brand-wrapper {
        font-size: 20px;
    }
    .logo-img {
        height: 60px;
    }
    
    .nav-menu-pills {
        display: none;
    }
    
    .search-icon-wrapper, .contact-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* CRÍTICO: Estilos del collapse - DEBEN RESPETAR BOOTSTRAP */
    .navbar-collapse {
        background-color: white;
        width: 100%;
    }
    
    /* Asegurar que Bootstrap controle la visibilidad */
    .navbar-collapse:not(.show) {
        display: none;
    }
    
    .navbar-collapse.collapsing {
        height: 0;
        overflow: hidden;
        transition: height 0.35s ease;
    }
    
    .navbar-collapse.show {
        display: block;
    }
    
    .navbar-nav-mobile {
        list-style: none;
        padding: 15px;
        margin: 0;
        width: 100%;
    }

    .navbar-nav-mobile .nav-item {
        width: 100%;
    }

    .navbar-nav-mobile .nav-link {
        display: block;
        padding: 12px 15px;
        border-radius: 8px;
        margin-bottom: 5px;
        color: var(--dark-text);
        text-decoration: none;
        transition: all 0.2s;
    }

    /* ESTILO ACTIVO MÓVIL (Rojo) */
    .navbar-nav-mobile .nav-link.active {
        color: var(--primary-red) !important;
        background-color: var(--active-bg);
        font-weight: 700;
        border-left: 5px solid var(--primary-red);
    }
    
    .navbar-nav-mobile .nav-link:hover {
        background-color: var(--active-bg);
    }
}
/* ------------------------------------------- */
/* --- 3. HERO SECTION FIJO A LA IZQUIERDA --- */
/* ------------------------------------------- */

/* Contenedor principal del Hero (casi igual al anterior) */
.acaai-hero-section-fijo-left {
    position: relative;
    width: 100%;
    /* Alto de la sección hero, ocupa casi toda la pantalla */
    height: calc(50vh - var(--top-bar-height)); 
    min-height: 600px; 
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* El fondo permanece igual */
.acaai-hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/acaai.png'); 
    background-size: cover;
    background-position: center top; 
    z-index: 1;
}

.acaai-hero-background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hero-overlay-dark);
    z-index: 2;
}

/* Contenedor de contenido con flex para centrado vertical dentro del container de Bootstrap */
.acaai-hero-content-left {
    position: relative;
    z-index: 3; 
    height: 100%; /* Corregido: 100% en lugar de 1000% para mejor estabilidad */
}

/* El Wrapper de contenido, ahora con alineación izquierda */
.hero-content-wrapper-left {
    text-align: left; /* Alineación clave: izquierda */
    color: white; /* Color general del texto */
    /* Añadido: Se ajusta al ancho del container, pero se puede limitar para legibilidad */
    max-width: 650px; 
}

.hero-pre-title-left {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    padding: 5px 15px;
    display: inline-block; /* Crucial para que el fondo rojo solo ocupe el ancho del texto */
    background-color: var(--primary-red); 
    border-radius: 8px;
}

.hero-main-title-left {
    font-size: 20px; /* Se mantiene tu valor base */
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.hero-main-title-left .text-primary-red {
    color: var(--primary-red);
}

.hero-description-left {
    font-size: 20px;
    /* ATENCIÓN: MANTENEMOS TU VALOR. Si el overlay es oscuro, considera cambiarlo a blanco (#FFF) para legibilidad. */
    color: #000000; 
    line-height: 1.5;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Grupo de Botones */
.hero-cta-group-left {
    display: flex;
    justify-content: flex-start; /* Alinear el botón a la izquierda */
}

/* --- Media Queries (Aseguramos responsividad) --- */

/* 1. MÓVIL PEQUEÑO (Añadido: Pantallas muy estrechas, ej. iPhone SE) */
@media (max-width: 576px) {
    .acaai-hero-section-fijo-left {
        min-height: 400px;
    }
    .hero-main-title-left {
        font-size: 32px; /* Reducción adicional para que quepa en una línea */
    }
    .hero-description-left {
        font-size: 14px;
        margin-bottom: 20px;
    }
}


/* 2. TABLETS Y MÓVILES (Tu regla base) */
@media (max-width: 991px) {
    .acaai-hero-section-fijo-left {
        height: 500px;
        min-height: auto;
    }
    /* En móvil, volvemos a centrar el texto para mejor lectura sobre la imagen */
    .hero-content-wrapper-left {
        text-align: center;
    }
    .hero-cta-group-left {
        justify-content: center;
    }
    
    .hero-main-title-left {
        font-size: 30px;
        margin-bottom: 15px;
    }
    
    .hero-description-left {
        font-size: 16px;
        margin-bottom: 25px;
    }
}

/* 3. PANTALLAS GRANDES/4K (Añadido: Para que no se vea vacío en monitores grandes) */
@media (min-width: 1400px) {
    .acaai-hero-section-fijo-left {
        /* Aumentamos la altura de la sección para aprovechar el espacio */
        height: 80vh; 
        min-height: 700px;
    }
    .hero-main-title-left {
        /* Título más grande para impactar más */
        font-size: 55px; 
    }
    .hero-description-left {
        font-size: 22px;
    }
}


/* ------------------------------------------- */
/* --- 4. EJES DE ACCIÓN MINIMALISTA STYLES --- */
/* ------------------------------------------- */
.acaai-ejes-minimalista {
    background-color: var(--light-bg); /* Fondo blanco, limpio */
    position: relative;
    overflow: hidden; /* Para cualquier efecto futuro */
}

/* Efecto sutil de fondo */
.acaai-ejes-minimalista::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(244,244,244,0.3) 100%);
    z-index: 0;
}


/* Títulos */
.section-title-minimalista {
    font-size: 44px;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.section-title-minimalista strong {
    color: var(--primary-red);
}

.section-subtitle-minimalista {
    font-size: 18px;
    color: #525252;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Enlaces de Tarjetas */
.eje-card-link {
    text-decoration: none;
    display: block; /* Para que ocupe todo el espacio de la columna */
    height: 100%;
}

/* Tarjetas */
.eje-card-minimalista {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* Sombra más pronunciada */
    text-align: left; /* Alineación del texto a la izquierda */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 1; /* Para que esté sobre el fondo sutil */
    border: 1px solid rgba(0,0,0,0.05); /* Borde sutil */
}

.eje-card-minimalista:hover {
    transform: translateY(-8px); /* Elevación más notable */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); /* Sombra más fuerte */
    background-color: var(--active-bg); /* Fondo rojo muy claro en hover */
}

/* Iconos */
.eje-icon-minimalista {
    font-size: 55px; /* Icono grande */
    color: var(--primary-red);
    margin-bottom: 25px;
    display: block; /* Para que el texto que le sigue no se alinee con él */
}

/* Título de la tarjeta */
.eje-card-title-minimalista {
    font-size: 26px; /* Título más grande */
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Flecha dentro del título */
.eje-card-title-minimalista .arrow-icon {
    font-size: 22px;
    color: var(--dark-text);
    transition: transform 0.3s ease, color 0.3s ease;
}

.eje-card-link:hover .arrow-icon {
    transform: translateX(5px); /* Desliza la flecha en hover */
    color: var(--primary-red);
}

/* Texto de la tarjeta */
.eje-card-text-minimalista {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
}


/* --- Media Queries --- */
@media (max-width: 991px) {
    .section-title-minimalista {
        font-size: 34px;
    }
    .section-subtitle-minimalista {
        font-size: 16px;
        margin-bottom: 40px;
    }
    .eje-card-minimalista {
        padding: 30px;
    }
    .eje-icon-minimalista {
        font-size: 45px;
        margin-bottom: 20px;
    }
    .eje-card-title-minimalista {
        font-size: 22px;
    }
    .eje-card-text-minimalista {
        font-size: 15px;
    }
}
@media (max-width: 767px) {
    .section-title-minimalista {
        font-size: 28px;
    }
    .section-subtitle-minimalista {
        font-size: 15px;
    }
    .eje-card-minimalista {
        text-align: center; /* Centrar en móviles */
    }
    .eje-icon-minimalista {
        margin-left: auto;
        margin-right: auto;
    }
    .eje-card-title-minimalista {
        justify-content: center; /* Centrar el título y la flecha */
    }
}


/* ------------------------------------------- */
/* --- 7. FAQ SECTION STYLES (UI/UX AVANZADO) --- */
/* ------------------------------------------- */
.acaai-faq-professional {
    background-color: var(--light-bg); /* Fondo blanco limpio */
}

/* Títulos y Subtítulos (Alineación a la izquierda en desktop) */
.section-title-faq-pro {
    font-size: 50px; /* Título más grande para impacto */
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 20px;
    line-height: 1.1;
}

.section-title-faq-pro .text-primary-red {
    color: var(--primary-red);
}

.section-subtitle-faq-pro {
    font-size: 19px; /* Tamaño de fuente ligeramente mayor */
    color: #525252;
    max-width: 500px; /* Ancho máximo para legibilidad */
    margin-left: 0; /* Asegura alineación a la izquierda */
    line-height: 1.6;
}

/* Contenedor del Acordeón Personalizado */
.faq-accordion-custom {
    background-color: var(--nav-container-bg); /* Fondo gris claro */
    border-radius: 15px; /* Bordes redondeados */
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); /* Sombra elegante */
}

/* Cada Item de Pregunta/Respuesta */
.faq-item-custom {
    margin-bottom: 15px; /* Espacio entre preguntas */
    border: 1px solid rgba(0, 0, 0, 0.05); /* Borde muy sutil */
    border-radius: 12px;
    overflow: hidden; /* Para transiciones */
    transition: all 0.3s ease;
}

.faq-item-custom.active {
    background-color: var(--active-bg); /* Fondo rojo claro al estar activo */
    border-color: var(--primary-red); /* Borde rojo */
    box-shadow: 0 4px 20px rgba(183, 28, 28, 0.1); /* Sombra sutil al activo */
}


/* Área de la Pregunta (Haz clic aquí) */
.faq-question-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 19px;
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item-custom.active .faq-question-custom {
    color: var(--primary-red); /* Texto de la pregunta en rojo al estar activo */
}

.faq-question-custom:hover {
    background-color: rgba(183, 28, 28, 0.05); /* Ligero hover */
}

/* Icono de Toggle (flecha) */
.faq-toggle-icon {
    font-size: 20px;
    color: var(--dark-text);
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item-custom.active .faq-toggle-icon {
    transform: rotate(180deg); /* Gira la flecha al estar activo */
    color: var(--primary-red);
}


/* Área de la Respuesta (oculto por defecto) */
.faq-answer-custom {
    max-height: 0; /* Oculto por defecto */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Animación de altura */
    padding: 0 25px; /* Padding horizontal, vertical se animará */
}

.faq-item-custom.active .faq-answer-custom {
    max-height: 500px; /* Suficientemente grande para cualquier respuesta */
    padding-bottom: 25px; /* Padding al mostrar */
    padding-top: 10px; /* Pequeño padding superior */
}

.faq-answer-custom p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
}

/* Lista de Documentos */
.faq-answer-custom ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
    border-left: 3px solid var(--primary-red); /* Borde rojo distintivo */
    padding-left: 20px;
}

.faq-answer-custom li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
    color: #4b5563;
}

.faq-answer-custom li::before {
    content: "\F26A"; /* Ícono de documento/file de Bootstrap Icons */
    font-family: "bootstrap-icons";
    font-weight: 900;
    color: var(--primary-red);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 18px;
}

/* Media Queries para Responsividad */
@media (max-width: 991px) {
    .section-title-faq-pro {
        font-size: 38px;
        margin-bottom: 15px;
    }
    .section-subtitle-faq-pro {
        font-size: 17px;
        margin-bottom: 30px;
    }
    .faq-accordion-custom {
        padding: 15px;
    }
    .faq-question-custom {
        font-size: 17px;
        padding: 15px 20px;
    }
    .faq-answer-custom p, .faq-answer-custom li {
        font-size: 15px;
    }
    .faq-answer-custom ul {
        padding-left: 15px;
    }
    .faq-answer-custom li {
        padding-left: 20px;
    }
}



/* ------------------------------------------- */
/* --- 8. STATS SECTION STYLES (MINIMALISTA) --- */
/* ------------------------------------------- */
.acaai-stats-section {
    background-color: var(--primary-red); /* Usamos el rojo primario de la marca */
    color: var(--light-bg); /* Color de texto base: Blanco */
    
}

.stat-item-acaai {
    padding: 20px;
    /* QUITADO: transform 0.3s ease; */
}

/* Eliminamos el hover para un look más estático y limpio, o lo hacemos muy sutil */
.stat-item-acaai:hover {
    /* Mantenemos una ligera opacidad en hover para indicar interactividad, pero sin moverlo */
    opacity: 0.9;
}

/* 2. Íconos: Blanco */
.stat-icon-acaai {
    font-size: 40px;
    color: var(--light-bg); /* Íconos en blanco */
    margin-bottom: 10px;
}

.stat-number {
    font-size: 55px;
    font-weight: 800;
    color: var(--light-bg); /* Números en blanco/claro */
    line-height: 1;
    margin-bottom: 10px;
}

/* 3. El Contador: Cambiamos a blanco para unificar, rompiendo la regla de contraste */
.stat-number .number-counter {
    color: var(--light-bg); /* Números en blanco/claro */
}

/* 4. Título: Gris muy claro (para contraste sutil con el blanco del número) */
.stat-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85); /* Blanco con opacidad para contraste suave */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Media Queries (Se mantienen tus ajustes de responsividad) --- */
@media (max-width: 767px) {
    .acaai-stats-section .container {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    .stat-number {
        font-size: 45px;
    }
    .stat-title {
        font-size: 15px;
    }
}
@media (max-width: 576px) {
    .stat-item-acaai {
        padding: 15px 5px;
    }
    .stat-number {
        font-size: 40px;
    }
}



/* ------------------------------------------- */
/* --- 9. FOOTER STYLES (AVANZADO) --- */
/* ------------------------------------------- */
.acaai-footer-pro {
    background-color: var(--dark-text); /* Fondo oscuro (Negro/Gris muy oscuro) */
    color: var(--nav-container-bg); 
    padding-top: 70px;
    padding-bottom: 30px;
}

/* 1. Logo y Marca */
.footer-logo-img {
    max-height: 80px; /* Tamaño adecuado para el logo */
    width: auto;
    
}

.footer-text-mission-pro {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75); /* Gris claro para el texto de misión */
}

/* 2. Títulos de Columna */
.footer-title-pro {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-red); /* Títulos en rojo para un toque llamativo */
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 3. Enlaces y Listas */
.footer-links-pro {
    list-style: none;
    padding-left: 0;
}

.footer-links-pro li {
    margin-bottom: 12px;
}

.footer-link-item-pro {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
    display: inline-block;
    position: relative;
}

.footer-link-item-pro:hover {
    color: var(--light-bg); /* Blanco puro al hacer hover */
    transform: translateX(5px); /* Movimiento sutil */
}

/* 4. Contacto Destacado */
.contact-item-pro {
    font-size: 16px;
    color: var(--light-bg); /* Blanco puro para los datos de contacto */
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-icon-red {
    color: var(--primary-red);
    margin-right: 10px;
    font-size: 17px;
}

/* 5. CTA Destacado en Footer */
.btn-footer-cta {
    display: inline-block;
    background-color: var(--primary-red);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-footer-cta:hover {
    background-color: var(--dark-text); /* Se oscurece en hover */
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    transform: translateY(-2px);
}


/* 6. Redes Sociales */
.social-icons-group-pro {
    display: flex;
    gap: 15px;
}

.social-icon-item-pro {
    font-size: 22px;
    color: var(--light-bg);
    transition: color 0.2s, transform 0.2s;
}

.social-icon-item-pro:hover {
    color: var(--primary-red);
    transform: translateY(-3px);
}

/* 7. Legal y Copyright */
.footer-divider-pro {
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Línea muy discreta */
}

.footer-copyright-text-pro {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5); 
    margin-top: 10px;
}

/* Añadir al final de la sección 9. FOOTER STYLES (AVANZADO) */
.footer-link-credit {
    color: var(--primary-red); /* Color de la marca */
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.footer-link-credit:hover {
    color: var(--light-bg); /* Blanco al pasar el cursor */
    text-decoration: underline; /* Subrayado solo en hover */
}

/* --- Media Queries (Responsividad) --- */
@media (max-width: 991px) {
    .acaai-footer-pro {
        text-align: center;
    }
    .footer-col-content-brand {
        text-align: center;
    }
    .social-icons-group-pro {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    .footer-title-pro {
        margin-top: 30px;
        text-align: left; /* Alineamos títulos a la izquierda en columnas más pequeñas */
    }
    .col-md-4, .col-lg-2, .col-lg-3 {
        text-align: left;
    }
    .contact-info-group {
        text-align: left;
    }
}
@media (max-width: 767px) {
    .footer-title-pro {
        margin-top: 20px;
        margin-bottom: 10px;
    }
}





/* ------------------------------------------- */
/* --- 10. AFFILIATIONS (MARQUEE) STYLES --- */
/* ------------------------------------------- */
.acaai-affiliations-section {
    background-color: var(--light-bg);
}

/* Títulos más llamativos */
.section-tagline-affiliations {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.section-title-affiliations {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 15px;
}
.section-subtitle-affiliations {
    font-size: 17px;
    color: #4b5563;
    max-width: 800px;
    margin: 0 auto 50px;
}






/* --- Estilos Generales y Responsivos --- */
.acaai-affiliations-section {
    /* Opcional: Asegurar que el padding se ajuste a tu diseño de Bootstrap */
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    overflow-x: hidden; /* Evita que la barra de desplazamiento horizontal aparezca debido a la marquesina */
}

.section-title-affiliations,
.section-subtitle-affiliations {
    /* Asegura que el texto sea responsive */
    word-wrap: break-word;
}

/* Responsividad del Título (Opcional, si usas tamaños de fuente personalizados) */
@media (max-width: 768px) {
    .section-title-affiliations {
        font-size: 1.75rem; /* Tamaño más pequeño en móviles */
    }
}

/* --- Estilos del Carrusel/Marquesina --- */

.logo-marquee-container {
    width: 100%;
    /* El overflow: hidden es crucial para ocultar los logos que se salen del contenedor */
    overflow: hidden; 
    white-space: nowrap; /* Evita que los elementos se envuelvan a la siguiente línea */
    padding: 20px 0; /* Espacio vertical alrededor del carrusel */
}

.logo-track {
    display: flex;
    /* Duplica el ancho de la pista para asegurar un bucle suave (ya que tienes 3 sets de logos en tu HTML) */
    width: calc(300% / 3); 
    animation: scroll-left 40s linear infinite; /* Animación principal */
}

/* Pausa la animación al pasar el ratón */
.logo-marquee-container:hover .logo-track {
    animation-play-state: paused;
}

.logo-slide {
    display: inline-block;
    padding: 0 15px; /* Espacio entre logos */
    flex-shrink: 0; /* Evita que los slides se encojan */
    /* Calcula el ancho de cada slide para que 4-5 logos sean visibles a la vez en un contenedor de 100% de ancho */
    width: calc(100% / 5); /* Muestra 5 logos a la vez */
    text-align: center; /* Centra el logo dentro de su slide */
}

/* Estilo para la imagen del logo */
.affiliation-logo {
    max-width: 100%; /* Asegura que el logo no exceda el ancho de su contenedor (.logo-slide) */
    height: auto;
    max-height: 80px; /* Limita la altura de los logos */
    filter: grayscale(100%); /* Opcional: Poner los logos en blanco y negro */
    transition: filter 0.3s ease; /* Transición suave al color */
    opacity: 0.6; /* Opcional: Menor opacidad por defecto */
}

.logo-slide:hover .affiliation-logo {
    filter: none; /* Opcional: Mostrar color al pasar el ratón */
    opacity: 1;
}

/* --- Media Query para Responsividad Específica de Logos --- */

@media (max-width: 992px) {
    .logo-slide {
        width: calc(100% / 4); /* Muestra 4 logos en tablets */
    }
    .affiliation-logo {
        max-height: 70px;
    }
}

@media (max-width: 576px) {
    .logo-slide {
        width: calc(100% / 3); /* Muestra 3 logos en móviles pequeños */
    }
    .affiliation-logo {
        max-height: 60px;
    }
}

/* --- Definición de la Animación de Desplazamiento --- */

@keyframes scroll-left {
    0% {
        /* Inicia la animación completamente a la izquierda */
        transform: translateX(0%);
    }
    100% {
        /* Desplaza hacia la izquierda un tercio del ancho (ya que tienes 3 grupos de logos) para un bucle infinito */
        transform: translateX(calc(-100% / 3));
    }
}


/*conoce acaai*/



/* =============================== */
/* HERO FULL RESPONSIVE ACAAI      */
/* =============================== */

.acaai-hero-full-bg {
    position: relative;
    width: 100%;
    min-height: 60vh;
    height: 650px;
    color: white;

    background: url('../img/nosotros-acaai.webp') center center / cover no-repeat;
    display: flex;
    align-items: center;
}

/* Overlay */
.hero-overlay-full {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    z-index: 0;
}

/* Contenido */
.hero-content-full {
    position: relative;
    z-index: 1;
    width: 100%;
}

.text-content-col-full {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

/* TITULOS */
.hero-pre-title-full {
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-main-title-full {
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 20px;
}

.hero-description-full {
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
}

/* BOTÓN */
.btn-hero-secondary-clean-light {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    padding: 14px 28px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-hero-secondary-clean-light:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    transform: translateY(-1px);
}

/* =============================== */
/* RESPONSIVE BREAKPOINTS         */
/* =============================== */

/* Tablets */
@media (max-width: 991px) {
    .acaai-hero-full-bg {
        height: 520px;
        text-align: center;
    }

    .text-content-col-full {
        margin: 0 auto;
        padding: 0 20px;
    }

    .btn-acaai-cta,
    .btn-hero-secondary-clean-light {
        width: 100%;
        max-width: 300px;
    }
}

/* Móviles */
@media (max-width: 575px) {
    .acaai-hero-full-bg {
        height: auto;
        padding: 80px 0;
    }

    .hero-main-title-full {
        font-size: 32px;
    }

    .hero-description-full {
        font-size: 16px;
    }
}





/* --- ESTILOS PARA MISIÓN, VISIÓN Y VALORES (NUEVO ESTILO LIMPIO Y RESPONSIVE) --- */

:root {
    /* Asumiendo que ya tienes estas variables o necesitas definirlas */
    --primary-red: #D93025; /* Ejemplo de color primario */
    --dark-text: #212529;   /* Ejemplo de color de texto oscuro */
    --light-bg: #f8f9fa;    /* Fondo de la tarjeta */
}

.acaai-mvv-corporative { background-color: white; }

/* Títulos de la Sección (Ajuste de estilos principales) */
.mvv-tagline-corporative {
    border-left: 3px solid var(--primary-red); 
    padding-left: 15px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.mvv-main-title-corporative {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark-text);
}

.mvv-subtitle-corporative {
    font-size: 16px;
    color: #6c757d;
}

/* Estilo para las Tarjetas (Ajuste Clave: Altura flexible y estilo limpio) */
.mvv-card-corporative {
    position: relative;
    overflow: hidden;
    min-height: 350px; /* Altura mínima, ahora crecerá con el contenido */
    height: 100%; /* Asegura que la tarjeta tome la altura del contenedor en la fila g-4 */
    border-radius: 8px; /* Bordes redondeados */
    border: 1px solid rgba(0, 0, 0, 0.08); /* Borde sutil */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: var(--light-bg); 
    padding: 30px; /* El padding se aplica aquí directamente */
}

.mvv-card-corporative:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px); /* Pequeño efecto de elevación */
    background-color: white;
}

/* Eliminamos .mvv-card-bg-overlay ya que no hay imagen */

/* Contenido de la Tarjeta (Ajuste Clave: Eliminamos la posición absoluta) */
.mvv-content-wrapper {
    /* Eliminamos position: absolute/relative, top, left, width, height. */
    padding: 0; /* Quitamos el padding duplicado */
    z-index: 2; 
    background: transparent; 
    
    display: flex;
    flex-direction: column;
    height: 100%; /* Permite que el contenido use toda la altura del padre */
}

/* El icono va arriba, el texto abajo. Usamos margin para separarlos */
/* --- Estilos CSS Actualizados --- */

/* ... (Otros estilos sin cambios) ... */

/* El icono va arriba, el texto abajo. Usamos margin para separarlos */
.mvv-icon-corporative {
    font-size: 45px;
    color: var(--primary-red);
    margin-bottom: 20px; 
    width: fit-content; 
    /* ELIMINADO: padding: 10px; */
    background-color: transparent; /* Fondo transparente */
    border-radius: 0; /* Quitar el redondeo */
    border: none; /* Quitar el borde */
}

/* ... (El resto de tus estilos) ... */

.mvv-card-title-corporative {
    font-size: 24px; /* Un poco más pequeño para mejorar la lectura */
    font-weight: 700;
    color: var(--dark-text);
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.mvv-card-text-corporative {
    font-size: 16px;
    line-height: 1.6;
    color: #495057;
}

/* Clase de Resalte de Texto (SIN CAMBIOS) */
.text-highlight-dark {
    font-weight: 700;
    color: var(--dark-text); 
}

/* --- Media Queries (Mejorado para la responsividad de textos) --- */
@media (max-width: 991px) {
    /* Tablet y pantallas medianas */
    .mvv-main-title-corporative { font-size: 40px; text-align: center; }
    .mvv-tagline-corporative { border-left: none; text-align: center; }
    .mvv-subtitle-corporative { text-align: center; margin-bottom: 30px; }
    
    /* La altura se ajusta dinámicamente, pero puedes asegurar una mínima */
    .mvv-card-corporative { min-height: auto; padding: 25px; } 
    .mvv-card-title-corporative { font-size: 22px; }
}

@media (max-width: 576px) {
    /* Móviles */
    .mvv-main-title-corporative { font-size: 32px; }
    .mvv-card-title-corporative { font-size: 20px; }
    .mvv-icon-corporative { font-size: 38px; margin-bottom: 15px; }
    .mvv-card-text-corporative { font-size: 15px; }
    
    /* En móviles, la altura es completamente automática */
    .mvv-card-corporative { min-height: auto; }
}


#timelineAcaai { 
  font-family: 'Arial', sans-serif; 
}

/* CONTENEDOR PRINCIPAL */
.timeline-wrapper {
  max-width: 1300px;
  margin: auto;
  padding: 0 20px;
}

/* CAJA SUPERIOR = ESTILO COCA-COLA FEMSA */
.timeline-top-box {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
}

.timeline-top-box img {
  width: 420px;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.timeline-info {
  flex: 1;
}

.timeline-year-big {
  font-size: 70px;
  color: #d60000;
  font-weight: 800;
  margin: 0;
}

.timeline-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-top: -15px;
  margin-bottom: 15px;
  max-width: 480px;
}

.timeline-text {
  color: #444;
  font-size: 18px;
  line-height: 1.6;
  max-width: 520px;
}

/* BOTÓN CÍRCULO A LA DERECHA */
.timeline-next-button {
  width: 45px;
  height: 45px;
  border: 2px solid #d60000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d60000;
  font-size: 18px;
  cursor: pointer;
  margin-left: 20px;
  transition: .3s;
  flex-shrink: 0;
}

.timeline-next-button:hover {
  background: #d60000;
  color: white;
}

/* LINEA */
.timeline-line {
  width: 100%;
  height: 3px;
  border-bottom: 2px dotted #d60000;
  position: relative;
  margin-top: 50px;
  margin-bottom: 35px;
}

/* MARCADOR */
.timeline-marker {
  width: 40px;
  height: 40px;
  background: #d60000;
  border-radius: 50%;
  position: absolute;
  top: -18px;
  left: 0;
  transform: translateX(-50%);
  transition: left 0.4s ease;
}

/* AÑOS */
.timeline-years {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  color: #333;
  font-size: 14px;
}

.timeline-year {
  cursor: pointer;
  transition: color 0.3s;
}

.timeline-year.active {
  color: #d60000;
  font-weight: bold;
}

/* === MEDIA QUERIES RESPONSIVE === */

/* Tablets grandes y laptops pequeñas (1024px - 1200px) */
@media (max-width: 1200px) {
  .timeline-wrapper {
    max-width: 100%;
    padding: 0 30px;
  }

  .timeline-top-box {
    gap: 30px;
  }

  .timeline-top-box img {
    width: 360px;
  }

  .timeline-year-big {
    font-size: 60px;
  }

  .timeline-title {
    font-size: 26px;
  }

  .timeline-text {
    font-size: 17px;
  }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
  .timeline-top-box {
    gap: 25px;
  }

  .timeline-top-box img {
    width: 320px;
  }

  .timeline-year-big {
    font-size: 55px;
  }

  .timeline-title {
    font-size: 24px;
  }

  .timeline-text {
    font-size: 16px;
  }

  .timeline-next-button {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
}

/* Tablets pequeñas y móviles grandes (600px - 768px) */
@media (max-width: 768px) {
  .timeline-wrapper {
    padding: 0 20px;
  }

  .timeline-top-box {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    margin-bottom: 40px;
  }

  .timeline-top-box img {
    width: 100%;
    max-width: 400px;
  }

  .timeline-info {
    width: 100%;
  }

  .timeline-year-big {
    font-size: 50px;
  }

  .timeline-title {
    font-size: 22px;
    max-width: 100%;
    margin-top: -10px;
  }

  .timeline-text {
    font-size: 16px;
    max-width: 100%;
  }

  .timeline-next-button {
    margin: 20px auto 0;
  }

  .timeline-line {
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .timeline-marker {
    width: 35px;
    height: 35px;
    top: -16px;
  }

  .timeline-years {
    overflow-x: auto;
    gap: 20px;
    white-space: nowrap;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .timeline-years::-webkit-scrollbar {
    height: 6px;
  }

  .timeline-years::-webkit-scrollbar-thumb {
    background: #d60000;
    border-radius: 3px;
  }
}

/* Móviles medianos (480px - 600px) */
@media (max-width: 600px) {
  .timeline-wrapper {
    padding: 0 16px;
  }

  .timeline-top-box {
    margin-bottom: 35px;
    gap: 18px;
  }

  .timeline-year-big {
    font-size: 45px;
  }

  .timeline-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .timeline-text {
    font-size: 15px;
    line-height: 1.5;
  }

  .timeline-next-button {
    width: 40px;
    height: 40px;
    font-size: 15px;
    margin-top: 15px;
  }

  .timeline-line {
    margin-top: 35px;
    margin-bottom: 25px;
  }

  .timeline-marker {
    width: 32px;
    height: 32px;
    top: -15px;
  }

  .timeline-years {
    font-size: 13px;
    gap: 15px;
  }
}

/* Móviles pequeños (320px - 480px) */
@media (max-width: 480px) {
  .timeline-wrapper {
    padding: 0 12px;
  }

  .timeline-top-box {
    margin-bottom: 30px;
    gap: 15px;
  }

  .timeline-top-box img {
    border-radius: 12px;
  }

  .timeline-year-big {
    font-size: 40px;
  }

  .timeline-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .timeline-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .timeline-next-button {
    width: 38px;
    height: 38px;
    font-size: 14px;
    border-width: 2px;
  }

  .timeline-line {
    margin-top: 30px;
    margin-bottom: 20px;
    border-bottom-width: 2px;
  }

  .timeline-marker {
    width: 28px;
    height: 28px;
    top: -13px;
  }

  .timeline-years {
    font-size: 12px;
    gap: 12px;
  }
}

/* Móviles muy pequeños (menos de 375px) */
@media (max-width: 375px) {
  .timeline-year-big {
    font-size: 36px;
  }

  .timeline-title {
    font-size: 17px;
  }

  .timeline-text {
    font-size: 13px;
  }

  .timeline-next-button {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .timeline-marker {
    width: 26px;
    height: 26px;
    top: -12px;
  }

  .timeline-years {
    font-size: 11px;
    gap: 10px;
  }
}



 /* --- ESTILOS PARA ESTATUTOS VIGENTES (Diseño Único) --- */

.acaai-legal-docs {
    background-color: var(--nav-container-bg); 
}

/* Títulos (Se mantienen los del código anterior: .legal-tagline, .legal-main-title, .legal-subtitle) */
/* Asegúrese de que: --primary-red, --primary-red-rgb, --dark-text, --nav-container-bg estén definidos. */


/* Estilo de la Tarjeta Única de Documento */
.document-card-single {
    background-color: rgb(255, 255, 255);
    border: 1px solid #ffffff;
    border-left: 5px solid var(--primary-red); /* Línea de acento ACAAI */
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.document-card-single:hover {
    box-shadow: 0 8px 25px rgba(var(--primary-red-rgb), 0.15);
    border-color: rgba(var(--primary-red-rgb), 0.5);
}

.document-icon-single {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-title-single {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
}

.document-description-single {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.download-button-single {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-button-single:hover {
    background-color: #8d0000;
    border-color: #8d0000;
}




/* --- ESTILOS PARA ESTRUCTURA SIMPLE 2X3 --- */

.acaai-simple-hierarchy {
    background-color: #ffffff; 
}

/* Títulos (Usando prefijo 'h' para Simple Hierarchy) */
.h-tagline {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888; 
    margin-bottom: 5px;
}

.h-main-title {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark-text);
}

.h-subtitle {
    font-size: 18px;
    color: #6c757d;
}

/* --- Estilo de la Tarjeta de Miembro --- */
.simple-member-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f1f1;
    height: 100%;
}

.simple-member-card:hover {
    box-shadow: 0 8px 25px rgba(var(--primary-red-rgb), 0.15);
    transform: translateY(-3px);
}

/* Destacar a los Líderes del Nivel 1 */
.simple-member-card.is-leader {
    border: 1px solid var(--primary-red);
    box-shadow: 0 6px 20px rgba(var(--primary-red-rgb), 0.3);
}

.member-photo-simple {
    width: 100%;
    height: 380px;; /* Altura para el Nivel 1 */
    object-fit: cover;
    display: block;
    filter: grayscale(10%); /* Toque moderno sutil */
    transition: filter 0.3s;
}

.simple-member-card:hover .member-photo-simple {
    filter: grayscale(0%); /* Color al hacer hover */
}

/* Estilo de la información */
.member-info-simple {
    padding: 20px 15px;
}

.member-name-simple {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 3px;
}

.member-position-simple {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.member-role-simple {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 0;
}


/* --- RESPONSIVIDAD (Sencillez) --- */

@media (max-width: 991px) {
    /* Títulos */
    .h-main-title {
        font-size: 40px; 
    }
    .h-subtitle {
        font-size: 16px;
    }
    
    /* Fotos más pequeñas en Nivel 2 (Tablet) */
    .row:last-child .member-photo-simple {
        height: 220px;
    }

    /* Fotos más pequeñas en Nivel 1 (Tablet) */
    .row:first-child .member-photo-simple {
        height: 220px;
    }
}

@media (max-width: 767px) {
    .h-main-title {
        font-size: 32px;
    }
    
    /* Altura consistente para todas las fotos en móvil */
    .member-photo-simple {
        height: 350px !important; 
    }

    /* Reducir tamaños de texto para móvil */
    .member-name-simple {
        font-size: 18px;
    }
    .member-position-simple {
        font-size: 13px;
    }
    .member-info-simple {
        padding: 15px 10px;
    }
}



/*directorio*/

/* --- ESTILOS PARA DIRECTORIO DE ESPECIALISTAS --- */

.acaai-directory-search {
    background-color: var(--light-bg); 
}

/* Títulos de la Sección */
.directory-main-title {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark-text);
}
.directory-tagline { color: #888; }
.directory-subtitle { font-size: 18px; color: #6c757d; }

/* --- ÁREA DE FILTROS --- */
.directory-filter-box {
    background-color: var(--nav-container-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-label-hidden {
    display: none;
}

.form-control, .form-select {
    border-radius: 6px;
    height: 45px;
    border-color: #e9ecef;
}

.input-group-text {
    background-color: white;
    border-color: #e9ecef;
    color: #6c757d;
}

.btn-acaai-search {
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 6px;
    height: 45px;
    font-weight: 600;
    transition: background-color 0.2s;
}
.btn-acaai-search:hover {
    background-color: #8d0000;
}

.btn-acaai-clear {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    height: 45px;
    font-weight: 500;
    transition: background-color 0.2s;
}
.btn-acaai-clear:hover {
    background-color: #5a6268;
}

/* --- TARJETA DEL ESPECIALISTA --- */
.specialist-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.specialist-card:hover {
    box-shadow: 0 8px 25px rgba(var(--primary-red-rgb), 0.2);
    transform: translateY(-3px);
}

.specialist-header {
    position: relative;
    height: 340px;
    overflow: hidden;
    background-color: #f0f0f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.specialist-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    transition: transform 0.3s;
}

.specialist-card:hover .specialist-photo {
    transform: scale(1.05);
}

.specialist-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-red);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.is-active {
    background-color: var(--dark-text) !important;
}

.specialist-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.specialist-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 3px;
    text-transform: capitalize;
}

.specialist-title {
    font-size: 15px;
    color: #495057;
    margin-bottom: 15px;
    font-weight: 500;
}

.specialist-details p {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    text-align: left;
}
.specialist-details a {
    color: #555;
    text-decoration: none;
}
.specialist-details a:hover {
    color: var(--primary-red);
}

.btn-view-profile {
    display: inline-block;
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 3px;
    transition: color 0.2s, border-color 0.2s;
}
.btn-view-profile:hover {
    color: var(--dark-text);
    border-color: var(--dark-text);
}

.specialist-details .detail-label {
    font-weight: 700;
}

/* --- ESTILOS PARA PAGINACIÓN RESPONSIVE --- */

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 0;
    margin: 0;
}

.pagination .page-item {
    margin: 2px;
}

.pagination .page-link {
    color: var(--dark-text);
    border-radius: 6px !important;
    border-color: #dee2e6;
    padding: 8px 12px;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s;
}

.pagination .page-item.active .page-link {
    z-index: 3;
    color: white;
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.pagination .page-link:hover {
    color: var(--primary-red);
    background-color: #f8f9fa;
    border-color: var(--primary-red);
}

.pagination .page-item.active .page-link:hover {
    background-color: #8d0000;
    border-color: #8d0000;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* --- RESPONSIVIDAD DEL DIRECTORIO --- */

@media (max-width: 991px) {
    .directory-main-title {
        font-size: 40px;
    }
    
    .directory-filter-box .row > div {
        margin-bottom: 10px;
    }
    
    .specialist-header {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .directory-main-title {
        font-size: 32px;
    }
    
    .directory-filter-box {
        padding: 15px;
    }
    
    .directory-filter-box form > div {
        width: 100%;
        margin-bottom: 15px;
    }
    .directory-filter-box form > div:last-child {
        margin-bottom: 0;
    }

    .specialist-name {
        font-size: 20px;
    }
    .specialist-title, .specialist-details p {
        font-size: 13px;
    }
    
    /* En móvil col-sm-12 ocupa todo el ancho, misma altura que desktop para consistencia */
    .specialist-header {
        height: 220px;
    }
    
    .pagination .page-link {
        padding: 6px 10px;
        min-width: 35px;
        font-size: 14px;
    }
    
    .pagination .page-item:not(.active):not([data-page-action]) {
        display: none;
    }
    
    .pagination .page-item.active,
    .pagination .page-item[data-page-action] {
        display: block;
    }
}

@media (max-width: 480px) {
    .pagination .page-link {
        padding: 5px 8px;
        min-width: 32px;
        font-size: 13px;
    }
    
    .pagination [data-page-action="prev"] .page-link::before {
        content: "‹";
        font-size: 18px;
    }
    
    .pagination [data-page-action="next"] .page-link::before {
        content: "›";
        font-size: 18px;
    }
    
    .pagination [data-page-action] .page-link {
        font-size: 0;
        padding: 8px 12px;
    }
    
    .pagination [data-page-action] .page-link::before {
        font-size: 18px;
    }
}



/* Autocomplete box */
.autocomplete-box {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    width: 100%;
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: capitalize;
}

.autocomplete-item:hover {
    background: #f4f4f4;
}





.acaai-hero-left {
        background: url('../img/fondodirectorio.webp') no-repeat center center;
        background-size: cover;
        min-height: 550px; /* Ajusta la altura mínima según necesites */
        position: relative;
        display: flex; /* Para centrar verticalmente el contenido */
        align-items: center; /* Centrado vertical */
        overflow: hidden;
    }

    /* Overlay para mejorar la legibilidad del texto */
    .acaai-hero-left::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 50, 80, 0.65); /* Un overlay azul oscuro con transparencia */
        z-index: 0;
    }

    .acaai-hero-left .container {
        position: relative;
        z-index: 1; /* Asegura que el contenido del hero esté por encima del overlay */
    }

    .hero-title {
        font-size: 3.8rem; /* Un poco más grande para destacar */
        line-height: 1.1;
        color: #FFFFFF;
    }

    .hero-subtitle {
        font-size: 1.4rem;
        color: rgba(255, 255, 255, 0.9);
        max-width: 600px; /* Para que no ocupe todo el ancho en pantallas grandes */
    }

    /* Adaptación del color rojo principal de ACAAI */
    .text-primary-red-accent {
        color: #B71C1C !important; 
    }

    /* Media Queries para responsividad */
    @media (max-width: 992px) {
        .hero-title {
            font-size: 3rem;
        }
        .hero-subtitle {
            font-size: 1.2rem;
            max-width: 100%;
        }
        .acaai-hero-left {
            min-height: 450px;
        }
    }

    @media (max-width: 768px) {
        .hero-title {
            font-size: 2.5rem;
        }
        .hero-subtitle {
            font-size: 1rem;
        }
        .acaai-hero-left {
            min-height: 400px;
        }
        /* En móviles, centrar el texto para mejor lectura */
        .acaai-hero-left .col-lg-7 {
            text-align: center !important;
        }
    }


    



    /*blog*/

      /* Asegúrate de que el color rojo principal esté definido */
    .text-primary-red {
        color: #E21B3C !important; 
    }
    .btn-primary-red {
        background-color: #E21B3C;
        border-color: #E21B3C;
        color: white;
    }
    .btn-primary-red:hover {
        background-color: #c01632;
        border-color: #c01632;
    }
    .border-primary-red {
        border-color: #E21B3C !important;
    }

    .article-main-title {
        line-height: 1.2;
    }
    .article-content h3 {
        margin-top: 2rem;
        margin-bottom: 1rem;
        color: #003250;
    }
    .article-content p {
        margin-bottom: 1.5rem;
    }
    .sidebar-widgets img {
        width: 60px;
        height: 60px;
        object-fit: cover;
    }


    /*contacto*/

      /* Asegúrate de que el color rojo principal esté definido */
    .text-primary-red {
        color: #E21B3C !important; 
    }
    .btn-primary-red {
        background-color: #E21B3C;
        border-color: #E21B3C;
        color: white;
    }
    .btn-primary-red:hover {
        background-color: #c01632;
        border-color: #c01632;
    }
    
    .acaai-contact-v3 {
        background-color: #f8f9fa;
    }

    /* Estilo para los ítems de contacto: Alineación y formato */
    .contact-item {
        display: flex; 
        align-items: top; 
        margin-bottom: 1.5rem; 
        padding-bottom: 0.5rem;
    }
    
    .contact-item i {
        padding-top: 0.1rem;
    }
    
    .contact-item div {
        line-height: 1.2;
    }
    
    .contact-form-box {
        border: 1px solid #e9ecef;
    }


    /* CÓDIGO CSS PARA EL BOTÓN DE WHATSAPP FLOTANTE */

/* AÑADE ESTE CÓDIGO DENTRO DE TU ETIQUETA <style> O ARCHIVO CSS */
.whatsapp-float {
    /* POSICIONAMIENTO FIJO */
    position: fixed;
    width: 60px; /* Tamaño del botón */
    height: 60px;
    bottom: 40px; /* Separación del borde inferior */
    right: 40px; /* Separación del borde derecho */
    
    /* ESTILO */
    background-color: #25D366; /* Verde de WhatsApp */
    color: #FFF;
    border-radius: 50px; /* Hace que sea un círculo */
    text-align: center;
    font-size: 30px; 
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    box-shadow: 2px 2px 3px #999;
    
    /* CENTRADO DEL ÍCONO */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Quita el subrayado del enlace */
}

/* EFECTO HOVER (Opcional, pero recomendado) */
.whatsapp-float:hover {
    background-color: #128C7E; /* Un tono de verde más oscuro al pasar el ratón */
    color: #FFF;
    text-decoration: none;
    box-shadow: 2px 2px 5px #777;
}

/* AJUSTE RESPONSIVE (Móviles) */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px; 
        height: 50px;
        bottom: 20px; /* Menos margen en móviles */
        right: 20px; 
        font-size: 25px;
    }
}



    /* Definición del color principal (importante para consistencia) */
    :root {
        --acaai-red: #E21B3C;
    }

    /* Contenedor del Preloader: Ocupa toda la pantalla */
    #preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #f8f9fa; /* Fondo gris claro */
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999; /* Asegura que esté por encima de todo */
        transition: opacity 0.5s ease; /* Transición suave para desaparecer */
    }

    /* Clase para ocultar el preloader */
    .preloader-hidden {
        opacity: 0;
        visibility: hidden;
    }

    /* Estilo del spinner de Bootstrap (círculo giratorio) */
    .spinner-border {
        width: 4rem; /* Tamaño más grande */
        height: 4rem;
        border-width: 0.5rem;
    }
    
    /* Reemplazar con el color de tu asociación */
    .text-primary-red {
        color: var(--acaai-red) !important;
    }
    
    .spinner-border.text-primary-red {
        border-color: currentColor;
        border-right-color: transparent; /* Hace que gire */
    }

    /* Si decides usar el logo en lugar del spinner: */
    /*
    .acaai-logo-loader {
        width: 150px; 
        animation: pulse 1s infinite alternate; 
    }
    
    @keyframes pulse {
        0% { transform: scale(0.95); opacity: 0.7; }
        100% { transform: scale(1.05); opacity: 1; }
    }
    */

/* =========================================== */
/* ESTILOS DE LA SECCIÓN DE ENCABEZADO         */
/* =========================================== */

/* Fondo destacado para el título de la página */
.page-header-title {
    /* Usamos un fondo sutil */
    background-color: #f7f7f7; 
    padding: 80px 0 40px;
    
    /* Ajuste para subir un poco (margin-top: 1px ya está aquí) */
    margin-top: 1px; 
    
    border-bottom: 4px solid var(--primary-red); 
}

/* Estilo del título principal (H1) */
.page-header-title h1 {
    color: var(--dark-text);
    font-weight: 800; 
    font-size: 2.6rem; 
    letter-spacing: -0.5px;
}

/* Estilo de las Migas de Pan (Breadcrumbs) */
.breadcrumb-custom {
    font-size: 0.95rem;
    padding-top: 10px;
}
.breadcrumb-custom .breadcrumb-item a {
    color: #6c757d; 
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumb-custom .breadcrumb-item a:hover {
    color: var(--primary-red);
}
.breadcrumb-custom .breadcrumb-item.active {
    color: var(--primary-red);
    font-weight: 600;
}

/* =========================================== */
/* ESTILOS DE LA SECCIÓN DE CONTENIDO LEGAL    */
/* =========================================== */

.content-section {
    padding: 60px 0;
    line-height: 1.7; 
    color: #333333; 
    font-size: 1.05rem; 
}
.content-section p {
    margin-bottom: 25px;
    text-align: justify; /* YA ESTABA JUSTIFICADO */
}

/* Estilo para títulos dentro del documento legal (Ej: 1. Aceptación de los Términos) */
.content-section h2 {
    color: var(--primary-red); /* Títulos de sección en rojo */
    font-size: 1.8rem;
    /* Ajuste de color de la línea a la variable principal */
    border-bottom: 2px solid var(--primary-red); 
    padding-bottom: 8px;
    /* AJUSTE: Más espacio arriba para mejor lectura */
    margin-top: 30px; 
}

/* Estilo para los elementos en negrita (fw-bold) */
.content-section .fw-bold {
    color: var(--dark-text) !important; /* Asegura que las negritas sean el color oscuro */
}

/* Listas de puntos */
.content-section ul {
    padding-left: 25px;
    list-style: none; 
    margin: 40px 0;
    border-left: 3px solid #eeeeee; /* Línea vertical sutil */
}
.content-section ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 18px;
    text-align: justify; /* APLICANDO JUSTIFICACIÓN A LOS ITEMS DE LA LISTA */
}
/* Bullet personalizado */
.content-section ul li::before {
    content: "\f207"; 
    font-family: 'bootstrap-icons'; 
    color: var(--primary-red);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
    font-size: 1.1rem;
}

/* Caja de Nota (Advertencia Legal/Boxout) */
.note-box {
    margin-top: 50px;
    padding: 30px;
    border-radius: 8px;
    background-color: var(--active-bg); 
    border: 1px solid #f0d0d0; 
    border-left: 6px solid var(--primary-red); 
    font-size: 0.95rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); 
    text-align: justify; /* APLICANDO JUSTIFICACIÓN A LA CAJA DE NOTA */
}

/* Mensaje final de Importante (Llamativo) */
.content-section .lead {
    color: var(--dark-text);
    font-weight: 600;
    margin-top: 40px !important;
    padding: 20px;
    border-radius: 5px;
    border: 1px dashed var(--primary-red); 
    background-color: #fffafa; 
    text-align: center; /* ESTO PERMANECE CENTRADO POR DISEÑO */
}

.required-label::after {
    content: " *";
    color: red;
    font-weight: bold;
}




/* =========================================
   SECCIÓN DE EVENTOS ACAAI
   Imagen original: 1080 x 1350 px (ratio 4:5)
   ========================================= */

.acaai-events-section {
    background-color: var(--light-bg, #f4f4f4);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.acaai-events-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(244,244,244,0.25) 100%);
    z-index: 0;
    pointer-events: none;
}

/* ── Encabezado ── */
.events-header-acaai {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.events-tagline-acaai {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-red, #B71C1C);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.events-main-title-acaai {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark-text, #1a1a2e);
    margin-bottom: 18px;
    line-height: 1.1;
}

.events-main-title-acaai .text-primary-red {
    color: var(--primary-red, #B71C1C);
}

.events-subtitle-acaai {
    font-size: 17px;
    color: #525252;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.65;
}



/* ── Tarjeta ── */
.event-card-acaai {
    background-color: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
   
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    
}





/* ── Imagen: ratio 4:5 (1080×1350) adaptado a tarjeta ──
   En escritorio mostramos un recorte cuadrado/apaisado más compacto.
   En móvil mantenemos el ratio real para que la imagen luzca completa. */
.event-image-acaai {
    position: relative;
    width: 100%;
    /* ratio 4:5 exacto (1080/1350 × 100) — igual en todos los breakpoints */
    padding-top: 125%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-red, #B71C1C) 0%, #6D0909 100%);
    flex-shrink: 0;
}

.event-image-acaai img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Centra el sujeto importante: parte superior del cartel */
    object-position: center top;
    display: block;
    
}





/* ── Badge de fecha ── */
.event-date-badge-acaai {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    text-align: center;
    z-index: 3;
    min-width: 64px;
}

.event-date-day-acaai {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-red, #B71C1C);
    display: block;
    line-height: 1;
}

.event-date-month-acaai {
    font-size: 0.78rem;
    color: #333333;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: block;
    margin-top: 3px;
}

/* ── Pill de categoría (sobre la imagen) ── */
.event-category-overlay {
    position: absolute;
    bottom: 16px;
    left: 18px;
    z-index: 3;
}

.event-category-acaai {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: var(--primary-red, #B71C1C);
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* ── Contenido ── */
.event-content-acaai {
    padding: 28px 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Badge exclusivo */
.event-exclusive-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFF8E1;
    color: #7B5800;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    margin-bottom: 14px;
    width: fit-content;
    border: 1px solid #FFE082;
}

.event-title-acaai {
    font-size: 1.3rem;
    color: var(--dark-text, #1a1a2e);
    margin-bottom: 18px;
    font-weight: 800;
    line-height: 1.3;
}

/* ── Detalles ── */
.event-details-acaai {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.event-detail-item-acaai {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.4;
}

.event-detail-icon-acaai {
    color: var(--primary-red, #B71C1C);
    font-size: 17px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Descripción ── */
.event-description-acaai {
    color: #4a5568;
    line-height: 1.65;
    margin-bottom: 24px;
    font-size: 0.92rem;
    flex-grow: 1;
}

/* ── Botones ── */
.event-btns-acaai {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.event-btn-primary-acaai {
    flex: 1;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background-color: var(--primary-red, #B71C1C);
    color: #ffffff;
    border: 2px solid var(--primary-red, #B71C1C);
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    text-decoration: none;
    transition: background-color 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.28);
    cursor: pointer;
    line-height: 1;
}

.event-btn-primary-acaai:hover,
.event-btn-primary-acaai:focus {
    background-color: #8D0E0E;
    border-color: #8D0E0E;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(183, 28, 28, 0.40);
    text-decoration: none;
}

.event-btn-outline-acaai {
    flex: 1;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background-color: transparent;
    color: var(--primary-red, #B71C1C);
    border: 2px solid var(--primary-red, #B71C1C);
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    text-decoration: none;
    transition: background-color 0.25s, color 0.25s, transform 0.2s;
    cursor: pointer;
    line-height: 1;
    background: none;
}

.event-btn-outline-acaai:hover,
.event-btn-outline-acaai:focus {
    background-color: var(--primary-red, #B71C1C);
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* =========================================
   MODAL DE INFORMACIÓN DEL EVENTO
   ========================================= */

.event-modal-acaai .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
}

.event-modal-acaai .modal-header {
    background: #fafafa;
    border-bottom: 1px solid #efefef;
    padding: 22px 28px 18px;
    align-items: flex-start;
}

.event-modal-acaai .modal-tagline {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-red, #B71C1C);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 5px;
}

.event-modal-acaai .modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.35;
}

.event-modal-acaai .modal-body {
    background: #fafafa;
    padding: 22px 28px;
}

.event-modal-acaai .modal-footer {
    background: #fafafa;
    border-top: 1px solid #efefef;
    padding: 16px 28px 24px;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-bottom: 20px;
}

.modal-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.modal-info-item .bi {
    color: var(--primary-red, #B71C1C);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.modal-info-item small {
    display: block;
    color: #888;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.modal-info-item strong {
    font-size: 0.9rem;
    color: #1a1a2e;
    line-height: 1.3;
}

.modal-alert-acaai {
    background: #fff5f5;
    border-left: 4px solid var(--primary-red, #B71C1C);
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-size: 0.88rem;
    color: #333;
    margin-top: 16px;
}

.modal-desc-acaai {
    color: #4a5568;
    line-height: 1.65;
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Tablet */
@media (max-width: 991px) {
    .acaai-events-section {
        padding: 60px 0;
    }
    .events-main-title-acaai {
        font-size: 38px;
    }
    .events-subtitle-acaai {
        font-size: 15px;
    }
    .event-content-acaai {
        padding: 22px 24px 24px;
    }
    .modal-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Móvil */
@media (max-width: 767px) {
    .events-main-title-acaai {
        font-size: 30px;
    }
    .events-header-acaai {
        margin-bottom: 40px;
    }
    /* En móvil respetamos el ratio 4:5 completo de la imagen 1080×1350
       para que no se recorte el contenido visual del cartel */
    .event-image-acaai {
        padding-top: 125%; /* ratio exacto 1080/1350 × 100 */
        max-height: none;
    }
    .event-title-acaai {
        font-size: 1.18rem;
    }
    .event-content-acaai {
        padding: 20px 20px 22px;
    }
    .event-btns-acaai {
        flex-direction: column;
    }
    .event-btn-primary-acaai,
    .event-btn-outline-acaai {
        flex: none;
        width: 100%;
    }
    .event-card-acaai {
        margin-bottom: 24px;
    }
    .event-modal-acaai .modal-header,
    .event-modal-acaai .modal-body,
    .event-modal-acaai .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .event-date-day-acaai {
        font-size: 1.7rem;
    }
    .event-date-badge-acaai {
        padding: 8px 12px;
        min-width: 54px;
    }
}