
		/* =========================================
   ESTILO FINAL "VISTOSO" - U.E. MORASPUNGO
   ========================================= */

:root {
    /* PALETA DARK MODE MODERNA */
    --bg-dark: #0f172a;      /* Azul muy oscuro */
    --bg-card: #1e293b;      /* Azul grisáceo */
    --accent-cyan: #06b6d4;  /* Neón Celeste */
    --accent-gold: #fbbf24;  /* Dorado */
    --text-main: #f8fafc;    /* Blanco */
    --text-muted: #94a3b8;   /* Gris */
    
    /* GRADIENTES */
    --gradient-hero: linear-gradient(to bottom, rgba(15,23,42,0.3), var(--bg-dark));
    --gradient-text: linear-gradient(to right, #fff, var(--accent-cyan));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Teko', sans-serif; text-transform: uppercase; letter-spacing: 1px; }
a { text-decoration: none; transition: 0.3s; }
img { width: 100%; display: block; object-fit: cover; }

/* =========================================
   1. NAVBAR GLASS
   ========================================= */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: 0.4s;
}

.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
}

.brand { display: flex; align-items: center; gap: 15px; }
.brand img { height: 55px; width: auto; }

/* El contenedor principal sigue poniendo el bloque de nombres AL LADO del slogan */
.brand-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* NUEVA CLASE: Hace que Unidad Educativa quede ENCIMA de Moraspungo */
.brand-stack {
    display: flex;
    flex-direction: column; /* Esto es lo que los apila verticalmente */
    justify-content: center;
    line-height: 0.9;       /* Los junta para que no se vean muy separados */
    color: #fff;
    
    /* Movemos la línea separadora aquí */
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    padding-right: 15px;
    text-align: right; /* Alineamos a la derecha para que pegue con la línea */
}

/* El Slogan se queda igual */
.brand-text span { 
    font-size: 1rem;
    color: var(--accent-cyan); 
    letter-spacing: 1px; 
    white-space: nowrap;
}

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: #fff; text-shadow: 0 0 10px var(--accent-cyan); }

