/* --- Reset y Variables --- */
:root {
    --color-primary-dark: #1a0b5c;
    --color-accent-cyan: #00d4ff;
    --content-width-desktop: 65%; 
    --content-width-mobile: 90%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Barlow', sans-serif;
    overflow-x: hidden;
    background-color: var(--color-primary-dark);
    font-size: 15px; 
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   --- ANIMACIÓN DE FONDO FUTURISTA ---
========================================= */
@keyframes scannerLight {
    0% { background-position: 0% -100%, 0 0; }     /* Empieza arriba fuera de pantalla */
    100% { background-position: 0% 200%, 0 0; }    /* Termina abajo */
}
/* =========================================
   --- WRAPPER DE FONDO CONTINUO ---
========================================= */
.main-gradient-wrapper {
    width: 100%;
    position: relative;
    background-color: var(--color-primary-dark);
    background-image:
        radial-gradient(circle at 25% 40%, rgba(124, 58, 237, 0.35) 0%, rgba(26, 11, 92, 0) 60%),
        linear-gradient(135deg, #2e1065 0%, var(--color-primary-dark) 50%, #0090b0 100%);
    background-blend-mode: screen, normal;
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
}

/* =========================================
   --- WRAPPER CON ESCÁNER FUTURISTA (SELECCIONADO) ---
========================================= */
.main-gradient-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    /* SOLO UNA CAPA: El Haz de Luz (Escáner) */
    background-image:
        linear-gradient(to bottom,
            rgba(0, 212, 255, 0) 0%,
            rgba(0, 212, 255, 0) 30%,  /* Espacio vacío arriba */
            rgba(0, 212, 255, 0.6) 50%, /* Centro MUCHO más brillante (60% opacidad) */
            rgba(0, 212, 255, 0) 70%,  /* Espacio vacío abajo */
            rgba(0, 212, 255, 0) 100%
        );

    /* Tamaño para permitir el movimiento vertical fluido */
    background-size: 100% 200%;

    z-index: 1;
    pointer-events: none;

    /* Animación más rápida (7s) para que se note más el movimiento */
    animation: scannerLight 7s linear infinite;

    /* 'screen' hace que la luz brille más intensamente sobre el fondo oscuro */
    mix-blend-mode: screen;
}

/* =========================================
   --- HERO SECTION ---
========================================= */
.hero-section {
    min-height: 95vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding-bottom: 4rem;
    position: relative;
    z-index: 2; /* Sobre la animación */
}

.hero-content {
    width: var(--content-width-desktop);
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
}

.left-column {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.doctors-img {
    width: 100%;
    max-width: 420px; 
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

.right-column {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.animate-title-1, 
.animate-title-2, 
.animate-info-cards {
    width: 100%;
    max-width: 380px; 
}

/* =========================================
   --- INFO SECTION ---
========================================= */
.info-section {
    width: 100%;
    background: transparent;
    padding: 8vh 0 15vh 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2; /* Sobre la animación */
}

.info-container {
    width: var(--content-width-desktop);
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem); 
    font-weight: 700; /* Bold */
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.info-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-weight: 300;
}

.info-text strong {
    color: #ffffff;
    font-weight: 600;
}


/* =========================================
   --- BOTTOM & FOOTER ---
========================================= */
.event-details-section {
    width: 100%;
    background-color: var(--color-primary-dark); 
    padding: 0 0 8vh 0;
    display: flex;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.details-content {
    width: var(--content-width-desktop);
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 4rem;
}

.details-logo {
    width: 100px;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.details-title {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

.details-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.date {
    font-size: 1.2rem;
    color: var(--color-accent-cyan);
    font-weight: 600;
}

.location {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-weight: 300;
    max-width: 500px;
}

.maps-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    border: 1px solid var(--color-accent-cyan);
    color: var(--color-accent-cyan);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.maps-btn:hover {
    background-color: var(--color-accent-cyan);
    color: var(--color-primary-dark);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.main-footer {
    width: 100%;
    background-color: #12042b;
    padding: 1.5rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.main-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* =========================================
   --- ANIMACIONES DE ENTRADA ---
========================================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeLeft { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.animate-doctors { animation: fadeUp 1.2s cubic-bezier(0.2, 0.6, 0.3, 1) both; }
.animate-title-1 { animation: fadeLeft 1s cubic-bezier(0.2, 0.6, 0.3, 1) 0.2s both; }
.animate-title-2 { animation: fadeLeft 1s cubic-bezier(0.2, 0.6, 0.3, 1) 0.4s both; }
.animate-info-cards { animation: fadeUp 1s cubic-bezier(0.2, 0.6, 0.3, 1) 0.6s both; }

/* =========================================
   --- RESPONSIVE ---
========================================= */
@media (max-width: 1024px) {
    .hero-section { min-height: auto; padding: 5rem 0; }
    .hero-content { width: 85%; flex-direction: column; gap: 3rem; }
    .left-column { justify-content: center; order: 1; }
    .right-column { order: 2; }
    .doctors-img { max-width: 350px; }
}

@media (max-width: 600px) {
    body { font-size: 14px; }
    .hero-content, .info-container, .details-content { width: 90%; }
    .info-section { padding: 5vh 0 10vh 0; }
    .doctors-img { max-width: 80%; }
    .animate-title-1, .animate-title-2, .animate-info-cards { max-width: 320px; }
}


/* =========================================
   --- SECCIÓN: ¿POR QUÉ ASISTIR? (REDDISEÑADA) ---
========================================= */
.why-attend-section {
    width: 100%;
    padding: 5vh 0 15vh 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.why-container {
    width: var(--content-width-desktop);
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    gap: 4rem; /* Espacio vertical entre secciones */
}

/* --- 1. PARTE SUPERIOR (Intro + Imagen) --- */
.why-top-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.why-intro-text {
    flex: 1;
}

.why-title {
    /* Mantenemos consistencia de tamaño */
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.why-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    text-align: justify;
}

.why-image-wrapper {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

.dr-img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6); /* Sombra elegante */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- 2. SEPARADOR FUTURISTA --- */
.section-separator {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    opacity: 0.8;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-cyan), transparent);
}

.separator-text {
    color: var(--color-accent-cyan);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- 3. PARTE INFERIOR (Grilla de Temas) --- */
.why-topics-grid {
    display: grid;
    /* Grid automático: se adapta al ancho disponible. Minimo 280px por tarjeta */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
}

/* Tarjeta individual */
.topic-card {
    background: rgba(255, 255, 255, 0.03); /* Fondo muy sutil */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.topic-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-5px); /* Efecto flotante */
    border-color: rgba(0, 212, 255, 0.3); /* Borde cian al pasar mouse */
}

/* Estilo de los Iconos SVG */
.topic-icon {
    width: 40px;
    height: 40px;
    color: var(--color-accent-cyan);
    margin-bottom: 0.5rem;
}

.topic-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.topic-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-weight: 300;
}

/* Texto de Cierre */
.why-footer-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto; /* Centrado horizontal */
}

.why-footer-text {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}


/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .why-top-split {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .why-desc {
        text-align: center; /* En móvil centramos el texto intro */
    }
    
    .why-image-wrapper {
        width: 100%;
    }
    
    .dr-img {
        max-width: 100%;
    }
}

/* =========================================
   --- SECCIÓN: TIMELINE (Eventos Pasados) ---
========================================= */
.timeline-section {
    width: 100%;
    padding: 5vh 0 15vh 0;
    display: flex;
    justify-content: center;
    position: relative;
    /* CAMBIO: Subimos el Z-index a 10 para asegurar que flote sobre todo */
    z-index: 10; 
}

.timeline-container {
    width: var(--content-width-desktop);
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* CAMBIO CLAVE: Quitamos el gap: 3rem para control manual */
    gap: 0; 
}

.timeline-title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    /* Espacio pequeño hacia el subtítulo */
    margin-bottom: 0.5rem; 
}

.timeline-subtitle {
    color: var(--color-accent-cyan);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    /* Espacio GRANDE hacia las tarjetas de años */
    margin-bottom: 4rem; 
}

/* --- SELECTOR DE AÑOS (Cards Principales) --- */
.years-selector {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    position: relative;
    /* Agregamos margen abajo para separar de los días desplegables */
    margin-bottom: 3rem; 
}


/* Línea conectora horizontal detrás de los años */
.years-selector::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    z-index: 0;
}

.year-card {
    position: relative;
    width: 200px;
    height: 120px;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
    
    /* --- NUEVO: Estabilización de la animación --- */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Esto evita que "tiemble" o se pixelee al crecer */
    backface-visibility: hidden; 
    transform: translateZ(0); 
    will-change: transform;
}

/* Fondo con Imagen Oscurecida */
.year-bg {
    width: 100%;
    height: 100%;
    position: absolute;
}

.year-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.year-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 5, 30, 0.7); /* Oscuro por defecto */
    transition: background 0.3s ease;
}

/* Texto del Año */
.year-number {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    transition: all 0.3s ease;
}

/* ESTADO ACTIVO / HOVER */
.year-card:hover, .year-card.active {
    transform: scale(1.1); /* Crece un poco */
    border-color: var(--color-accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.year-card.active .year-overlay {
    background: rgba(0, 212, 255, 0.2); /* Tinte cian al activarse */
}

.year-card.active .year-number {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

/* Indicador (Puntito abajo) */
.indicator-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--color-accent-cyan);
    transition: width 0.3s ease;
}

.year-card.active .indicator-line {
    width: 100%;
}


/* --- CONTENIDO DESPLEGABLE (Días) --- */
.timeline-content-wrapper {
    width: 100%;
    /* 1. Altura mínima fija: Evita que el footer suba y baje al cambiar de año */
    min-height: 450px; 
    position: relative;
    /* 2. Evita que el contenido se desborde durante la transición */
    overflow: hidden; 
}

.days-container {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
    /* Animación suave */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Clase para mostrar el contenido */
.days-container.active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInDays 0.6s ease forwards;
}

@keyframes fadeInDays {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tarjeta de Día */
.day-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    
    /* --- NUEVO: Estabilización de la animación --- */
    transition: transform 0.3s ease, background 0.3s ease;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* El hover se mantiene igual, pero ahora será suave gracias al código de arriba */
.day-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.day-img-box {
    width: 100%;
    /* 3. ASPECT RATIO: Reserva el espacio de la imagen ANTES de que cargue */
    /* Esto es lo que elimina el salto de carga */
    aspect-ratio: 16 / 9; 
    height: auto; /* Quitamos la altura fija en px */
    overflow: hidden;
    background-color: rgba(0,0,0,0.2); /* Color de fondo mientras carga la imagen */
    position: relative;
}

.day-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.day-card:hover .day-img-box img {
    transform: scale(1.1);
}

.day-info {
    padding: 1rem;
    text-align: center;
}

.day-date {
    display: block;
    color: var(--color-accent-cyan);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.day-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 300;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .years-selector {
        gap: 1rem;
    }
    .year-card {
        width: 140px;
        height: 90px;
    }
    .year-number {
        font-size: 1.5rem;
    }
    
    /* Scroll horizontal para los días en móvil */
    .days-container.active {
        display: flex; /* Cambiamos grid a flex */
        overflow-x: auto;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
    }
    
    .day-card {
        min-width: 200px; /* Tamaño fijo para scroll */
        scroll-snap-align: center;
    }
}



/* --- Estilos para Botón de Memorias y Overlay --- */

/* 1. Botón de enlace */
.memory-btn {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--color-accent-cyan);
    text-decoration: none;
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.memory-btn:hover {
    background-color: var(--color-accent-cyan);
    color: var(--color-primary-dark);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* 2. Overlay de Play en la imagen (Efecto visual) */
.day-img-box {
    position: relative; /* Necesario para posicionar el play */
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 2rem;
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.3s ease;
}

.day-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
    /* Aceleración de hardware limpia */
    transform: translateZ(0); 
}

/* Mostrar overlay al pasar el mouse sobre la tarjeta */
.day-card:hover .play-overlay {
    opacity: 1;
}

/* =========================================
   --- UTILIDAD: PAUSAR ANIMACIÓN ---
========================================= */

/* Primero, aseguramos que el pseudo-elemento tenga transición */
.main-gradient-wrapper::after {
    transition: opacity 0.8s ease; /* Desvanecimiento suave */
}

/* Cuando Javascript agregue esta clase al contenedor principal... */
.main-gradient-wrapper.stop-animation::after {
    opacity: 0; /* ...el rayo de luz se vuelve invisible */
    animation-play-state: paused; /* ...y el cálculo se detiene para ahorrar recursos */
}

/* =========================================
   --- SECCIÓN: CONTACTO ---
========================================= */
.contact-section {
    width: 100%;
    /* Padding reducido para que sea una sección pequeña */
    padding: 5vh 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10; /* Aseguramos que esté por encima del fondo */
    background-color: var(--color-primary-dark); /* Fondo sólido para legibilidad */
}

.contact-container {
    width: var(--content-width-desktop);
    /* Ancho máximo muy reducido para que se vea compacto y elegante */
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

/* --- ESTILOS DEL FORMULARIO --- */
.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    width: 100%;
}

/* Fila para poner email y celular juntos */
.form-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

/* Inputs y Textarea */
.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03); /* Casi transparente */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borde sutil */
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Efecto al hacer clic en el campo (Focus) */
.form-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent-cyan); /* Borde cian */
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

/* Textarea redimensionable solo verticalmente */
textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* Botón de Enviar */
.submit-btn {
    margin-top: 0.5rem;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--color-accent-cyan);
    color: var(--color-accent-cyan);
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%; /* Botón ancho completo */
}

.submit-btn:hover {
    background: var(--color-accent-cyan);
    color: var(--color-primary-dark);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column; /* En móvil, email y cel uno debajo del otro */
    }
}

