/* ==========================================
   PALETA OCHENTERA Y CONFIGURACIÓN BÁSICA
   ========================================== */
:root {
    --bg-color: #1a1a24;
    --text-color: #ffffff;
    --neon-pink: #ff007f;
    --neon-cyan: #00f0ff;
    --neon-yellow: #ffee00;
    --panel-bg: #252538;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Courier New', Courier, Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    text-align: center; 
    box-sizing: border-box; /* Centra por defecto todo el texto de la página */
}

/* ==========================================
   JERARQUÍAS TIPOGRÁFICAS 
   ========================================== */
h1, h2, h3 {
    font-family: Georgia, 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0;
    text-align: center;
}
/* Subtítulo "1 PLAYER" en modo Arcade Retro Pixelado */
.arcade-player {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 3px;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    animation: parpadeoArcade 1.2s infinite steps(2);
}

/* ==========================================
   JERARQUÍAS TIPOGRÁFICAS RESPONSIVE
   ========================================== */

/* Título Principal "START GAME" corregido */
h1 {
    font-size: clamp(1.8rem, 6vw, 2.8rem); /* Fluido: Mínimo 1.8rem, máximo 2.8rem */
    font-family: 'Courier New', monospace;
    font-weight: 900;
    color: var(--neon-cyan); 
    text-shadow: 3px 3px 0px var(--neon-pink);
    letter-spacing: 4px;
    margin-bottom: 2px;
    text-align: center;
    text-transform: uppercase;
    word-wrap: break-word; /* Evita roturas feas en celulares */
}

/* EL NOMBRE DEL ESTUDIANTE (Jerarquía Máxima Absoluta) corregido */
header p strong, header > p > strong {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(1.5rem, 8vw, 3.5rem) !important; 
    color: var(--neon-yellow) !important; 
    text-shadow: 2px 2px 0px var(--neon-pink) !important; 
    display: block; 
    text-align: center;
    margin: 10px auto 25px auto;
    line-height: 1.2;
    border-bottom: 6px double var(--neon-cyan); 
    padding-bottom: 15px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-sizing: border-box;
}


/* Subtítulos de las Secciones (Jerarquía Media) */
h2 {
    font-size: 2.2rem;
    color: var(--neon-pink);
    text-shadow: 2px 2px 0px var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
    padding-bottom: 5px;
    margin-bottom: 25px;
    display: inline-block;
}

/* Títulos de Menús e Internos (Jerarquía Baja) */
h3 {
    font-size: 1.4rem;
    color: var(--neon-yellow);
    text-shadow: none;
    margin-bottom: 15px;
}

/* Datos clave destacados dentro de párrafos */
p strong {
    font-size: 1.25rem;
    color: var(--neon-cyan);
    font-family: Georgia, serif;
    letter-spacing: 0.5px;
}

/* ==========================================
   DISEÑO DE CONTENEDORES Y BLOQUES CENTRADOS
   ========================================== */
header, section, footer {
    background-color: var(--panel-bg);
    border: 3px solid var(--neon-pink);
    padding: 30px;
    margin: 0 auto 35px auto; /* Centra los bloques en la pantalla */
    max-width: 800px; /* Ancho máximo para evitar que se estiren de más */
    box-shadow: 8px 8px 0px var(--neon-cyan);
    box-sizing: border-box;
}

/* Imagen de perfil centrada con marco */
figure {
    margin: 30px auto;
    text-align: center;
}

figure img {
    border: 5px solid var(--neon-yellow);
    box-shadow: 10px 10px 0px var(--neon-pink);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Menús de Navegación */
nav {
    margin: 25px auto 0 auto;
    padding: 15px;
    border: 2px dashed var(--neon-cyan);
    max-width: 500px; 
}

/* Listas centradas sin viñetas arruinando la simetría */
ul {
    list-style-type: none; 
    padding: 0;
    margin: 0 auto;
}

li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-align: center;
}

/* Elemento interactivo <details> y <summary> */
details {
    display: block;
    margin: 20px auto 0 auto;
}

summary {
    cursor: pointer;
    color: var(--neon-yellow);
    font-weight: bold;
    font-size: 1.2rem;
    padding: 8px 15px;
    border: 2px solid var(--neon-yellow);
    display: inline-block;
    margin: 0 auto 15px auto;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
}

summary:hover {
    background-color: var(--neon-pink);
    color: #fff;
    border-color: var(--neon-pink);
}

/* Pie de página legal */
footer {
    border-color: #555;
    box-shadow: 5px 5px 0px #333;
    background-color: #111118;
}