.cta-nav {
    border: 1px solid var(--accent-cyan); padding: 8px 25px; border-radius: 50px;
    color: var(--accent-cyan) !important;
}
.cta-nav:hover { background: var(--accent-cyan); color: var(--bg-dark) !important; }
.menu-toggle { display: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* =========================================
   2. HERO (VIDEO FULL)
   ========================================= */
/* =========================================
   HERO: CONTROLES Y REDES (ESTILO DARK NEON)
   ========================================= */

/* 1. CONTROLES MINI (Derecha Abajo) */
/* =========================================
   HERO SECTION (CORRECCIÓN DE VIDEO)
   ========================================= */

.hero {
    position: relative;
    height: 100vh; /* Ocupa toda la pantalla */
    width: 100%;
    overflow: hidden; 
}

/* CORRECCIÓN: Usamos el nombre correcto de la clase del HTML (.hero-video-wrapper) */
.hero-video-wrapper {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1; /* Se va al fondo */
}

.hero-video-wrapper video {
    width: 100%; 
    height: 100%; 
    /* cover: Hace que rellene la pantalla sin estirarse (hace zoom si es necesario) */
    object-fit: cover; 
    /* center: Asegura que el centro del video siempre se vea */
    object-position: center; 
}

/* Overlay (Capa oscura para que el texto blanco se lea bien) */
.hero-overlay {
    position: absolute; 
    inset: 0;
    /* Un degradado suave en lugar de color plano para que se vea más moderno */
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.519));
    z-index: 1;
}
.hero-mini-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.mini-label {
    color: var(--text-muted); /* Gris azulado */
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.mini-buttons {
    display: flex;
    gap: 10px;
    /* Vidrio Oscuro (Acorde al tema) */
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Botón Relleno (Cyan Neón) */
.btn-mini-primary {
    background: var(--accent-cyan);
    color: var(--bg-dark); /* Texto oscuro sobre fondo cyan */
    font-family: 'Teko', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 30px;
    display: flex; align-items: center; gap: 8px;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.btn-mini-primary:hover {
    transform: scale(1.05);
    background: #fff;
    box-shadow: 0 0 20px var(--accent-cyan);
}

/* Botón Borde (Transparente) */
.btn-mini-outline {
    background: transparent;
    color: var(--text-main);
    font-family: 'Teko', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 6px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; gap: 8px;
    transition: 0.3s;
}

.btn-mini-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
}

/* RESPONSIVE: Ajuste para celular */
@media (max-width: 768px) {
    .hero-mini-controls {
        bottom: 90px; /* Subimos para que no choque con la barra de abajo */
        right: 50%;
        transform: translateX(50%);
        align-items: center;
        width: 100%;
    }
    .mini-buttons {
        background: rgba(15, 23, 42, 0.8); /* Más oscuro en móvil para leer mejor */
    }
}


/* =========================================
   2. BARRA SOCIAL FLOTANTE (Izquierda)
   ========================================= */

.hero-social-sidebar {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Etiqueta vertical "SÍGUENOS" */
.social-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--accent-cyan); /* Color Neón */
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(6, 182, 212, 0.5);
}

/* Burbujas de los Iconos */
.social-float {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    
    /* Vidrio Oscuro */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    display: flex; align-items: center; justify-content: center;
    
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efectos al pasar el mouse (Hover General) */
.social-float:hover {
    transform: scale(1.15) translateX(5px);
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.4);
}

/* Colores Específicos de Marca (Se mantienen igual) */
.social-float.fb:hover { color: #1877F2; } 
.social-float.ig:hover { color: #E4405F; } 
.social-float.tt:hover { color: #000000; } 

/* Responsive Social */
@media (max-width: 768px) {
    .hero-social-sidebar { left: 15px; }
    .social-label { display: none; }
    .social-float { width: 38px; height: 38px; font-size: 1rem; }
}


/* BARRA RÁPIDA (Quick Bar) */
.quick-bar {
    position: absolute; bottom: 0; left: 0; transform: translateX(-50%);
    display: flex; background: rgba(30, 41, 59, 0.8); backdrop-filter: blur(15px);
    border-radius: 20px 20px 0 0; border-top: 1px solid rgba(255,255,255,0.1);
}
.quick-item {
    padding: 20px 40px; display: flex; align-items: center; gap: 15px;
    color: var(--text-muted); cursor: pointer; transition: 0.3s;
}
.quick-item:hover { color: var(--accent-cyan); background: rgba(255,255,255,0.05); }
.quick-item i { font-size: 1.8rem; }
.quick-item div { display: flex; flex-direction: column; text-align: left; }
.quick-item strong { color: #fff; font-size: 1.1rem; }
.quick-item span { font-size: 0.8rem; }

/* =========================================
   3. SECCIONES GENERALES
   ========================================= */
.section-dark { padding: 100px 0; background: var(--bg-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 3.5rem; color: #fff; margin-bottom: 10px; }
.line-decor { width: 100px; height: 4px; background: var(--accent-cyan); margin: 0 auto; }


/* =========================================
   4. ACTUALIDAD (MAGAZINE LAYOUT)
   ========================================= */
.magazine-grid {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px;
}
.mag-card {
    position: relative; border-radius: 20px; overflow: hidden;
    cursor: pointer; transition: 0.4s;
}
.mag-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }

.mag-img { height: 100%; width: 100%; position: relative; }
.mag-img img { height: 100%; transition: 0.5s; filter: brightness(0.7); }
.mag-card:hover .mag-img img { transform: scale(1.1); filter: brightness(1); }

.mag-content {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 30px; background: linear-gradient(to top, #000, transparent);
}
.tag { background: var(--accent-cyan); color: var(--bg-dark); padding: 5px 10px; font-size: 0.8rem; font-weight: 700; border-radius: 4px; }
.mag-content h3 { font-size: 2rem; color: #fff; margin: 10px 0; line-height: 1.1; font-family: 'Poppins'; font-weight: 600; }
.read-more { color: var(--accent-gold); font-weight: 600; }

.side-news { display: flex; flex-direction: column; gap: 30px; }
.side-news .mag-img { height: 250px; }



/* =========================================
   SECCIÓN HISTORIA (CORTINA SINGLE)
   ========================================= */

.fade-history-single {
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.fade-banner {
    position: relative;
    width: 100%;
    min-height: 80vh; /* Altura inmersiva */
    display: flex;
    align-items: center;
}

/* La imagen de fondo con Parallax */
.fade-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax al hacer scroll */
    z-index: 1;
}

/* EL EFECTO CORTINA (Degradado Oscuro) */
.fade-banner.left-text::before {
    content: ''; 
    position: absolute; 
    inset: 0; 
    z-index: 2;
    /* Tu gradiente de 90 grados (De izquierda a derecha) */
    background: linear-gradient(
        90deg, 
        rgba(15, 23, 42, 0.95) 0%,     /* Azul muy oscuro/sólido al inicio para leer el texto */
        rgba(15, 23, 42, 0.85) 45%,    /* Se mantiene casi sólido hasta la mitad */
        rgba(15, 23, 42, 0.4) 65%,     /* Comienza el desvanecimiento suave */
        rgba(15, 23, 42, 0) 100%       /* Totalmente transparente al final (Derecha) */
    );
}

/* Contenido de texto */
.fade-content {
    position: relative;
    z-index: 3;
    width: 55%; /* Ocupa un poco más de la mitad */
    padding: 60px 80px;
    margin-right: auto;
}

.fade-content h2 {
    font-family: 'Teko', sans-serif;
    font-size: 4rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
}

.fade-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Marca de agua 1977 */
.year-watermark {
    position: absolute;
    bottom: -20px;
    right: 20px;
    font-family: 'Teko', sans-serif;
    font-size: 15vw;
    font-weight: 800;
    color: rgba(255,255,255,0.05); /* Muy transparente */
    line-height: 1;
    z-index: 2;
    pointer-events: none; /* Para que no estorbe al hacer clic */
}

/* Botón de descarga */
.btn-fade {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 35px;
    border-radius: 50px;
    font-family: 'Teko', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
}

.btn-fade.gold {
    background: transparent; color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}
.btn-fade.gold:hover { background: var(--accent-gold); color: var(--bg-dark); }

/* RESPONSIVE PARA MÓVILES */
@media (max-width: 992px) {
    .fade-banner {
        min-height: auto;
        padding: 80px 0;
    }
    
    .fade-content {
        width: 100%;
        padding: 40px 20px;
    }
    
    /* Tu mismo método, pero en 0deg (de abajo hacia arriba) para celulares */
    .fade-banner.left-text::before {
        background: linear-gradient(
            0deg, 
            rgba(15, 23, 42, 0.95) 0%,   /* Oscuro en la base (donde va el texto) */
            rgba(15, 23, 42, 0.85) 50%,  /* Se mantiene oscuro hasta la mitad */
            rgba(15, 23, 42, 0.3) 75%,   /* Se desvanece más arriba */
            rgba(15, 23, 42, 0) 100%     /* Transparente en la parte superior (donde van las caras) */
        );
    }
    
    .year-watermark { font-size: 8rem; right: 10px; bottom: 10px; }
}
/* =========================================
   MISIÓN Y VISIÓN (ESTILO FUSIÓN / FADE)
   ========================================= */

.mission-vision-unified {
    position: relative;
    /* 1. IMAGEN DE FONDO (Alineada a la derecha) */
    background: url('../Image/Index/mision-vision.jpg') no-repeat center right/cover;
    /* Altura mínima para que se vea imponente */
    min-height: 85vh; 
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* 2. EL DEGRADADO MÁGICO (Izquierda Sólida -> Derecha Transparente) */
.mv-overlay {
    position: absolute;
    inset: 0;
    
    /* TRUCO: Usamos el mismo color base (ej. un azul muy oscuro rgb: 12, 35, 66).
       Solo cambiamos el último número (la opacidad/alpha):
       1 = Sólido
       0 = Invisible
    */
    background: linear-gradient(
        90deg, 
        rgba(12, 35, 66, 0.675) 0%,     /* Azul Sólido al inicio (Izquierda) */
        rgba(12, 35, 66, 0.537) 45%,    /* Se mantiene SÓLIDO hasta casi la mitad (para que se lea el texto) */
        rgba(12, 35, 66, 0.349) 60%,  /* Empieza a desvanecerse suavemente */
        rgba(12, 35, 66, 0) 100%    /* Totalmente transparente al final (Derecha) */
    );
    
    z-index: 1;
    pointer-events: none; /* Opcional: permite dar clic a la imagen de fondo si fuera necesario */
}

/* CONTENEDOR DE TEXTO */
.mv-container-content {
    position: relative;
    z-index: 2; /* Para que el texto flote sobre el degradado */
    width: 100%;
}

.mv-text-wrapper {
    max-width: 650px; /* Limitamos el ancho para que el texto no tape la foto */
    padding: 40px 0;
}

/* ESTILOS DE TEXTO */
.mv-block h2 {
    font-family: 'Teko', sans-serif; /* Tu fuente de títulos */
    font-size: 3.8rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.mv-block p {
    font-family: 'Poppins', sans-serif; /* Tu fuente de cuerpo */
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9); /* Blanco suave */
    line-height: 1.8;
    text-align: justify; /* Justificado como en la referencia */
    font-weight: 300;
}

/* LÍNEA SEPARADORA */
.mv-divider-glow {
    height: 1px;
    width: 100%;
    /* Degradado de Cyan a transparente */
    background: linear-gradient(90deg, #06b6d4, transparent);
    margin: 40px 0;
    opacity: 0.6;
    box-shadow: 0 0 10px #06b6d4; /* Brillo Neón */
}

/* RESPONSIVE (Móvil) */
@media (max-width: 992px) {
    .mission-vision-unified {
        background-position: center center; /* Centramos la imagen */
    }
    
    /* En móvil el degradado cambia a vertical (Arriba sólido -> Abajo transparente) */
    .mv-overlay {
        background: linear-gradient(
            to bottom, 
            var(--navy-dark) 0%, 
            var(--navy-dark) 60%, 
            rgba(43, 44, 62, 0.6) 100%
        );
    }
    
    .mv-text-wrapper {
        max-width: 100%;
        padding: 20px;
    }
    
    .mv-block h2 { font-size: 3rem; }
}

/* =========================================
   6. OFERTA ACADÉMICA (FEATURE TABS)
   ========================================= */
.tabs-nav { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; }
.tab-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--text-muted);
    padding: 15px 30px; border-radius: 50px; cursor: pointer; transition: 0.3s; font-weight: 600;
}
.tab-btn:hover, .tab-btn.active { background: var(--accent-cyan); color: var(--bg-dark); border-color: var(--accent-cyan); }

.tab-pane { display: none; animation: fadeIn 0.5s ease; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.feature-display {
    display: flex; align-items: center; gap: 50px; background: rgba(255,255,255,0.02);
    border-radius: 30px; padding: 50px; border: 1px solid rgba(255,255,255,0.05);
}
.feature-info { flex: 1; }
.feature-info h3 { font-size: 3rem; color: #fff; margin-bottom: 10px; }
.highlight { color: var(--accent-cyan); }
.feature-list { margin: 30px 0; }
.feature-list li { margin-bottom: 10px; font-size: 1.1rem; color: #ddd; display: flex; gap: 10px; }
.feature-list i { color: var(--accent-gold); }

.feature-visual { flex: 1; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.btn-primary.small { font-size: 1rem; padding: 10px 30px; }

/* =========================================
   SECCIÓN CONTACTO: POSTAL FLOTANTE (DARK NEON)
   ========================================= */

.contact-popout-section {
    padding: 100px 0;
    /* Fondo oscuro con un leve degradado para dar profundidad */
    background: linear-gradient(to right, var(--bg-dark), #1e293b);
    overflow: visible; /* Permite que la sombra de la imagen no se corte */
}

.popout-container {
    display: flex;
    align-items: center;
    gap: 60px; /* Espacio generoso entre foto y texto */
    position: relative;
    z-index: 2;
}

/* --- 1. ESTILO DE LA IMAGEN (POSTAL TECH) --- */
.popout-image-box {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px; /* Activa el 3D */
    width: 100px;
    height: 320px;
}

.student-photo-card {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    
    /* EL MARCO "DARK NEON" */
    border-radius: 20px;
    /* Borde fino semitransparente (Glass) */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Sombra oscura profunda + Resplandor Cyan sutil */
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.6), 
        0 0 0 1px rgba(6, 182, 212, 0.2); /* Borde de luz */

    /* LA INCLINACIÓN (FLOTANTE) */
    transform: rotate(-3deg) translateY(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Filtro para que la foto no brille demasiado y encaje en el dark mode */
    filter: brightness(0.9) contrast(1.1);
}

/* HOVER: La foto se endereza, brilla y flota más alto */
.student-photo-card:hover {
    transform: rotate(0deg) scale(1.02) translateY(-15px);
    border-color: var(--accent-cyan); /* El borde se enciende */
    box-shadow: 
        0 40px 80px rgba(0,0,0,0.7), 
        0 0 20px rgba(6, 182, 212, 0.3); /* Resplandor neón */
    filter: brightness(1.1); /* Recupera brillo */
    z-index: 10;
}

/* --- 2. TEXTO --- */
.popout-text-box {
    flex: 1;
}

.popout-label {
    color: var(--accent-cyan);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.popout-text-box h2 {
    font-family: 'Teko', sans-serif;
    font-size: 3.5rem;
    line-height: 1;
    color: #fff;
    margin-bottom: 20px;
}

.highlight-text {
    color: var(--accent-gold); /* Inquietud en dorado */
}

.divider-left {
    width: 60px;
    height: 4px;
    background: var(--accent-cyan);
    margin-bottom: 30px;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.popout-text-box p {
    font-family: 'Poppins', sans-serif;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* --- 3. BOTONES --- */
.popout-buttons {
    display: flex;
    gap: 20px;
}

.btn-pop-primary {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
    transition: 0.3s;
}
.btn-pop-primary:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 0 25px var(--accent-cyan);
}

.btn-pop-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    transition: 0.3s;
}
.btn-pop-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.1);
}

/* RESPONSIVE (Móvil) */
@media (max-width: 992px) {
    .popout-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .divider-left { margin: 0 auto 30px auto; } /* Centrar línea */
    
    .student-photo-card {
        transform: rotate(0deg); /* Recta en móvil */
        max-width: 100%;
    }
    
    .popout-buttons {
        justify-content: center;
    }
}

/* =========================================
   FOOTER DEFINITIVO (DARK NEON & GLASS)
   ========================================= */

.cyber-footer {
    background-color: #050810; /* Un azul casi negro muy profundo */
    position: relative;
    padding-top: 60px;
    font-family: 'Poppins', sans-serif;
    color: #aaa; /* Gris claro para el texto general */
    border-top: 1px solid rgba(255,255,255,0.02);
}

/* La línea superior que brilla */
.footer-top-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-gold), transparent);
    opacity: 0.7;
    box-shadow: 0 0 15px var(--accent-cyan);
}

/* El Grid de 4 Columnas */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Línea divisoria inferior */
}

/* ESTILOS DE COLUMNAS */
.footer-logo { width: 80px; margin-bottom: 20px; filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.3)); }
.footer-desc { font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }

/* Títulos de las columnas */
.footer-heading {
    font-family: 'Teko', sans-serif; font-size: 2rem; color: #fff;
    margin-bottom: 25px; letter-spacing: 1px;
    display: flex; align-items: center;
}
.footer-heading::before {
    content: ''; display: inline-block; width: 5px; height: 25px;
    background: var(--accent-cyan); margin-right: 12px;
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* Listas (Horarios y Contacto) */
.footer-list, .footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; font-size: 0.95rem; }
.footer-list li strong { color: #fff; font-weight: 500; }
.footer-list li i { font-size: 1.3rem; margin-top: 3px; }

.footer-contact-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 0.95rem; transition: 0.3s; }
.footer-contact-list a { color: #aaa; text-decoration: none; transition: 0.3s; }
.footer-contact-list a:hover { color: var(--accent-cyan); text-shadow: 0 0 8px rgba(6, 182, 212, 0.5); }

/* UTILIDADES DE COLOR */
.text-cyan { color: var(--accent-cyan); }
.text-gold { color: var(--accent-gold); }

/* --- REDES SOCIALES (Estilo Botones Cuadrados Glass) --- */
.social-glass-links { display: flex; gap: 12px; }
.social-glass-links a {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; font-size: 1.1rem; border-radius: 8px; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-glass-links a:hover {
    background: var(--accent-cyan); border-color: var(--accent-cyan); color: #000;
    transform: translateY(-5px); box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}

/* --- FORMULARIO NEWSLETTER (Hoja Informativa) --- */
.neon-newsletter {
    display: flex; align-items: center;
    background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; overflow: hidden; transition: 0.3s;
}
.neon-newsletter:focus-within { border-color: var(--accent-cyan); box-shadow: 0 0 15px rgba(6, 182, 212, 0.2); }
.neon-newsletter input {
    background: transparent; border: none; color: #fff; padding: 12px 15px;
    width: 100%; font-family: 'Poppins', sans-serif; font-size: 0.9rem; outline: none;
}
.neon-newsletter input::placeholder { color: #666; }
.neon-newsletter button {
    background: transparent; border: none; color: var(--accent-cyan);
    padding: 0 20px; font-size: 1.2rem; cursor: pointer; transition: 0.3s;
}
.neon-newsletter button:hover { color: #fff; text-shadow: 0 0 10px #fff; }

/* --- PARTE INFERIOR (CONTADOR Y COPYRIGHT) --- */
.footer-bottom {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 30px 0; text-align: center;
}
.visitor-counter-box { margin-bottom: 15px; display: flex; flex-direction: column; align-items: center; }
.counter-label { font-family: 'Teko', sans-serif; font-size: 1.2rem; color: var(--accent-cyan); letter-spacing: 2px; margin-bottom: 5px; }
.counter-img { filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.5)); border-radius: 4px; }
.copyright-text { font-size: 0.85rem; letter-spacing: 1px; color: #555; }


/* =========================================
   RESPONSIVE FOOTER
   ========================================= */
@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); } /* 2 columnas en Tablets/Laptops */
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; } /* 1 columna en celulares */
    .footer-heading { justify-content: center; }
    .social-glass-links { justify-content: center; }
    .footer-contact-list li { justify-content: center; }
    .footer-list li { flex-direction: column; align-items: center; text-align: center; gap: 5px; }
}


/* =========================================
   ZONA DE JUEGOS (DARK NEON STYLE)
   ========================================= */
.games-section { 
    padding: 80px 0; 
    background: rgba(255, 255, 255, 0.01); 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
}

/* Cuadrícula adaptable para las tarjetas */
.games-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 25px; 
    justify-content: center; 
}

/* Tarjeta del juego */
.game-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.game-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
    transform: translateY(-8px);
}

/* Contenedor de la imagen */
.game-img-box {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.game-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
    filter: grayscale(40%); /* Un poco apagadas por defecto */
}

.game-card:hover .game-img-box img {
    transform: scale(1.15);
    filter: grayscale(0%); /* Cobran vida al pasar el mouse */
}

/* Barra inferior con el nombre */
.game-info {
    padding: 15px 10px;
    text-align: center;
    background: rgba(10, 15, 30, 0.95);
    color: #ccc;
    font-family: 'Teko', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.game-card:hover .game-info {
    color: var(--accent-cyan);
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.6);
}

/* Efecto en el icono del control de mando */
.game-info i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.game-card:hover .game-info i {
    transform: rotate(-15deg) scale(1.2); /* El icono se mueve un poco en hover */
}