html {
    scroll-behavior: smooth;
}
/* Variables de colores Dark Neon Premium */
:root {
    --bg-dark: #0f1a24;
    --bg-card: #182533;
    --neon-cyan: #00d2ff;
    --neon-green: #2ecc71;
    --text-white: #ffffff;
    --text-gray: #b0b8c1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-gray);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-white);
}

.navbar {
    position: relative; /* Esto es nuevo, le da un punto de referencia a los textos */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px; /* Mantén el padding que ya tenías */
    /* ... el resto de tu código de la navbar (background, etc) ... */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    
    /* El truco mágico del centrado absoluto: */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--neon-cyan);
}

/* Contenedor para agrupar los botones de la barra de navegación */
.nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Sección Principal */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    /* Foto de fondo con una capa oscura semitransparente encima */
    background: linear-gradient(rgba(15, 26, 36, 0.85), rgba(15, 26, 36, 0.85)), url('fondo-hero.jpg');
    background-size: cover; /* Para que la foto cubra todo el espacio */
    background-position: center; /* Para que quede centrada */
    background-attachment: fixed; /* Un efecto "parallax" genial al hacer scroll */
}

.hero-content {
    max-width: 800px;
    margin-top: 60px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.highlight {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Botones Neón */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-neon-cyan {
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    /* Brillo inicial suave */
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2) inset, 0 0 10px rgba(0, 210, 255, 0.2);
}

.btn-neon-cyan:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    /* Brillo intenso al pasar el mouse */
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.8) inset, 0 0 20px rgba(0, 210, 255, 0.8);
}

.btn-outline-green {
    background: transparent;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline-green:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.6);
}

/* --- SECCIÓN VENTAJAS --- */
.ventajas {
    padding: 100px 50px;
    text-align: center;
    background-color: var(--bg-dark);
}

.ventajas h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-gray);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap; /* Para que se adapte a pantallas más chicas */
}

.card {
    background: rgba(24, 37, 51, 0.6); /* Fondo semi-transparente */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px 30px;
    width: 300px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.card-icon {
    margin-bottom: 20px;
    /* Un pequeño resplandor de fondo para los iconos */
    background: radial-gradient(circle, rgba(46, 204, 113, 0.2) 0%, transparent 70%);
    display: inline-block;
    padding: 20px;
    border-radius: 50%;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* El efecto Neón al pasar el mouse */
.card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15);
}

.card:hover .card-icon {
    background: radial-gradient(circle, rgba(0, 210, 255, 0.2) 0%, transparent 70%);
}

/* --- SECCIÓN CURSOS --- */
.cursos {
    padding: 100px 50px;
    text-align: center;
    background-color: #111d28; /* Un tono levamente distinto para separar secciones */
}

.cursos h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cursos-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.curso-card {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    width: 350px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
}

.curso-card:hover {
    transform: translateY(-5px);
}

.curso-header {
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid;
}

/* Bordes de colores para diferenciar planes */
.cyan-glow {
    border-bottom-color: var(--neon-cyan);
    background: linear-gradient(0deg, rgba(0, 210, 255, 0.1) 0%, transparent 100%);
}

.green-glow {
    border-bottom-color: var(--neon-green);
    background: linear-gradient(0deg, rgba(46, 204, 113, 0.1) 0%, transparent 100%);
}

.curso-body {
    padding: 30px;
}