footer p small {
    font-size: 0.9rem;
    color: #8a8a9e;
    line-height: 1.5;
    display: block;
}

/* ==========================================
   ANIMACIONES DE ENLACES (EFECTOS HOVER)
   ========================================== */

/* 1. Enlaces Generales del Proyecto (Efecto Botón Arcade) */
/* --- INCLINACIÓN ASIMÉTRICA PARA LOS ÍTEMS DE PROYECTO --- */

/* 1. Definimos la base: los enlaces del menú Proyecto se comportan como bloques individuales */
nav[aria-label="Navegación del Proyecto"] ul li a {
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Transición con un leve efecto rebote ochentero */
}

/* 2. Al pasar el cursor, forzamos que se aplique el fondo y la sombra rígida */
nav[aria-label="Navegación del Proyecto"] ul li a:hover {
    background-color: var(--neon-yellow);
    color: #000;
    box-shadow: 4px 4px 0px var(--neon-pink);
}

/* 3. Asignamos un ángulo de rotación único e inclinado a cada ítem por separado */

/* Primer ítem: Plan (Inclinación leve a la izquierda) */
nav[aria-label="Navegación del Proyecto"] ul li:nth-child(1) a:hover {
    transform: scale(1.1) rotate(-3deg) translateY(-2px);
}

/* Segundo ítem: Mapa (Inclinación más pronunciada a la derecha) */
nav[aria-label="Navegación del Proyecto"] ul li:nth-child(2) a:hover {
    transform: scale(1.1) rotate(4deg) translateY(-2px);
}

/* Tercer ítem: App (Inclinación a la izquierda) */
nav[aria-label="Navegación del Proyecto"] ul li:nth-child(3) a:hover {
    transform: scale(1.1) rotate(-2deg) translateY(-2px);
}

/* Cuarto ítem: Grupo (Inclinación fuerte a la derecha) */
nav[aria-label="Navegación del Proyecto"] ul li:nth-child(4) a:hover {
    transform: scale(1.1) rotate(5deg) translateY(-2px);
}

/* Quinto ítem: Cátedra (Inclinación leve a la derecha) */
nav[aria-label="Navegación del Proyecto"] ul li:nth-child(5) a:hover {
    transform: scale(1.1) rotate(2deg) translateY(-2px);
}
a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    padding: 2px 8px;
    transition: all 0.2s ease-in-out;
}

a:hover {
    background-color: var(--neon-yellow);
    color: #000;
    text-shadow: none;
    transform: translateY(-3px);
    box-shadow: 0px 4px 0px var(--neon-pink);
}

/* 2. Enlaces de Integrantes (Efecto Resplandor de Luz de Neón) */
nav[aria-label="Navegación del Equipo"] ul li a {
    color: var(--neon-cyan);
    font-family: Georgia, serif;
    transition: all 0.3s ease-in-out;
}

nav[aria-label="Navegación del Equipo"] ul li a:hover {
    background-color: transparent; /* Sin fondo amarillo para apreciar el brillo */
    color: var(--neon-pink); /* Cambia a fucsia */
    transform: scale(1.15) translateY(-2px); /* Se agranda y sube un poco */
    box-shadow: none; 
    
    /* Estela de luz neón (Glow) */
    text-shadow: 0 0 5px var(--neon-pink), 
                 0 0 10px var(--neon-pink), 
                 0 0 20px var(--neon-pink);
}
/* --- ESTILO RETRO EXCLUSIVO PARA LAS MATERIAS (APROBADAS Y EN CURSO) --- */

/* Selecciona los elementos de lista únicamente dentro de la Foja Académica */
#foja-academica details ul li {
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-align: center;
    position: relative;
    display: block; 
}

/* Añade el marcador cuadrado retro antes de cada materia */
#foja-academica details ul li::before {
    content: "■"; /* Símbolo de bloque de pixel clásico */
    color: var(--neon-cyan); /* Color cian brillante por defecto */
    font-size: 0.9rem;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
    
    /* Animación sutil de parpadeo estilo cursor antiguo */
    animation: parpadeoPixel 1.5s infinite steps(2);
}

/* Cambia el color del cuadradito a fucsia exclusivamente para el segundo desplegable (Materias en Curso) */
#foja-academica details:last-of-type ul li::before {
    color: var(--neon-pink); 
}

/* Definición de la animación de parpadeo */
@keyframes parpadeoPixel {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}
/* ==========================================
   INCLINACIÓN ASIMÉTRICA EN DATOS DEL TP
   ========================================== */

