/* ===== VARIABLES DE TEMA Y ESTILOS BASE ===== */
:root {
    --primary-color: #00bcd4;
    --primary-dark-color: #0097a7;
    --accent-color: #00e676;
    --warning-color: #ffc107;

    /* Tema Claro (Default) */
    --bg-color: #ffffff;
    --text-color: #333;
    --text-color-light: #555;
    --title-color: #2c3e50;
    --card-bg-color: #ffffff;
    --section-bg-light: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
    --section-bg-medium: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --sponsors-bg: #f1f3f4;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(44, 62, 80, 0.5);
    --header-border: rgba(255, 255, 255, 0.1);
    --nav-link-color: #ffffff;
    --hamburger-color: #ffffff;
    --sponsor-logo-filter: none;
}

body.dark-theme {
    /* Tema Oscuro */
    --bg-color: #1a252f;
    --text-color: #e0e0e0;
    --text-color-light: #b0b0b0;
    --title-color: #ffffff;
    --card-bg-color: #2c3e50;
    --section-bg-light: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    --section-bg-medium: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    --sponsors-bg: #1a252f;
    --shadow-color: rgba(0, 0, 0, 0.25);
    --header-bg: rgba(26, 37, 47, 0.7);
    --header-border: rgba(255, 255, 255, 0.1);
    --nav-link-color: #ffffff;
    --hamburger-color: #ffffff;
    --sponsor-logo-filter: none;
}

body.dark-theme .interactive-link {
    color: #82eefd; /* Light blue for dark mode */
}

body.dark-theme .logo-slide img {
    filter: drop-shadow(0px 0px 2px rgba(255, 255, 255, 0.8));
}


/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark-color), var(--accent-color));
    z-index: 9999;
    transition: width 0.25s ease;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

/* Loading Screen Enhanced */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50, #34495e, #1a252f);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease, visibility 1s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.loading-logo {
    width: 200px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: logoFloat 3s ease-in-out infinite;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border: 3px solid rgba(0, 188, 212, 0.6);
    border-radius: 50%;
    animation: pulseRing 2s linear infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 0.5s;
    border-color: rgba(0, 230, 118, 0.4);
}

.pulse-ring.delay-2 {
    animation-delay: 1s;
    border-color: rgba(255, 193, 7, 0.3);
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
    position: relative;
}

.spinner-inner {
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--primary-dark-color);
    border-bottom: 4px solid var(--accent-color);
    animation: spinEnhanced 1s linear infinite;
}

@keyframes spinEnhanced {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.letter {
    display: inline-block;
    animation: letterBounce 1.5s ease-in-out infinite;
}

.letter:nth-child(1) { animation-delay: 0.1s; }
.letter:nth-child(2) { animation-delay: 0.2s; }
.letter:nth-child(3) { animation-delay: 0.3s; }
.letter:nth-child(4) { animation-delay: 0.4s; }
.letter:nth-child(5) { animation-delay: 0.5s; }
.letter:nth-child(6) { animation-delay: 0.6s; }
.letter:nth-child(7) { animation-delay: 0.7s; }
.letter:nth-child(8) { animation-delay: 0.8s; }
.letter:nth-child(9) { animation-delay: 0.9s; }
.letter:nth-child(10) { animation-delay: 1s; }
.letter:nth-child(11) { animation-delay: 1.1s; }

@keyframes letterBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
}

/* Header Enhanced */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(0px);
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.0);
    transition: top 0.4s ease, background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}

.header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px var(--shadow-color);
    border-bottom: 1px solid var(--header-border);
}

.header.header-hidden {
    top: -100px;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    position: relative;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover .logo {
    transform: scale(1.1);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.3), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-logo:hover .logo-glow {
    opacity: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--nav-link-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 188, 212, 0.1);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.2);
}

.btn-registro {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark-color));
    color: white !important;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-registro:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.4);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-registro:hover .btn-shine {
    left: 100%;
}

/* ===== ESTILOS PARA EL BOTÓN DE TEMA ===== */
.theme-switcher {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--hamburger-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-switcher:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(15deg) scale(1.1);
    color: var(--primary-color);
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
    opacity: 0;
    transform: translateY(100px);
}

.floating-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 188, 212, 0.5);
}

/* Hero Section Enhanced */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.4), rgba(0, 188, 212, 0.2));
    z-index: 2;
}

/* Geometric Shapes Animation */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    top: 20%; left: 10%; width: 100px; height: 100px;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    border-radius: 50%; animation-delay: 0s;
}

.shape-2 {
    top: 60%; right: 15%; width: 80px; height: 80px;
    background: linear-gradient(45deg, var(--accent-color), transparent);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%); animation-delay: 1s;
}

.shape-3 {
    bottom: 30%; left: 20%; width: 120px; height: 120px;
    background: linear-gradient(45deg, var(--warning-color), transparent);
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%); animation-delay: 2s;
}