.curso-lista {
    list-style: none;
    margin-top: 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.curso-lista li {
    margin-bottom: 10px;
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* --- FOOTER Y MAPA --- */
.footer {
    background-color: #0a1118; /* El color más oscuro de todos para cerrar la página */
    padding: 60px 50px 20px 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto; /* Centra el contenido */
    flex-wrap: wrap; /* Si la pantalla es chica, el mapa baja */
}

.footer-info {
    flex: 1; /* Toma la mitad del espacio */
    min-width: 300px;
}

.footer-info p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.contacto-lista {
    list-style: none;
    color: var(--text-white);
    line-height: 2;
    margin-bottom: 20px;
}

/* El contenedor del Mapa */
.footer-mapa {
    flex: 1; /* Toma la otra mitad del espacio */
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 210, 255, 0.2); /* Un bordecito neón suave */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* EL TRUCO DE MAGIA: Filtro para convertir el mapa a Dark Mode */
.footer-mapa iframe {
    width: 100%;
    height: 100%;
    min-height: 250px;
    filter: invert(90%) hue-rotate(180deg) brightness(90%) contrast(110%);
}

.ticker-wrap {
    width: 100%;
    background-color: rgba(0, 210, 255, 0.05);
    border-top: 1px solid rgba(0, 210, 255, 0.3);
    border-bottom: 1px solid rgba(0, 210, 255, 0.3);
    padding: 12px 0;
    overflow: hidden;
    box-sizing: border-box;
    white-space: nowrap;
    
    /* --- NUEVAS LÍNEAS PARA PONERLO ARRIBA --- */
    position: absolute;
    top: 110px; /* La distancia desde el techo para no chocar con el menú */
    z-index: 50; /* Para asegurar que flote por encima de la foto de fondo */
}

.ticker {
    display: inline-block;
    /* La animación hace que se mueva hacia la izquierda continuamente */
    animation: ticker 50s linear infinite;
}

.ticker:hover {
    animation-play-state: paused; /* Se detiene si le pasan el mouse por encima */
}

.ticker-item {
    display: inline-block;
    padding: 0 50px;
    font-size: 1.1rem;
    color: var(--text-gray);
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
}

/* Colores para el podio */
.ticker-item:nth-child(1), .ticker-item:nth-child(6) { color: #FFD700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); } 
.ticker-item:nth-child(2), .ticker-item:nth-child(7) { color: #E0E0E0; } 
.ticker-item:nth-child(3), .ticker-item:nth-child(8) { color: #CD7F32; } 

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.foto-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(0, 210, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.foto-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.foto-item:hover {
    transform: scale(1.03);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.4);
}

.foto-item:hover img {
    transform: scale(1.1);
}

/* Contenedor general de las galerías */
.seccion-comunidad {
    padding: 60px 20px;
    background-color: #0b1218;
}

/* Estilo especial para el Cuadro de Honor */
.cuadro-honor {
    text-align: center;
    margin-bottom: 80px;
}

.honor-container {
    max-width: 900px;
    margin: 30px auto;
    border: 3px solid var(--neon-cyan); /* Marco cian más grueso */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.4); /* Resplandor neón */
}

.foto-honor {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.foto-honor:hover {
    transform: scale(1.02); /* Un pequeño zoom al pasar el mouse */
}

/* Ajuste para las galerías de eventos */
.galeria-evento {
    margin-bottom: 80px;
    text-align: center;
}

/* Contenedor que oculta lo que sale de los bordes */
.carrusel-contenedor {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

/* El riel que contiene las fotos y las mueve */
.carrusel-riel {
    display: flex;
    gap: 20px;
    width: calc(300px * 10); /* Ajusta según cuántas fotos pongas */
    animation: deslizar-fotos 30s linear infinite;
}

/* Pausar al pasar el mouse para que vean bien una foto */
.carrusel-riel:hover {
    animation-play-state: paused;
}

@keyframes deslizar-fotos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Ajuste para que las fotos tengan el mismo tamaño en el carrusel */
.foto-item {
    flex: 0 0 300px; /* Mantiene cada foto de 300px de ancho */
}

/* El contenedor del Lightbox */
.lightbox {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 3000; /* Por encima de todo, incluso del botón de WhatsApp */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fondo negro semi-transparente */
    backdrop-filter: blur(5px);
}

/* La foto que se agranda */
.contenido-lightbox {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 85%;
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.5);
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

/* El botón de cerrar (X) */
.cerrar-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Estilos del Modal de Cotización */
.modal-content {
    background-color: var(--bg-card);
    margin: 15% auto;
    padding: 30px;
    border: 1px solid var(--neon-cyan);
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
    text-align: center;
}

.cerrar-modal {
    color: var(--text-gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.cerrar-modal:hover {
    color: var(--neon-cyan);
}

.input-dark {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-white);
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
}

.input-dark:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0,210,255,0.2);
}

/* --- ESTILOS DEL PANEL DE LOGIN (Estilo Spotify) --- */
.login-container {
    background-color: #121212; /* El negro puro/gris muy oscuro clásico de apps */
    margin: 5% auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    text-align: center;
    color: var(--text-white);
}

.cerrar-login {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    font-weight: bold;
}

.cerrar-login:hover {
    color: var(--text-white);
}

.login-logo {
    width: 80px;
    margin-bottom: 20px;
}

.login-titulo {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 8px;
    padding-left: 2px;
}

.login-input {
    border: 1px solid #727272;
    background-color: transparent;
    border-radius: 4px;
    padding: 14px;
}

.login-input:focus {
    border: 2px solid var(--text-white);
    box-shadow: none; /* Quitamos el brillo neon interno para mantener la elegancia */
}

/* Botón estilo píldora (redondeado como Spotify) */
.btn-pill {
    width: 100%;
    border-radius: 500px; /* Bordes totalmente redondeados */
    padding: 14px;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
}

/* Divisor con líneas */
.login-divisor {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #888;
    font-size: 0.9rem;
    font-weight: bold;
}

.login-divisor::before,
.login-divisor::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #333;
}

.login-divisor span {
    padding: 0 15px;
}

/* Botones Sociales */
.social-login-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-social {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid #727272;
    padding: 12px;
    border-radius: 500px;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-social img {
    width: 20px;
    height: 20px;
}

.btn-social:hover {
    border-color: var(--text-white);
}

.login-footer {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #888;
}

.link-registro {
    color: var(--text-white);
    font-weight: bold;
    text-decoration: underline;
    display: inline-block;
    margin-top: 5px;
}

.link-registro:hover {
    color: var(--neon-cyan);
}

/* ============================================================
   RESPONSIVE — TABLET Y MÓVIL
   ============================================================ */

/* --- Tablets y pantallas medianas (≤ 992px) --- */
@media (max-width: 992px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 15px 25px;
    }
    /* Quitamos el centrado absoluto que rompe en pantallas chicas */
    .nav-links {
        position: static;
        transform: none;
        left: auto;
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 25px;
    }
    .nav-buttons { order: 2; }

    /* El ticker deja de flotar y pasa a fluir bajo el menú */
    .ticker-wrap {
        position: static;
        top: auto;
    }

    .hero {
        height: auto;
        min-height: 80vh;
        padding: 60px 20px 70px;
        background-attachment: scroll; /* 'fixed' falla y va lento en móvil */
    }
    .hero-content { margin-top: 0; }
    .hero h1 { font-size: 2.8rem; }

    .ventajas,
    .cursos { padding: 70px 25px; }
    .footer { padding: 50px 25px 20px; }
}

/* --- Móviles (≤ 600px) --- */
@media (max-width: 600px) {
    .navbar { padding: 12px 15px; }
    .logo img { width: 140px; }

    .nav-links {
        gap: 14px;
        font-size: 0.9rem;
    }
    .nav-buttons {
        flex-direction: column;
        width: 100%;
    }
    .nav-buttons a {
        width: 100%;
        text-align: center;
    }

    .hero h1 { font-size: 2.1rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .ventajas h2,
    .cursos h2,
    .cuadro-honor h2,
    .galeria-evento h2 { font-size: 1.8rem; }
    .subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .ventajas,
    .cursos { padding: 50px 18px; }

    .card,
    .curso-card {
        width: 100%;
        max-width: 360px;
    }

    .ticker-item {
        padding: 0 25px;
        font-size: 0.95rem;
    }

    .footer-container { flex-direction: column; }

    .modal-content { margin: 25% auto; }
    .login-container { padding: 30px 22px; }
    .login-titulo { font-size: 1.9rem; }

    .whatsapp-flotante {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }
}