/* Definimos la base para los nombres en el párrafo */
.integrante-tp {
    display: inline-block; /* Permite que se aplique la rotación y el movimiento */
    color: var(--neon-cyan);
    padding: 1px 6px;
    cursor: default;
    font-family: 'Courier New', Courier, serif;
    font-weight: bold;
    font-size: 1.15rem;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote ochentero */
}

/* Efecto común al pasar el cursor: aparece la caja amarilla y la sombra fucsia */
.integrante-tp:hover {
    background-color: var(--neon-yellow);
    color: #000;
    box-shadow: 4px 4px 0px var(--neon-pink);
}

/* Ángulos de inclinación personalizados para cada uno de los 4 integrantes */

/* Sofia Quintana (Inclinación a la izquierda) */
.integrante-tp:nth-of-type(1):hover {
    transform: scale(1.1) rotate(-4deg) translateY(-2px);
}

/* Joan Rojas (Inclinación pronunciada a la derecha) */
.integrante-tp:nth-of-type(2):hover {
    transform: scale(1.1) rotate(5deg) translateY(-2px);
}

/* Maximo Rolon (Inclinación leve a la izquierda) */
.integrante-tp:nth-of-type(3):hover {
    transform: scale(1.1) rotate(-2deg) translateY(-2px);
}

/* Merlin Tinetti (Inclinación fuerte a la derecha) */
.integrante-tp:nth-of-type(4):hover {
    transform: scale(1.1) rotate(6deg) translateY(-2px);
}
/* ==========================================
   ESTILO EXCLUSIVO Y PROLIJO PARA LA CÁTEDRA
   ========================================== */

.bloque-catedra {
    text-align: center; /* Asegura el centrado estricto de toda la línea */
    margin: 25px auto;
    padding: 15px;
    background-color: #1a1a24; /* Un fondo ligeramente más oscuro para aislar la info */
    border-top: 2px dashed var(--neon-cyan);  /* Líneas divisorias sutiles estilo comando */
    border-bottom: 2px dashed var(--neon-cyan);
    max-width: 90%; /* Evita que el texto toque los bordes del panel principal */
}

.bloque-catedra p {
    font-size: 1.1rem;
    line-height: 1.8; /* Mayor espacio entre líneas para que los nombres respiren y se lean bien */
    margin: 0;
    color: #e0e0e0; /* Un color ligeramente más suave para equilibrar el bloque */
}

/* Resalta las etiquetas internas (Cátedra, Titular, Adjunto, JTP) dentro de este bloque */
.bloque-catedra p strong {
    color: var(--neon-yellow); /* Color amarillo neón para identificar rápido los roles */
    font-size: 1.15rem;
}
/* ==========================================================================
   MÓDULO ADICIONAL: PROTOTIPO DE APLICACIÓN RESPONSIVA MÓVIL (APP VN05)
   ========================================================================== */

/* Fondo específico para la página del simulador */
.vn05-body-app {
    background-color: #1a1a2e !important;
}

/* Encabezado del sitio web adaptado al flujo */
.vn05-site-header {
    text-align: center;
    padding: 20px;
    border-bottom: 2px dashed #3498db;
    margin-bottom: 20px;
}

/* Contenedor que centra el dispositivo en pantallas grandes */
.vn05-app-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Estructura física que emula un Smartphone moderno (Dimensiones estándar) */
.vn05-phone-wrapper {
    width: 100%;
    max-width: 375px;
    height: 760px;
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 12px solid #2c3e50;
    position: relative;
}