.shape-4 {
    top: 40%; right: 30%; width: 60px; height: 60px;
    background: linear-gradient(45deg, #e91e63, transparent);
    transform: rotate(45deg); animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%;
    transform: translateX(-50%); z-index: 3; text-align: center;
    color: white; animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 40px; height: 40px; border: 2px solid white;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; margin: 0 auto 10px;
    background: rgba(0, 188, 212, 0.2); backdrop-filter: blur(10px);
}

.scroll-indicator span {
    font-size: 0.9rem; font-weight: 500; letter-spacing: 1px;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Event Info Enhanced */
.event-info {
    padding: 100px 0;
    background: var(--section-bg-light);
    position: relative;
    overflow: hidden;
}

/* ===== INICIO DE LA MODIFICACIÓN: Se restaura el diseño de 2 columnas ===== */
.event-info-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Imagen a la izquierda, texto a la derecha */
    gap: 4rem;
    align-items: center;
}
/* ===== FIN DE LA MODIFICACIÓN ===== */

/* ===== ESTILOS PARA EL NUEVO CARRUSEL DE IMAGEN DEL EVENTO ===== */
.event-image-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0 20px 20px 0; /* Se mantiene el radio original para el diseño de 2 columnas */
    box-shadow: 0 20px 50px var(--shadow-color);
}

.event-image-carousel .carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.event-image-carousel .carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.event-image-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-image-carousel .carousel-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
}

.event-image-carousel .carousel-nav.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.event-image-carousel .carousel-nav.prev {
    left: 0;
}

.event-image-carousel .carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* ===== INICIO DE LA MODIFICACIÓN: Se centra el contenido de la columna derecha ===== */
.event-info-content {
    text-align: center; /* Centrado para el contenido de la columna derecha */
    max-width: none;
    padding-right: 20px;
}

.event-info-content .event-main-title,
.event-info-content .event-slogan {
    text-align: center; /* Centrar títulos */
}

.event-info-content .event-details {
    justify-content: center; /* Centrar items de fecha y lugar */
}

.event-info-content .event-description {
    margin-left: auto; /* Centrar bloque de párrafo */
    margin-right: auto;
    max-width: 700px;
}

.event-info-content .cta-container {
    text-align: center; /* Centrar el botón */
}
/* ===== FIN DE LA MODIFICACIÓN ===== */

@media (min-width: 1401px) {
    .event-info-content {
        padding-right: calc((100vw - 1400px) / 2 + 20px);
    }
}

/* Esta media query se encarga de cambiar a 1 columna en pantallas más pequeñas */
@media (max-width: 992px) {
    .event-info-grid {
        grid-template-columns: 1fr; /* Vuelve a una columna en pantallas pequeñas */
        gap: 2rem;
    }
    .event-image-carousel {
        border-radius: 20px;
        margin: 0 20px 3rem;
    }
    .event-info-content {
        text-align: center; /* Centrado en móvil */
        padding-left: 20px;
        padding-right: 20px;
    }
    .event-info-content .event-main-title,
    .event-info-content .event-slogan {
        text-align: center; /* Centrado en móvil */
    }
    .event-info-content .event-details {
        justify-content: center; /* Centrado en móvil */
    }
    .event-info-content .event-description {
        margin-left: auto;
        margin-right: auto;
        max-width: 700px;
    }
    .event-info-content .cta-container {
        text-align: center; /* Centrado en móvil */
    }
}

.event-slogan {
    font-size: 2.5rem; font-weight: 700; color: var(--title-color);
    margin-bottom: 3rem; line-height: 1.3;
}

.highlight {
    color: var(--primary-color); position: relative;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark-color), var(--accent-color));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.event-details {
    display: flex; gap: 2rem;
    margin-bottom: 3rem; flex-wrap: wrap;
}

.event-item {
    display: flex; align-items: center; gap: 15px;
    font-size: 1.1rem; color: var(--title-color); font-weight: 600;
    background: var(--card-bg-color); padding: 15px 25px;
    border-radius: 60px; box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.4s ease; position: relative; overflow: hidden;
}

.event-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.event-item::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.1), transparent);
    transition: left 0.6s ease;
}

.event-item:hover::before { left: 100%; }

.icon-container {
    position: relative; width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
}

.icon-container i {
    font-size: 1.5rem; color: var(--primary-color);
    z-index: 2; position: relative;
}

.icon-bg {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark-color));
    border-radius: 50%; opacity: 0.1; transition: all 0.3s ease;
}

.event-item:hover .icon-bg {
    opacity: 0.2; transform: translate(-50%, -50%) scale(1.2);
}

.event-description {
    font-size: 1.2rem; margin-bottom: 3rem; color: var(--text-color-light);
    line-height: 1.8; max-width: 700px;
}

.cta-button {
    display: inline-flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark-color));
    color: white; padding: 20px 40px; border-radius: 50px;
    text-decoration: none; font-weight: 600; font-size: 1.2rem;
    transition: all 0.4s ease; box-shadow: 0 10px 30px rgba(0, 188, 212, 0.3);
    position: relative; overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 188, 212, 0.4);
}