/* =========================================
   --- SECCIÓN: PATROCINADORES (Eventtia) ---
========================================= */
.sponsors-section {
    width: 100%;
    padding: 5vh 0 10vh 0;
    display: flex;
    justify-content: center;
    position: relative;
    /* Fondo sólido oscuro para asegurar que resalte el módulo */
    background-color: var(--color-primary-dark);
    z-index: 10; 
}

.sponsors-container {
    width: var(--content-width-desktop); /* 65% ancho */
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.sponsors-title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.5rem;
}

.sponsors-subtitle {
    color: var(--color-accent-cyan);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

/* --- Contenedor del Iframe (Estilo Pantalla) --- */

.eventtia-module-wrapper {
    width: 100%;
    
    /* CAMBIO AQUÍ: Reducimos la altura para quitar el espacio blanco */
    height: 350px;       /* Antes era 80vh (demasiado alto) */
    min-height: 300px;   /* Antes era 600px */
    
    background: #ffffff; 
    border-radius: 12px;
    overflow: hidden; 
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5); 
    position: relative;
}

/* El iframe en sí */
.eventtia-module-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .sponsors-container {
        width: 90%; /* Más ancho en tablet/móvil */
    }
    
    .eventtia-module-wrapper {
        height: 60vh; /* Un poco más bajo en móviles */
        min-height: 500px;
    }
}