/* Header superior interno de la App móvil */
.vn05-app-header {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 16px 14px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.vn05-logo {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.vn05-logo span {
    font-weight: 400;
    font-size: 11px;
    display: block;
    color: #3498db;
    margin-top: 2px;
}

.vn05-btn-emergency {
    background-color: #e74c3c;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: bold;
    width: 100%;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
    transition: transform 0.2s, background-color 0.2s;
}

.vn05-btn-emergency:hover {
    background-color: #c0392b;
    transform: scale(1.02);
}

/* Scroll interno independiente para simular interacción táctil */
.vn05-app-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8fafc;
    color: #2c3e50;
    scroll-behavior: smooth;
}

/* Estilo de los bloques de secciones móviles */
.vn05-section {
    margin-bottom: 24px;
}

.vn05-section h3 {
    font-size: 13px;
    color: #7f8c8d;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 6px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Tarjetas de Agenda y Vencimientos */
.vn05-card-reminder {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.vn05-card-reminder p { margin: 0; font-weight: 500; }
.vn05-card-reminder.alert { background-color: #fde8e8; color: #9b1c1c; border-left: 5px solid #e74c3c; }
.vn05-card-reminder.warning { background-color: #fef3c7; color: #92400e; border-left: 5px solid #f39c12; }
.vn05-card-reminder.success { background-color: #def7ec; color: #03543f; border-left: 5px solid #2ecc71; }
.vn05-card-reminder.info { background-color: #e1effe; color: #1e429f; border-left: 5px solid #3498db; }

.vn05-badge {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.06);
    padding: 3px 8px;
    border-radius: 6px;
}

/* Módulo específico de Carpooling */
.vn05-carpool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    font-size: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.vn05-carpool-card p { margin: 0 0 8px 0; }

.vn05-route-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 11px;
}

.vn05-btn-action {
    width: 100%;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.vn05-btn-action:hover {
    background-color: #2980b9;
}

/* Grilla interactiva de Problemas Comunes */
.vn05-grid-problems {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vn05-card-problem {
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s, border-color 0.2s;
}

.vn05-card-problem:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.vn05-card-problem h4 {
    margin: 0 0 6px 0;
    color: #1e293b;
    font-size: 12px;
    font-weight: 700;
}

.vn05-card-problem p { margin: 0; color: #64748b; line-height: 1.4; }

/* Simulación interactiva del Mapa */
.vn05-mock-map {
    background-color: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 22px 14px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

.vn05-map-pin {
    font-size: 24px;
    margin-bottom: 6px;
    animation: vn05-bounce 2s infinite ease-in-out;
}

.vn05-map-indicator {
    font-size: 10px;
    display: block;
    margin-top: 6px;
    color: #0284c7;
    font-weight: 600;
}

/* Caja de Tips Express y Botones de Soporte */
.vn05-tips-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px;
    font-size: 12px;
    color: #166534;
    margin-bottom: 10px;
    line-height: 1.5;
}

.vn05-tips-box p { margin: 0; }

.vn05-support-actions {
    display: flex;
    gap: 10px;
}

.vn05-btn-secondary {
    flex: 1;
    background: #475569;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.vn05-btn-secondary:hover {
    background-color: #334155;
}

/* Footer con exclusiones (Fuera de Alcance del Brief) */
.vn05-app-footer {
    background: #f1f5f9;
    padding: 12px;
    text-align: center;
    font-size: 9px;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    line-height: 1.4;
}

/* Animaciones funcionales */
@keyframes vn05-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
/* ==========================================================================
   SOLUCIÓN: START GAME CELESTE CON SOMBRA 3D UNIFICADA EN ROSA
   ========================================================================== */

header h1 {
    font-family: 'Press Start 2P', monospace !important;
    text-transform: uppercase;
    font-size: 3.5rem;              
    color: #00E5FF;               /* CAMBIADO A CELESTE ARCADE */
    letter-spacing: -4px;         /* Letras más juntas */
    line-height: 1.1;             
    margin: 40px 0 10px 0;        
    text-align: center;
    display: block;
    
    /* CALIBRADO: Espacio justo y cerrado entre START y GAME */
    word-spacing: 15px !important; 

    /* Engrosa el pixel celeste frontal */
    -webkit-text-stroke: 1px #00E5FF;

    /* 1. PERSPECTIVA KINEMÁTICA HACIA ADELANTE */
    transform: perspective(250px) rotateX(-32deg);          
    transform-origin: top center; 

    /* 2. EXTRUSIÓN CONTINUA EN DIAGONAL HACIA ABAJO A LA IZQUIERDA */
    text-shadow: 
        -1px 1.5px 0px #E91E63,    /* Capa Rosa */
        -2px 3px 0px #E91E63,   
        -3px 4.5px 0px #E91E63,   
        -4px 6px 0px #E91E63,   
        -5px 7.5px 0px #E91E63,   
        -6px 9px 0px #E91E63,   
        -7px 11px 0px #E91E63,    
        -9px 14px 10px rgba(0, 0, 0, 0.9); 
}

/* Forzar la eliminación de capas fantasma anteriores */
header h1::before, 
header h1::after {
    content: none !important;
    display: none !important;
}

/* 3. CONFIGURACIÓN DE 1 PLAYER EN BLANCO Y COMPACTO */
.arcade-player {
    font-family: 'Press Start 2P', monospace !important;
    text-transform: uppercase;
    font-size: 1.6rem;            
    color: #ffffff;               
    letter-spacing: 2px;          
    text-align: center;
    
    /* CONTROL DE DISTANCIA: Se mantiene pegado arriba */
    margin: -15px 0 40px 0;       
    display: block;

    /* Sombra de apoyo limpia para resaltar los pixeles blancos */
    text-shadow: 2px 2px 0px #000000;
}

.equipo-tp {
    font-family: 'Press Start 2P', monospace !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #FFEB3B;
}
/* ==========================================================================
   MAXIMO ROLON: TAMAÑO RECALIBRADO PARA LA PERSPECTIVA INVERSA
   ========================================================================== */
header p strong {
    font-family: 'Press Start 2P', monospace !important;
    text-transform: uppercase;
    color: #FFEB3B !important;    /* Mantiene tu color amarillo original */
    
    /* ENGRANDECENTE ABSOLUTO: Forzamos el tamaño masivo de la captura anterior */
    font-size: 5.2rem !important;  
    letter-spacing: -4px !important; /* Une las letras de forma compacta en tamaño grande */
    
    line-height: 1.2;
    margin: 45px 0 !important;
    text-align: center;
    display: block;

    /* 1. PERSPECTIVA INVERSA: Se abre hacia arriba de forma estable */
    transform: 
        perspective(350px)         
        rotateX(22deg) !important; /* Ángulo positivo para inclinar al revés */
    
    transform-origin: bottom center; 

    /* 2. SOMBREADO ROSA UNIFICADO EN LA DIRECCIÓN DE LA FUGA (HACIA ARRIBA) */
    text-shadow: 
        0px -1.5px 0px #E91E63,    /* Capas compactas proyectadas hacia arriba */
        0.5px -3px 0px #E91E63,   
        1px -4.5px 0px #E91E63,   
        1.5px -6px 0px #E91E63,   
        2px -7.5px 0px #E91E63,   
        2.5px -9px 0px #E91E63,   
        3px -11px 0px #E91E63,    
        4px -14px 10px rgba(0, 0, 0, 0.9) !important; 
}
header h1 {
    font-family: 'Press Start 2P', monospace !important;
    text-transform: uppercase;
    font-size: 5rem;              
    color: #00E5FF;               
    letter-spacing: -4px;         
    line-height: 1.1;             
    margin: 40px 0 10px 0;        
    text-align: center;
    display: block;
    
    /* CAMBIADO A 15PX: Espacio más cerrado entre START y GAME */
    word-spacing: 15px !important; 

    -webkit-text-stroke: 1px #00E5FF;

    /* PERSPECTIVA HACIA ADELANTE */
    transform: perspective(250px) rotateX(-32deg);          
    transform-origin: top center; 

    /* SOMBRA COMPACTA UNIFICADA EN ROSA */
    text-shadow: 
        0px 1.5px 0px #E91E63,    
        -0.5px 3px 0px #E91E63,   
        -1px 4.5px 0px #E91E63,   
        -1.5px 6px 0px #E91E63,   
        -2px 7.5px 0px #E91E63,   
        -2.5px 9px 0px #E91E63,   
        -3px 11px 0px #E91E63,    
        -4px 14px 10px rgba(0, 0, 0, 0.9); 
}
/* ==========================================================================
   GAME OVER: CLONACIÓN EXACTA DE ESTILO, TAMAÑO, COLORES Y PERSPECTIVA
   ========================================================================== */
.arcade-gameover {
    font-family: 'Press Start 2P', monospace !important;
    text-transform: uppercase;
    font-size: 5rem !important;   /* Mismo tamaño gigante */           
    color: #00E5FF !important;    /* Mismo Celeste arcade */           
    letter-spacing: -4px !important;         
    line-height: 1.1 !important;             
    margin: 60px 0 !important;    /* Margen amplio para separarlo del footer */
    text-align: center !important;
    display: block !important;
    
    /* Mismo espaciado de 15px cerrado entre palabras */
    word-spacing: 15px !important; 

    /* Mismo grosor de trazo frontal */
    -webkit-text-stroke: 1px #00E5FF !important;

    /* PERSPECTIVA IDÉNTICA HACIA ADELANTE */
    transform: perspective(250px) rotateX(-32deg) !important;          
    transform-origin: top center !important; 

    /* EXTRUSIÓN 3D IDÉNTICA UNIFICADA EN COLOR ROSA */
    text-shadow: 
        0px 1.5px 0px #E91E63,    
        -0.5px 3px 0px #E91E63,   
        -1px 4.5px 0px #E91E63,   
        -1.5px 6px 0px #E91E63,   
        -2px 7.5px 0px #E91E63,   
        -2.5px 9px 0px #E91E63,   
        -3px 11px 0px #E91E63,    
        -4px 14px 10px rgba(0, 0, 0, 0.9) !important; 
}
.arcade-insertcoin {
    font-family: 'Press Start 2P', monospace !important;
    text-transform: uppercase;
    font-size: 1.6rem !important;            
    color: #ffffff !important;               
    letter-spacing: 2px !important;          
    text-align: center !important;
    margin: -10px 0 50px 0 !important;       
    display: block !important;
    text-shadow: 2px 2px 0px #000000 !important;

    /* ANIMACIÓN PARA QUE TITILE */
    animation: parpadeoArcade 0.8s steps(1, start) infinite !important;
}
@keyframes parpadeoArcade {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* ==========================================
   SISTEMA DE FANTASMAS EN EXTREMOS LATERALES
   ========================================== */

#datos-proyecto {
    position: relative;
}

.contenedor-fantasmas-extremos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-sizing: border-box;
}

/* Posición base corregida para Joan y Merlin (Subida de 45% a 38%) */
.fantasma-fijo {
    position: absolute;
    top: 38%; /* Sube el nivel base para que no pise las letras de abajo */
    transform: translateY(-50%) scale(1);
    width: 90px; 
    height: auto;
    image-rendering: pixelated; 
    
    /* SISTEMA DE OCULTADO ULTRA SEGURO PARA ANIMACIONES */
    opacity: 0;
    visibility: hidden;
    transition: transform 0.15s ease-in-out, opacity 0.15s ease-in-out, top 0.15s ease-in-out, visibility 0.15s ease-in-out;
}

/* EFECTO SELECCIONADO GIGANTE */
.fantasma-fijo.activo {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-50%) scale(1.8);
}


/* MODIFICADOR EXCLUSIVO PARA SOFÍA Y MÁXIMO (Se mantiene bien arriba) */
.fantasma-fijo.fantasma-alto {
    top: 18% !important;
}

/* Lado izquierdo (Sofia y Joan) */
#fantasma-izq {
    left: 45px;
    transform-origin: left center; 
}

/* Lado derecho (Máximo y Merlin) */
#fantasma-der {
    right: 45px;
    transform-origin: right center; 
}

/* Estilos de los nombres de los integrantes */
.contenedor-alien-hover {
    display: inline-block;
}

.integrante-tp {
    color: var(--neon-cyan);
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}

.contenedor-alien-hover:hover .integrante-tp {
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}
/* ==========================================================================
   ESTILOS EXCLUSIVOS PARA DONKEY KONG (NO CAMBIA TU DISEÑO ANTERIOR)
   ========================================================================== */

/* Centrado y renderizado nítido del sprite */
.donkey-pixel {
    display: block;
    margin: 25px auto 10px auto; /* Lo centra horizontalmente debajo de tus materias */
    max-width: 160px;            /* Controla el tamaño del personaje */
    height: auto;
    
    /* Evita que el navegador ponga borroso el Pixel Art */
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Activación del bucle de animación retro */
.art-animado {
    /* steps(1) hace que el cambio de espejo sea instantáneo (estilo arcade de 8 bits) */
    animation: espejoRetro 0.6s steps(1) infinite;
}

/* Animación que voltea la imagen horizontalmente en el mismo lugar */
@keyframes espejoRetro {
    0% {
        transform: scaleX(1);  /* Orientación original */
    }
    50% {
        transform: scaleX(-1); /* Orientación espejada */
    }
    100% {
        transform: scaleX(1);  /* Vuelve a la original */
    }
}
/* ==========================================================================
   INTERFAZ COMPLETAMENTE RESPONSIVE Y ADAPTATIVA (MARCIANOS Y TEXTO)
   ========================================================================= */

/* Caja contenedora fluida */
#nav-proyecto {
    position: relative !important;
    overflow: hidden !important;
    width: 100%;
    max-width: 450px;       /* Ancho máximo en escritorio */
    margin: 0 auto;         /* Centra la caja en la pantalla */
    padding: 20px 10px;
    box-sizing: border-box;
}

/* Base de los marcianos fluida (Usamos variables CSS para controlar el tamaño fácilmente) */
.space-invader-vertical {
    position: absolute !important;
    --ancho-invader: 54px;   /* Tamaño base para pantallas grandes */
    --alto-invader: 41px;
    width: var(--ancho-invader) !important;
    height: var(--alto-invader) !important;
    background-size: contain;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

/* CARRILES DE MOVIMIENTO (Cálculo adaptativo basado en el centro 50%) */
.invader-izq {
    left: 50% !important;
    --distancia-izq: -160px;
    margin-left: var(--distancia-izq) !important;
}

.invader-der {
    left: 50% !important;
    --distancia-der: 110px;
    margin-left: var(--distancia-der) !important;
    --ancho-invader: 59px;   /* El rojo arranca un 10% más grande en escritorio */
    --alto-invader: 45px;
}

/* ==========================================================================
   ADAPTACIÓN PARA CELULARES Y PANTALLAS CHICAS (MEDIA QUERY)
   ========================================================================= */
@media (max-width: 480px) {
    #nav-proyecto {
        max-width: 90%;     /* Se encoge para adaptarse al ancho del celular */
    }
    
    #nav-proyecto h3 {
        font-size: 22px;    /* Achica el título sutilmente */
    }

    #nav-proyecto ul li a {
        font-size: 16px;    /* Ajusta el tamaño de los botones de texto */
        padding: 8px 0;
    }

    /* Reducimos el tamaño de TODOS los marcianos un 25% para que entren en celulares */
    .space-invader-vertical {
        --ancho-invader: 40px;
        --alto-invader: 30px;
    }

    /* Reacomodamos los carriles más cerca del centro para que no se salgan de la caja */
    .invader-izq {
        margin-left: -125px !important;
    }

    .invader-der {
        --ancho-invader: 44px; /* Mantiene la proporción del rojo +10% más grande */
        --alto-invader: 33px;
        margin-left: 85px !important;
    }
}

/* ==========================================================================
   DISPARADORES POR HOVER (MANTIENEN LA LÓGICA ANTERIOR)
   ========================================================================= */
#nav-proyecto:has(.btn-plan:hover) .invader-izq,
#nav-proyecto:has(.btn-app:hover) .invader-izq {
    opacity: 1 !important;
}
#nav-proyecto:has(.btn-plan:hover) .invader-izq.m1,
#nav-proyecto:has(.btn-app:hover) .invader-izq.m1 {
    animation: gesticulaVerde 0.4s steps(1) infinite, bajadaSubida 2.5s ease-in-out infinite !important;
}
#nav-proyecto:has(.btn-plan:hover) .invader-izq.m2,
#nav-proyecto:has(.btn-app:hover) .invader-izq.m2 {
    animation: gesticulaVerde 0.4s steps(1) infinite, bajadaSubida 2.5s ease-in-out infinite !important;
    animation-delay: 0.6s !important;
}