.cta-button i { transition: transform 0.3s ease; }
.cta-button:hover i { transform: translateX(5px); }
.btn-particles { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; pointer-events: none; }

.cta-button:hover .btn-particles::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 2px, transparent 2px);
    background-size: 20px 20px; animation: particleMove 1s ease-out;
}

@keyframes particleMove {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

.cta-button-small {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark-color));
    color: white;
    padding: 12px 25px; /* Slightly smaller padding than cta-button */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem; /* Slightly smaller font size */
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.3);
    position: relative;
    overflow: hidden;
    border: none; /* Ensure no default button border */
    cursor: pointer; /* Indicate it's clickable */
}

.cta-button-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 188, 212, 0.4);
}

.cta-button-small i {
    transition: transform 0.3s ease;
}

.cta-button-small:hover i {
    transform: translateX(5px);
}

/* Section Titles Enhanced */
.section-title {
    font-size: 2.8rem; font-weight: 800; text-align: center;
    margin-bottom: 4rem; color: var(--title-color); position: relative;
    display: flex; align-items: center; justify-content: center; gap: 15px;
}

.section-title i {
    color: var(--primary-color); animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.section-title::after {
    content: ''; position: absolute; bottom: -15px; left: 50%;
    transform: translateX(-50%); width: 100px; height: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark-color), var(--accent-color));
    border-radius: 3px; animation: underlineGlow 3s ease-in-out infinite;
}

@keyframes underlineGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 188, 212, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 188, 212, 0.8); }
}

/* ===== NUEVOS ESTILOS PARA LA SECCIÓN DE ESTADÍSTICAS IMMEX CON MAPA ===== */
.immex-stats {
    padding: 120px 0;
    background: var(--section-bg-medium);
    position: relative;
    overflow: hidden;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color-light);
    margin: -2rem auto 5rem;
    max-width: 800px;
    line-height: 1.6;
}

.national-summary {
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
}

.summary-card {
    background: var(--card-bg-color);
    border-radius: 25px;
    padding: 2rem 3rem;
    box-shadow: 0 25px 70px var(--shadow-color);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 700px;
    transition: all 0.4s ease;
    border-image: linear-gradient(135deg, var(--primary-color), var(--accent-color)) 1;
}

.summary-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.15);
}

.summary-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.summary-icon i { font-size: 2.5rem; color: white; }
.summary-info h3 { font-size: 1.8rem; font-weight: 800; color: var(--title-color); margin-bottom: 1rem; }
.summary-stats { display: flex; gap: 3rem; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2.2rem; font-weight: 800; color: var(--primary-color); line-height: 1; }
.stat-label { display: block; font-size: 0.9rem; color: var(--text-color-light); margin-top: 0.5rem; font-weight: 600; }


.map-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
    background: var(--card-bg-color);
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow-color);
}

.map-container svg {
    width: 100%;
    height: auto;
}

/* ===== ESTILOS DEL MAPA INTERACTIVO (ACTUALIZADO) ===== */
.map-container svg #features path {
    stroke: var(--bg-color);
    stroke-width: 1px;
    transition: all 0.3s ease;
}

.map-container svg #features path.has-data {
    fill: var(--primary-color);
    cursor: pointer;
    opacity: 0.7;
}

.map-container svg #features path.no-data {
    fill: var(--text-color-light);
    cursor: default;
    opacity: 0.3;
}

.map-container svg #features path.has-data:hover {
    opacity: 1;
    transform: translate(-1px, -1px);
}

.map-container svg #features path.has-data.state-active {
    fill: var(--primary-dark-color);
    filter: drop-shadow(0 0 15px var(--primary-color));
    stroke: var(--card-bg-color);
    stroke-width: 1.5px;
    opacity: 1;
    transform: translate(-1px, -1px);
}

body.dark-theme .map-container svg #features path {
    stroke: var(--card-bg-color);
}


/* ===== ESTILOS DEL MODAL (VENTANA EMERGENTE) ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 41, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--card-bg-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 700px;
    width: 90%;
    transform: scale(0.95);
    transition: transform 0.4s ease;
    border: 1px solid var(--primary-color);
    text-align: center;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--text-color-light);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}
.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    object-fit: cover;
}

.modal-header h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--title-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    background: var(--section-bg-medium);
    padding: 1.5rem;
    border-radius: 12px;
}

.stat-item-modal { text-align: center; }
.stat-item-modal i { font-size: 2rem; color: var(--primary-color); margin-bottom: 0.5rem; }
.stat-number-modal { display: block; font-size: 2rem; font-weight: 700; color: var(--title-color); }
.stat-label-modal { display: block; font-size: 0.9rem; color: var(--text-color-light); }


/* Speakers Section Enhanced */
.speakers {
    padding: 120px 0;
    background: var(--section-bg-medium);
    position: relative;
    overflow: hidden; 
}