/* Forzar que el widget de Chatwoot esté siempre encima */
.woot-widget-holder {
    z-index: 2147483647 !important; /* El valor máximo posible en CSS */
    position: fixed !important;
}

/* =========================================
   --- AJUSTES PARA PANTALLAS GRANDES (1920px+) ---
========================================= */
@media (min-width: 1920px) {

    /* 1. Ajuste del Contenedor Principal */
    .hero-content {
        max-width: 1800px; 
        width: 90%;
        /* CLAVE: Esto asegura que la imagen y el texto estén alineados al centro verticalmente */
        align-items: center; 
        justify-content: center; /* Centra el bloque en la pantalla */
        gap: 6rem; /* Espacio equilibrado entre columnas */
    }

    .doctors-img {
        
        max-width: 650px; 
    }

    /* 3. Columna Derecha (Textos) */
    .right-column {
        flex: 1; /* Quitamos el 1.3 para que no empuje demasiado */
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centra el contenido internamente */
        align-items: flex-start; /* Alinea textos a la izquierda */
    }

    /* 4. Escalado de Textos (Mantenemos tamaño grande) */
    .animate-title-1, 
    .animate-title-2 {
        max-width: 750px;
        width: 100%;
    }

    .animate-info-cards {
        max-width: 750px; 
        width: 100%;
        margin-top: 3rem; 
    }
}