#nav-proyecto:has(.btn-mapa:hover) .invader-der,
#nav-proyecto:has(.btn-grupo:hover) .invader-der {
    opacity: 1 !important;
}
#nav-proyecto:has(.btn-mapa:hover) .invader-der.m1,
#nav-proyecto:has(.btn-grupo:hover) .invader-der.m1 {
    animation: gesticulaRojo 0.4s steps(1) infinite, subidaBajada 2.6s ease-in-out infinite !important;
}
#nav-proyecto:has(.btn-mapa:hover) .invader-der.m2,
#nav-proyecto:has(.btn-grupo:hover) .invader-der.m2 {
    animation: gesticulaRojo 0.4s steps(1) infinite, subidaBajada 2.6s ease-in-out infinite !important;
    animation-delay: 0.6s !important;
}

/* ==========================================================================
   KEYFRAMES DE ANIMACIÓN (COMPATIBLES CON MEDIDAS DINÁMICAS)
   ========================================================================= */
@keyframes gesticulaVerde {
    0%, 100% { background-image: url('../img/invader1.png'); }
    50% { background-image: url('../img/invader2.png'); }
}

@keyframes gesticulaRojo {
    0%, 100% { background-image: url('../img/invader3.png'); }
    50% { background-image: url('../img/invader4.png'); }
}