.speakers-grid {
    display: grid; 
    gap: 4rem; 
    max-width: 1300px;
    margin: 0 auto; 
    position: relative; 
    z-index: 2;
}

.speaker-card {
    display: grid; grid-template-columns: 300px 1fr; gap: 3rem;
    background: var(--card-bg-color); border-radius: 25px; padding: 2.5rem;
    box-shadow: 0 25px 70px var(--shadow-color);
    align-items: center; position: relative; overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.speaker-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.2);
}

.speaker-column-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.speaker-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background-color: #ffffff;
    width: 100%; 
}

.speaker-image img {
    width: 100%; height: 350px; object-fit: cover;
    border-radius: 20px; transition: transform 0.5s ease;
}

.speaker-card:hover .speaker-image img { 
    transform: scale(1.05); 
}

.speaker-info {
    display: flex; flex-direction: column;
    justify-content: flex-start; height: 100%;
}

.speaker-name {
    font-size: 2rem; font-weight: 800; color: var(--title-color);
    margin-bottom: 0.8rem;
}

body.light-theme .speaker-name {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.speaker-position {
    font-size: 1.2rem; color: var(--primary-color); font-weight: 600;
    margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px;
}

.speaker-position i { color: var(--primary-dark-color); }

.speaker-bio {
    font-size: 1rem; line-height: 1.8; margin-bottom: auto; 
    color: var(--text-color-light);
}

.specialties h4 {
    color: var(--title-color); margin-bottom: 1.5rem; font-weight: 700;
    font-size: 1.1rem; display: flex; align-items: center; gap: 10px;
}

.specialties h4 i {
    color: var(--warning-color); animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.specialty-tags { display: flex; flex-wrap: wrap; gap: 10px; }

.tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark-color));
    color: white; padding: 8px 15px; border-radius: 20px;
    font-size: 0.85rem; font-weight: 500; display: flex;
    align-items: center; gap: 6px; transition: all 0.3s ease; cursor: default;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.3);
}

.tag i { font-size: 0.9rem; }

.speaker-socials {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center; 
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px var(--shadow-color);
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.social-btn.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-btn.facebook { background: #1877F2; }
.social-btn.youtube { background: #FF0000; }

/* Sponsorship Section Enhanced */
.sponsorship {
    padding: 120px 0; background: var(--section-bg-light);
    position: relative; overflow: hidden;
}

.packages-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
    max-width: 1400px; margin: 0 auto; position: relative; z-index: 2;
}

.package-card {
    background: var(--card-bg-color); border-radius: 25px; padding: 2.5rem 2rem;
    box-shadow: 0 25px 70px var(--shadow-color); transition: all 0.5s ease;
    position: relative; overflow: hidden; border: 3px solid transparent;
    text-align: center; display: flex; flex-direction: column; height: 100%;
}

.package-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
}

.package-card.diamond { border-color: #b8860b; }
.package-card.gold { border-color: #ffd700; }
.package-card.silver { border-color: #c0c0c0; }
.package-card.bronze { border-color: #cd7f32; }

body.light-theme .package-card.diamond { background: linear-gradient(135deg, rgba(184, 134, 11, 0.05), rgba(255, 215, 0, 0.05)); }
body.light-theme .package-card.gold { background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 237, 74, 0.05)); }
body.light-theme .package-card.silver { background: linear-gradient(135deg, rgba(192, 192, 192, 0.05), rgba(229, 229, 229, 0.05)); }
body.light-theme .package-card.bronze { background: linear-gradient(135deg, rgba(205, 127, 50, 0.05), rgba(210, 105, 30, 0.05)); }


.package-icon {
    margin-bottom: 1.5rem; display: flex;
    justify-content: center; position: relative;
}

.medal {
    width: 80px; height: 80px; border-radius: 50%;
    position: relative; display: flex; align-items: center;
    justify-content: center; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.package-card:hover .medal { transform: scale(1.1) rotate(10deg); }

.medal i { font-size: 2rem; color: white; z-index: 2; }

.medal-sparkle {
    position: absolute; width: 8px; height: 8px; background: white;
    border-radius: 50%; opacity: 0; animation: sparkle 2s ease-in-out infinite;
}
.sparkle-1 { top: 10px; right: 15px; animation-delay: 0s; }
.sparkle-2 { bottom: 15px; left: 10px; animation-delay: 0.5s; }
.sparkle-3 { top: 20px; left: 20px; animation-delay: 1s; }

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.diamond-medal { background: linear-gradient(135deg, #b8860b, #ffd700); animation: diamondGlow 3s infinite alternate; }
.gold-medal { background: linear-gradient(135deg, #ffd700, #ffed4a); animation: goldGlow 3s infinite alternate; }
.silver-medal { background: linear-gradient(135deg, #c0c0c0, #e5e5e5); animation: silverGlow 3s infinite alternate; }
.bronze-medal { background: linear-gradient(135deg, #cd7f32, #d2691e); animation: bronzeGlow 3s infinite alternate; }

@keyframes diamondGlow { from { box-shadow: 0 0 25px rgba(184, 134, 11, 0.5); } to { box-shadow: 0 0 40px rgba(255, 215, 0, 0.8); } }
@keyframes goldGlow { from { box-shadow: 0 0 25px rgba(255, 215, 0, 0.5); } to { box-shadow: 0 0 40px rgba(255, 237, 74, 0.8); } }
@keyframes silverGlow { from { box-shadow: 0 0 25px rgba(192, 192, 192, 0.5); } to { box-shadow: 0 0 40px rgba(229, 229, 229, 0.8); } }
@keyframes bronzeGlow { from { box-shadow: 0 0 25px rgba(205, 127, 50, 0.5); } to { box-shadow: 0 0 40px rgba(210, 105, 30, 0.8); } }

.package-header { margin-bottom: 2rem; }

.package-header h3 {
    font-size: 1.6rem; font-weight: 800; color: var(--title-color);
    margin-bottom: 1rem; letter-spacing: 1px; display: flex;
    align-items: center; justify-content: center; gap: 10px;
}

.package-header h3 i { color: var(--warning-color); }

.price {
    font-size: 2.2rem; font-weight: 800; color: var(--title-color); margin-bottom: 0.5rem;
}

.price span { font-size: 1rem; font-weight: 400; color: #666; }

.benefits-list {
    list-style: none; padding-bottom: 2rem; text-align: left; flex-grow: 1;
}

.benefits-list li {
    display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1rem;
    font-size: 0.9rem; line-height: 1.6; color: var(--text-color-light); transition: all 0.3s ease;
}

.benefits-list li:hover { color: var(--title-color); transform: translateX(5px); }

.benefits-list i {
    color: #27ae60; margin-top: 3px; flex-shrink: 0;
    font-size: 1rem; transition: all 0.3s ease;
}

.benefits-list li:hover i { color: var(--primary-color); transform: scale(1.2); }

/* Registration Section Enhanced */
.registration {
    padding: 120px 0; background: linear-gradient(160deg, #3756c3 0%, #2c3e50 100%);
    color: #ffffff; position: relative; overflow: hidden;
}

.registration .section-title, .registration .registration-subtitle {
    color: #ffffff; position: relative; z-index: 2;
}

.registration .section-title::after { background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8)); }

.registration-subtitle {
    text-align: center; font-size: 1.2rem; max-width: 600px;
    margin: 0 auto 3rem; line-height: 1.8; position: relative; z-index: 2;
}

/* ===== ESTILOS PARA LA NUEVA SECCIÓN DE CONTADOR ===== */
.countdown-section {
    padding: 100px 0; background: #2c3e50; color: #ffffff;
    text-align: center; position: relative; overflow: hidden;
}

.countdown-section .section-title { color: #ffffff; }
.countdown-section .section-title::after { background: #ffffff; }

.countdown-timer {
    display: flex; justify-content: center; gap: 2rem;
    margin-top: 3rem; flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px);
    border-radius: 20px; padding: 2rem; min-width: 150px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }

.countdown-number {
    display: block; font-size: 4rem; font-weight: 800;
    line-height: 1; color: var(--primary-color); text-shadow: 0 0 15px rgba(0, 188, 212, 0.5);
}

.countdown-label {
    display: block; font-size: 1.1rem; font-weight: 500;
    margin-top: 0.5rem; color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase; letter-spacing: 2px;
}

.countdown-finished { margin-top: 3rem; }

.countdown-finished h3 {
    font-size: 2.5rem; font-weight: 700; color: var(--accent-color);
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.5); animation: fadeInGlow 1.5s ease-in-out;
}

@keyframes fadeInGlow {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* ===== SECCIÓN DE PATROCINADORES (MODIFICADA) ===== */
.sponsors-section {
    padding: 80px 0;
    background: var(--sponsors-bg);
    text-align: center;
    overflow: hidden;
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 20px;
}

.logo-slide {
    flex: 0 0 auto;
    width: 160px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-slide img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: var(--sponsor-logo-filter);
}

.logo-slide:hover img {
    transform: scale(1.1);
}

/* Estilos especiales para logos que necesitan fondo oscuro */
.logo-slide img[src*="mayanalimentacionempresarial"],
.alliance-logo-container img {
    background-color: #3e5062;
    padding: 10px;
    border-radius: 8px;
    box-sizing: border-box;
    filter: none;
}

body.dark-theme .logo-slide img[src*="mayanalimentacionempresarial"],
body.dark-theme .alliance-logo-container img {
    background-color: transparent;
}

/* Ajustes para pantallas más grandes para distribuir más los logos */
@media (min-width: 1200px) {
    .sponsors-grid {
        justify-content: space-around;
        gap: 2rem;
    }
}


/* Contact Section Enhanced */
.contact {
    padding: 120px 0; background: var(--section-bg-light); position: relative;
}

.contact-grid {
    display: grid; grid-template-columns: 2fr 1fr; gap: 5rem;
    max-width: 1200px; margin: 0 auto; align-items: start;
    position: relative; z-index: 2;
}

.contact-info {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem;
}

.contact-item {
    display: flex; align-items: center; gap: 1.5rem;
    background: var(--card-bg-color); padding: 2rem; border-radius: 20px;
    transition: all 0.4s ease; border-left: 5px solid var(--primary-color);
    box-shadow: 0 15px 40px var(--shadow-color);
    position: relative; overflow: hidden;
}

.contact-item::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.05), transparent);
    transition: left 0.6s ease;
}

.contact-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    border-left-color: var(--primary-dark-color);
}

.contact-item:hover::before { left: 100%; }

.contact-icon {
    position: relative; width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark-color));
    border-radius: 15px; color: white; flex-shrink: 0;
}

.contact-icon i { font-size: 1.5rem; z-index: 2; }

.icon-pulse {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); width: 100%; height: 100%;
    background: rgba(0, 188, 212, 0.3); border-radius: 15px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.1; }
}

.contact-item h4 {
    color: var(--title-color); margin-bottom: 0.8rem;
    font-weight: 700; font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-color-light); line-height: 1.6;
    font-weight: 500; word-break: break-all;
}

.social-media {
    background: var(--card-bg-color); padding: 2.5rem; border-radius: 25px;
    text-align: center; height: fit-content;
    box-shadow: 0 15px 40px var(--shadow-color);
    border: 1px solid rgba(0, 188, 212, 0.1);
}

.social-media h4 {
    color: var(--title-color); margin-bottom: 2rem; font-weight: 700;
    font-size: 1.3rem; display: flex; align-items: center;
    justify-content: center; gap: 10px;
}

.social-media h4 i { color: var(--primary-color); }
.social-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.social-link {
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 8px; width: 100%; height: 80px;
    border-radius: 20px; text-decoration: none; font-size: 1.2rem;
    transition: all 0.4s ease; font-weight: 600; position: relative; overflow: hidden;
}

.social-link::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%); transition: transform 0.6s ease;
}

.social-link:hover::before { transform: translateX(100%); }

.social-link i { font-size: 1.5rem; margin-bottom: 5px; }
.social-link span { font-size: 0.8rem; font-weight: 500; }
.facebook { background: linear-gradient(135deg, #1877f2, #42a5f5); color: white; }
.instagram { background: linear-gradient(135deg, #e1306c, #fd5949, #ffdc80); color: white; }
.twitter { background: linear-gradient(135deg, #1da1f2, #14171a); color: white; }
.linkedin { background: linear-gradient(135deg, #0077b5, #00a0dc); color: white; }
.social-link:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); }

/* Footer Enhanced */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e); color: white;
    padding: 4rem 0; position: relative; overflow: hidden;
}

.footer-content {
    display: flex; flex-direction: column; align-items: center;
    gap: 1.5rem; position: relative; z-index: 2;
}

.footer-logo {
    height: 70px; width: auto; filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}
.footer-logo:hover { transform: scale(1.1); }

.footer p { display: flex; align-items: center; gap: 8px; font-weight: 500; }

/* Animation on Scroll (FIXED) */
.animate-on-scroll { opacity: 0; visibility: hidden; transform: translateY(50px); transition: all 0.8s ease; }
.animate-on-scroll.animated { opacity: 1; visibility: visible; transform: translateY(0); }

/* Hamburger Menu Enhanced */
.hamburger {
    display: none; flex-direction: column; cursor: pointer;
    padding: 5px; transition: all 0.3s ease;
}

.hamburger span {
    width: 25px; height: 3px; background: var(--hamburger-color);
    margin: 3px 0; transition: all 0.3s ease; border-radius: 3px;
}

.hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

/* Responsive Design Enhanced */
@media (max-width: 1200px) {
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-info { grid-template-columns: 1fr; }
    .speaker-card { grid-template-columns: 280px 1fr; }
    .summary-stats { flex-direction: column; gap: 1rem; }
    .summary-card { flex-direction: column; text-align: center; }
}

@media (max-width: 992px) {
    .map-data-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hamburger, .theme-switcher { display: flex; }
    .nav-menu {
        position: fixed; left: -100%; top: 70px; flex-direction: column;
        background: var(--card-bg-color); backdrop-filter: blur(20px);
        width: 100%; text-align: center; transition: 0.4s ease;
        box-shadow: 0 15px 35px var(--shadow-color);
        padding: 2rem 0; border-radius: 0 0 20px 20px;
    }
    .nav-menu.active { left: 0; }
    .nav-menu.active .nav-link { color: var(--title-color); }
    .nav-menu.active .btn-registro { color: white !important; }

    .event-slogan { font-size: 2rem; }
    .event-details { flex-direction: column; gap: 1.5rem; align-items: center; }
    .event-item { max-width: 350px; }
    
    .speaker-image img {
        height: 200px;
    }
    .packages-grid { grid-template-columns: 1fr; gap: 2rem; }
    .package-card { padding: 2rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .contact-info { grid-template-columns: 1fr; }
    .social-links { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 2.2rem; }
    .floating-btn { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 1.2rem; }
    .countdown-timer { gap: 1rem; }
    .countdown-item { min-width: 120px; padding: 1.5rem; }
    .countdown-number { font-size: 3rem; }
    .countdown-label { font-size: 0.9rem; }
    .countdown-finished h3 { font-size: 1.8rem; }
    
    .sponsors-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        align-items: center;
    }

    .logo-slide {
        height: 80px;
        width: 100%;
    }

    .logo-slide img {
        max-height: 100%;
        max-width: 100%;
    }
    
    .carousel-item {
        width: 250px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .event-slogan { font-size: 1.6rem; }
    .package-card, .contact-item { padding: 1.5rem; }
    .price { font-size: 1.8rem; }
    .social-media { padding: 2rem; }
    .social-links { gap: 1rem; }
    .social-link { height: 70px; }
    .section-title { font-size: 1.8rem; }
    .geometric-shapes .shape { opacity: 0.05; }
    .shape-1, .shape-3 { width: 60px; height: 60px; }
    .shape-2, .shape-4 { width: 40px; height: 40px; }
    .countdown-timer { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .countdown-item { min-width: 0; padding: 1rem; }
    .countdown-number { font-size: 2.5rem; }
    
    .summary-card { padding: 1.5rem; }
    .summary-icon { width: 80px; height: 80px; }
    .summary-icon i { font-size: 2rem; }
    .stat-number { font-size: 2rem; }
    .modal-stats { flex-direction: column; }
}

/* Smooth Scrolling */
html { scroll-behavior: smooth; }

/* Performance Optimizations */
* { will-change: auto; }
.speaker-image img, .loading-logo { will-change: transform; }
.package-card, .speaker-card, .contact-item { will-change: transform, box-shadow; }

/* Print Styles */
@media print {
    .loading-screen, .floating-btn, .progress-bar, .hamburger, .geometric-shapes, .scroll-indicator, .theme-switcher { display: none !important; }
    .header { position: relative !important; box-shadow: none !important; }
    .hero { height: auto !important; }
    .hero-video { display: none !important; }
}

/* --- CUSTOM CORRECTIONS --- */
.hero-video video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
@media (max-width: 768px) { .hero { height: 35vh; } }

/* ===== ESTILOS PARA CONTROLES DE ZOOM DEL MAPA ===== */
.map-data-container {
    position: relative; 
}

.map-controls {
    position: absolute;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.map-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--card-bg-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: all 0.3s ease;
}

.map-controls button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Carousel */
.carousel-container {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    position: relative;
    margin-top: 40px;
    box-shadow: var(--box-shadow-light);
    border-radius: 15px;
}

.carousel {
    display: flex;
    width: 200%; 
    animation: scroll 30s linear infinite;
}

.carousel:hover {
    animation-play-state: paused;
}

.carousel-item {
    flex: 0 0 auto;
    width: 400px; 
    margin: 0 15px;
    height: 250px; 
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.carousel-item:hover {
    transform: scale(1.05);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Lightbox for Gallery */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* ===== ESTILOS PARA EL CARRUSEL DE CONFERENCISTAS (MEJORADO) ===== */
.speakers .container {
    padding-left: 0;
    padding-right: 0;
}

.speakers-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
}

.speakers-carousel-wrapper {
    position: relative;
    overflow: hidden; 
    border-radius: 25px; 
}

.speakers-grid {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    gap: 0;
}

.speaker-card {
    flex: 0 0 100%;
    box-sizing: border-box;
    margin: 0;
    transition: none; 
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.carousel-btn {
    background-color: var(--card-bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

/* ===== NUEVOS ESTILOS Y MEJORAS PARA MÓVILES EN LA SECCIÓN DE CONFERENCISTAS ===== */
@media (max-width: 768px) {
    .speakers .container {
        padding-left: 0;
        padding-right: 0;
    }
    .speakers-carousel-container {
        max-width: 100vw;
    }
    .speakers-carousel-wrapper {
        border-radius: 0;
    }
    .speakers-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding: 0 20px;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) var(--card-bg-color);
    }
    .speakers-grid::-webkit-scrollbar {
        height: 8px;
    }
    .speakers-grid::-webkit-scrollbar-track {
        background: var(--card-bg-color);
        border-radius: 10px;
    }
    .speakers-grid::-webkit-scrollbar-thumb {
        background-color: var(--primary-color);
        border-radius: 10px;
        border: 2px solid var(--card-bg-color);
    }

    .speaker-card {
        flex: 0 0 80%;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        border: 1px solid var(--primary-color);
        padding: 1.5rem;
        cursor: pointer;
        transition: max-height 0.5s ease-in-out;
    }

    
    
    .speaker-bio, .specialties {
        display: none;
        text-align: left;
        margin-top: 1rem;
    }

    .speaker-card.expanded {
        cursor: default;
    }

    .speaker-card.expanded .speaker-bio,
    .speaker-card.expanded .specialties {
        display: block;
    }
    
    .speaker-card.expanded .speaker-bio { order: 5; }
    .speaker-card.expanded .specialties { order: 6; }

    .close-speaker-info {
        display: none;
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
        font-weight: bold;
        color: var(--text-color-light);
        cursor: pointer;
        transition: all 0.3s ease;
        line-height: 1;
        z-index: 10;
    }

    .speaker-card.expanded .close-speaker-info {
        display: block;
    }

    .close-speaker-info:hover {
        color: var(--primary-color);
        transform: rotate(90deg);
    }
    
    .carousel-navigation {
        display: none;
    }
}

/* ===== ESTILOS PARA EL MODAL DE CONFERENCISTAS ===== */
.speaker-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.speaker-modal-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.speaker-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 41, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.speaker-modal-content {
    position: relative;
    background: var(--card-bg-color);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    max-width: 700px;
    width: 90%;
    transform: scale(0.95) translateY(-20px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    border: 1px solid var(--primary-color);
    max-height: 85vh;
    overflow-y: auto;
}

.speaker-modal-container.active .speaker-modal-content {
    transform: scale(1) translateY(0);
}

.speaker-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--text-color-light);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.speaker-modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg) scale(1.1);
}

.speaker-modal-right #modal-speaker-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 0.8rem;
}

.speaker-modal-right #modal-speaker-position {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.speaker-modal-right #modal-speaker-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color-light);
    margin-bottom: 2rem;
}

.speaker-modal-right #modal-speaker-specialties .specialties {
    margin-top: 1rem;
}

.open-modal-btn {
    display: none;
    margin-top: auto;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark-color));
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    align-items: center;
    gap: 8px;
}

.open-modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 188, 212, 0.4);
}

@media (max-width: 768px) {
    .open-modal-btn { 
        display: inline-flex;
    }

    .speaker-card.expanded .speaker-bio,
    .speaker-card.expanded .specialties,
    .speaker-card.expanded .close-speaker-info {
        display: none;
    }
}

/* ===== Custom Scrollbar for Speaker Modal ===== */
.speaker-modal-content::-webkit-scrollbar {
    width: 8px;
}

.speaker-modal-content::-webkit-scrollbar-track {
    background: var(--card-bg-color);
}

.speaker-modal-content::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 2px solid var(--card-bg-color);
}