@keyframes bajadaSubida {
    0% { top: -60px; }
    50% { top: calc(100% - 40px); }
    100% { top: -60px; }
}

@keyframes subidaBajada {
    0% { top: 100%; }
    50% { top: -50px; }
    100% { top: 100%; }
}
/* ==========================================
   ANIMACIÓN VERTICAL PARA EL MARCIANO (APP)
   ========================================== */

@keyframes patrullajeInvader {
    0% {
        transform: scale(1) translateY(0) rotate(0deg);
    }
    25% {
        transform: scale(1.05) translateY(-4px) rotate(-2deg); /* Sube un poco */
    }
    50% {
        transform: scale(1) translateY(0) rotate(0deg);
    }
    75% {
        transform: scale(1.05) translateY(4px) rotate(2deg); /* Baja un poco */
    }
    100% {
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

/* Enlaza el botón de la App para mantener el movimiento vertical continuo */
nav[aria-label="Navegación del Proyecto"] ul li a.btn-app {
    animation: patrullajeInvader 1.6s infinite ease-in-out;
    display: inline-block;
}
/* ==========================================
   REPARACIÓN DE CAJA EN INTEGRANTES
   ========================================== */

/* Quita el fondo amarillo y el bloque rígido para que no se duplique con el efecto de JS */
#datos-proyecto p a {
    display: inline;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

#datos-proyecto p a:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    color: var(--neon-cyan); /* Mantiene un sutil color cian interactivo */
}
/* ==========================================
   AJUSTE DE JERARQUÍA EXCLUSIVO PARA MÓVILES
   ========================================== */
@media (max-width: 480px) {
    /* Ajusta el título para que entre en una o dos líneas prolijas sin romperse */
    h1 {
        font-size: 1.8rem !important;
        letter-spacing: 1px !important;
    }

    /* Reduce el nombre del estudiante para que no desborde su contenedor fucsia */
    header p strong, header > p > strong {
        font-size: 1.8rem !important;
        letter-spacing: 1px !important;
        padding-bottom: 10px !important;
    }
    
    /* Achica levemente los márgenes del body en celulares muy angostos */
    body {
        padding: 10px !important;
    }
}
/* ==========================================
   MOVIMIENTO CONTINUO QUE SE DETIENE AL ABRIR
   ========================================== */

#foja-academica {
    position: relative;
    overflow: hidden;
}