.speaker-modal-content::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-dark-color);
}

/* Lightbox Navigation Buttons */
.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Drag-to-Scroll Cursor */
.carousel {
    cursor: grab;
}

.carousel.active-drag {
    cursor: grabbing;
}

/* ===== NUEVOS ESTILOS PARA EL BOTÓN Y MODAL DE CONVOCATORIA ===== */
.woman-leader-btn {
    bottom: 100px;
    background: linear-gradient(135deg, #e83e8c, #d3307b);
    box-shadow: 0 8px 25px rgba(232, 62, 140, 0.4);
}

.woman-leader-btn:hover {
    box-shadow: 0 15px 35px rgba(232, 62, 140, 0.6);
}

@media (max-width: 768px) {
    .woman-leader-btn {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ===== ESTILOS PARA LA IMAGEN DEL EVENTO ===== */
.section-footer-image {
    position: relative;
    width: 100%;
    height: 250px;
    margin-top: 5rem;
}

.section-footer-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.section-footer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.event-info .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-image-container {
    margin-top: 5rem;
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px var(--shadow-color);
    line-height: 0;
}

.event-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Interactive Link Styles */
.interactive-link {
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.interactive-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* ===== ESTILOS PARA CARRUSEL DE STACK ===== */
.event-image-stack .stack-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 3px;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    z-index: 3; /* On top of images */
}

.event-image-stack .stack-nav.stack-next {
    right: 10px;
}

.event-image-stack .stack-nav.stack-prev {
    left: 10px;
}

.event-image-stack .stack-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.stacked-image {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease-in-out;
}

.stack-image-fade-out {
    opacity: 0;
}

.registration .cta-container {
    text-align: center;
}

/* ===== NUEVOS ESTILOS PARA BOTÓN DE YOUTUBE PERSONALIZADO ===== */
.youtube-invite-container {
    margin-top: 1.5rem;
    width: 100%;
}

.youtube-invite-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    background-color: #FF0000;
    color: white;
    transition: all 0.3s ease;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.youtube-invite-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
    background-color: #c40000;
}

.youtube-invite-btn i {
    font-size: 1.2rem;
}

/* Convocatoria Modal Image Height Fix */
#convocatoriaModal .modal-header img {
    height: 260px;
}

.sponsors-grid .logo-slide img.logo-alianza-grande {
    transform: scale(1.2);
}

.sponsors-grid .logo-slide:hover img.logo-alianza-grande {
    transform: scale(1.3);
}