.pista-megaman {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

/* Se muestra al pasar el cursor SOLO mientras el botón esté cerrado (:not([open])) */
.materias-curso:not([open]):hover ~ .pista-megaman {
    opacity: 1;
}

.megaman-corredor {
    position: absolute;
    top: 170px;
    left: 105%;
    width: 80px;
    height: 80px;
}

/* Movimiento continuo (infinite) de ida y vuelta mientras está cerrado */
.materias-curso:not([open]):hover ~ .pista-megaman .megaman-corredor {
    animation: idaYVueltaCompleta 4.0s linear infinite;
}

.megaman-corredor .frame {
    position: absolute;
    bottom: 0;
    left: 0;
    width: auto;
    height: 75px;
    image-rendering: pixelated;
    opacity: 0;
}

/* Los 12 fotogramas se repiten en bucle infinito sincronizados con el cruce */
.materias-curso:not([open]):hover ~ .pista-megaman .frame {
    animation: mostrarFrame 2.0s steps(1) infinite;
}

.f1  { animation-delay: 0.00s !important; }
.f2  { animation-delay: 0.16s !important; }
.f3  { animation-delay: 0.33s !important; }
.f4  { animation-delay: 0.50s !important; }
.f5  { animation-delay: 0.66s !important; }
.f6  { animation-delay: 0.83s !important; }
.f7  { animation-delay: 1.00s !important; }
.f8  { animation-delay: 1.16s !important; }
.f9  { animation-delay: 1.33s !important; }
.f10 { animation-delay: 1.50s !important; }
.f11 { animation-delay: 1.66s !important; }
.f12 { animation-delay: 1.83s !important; }

@keyframes mostrarFrame {
    0%     { opacity: 1; }
    8.34%  { opacity: 0; }
    100%   { opacity: 0; }
}

/* Ciclo infinito: va hacia la izquierda y regresa hacia la derecha */
@keyframes idaYVueltaCompleta {
    /* --- VIAJE 1: DERECHA A IZQUIERDA --- */
    0%    { left: 105%;  transform: translateY(45px) scaleX(-1); }
    12%   { left: 76%;   transform: translateY(45px) scaleX(-1); }
    19%   { left: 66%;   transform: translateY(-35px) scaleX(-1); }
    25%   { left: 50%;   transform: translateY(-55px) scaleX(-1); }
    31%   { left: 32%;   transform: translateY(-35px) scaleX(-1); }
    38%   { left: 22%;   transform: translateY(45px) scaleX(-1); }
    49%   { left: -80px; transform: translateY(45px) scaleX(-1); }

    /* --- GIRO AFUERA DEL BORDE IZQUIERDO --- */
    50%   { left: -80px; transform: translateY(45px) scaleX(1); }

    /* --- VIAJE 2: IZQUIERDA A DERECHA --- */
    62%   { left: 22%;   transform: translateY(45px) scaleX(1); }
    69%   { left: 32%;   transform: translateY(-35px) scaleX(1); }
    75%   { left: 50%;   transform: translateY(-55px) scaleX(1); }
    81%   { left: 66%;   transform: translateY(-35px) scaleX(1); }
    88%   { left: 76%;   transform: translateY(45px) scaleX(1); }
    100%  { left: 105%;  transform: translateY(45px) scaleX(1); }
}


