/* =========================================
   1. VARIABLES Y CONFIGURACIÓN BASE (TEMA CYAN)
   ========================================= */
:root {
    /* --- PALETA "CYAN MODE" --- */
    --bg-base: #121212;       /* Fondo principal negro profundo */
    --bg-card: #181818;       /* Fondo de tarjetas */
    --bg-card-hover: #282828; /* Fondo interactivo */
    --bg-input: #2a2a2a;      /* Fondo de inputs */
    
    --primary: #00E5FF;       /* AZUL CIAN ELÉCTRICO (Acento principal) */
    --primary-hover: #00b8cc;
    --primary-glow: rgba(0, 229, 255, 0.4); /* Resplandor */
    
    --text-main: #FFFFFF;     /* Blanco puro */
    --text-muted: #B3B3B3;    /* Gris medio */
    --text-dark: #000000;     /* Para texto sobre el color cian */
    
    --danger: #ff4444;        /* Rojo */
    --success: #1db954;       /* Verde */
    --warning: #fbbf24;       /* Amarillo/Naranja */

    /* --- RADIOS Y MEDIDAS --- */
    --radius-pill: 500px;     /* Bordes totalmente redondos (Botones) */
    --radius-card: 16px;      /* Bordes de tarjetas */
    --header-height: 70px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    margin: 0;
    padding-bottom: 60px;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3 { margin: 0 0 10px 0; font-weight: 800; }

/* Scrollbar Dark */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #444; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #666; }


/* =========================================
   2. HEADER GLOBAL (Sticky & Glass)
   ========================================= */
/* =========================================
   HEADER PROFESIONAL
   ========================================= */
.pro-header {
    background-color: rgba(0, 0, 0, 0.9); /* Negro casi opaco */
    border-bottom: 1px solid #333;
    padding: 0 30px;
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px); /* Efecto cristal */
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo-img {
    height: 50px; /* Ajusta esto según tu imagen */
    width: auto;
    transition: transform 0.3s;
}
.header-logo-link:hover .logo-img {
    transform: scale(1.05);
}

/* NAVEGACIÓN */
.header-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary); /* Cyan */
    background: rgba(255, 255, 255, 0.05);
}

/* DROPDOWN IDIOMAS */
.lang-dropdown-wrapper {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: 1px solid #444;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    width: 140px;
    display: none; /* Oculto por defecto */
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.lang-menu.show { display: flex; }

.lang-menu button {
    background: transparent;
    border: none;
    color: #ccc;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
    border-bottom: 1px solid #222;
}

.lang-menu button:last-child { border-bottom: none; }

.lang-menu button:hover {
    background: var(--primary);
    color: black;
}

/* BOTÓN LOGIN/PERFIL EN HEADER */
.header-login-btn {
    background: var(--primary);
    color: black;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
    display: flex; align-items: center; gap: 8px;
}
.header-login-btn:hover {
    background: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.header-user-avatar {
    width: 40px; height: 40px;
    background: #333; color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}
.header-user-avatar:hover { transform: scale(1.1); }

/* RESPONSIVE (Móvil) */
@media (max-width: 900px) {
    .header-nav-right { gap: 10px; }
    .nav-link span { display: none; } /* Ocultar texto en tablet, solo iconos */
}

/* =========================================
   3. PÁGINA DE INICIO (INDEX)
   ========================================= */
.search-panel {
    background: linear-gradient(180deg, #1e2529 0%, var(--bg-base) 100%);
    padding: 40px 20px 20px;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
}

/* Buscador Principal */
.search-bar-container {
    max-width: 800px;
    margin: 0 auto 20px;
    display: flex;
    gap: 12px;
}

input[type="text"], select, textarea {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid transparent;
    color: var(--text-main);
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}

input:focus, select:focus, textarea:focus {
    background-color: #333;
    border-color: var(--text-muted);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}

.btn-buscar {
    background-color: var(--text-main);
    color: black;
    border: none;
    padding: 0 32px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s;
    white-space: nowrap;
}
.btn-buscar:hover { transform: scale(1.05); background-color: var(--primary); }

/* Filtros */
.filters-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.filters-container select { flex: 1; min-width: 160px; }

/* Lista de Resultados (Cards) */
.results-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
}

.degree-card {
    background-color: var(--bg-card);
    padding: 20px 25px;
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    border: 1px solid #333;
    transition: all 0.3s;
}

.degree-card:hover {
    background-color: var(--bg-card-hover);
    border-color: #555;
    transform: translateY(-4px);
}

.card-logo {
    width: 65px; height: 65px;
    margin-right: 25px; flex-shrink: 0;
    background: white; border-radius: 50%;
    padding: 8px; display: flex; align-items: center; justify-content: center;
}
.card-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.card-info { flex: 1; }
.card-info h3 { margin: 0 0 5px 0; font-size: 1.15rem; color: var(--text-main); }
.uni-title { color: var(--text-muted); font-size: 0.9rem; }

.meta-info { margin-top: 10px; display: flex; gap: 15px; font-size: 0.85rem; color: #888; }
.meta-info i { color: var(--primary); }

.card-grade {
    text-align: right; min-width: 100px;
    padding-left: 20px; border-left: 1px solid #333;
}
.grade-label { font-size: 0.7rem; text-transform: uppercase; color: var(--text-muted); display: block; }
.grade-value {
    font-size: 2rem; font-weight: 800; color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

/* Paginación */
.pagination-container { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; }
.btn-page {
    background: transparent; border: 1px solid #555; color: var(--text-main);
    padding: 10px 25px; border-radius: var(--radius-pill); cursor: pointer; font-weight: 700;
}
.btn-page:hover:not(:disabled) { border-color: var(--text-main); background: #333; }
.btn-page:disabled { opacity: 0.3; cursor: not-allowed; }


/* =========================================
   4. PÁGINA DE DETALLE (GRADO)
   ========================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

.detail-view {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px solid #333;
    padding: 40px;
}

.detail-header {
    display: flex; align-items: center; gap: 30px; margin-bottom: 30px;
    border-bottom: 1px solid #333; padding-bottom: 30px;
}
.detail-logo img { width: 100px; height: 100px; background: white; border-radius: 50%; padding: 10px; }

.detail-titles h1 { font-size: 2.2rem; margin: 5px 0; color: var(--text-main); }
.detail-titles h2 { color: var(--text-muted); font-weight: 400; font-size: 1.2rem; }

.detail-grade-box {
    margin-left: auto; background: #222;
    padding: 15px 30px; border-radius: 12px;
    text-align: center; border: 1px solid #444;
}
.detail-grade-box span { display: block; font-size: 0.8rem; text-transform: uppercase; color: #888; }
.detail-grade-box strong { font-size: 2.5rem; color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }

/* Grid de Iconos Info */
.detail-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 30px 0;
}
.info-box { background: #222; padding: 20px; border-radius: 12px; text-align: center; border: 1px solid #333; }
.info-box i { color: var(--primary); font-size: 1.5rem; margin-bottom: 10px; }
.info-box p { font-size: 1.2rem; font-weight: bold; margin: 5px 0 0; }

/* Lista de Datos */
.data-list { border: 1px solid #333; border-radius: 12px; overflow: hidden; margin-top: 30px; }
.data-list li {
    padding: 15px 20px; border-bottom: 1px solid #333;
    display: flex; justify-content: space-between; color: var(--text-muted);
}
.data-list li:last-child { border-bottom: none; }
.data-list li strong { color: var(--text-main); }

/* Gráficas y Ponderaciones */
.chart-section, .ponderaciones-section {
    background: #222; border: 1px solid #333;
    border-radius: 12px; padding: 25px; margin-top: 30px;
}

.ponderaciones-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pond-col { border: 1px solid #444; border-radius: 8px; overflow: hidden; }
.pond-header { padding: 10px; display: flex; justify-content: space-between; font-weight: bold; }
/* Estilos Ponderaciones */
.pond-high .pond-header { background: rgba(29, 185, 84, 0.15); color: #1db954; }
.pond-low .pond-header { background: rgba(255, 255, 255, 0.1); color: #ccc; }
.pond-list li { padding: 10px; border-bottom: 1px solid #333; color: #aaa; }

/* Formulario Leads */
.lead-section {
    margin-top: 40px; background: #1a1a1a;
    border: 1px solid var(--primary);
    border-radius: 12px; padding: 30px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.05);
}
.lead-header h3 { color: var(--primary); }
.lead-form textarea { border-radius: 12px; resize: vertical; }

.btn-lead {
    width: 100%; background-color: var(--primary); color: black;
    border: none; padding: 15px; font-size: 1.1rem; font-weight: 800;
    border-radius: 12px; cursor: pointer; margin-top: 10px;
}
.btn-lead:hover { background-color: #fff; box-shadow: 0 0 15px var(--primary-glow); }


/* =========================================
   5. PÁGINA UNIVERSIDADES (GRID)
   ========================================= */
/* =========================================
   5. PÁGINA UNIVERSIDADES (GRID)
   ========================================= */
.uni-grid {
    display: grid;
    /* CAMBIO AQUÍ: Subimos de 180px a 320px para que sean más grandes y quepan 3 */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 30px; /* Un poco más de espacio entre ellas queda mejor */
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.uni-card {
    background-color: var(--bg-card);
    padding: 40px 20px; /* Un poco más de relleno vertical */
    border-radius: var(--radius-card);
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #333;
    height: 100%;
}

.uni-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-8px); /* Un poquito más de elevación */
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15); /* Sombra cyan suave */
}

.uni-logo-wrapper {
    width: 120px; /* Logo más grande para llenar el espacio */
    height: 120px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.uni-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.uni-card h3 {
    color: var(--text-main);
    margin: 0;
    line-height: 1.4;
    font-size: 1.3rem; /* Texto un poco más grande */
    font-weight: 700;
}

.uni-card small {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 8px;
    display: block;
}


/* =========================================
   6. JUEGO "HIGHER OR LOWER" (CORREGIDO)
   ========================================= */
.game-body {
    background-color: var(--bg-base);
    height: 100vh; overflow: hidden;
    display: flex; flex-direction: column;
}

/* Barra de Puntuación */
.score-bar {
    background-color: rgba(0,0,0,0.95);
    border-bottom: 1px solid #333;
    color: white; padding: 12px;
    display: flex; justify-content: center; gap: 30px;
    font-family: monospace; font-size: 1.2rem;
    z-index: 50;
}
.score-bar b { color: var(--primary); text-shadow: 0 0 10px var(--primary); }

.game-container {
    position: relative; flex: 1; display: flex; width: 100%;
}

.game-card {
    flex: 1; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 20px; position: relative; z-index: 1;
    transition: background-color 0.4s;
}

/* FONDOS (Left vs Right) */
.left-card {
    /* Degradado oscuro tirando a negro para que resalte la info */
    background: linear-gradient(135deg, #101010 0%, #1c1c1c 100%);
    z-index: 5;
    border-right: 1px solid #333;
}
.right-card {
    /* Degradado gris muy oscuro */
    background: linear-gradient(135deg, #222 0%, #333 100%);
    z-index: 10;
    box-shadow: -10px 0 40px rgba(0,0,0,0.7); /* Sombra fuerte para separar */
}

/* CONTENIDO DE LA TARJETA (Logo Box, Títulos...) */
.card-content { width: 100%; max-width: 500px; }

/* Caja del Logo (Redonda y blanca) */
.logo-box {
    width: 120px; height: 120px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 25px; /* Centrado */
    display: flex; align-items: center; justify-content: center;
    padding: 15px;
    box-shadow: 0 0 20px rgba(0,229,255, 0.1);
}
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

.card-content h2 {
    font-size: 2rem; margin: 10px 0;
    color: var(--text-main);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.card-content p { color: var(--text-muted); font-size: 1.2rem; margin: 0; }

/* Caja de la Nota Gigante */
.big-grade-box {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
.big-grade-box .label {
    display: block; font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: 2px; color: var(--text-muted); margin-bottom: 5px;
}
.big-grade-box .number {
    font-size: 4.5rem; font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
    line-height: 1;
}

/* VS CIRCLE (Centro) */
.vs-circle {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    background: var(--text-main); color: black;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.5rem; z-index: 20;
    border: 6px solid var(--bg-base);
    box-shadow: 0 0 30px var(--primary-glow);
}

/* Botones de Juego */
.game-controls { margin-top: 30px; }
.game-controls .question { font-size: 1.3rem; margin-bottom: 20px; font-weight: bold; }

.btn-game {
    display: block; width: 240px; margin: 15px auto; padding: 18px;
    font-size: 1.1rem; font-weight: 800; border-radius: var(--radius-pill);
    cursor: pointer; background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: white; transition: all 0.2s;
}

.btn-game:hover {
    background: white; color: black;
    transform: scale(1.05); box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* Resultado Oculto */
.result-box {
    margin-top: 30px;
    animation: fadeIn 0.5s;
}
.result-box .label { font-size: 1rem; color: #aaa; text-transform: uppercase; letter-spacing: 2px; }
.result-box .number { font-size: 4.5rem; font-weight: 900; color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

/* Estados Juego */
.right-card.correct { background: #1db954 !important; }
.right-card.wrong { background: #e91429 !important; }

/* Animaciones */
.move-left-animation {
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.fade-out { opacity: 0; transition: opacity 0.5s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Modal Game Over */
.modal-overlay, .ad-overlay {
    background: rgba(0,0,0,0.95); backdrop-filter: blur(8px);
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000; display: flex; align-items: center; justify-content: center;
}
.modal-content {
    background: var(--bg-card); border: 1px solid #444; color: white;
    padding: 40px; border-radius: 20px; text-align: center; max-width: 400px; width: 90%;
}
.stat-box { background: #222; padding: 15px; border-radius: 10px; margin-bottom: 20px; }
.stat-box strong { font-size: 2rem; color: var(--primary); }

.ad-content { text-align: center; color: white; }
.fake-ad-box {
    width: 300px; height: 250px; background: #222; border: 2px dashed #444;
    margin: 20px auto; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}


/* =========================================
   7. UTILIDADES Y BADGES
   ========================================= */
.badge {
    display: inline-block; padding: 4px 10px; border-radius: 4px;
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    margin-bottom: 6px; letter-spacing: 0.5px;
}
.badge.publico {
    background: rgba(0, 229, 255, 0.1); color: var(--primary);
    border: 1px solid rgba(0, 229, 255, 0.3);
}
.badge.privado {
    background: rgba(255, 68, 68, 0.1); color: var(--danger);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

/* Botón Web Oficial */
.btn-web {
    display: inline-block; background: var(--bg-input); color: var(--text-main);
    padding: 12px 30px; border-radius: var(--radius-pill); font-weight: bold;
    margin-top: 20px; border: 1px solid #444;
}
.btn-web:hover { background: var(--text-main); color: black; }

/* Responsive General */
@media (max-width: 768px) {
    .search-bar-container { flex-direction: column; }
    .degree-card { flex-direction: column; text-align: center; }
    .card-logo { margin: 0 0 15px 0; }
    .card-grade { border-left: none; border-top: 1px solid #333; padding-top: 15px; margin-top: 15px; width: 100%; text-align: center; padding-left: 0; }
    
    .detail-header { flex-direction: column; text-align: center; }
    .detail-grade-box { margin: 20px 0 0 0; width: 100%; }
    
    .game-container { flex-direction: column; }
    .vs-circle { display: none; }
    .game-body { overflow: auto; height: auto; }
}

/* =========================================
   8. FOOTER PREMIUM (PROFESIONAL)
   ========================================= */
.site-footer {
    background-color: #000000; /* Negro puro */
    border-top: 1px solid #222; /* Línea separadora muy sutil */
    padding: 60px 0;
    margin-top: auto;
    color: #999;
    font-size: 0.9rem;
    position: relative;
    z-index: 100;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    /* 3 Columnas: Izquierda, Centro (más ancha), Derecha */
    grid-template-columns: 1fr 1.5fr 1fr; 
    align-items: center; /* Centrado vertical */
    gap: 40px;
}

/* Títulos de sección */
.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    opacity: 0.7;
}

/* --- COLUMNA IZQUIERDA: REDES --- */
.social-col { text-align: left; }

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary); /* Azul Cyan */
    color: #000; /* Icono negro sobre cyan */
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    border-color: var(--primary);
}

.support-text { font-size: 0.8rem; color: #666; }


/* --- COLUMNA CENTRAL: MARCA --- */
.brand-col {
    text-align: center;
    border-left: 1px solid #222;
    border-right: 1px solid #222;
    padding: 0 20px;
}

.footer-logo {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}
.footer-logo i { color: var(--primary); }

.btn-about {
    display: inline-block;
    border: 1px solid #444;
    padding: 8px 20px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
    margin-bottom: 15px;
    background: transparent;
}

.btn-about:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 229, 255, 0.05);
}

.copyright { font-size: 0.75rem; color: #555; margin: 0; }


/* --- COLUMNA DERECHA: LEGAL --- */
.legal-col { text-align: right; }

.legal-links { list-style: none; padding: 0; margin: 0; }
.legal-links li { margin-bottom: 8px; }

.legal-links a {
    color: #888;
    text-decoration: none;
    transition: 0.2s;
    position: relative;
}

.legal-links a:hover {
    color: var(--primary);
}

/* --- RESPONSIVE (MÓVIL) --- */
@media (max-width: 850px) {
    .footer-container {
        grid-template-columns: 1fr; /* Una sola columna */
        text-align: center;
        gap: 50px;
    }

    .social-col, .legal-col, .brand-col {
        text-align: center;
        border: none; /* Quitamos bordes laterales en móvil */
        padding: 0;
    }

    .social-icons { justify-content: center; }
}

/* =========================================
   9. ESTILOS CALCULADORA & PONDERACIONES
   ========================================= */

/* Layout dividido: Izq (Buscador) | Der (Calc) */
.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Paneles Generales */
.search-ponderaciones-panel, .calculator-panel {
    background: var(--bg-card);
    border: 1px solid #333;
    border-radius: var(--radius-card);
    padding: 30px;
    height: fit-content;
}

/* --- ESTILOS BUSCADOR PONDERACIONES --- */
.calc-search-inputs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.pond-results-list {
    margin-top: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Mini Tarjetas de Resultados */
.pond-card {
    background: #222;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    transition: 0.2s;
}
.pond-card:hover { border-color: var(--primary); }

.pond-card-header strong { display: block; color: var(--text-main); font-size: 1rem; }
.pond-card-header small { color: var(--text-muted); }

.tags-wrapper { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.tag-pond {
    background: rgba(0, 229, 255, 0.15);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

/* --- ESTILOS CALCULADORA --- */
.calculator-panel {
    border-top: 4px solid var(--primary); /* Toque de color arriba */
}

.calc-group {
    background: #222;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #333;
}
.calc-group h3 { font-size: 1rem; color: var(--text-main); margin-bottom: 15px; border-bottom: 1px solid #444; padding-bottom: 5px; }

.input-row { display: flex; gap: 15px; margin-bottom: 10px; }
.input-wrap { flex: 1; }
.input-wrap.small { flex: 0.5; } /* Para el select pequeño */

.input-wrap label { display: block; font-size: 0.8rem; color: #aaa; margin-bottom: 5px; }
.input-wrap input, .input-wrap select {
    background: #111;
    border: 1px solid #444;
    color: white;
    padding: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
}
.input-wrap input:focus { border-color: var(--primary); }

/* Resultado Subtotal */
.sub-result { text-align: right; color: #888; font-size: 0.9rem; margin-top: 5px; }
.sub-result span { color: white; font-weight: bold; }

/* Caja Resultado Final */
.final-score-box {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.final-score-box span { display: block; letter-spacing: 2px; color: #666; font-size: 0.9rem; margin-bottom: 5px; }
.final-score-box strong {
    font-size: 4.5rem;
    line-height: 1;
    display: block;
    color: white;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
    transition: color 0.3s;
}

/* Responsive Calculadora */
@media (max-width: 900px) {
    .calc-layout { grid-template-columns: 1fr; } /* Una columna en tablets/movil */
    .calc-search-inputs { flex-direction: column; }
}

/* --- ESTILOS GUÍA EDUCATIVA --- */
.edu-guide-section {
    margin-top: 60px;
    border-top: 1px solid #333;
    padding-top: 40px;
}

.guide-title {
    text-align: center;
    color: var(--text-main);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.guide-card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #333;
}

.guide-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.guide-card p {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 15px;
}

.guide-list {
    list-style: none;
    padding: 0;
}

.guide-list li {
    background: #222;
    padding: 15px;
    border-radius: 8px;
    color: #ccc;
    font-size: 0.9rem;
    border-left: 3px solid var(--primary);
}

@media (max-width: 768px) {
    .guide-grid { grid-template-columns: 1fr; }
}

/* =========================================
   10. SISTEMA DE FAVORITOS (NUEVO)
   ========================================= */

/* Botón Corazón en las tarjetas */
.btn-like {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white; /* Corazón blanco por defecto */
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.btn-like:hover {
    transform: scale(1.15);
    background: rgba(0, 0, 0, 0.9);
}

/* Estado Activo (Likeado) */
.btn-like.active {
    background: var(--text-main);
    color: #ff4444; /* Rojo corazón */
    border-color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

/* Ajuste necesario para la tarjeta */
.degree-card {
    position: relative; /* Para que el botón absoluto se posicione bien */
}

/* --- SIDEBAR (MENÚ LATERAL DERECHO) --- */
.fav-sidebar {
    position: fixed;
    top: 0;
    right: -380px; /* Oculto a la derecha */
    width: 350px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid #333;
    z-index: 3000;
    transition: right 0.3s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}

.fav-sidebar.open {
    right: 0; /* Mostrar */
}

.fav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.fav-header h3 { margin: 0; color: var(--text-main); }
.btn-close-fav {
    background: none; border: none; color: var(--text-muted); 
    font-size: 1.2rem; cursor: pointer;
}

/* Lista de Favoritos */
.fav-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.fav-item {
    background: #222;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #333;
    position: relative;
    transition: 0.2s;
    display: block;
    text-decoration: none;
}
.fav-item:hover { border-color: var(--primary); background: #2a2a2a; }

.fav-item h4 { font-size: 0.9rem; color: white; margin: 0 0 4px 0; padding-right: 20px; }
.fav-item p { font-size: 0.8rem; color: #888; margin: 0; }
.fav-item .fav-grade { 
    position: absolute; bottom: 12px; right: 12px; 
    color: var(--primary); font-weight: bold; font-size: 0.9rem; 
}

/* Botón papelera pequeño */
.btn-remove-fav {
    position: absolute;
    top: 5px; right: 5px;
    background: none; border: none;
    color: #ff4444;
    cursor: pointer;
    opacity: 0.6;
    padding: 5px;
}
.btn-remove-fav:hover { opacity: 1; transform: scale(1.1); }

/* Fondo oscuro al abrir sidebar */
.fav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 2999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.fav-overlay.show { display: block; opacity: 1; }

/* Contador rojo en el botón del menú */
.badge-count {
    background: #ff4444; color: white;
    font-size: 0.7rem; padding: 2px 6px;
    border-radius: 10px; margin-left: 5px;
    vertical-align: top;
}

/* =========================================
   11. SISTEMA DE LOGIN / AUTH
   ========================================= */

.auth-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

/* Efecto de luz superior */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), #bc13fe);
}

.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header h2 { color: var(--text-main); font-size: 2rem; margin-bottom: 5px; }
.auth-header p { color: var(--text-muted); font-size: 0.9rem; }

/* Toggle Login/Registro */
.auth-toggle {
    display: flex;
    background: #111;
    padding: 5px;
    border-radius: 50px;
    margin-bottom: 25px;
    border: 1px solid #333;
}

.auth-toggle button {
    flex: 1;
    background: transparent;
    border: none;
    color: #888;
    padding: 10px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.auth-toggle button.active {
    background: var(--bg-card); /* Gris un poco más claro */
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Inputs con Icono */
.input-icon {
    position: relative;
}
.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}
.input-icon input {
    padding-left: 40px !important; /* Espacio para el icono */
}

/* Botón Auth */
.btn-auth {
    width: 100%;
    background: var(--primary);
    color: black;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    margin-top: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-auth:hover {
    background: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* ESTILOS PARA EL HEADER (Usuario Logueado) */
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    width: 35px; height: 35px;
    background: var(--primary);
    color: black;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}
.btn-logout {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
}
.btn-logout:hover { border-color: #ff4444; color: #ff4444; }

/* =========================================
   HACK GOOGLE TRANSLATE (Invisible)
   ========================================= */

/* Ocultar la barra superior de Google */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
} 

body {
    top: 0px !important; 
}

/* Ocultar tooltips molestos al pasar el ratón */
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Ocultar el widget original por seguridad */
#google_translate_element {
    display: none;
}

/* Asegurar que nuestro header se mantenga arriba */
.pro-header {
    top: 0;
}

/* ESTILOS BANDERAS IDIOMAS */
.lang-flag {
    width: 20px;      /* Ancho fijo */
    height: 15px;     /* Alto fijo */
    object-fit: cover;
    border-radius: 3px; /* Bordes un poco redondeados */
    box-shadow: 0 0 2px rgba(0,0,0,0.5); /* Sombra sutil para que resalten sobre fondo oscuro */
}

/* Ajuste del botón para alinear imagen y texto */
.lang-menu button {
    display: flex;
    align-items: center;
    gap: 12px; /* Espacio entre bandera y texto */
    font-weight: 500;
}
/* =========================================
   HACK DEFINITIVO GOOGLE TRANSLATE
   ========================================= */

/* 1. Ocultar el iframe de la barra superior */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 2. Forzar al body a quedarse arriba */
body {
    top: 0px !important;
    position: static !important;
    margin-top: 0px !important;
}

/* 3. Ocultar tooltips y otros elementos */
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

#google_translate_element {
    display: none !important;
}

/* 4. Asegurar el header */
.pro-header {
    top: 0 !important;
}

/* Badge del contador en el Header */
.header-badge {
    background-color: #ff4444;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: top;
    box-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

/* Efecto hover para el botón de favoritos */
.btn-fav-header:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
}

/* --- WIDGET SEMÁFORO EN HEADER --- */
.header-grade-widget {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 50px;
    border: 1px solid #333;
    margin-right: 10px;
}

.header-grade-widget .input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-grade-widget input {
    background: transparent !important;
    border: none !important;
    color: white !important;
    width: 70px !important; /* Ancho fijo pequeño */
    padding: 5px 0 !important;
    font-size: 0.9rem !important;
    font-weight: bold;
    text-align: center;
}

/* Quitar flechas del input number */
.header-grade-widget input::-webkit-outer-spin-button,
.header-grade-widget input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Botones Mini (Guardar/Borrar) */
.btn-mini-action {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: 0.2s;
}

.btn-mini-action.save {
    background: rgba(29, 185, 84, 0.2);
    color: #1db954;
}
.btn-mini-action.save:hover {
    background: #1db954;
    color: white;
}

.btn-mini-action.clear {
    background: transparent;
    color: #666;
}
.btn-mini-action.clear:hover {
    color: #ff4444;
}

/* Ajuste responsive: Ocultar textos largos en móvil para que quepa el input */
@media (max-width: 1100px) {
    .nav-link span { display: none; } /* Solo iconos */
    .header-grade-widget { margin-right: 0; }
}

/* --- NÚMERO DENTRO DEL CORAZÓN --- */

.heart-number {
    position: absolute;       /* Flota sobre el botón */
    top: 50%;                 /* Centrado vertical */
    left: 50%;                /* Centrado horizontal */
    transform: translate(-50%, -55%); /* Ajuste fino para centrarlo exacto ópticamente */
    
    color: white;             /* Texto blanco */
    font-size: 0.8rem;        /* Tamaño pequeño para que quepa */
    font-weight: 900;         /* Muy negrita */
    font-family: sans-serif;  /* Fuente limpia */
    
    pointer-events: none;     /* Para que el click pase a través del número */
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Sombrita para leerse mejor */
    z-index: 10;
}

/* Efecto al pasar el ratón: el corazón late */
.btn-fav-header:hover i {
    transform: scale(1.1);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Si quieres que el número también crezca con el corazón: */
.btn-fav-header:hover .heart-number {
    transform: translate(-50%, -55%) scale(1.1);
    transition: transform 0.2s;
}

/* =========================================
   ALINEACIÓN PERFECTA DEL HEADER
  

   /* =========================================
   FORMULARIOS PREMIUM (CONTACTO Y DETALLES)
   ========================================= */

/* Contenedor del Input con Icono */
.premium-input-group {
    position: relative;
    margin-bottom: 25px; /* Espacio entre campos */
}

/* El Icono (Izquierda) */
.premium-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666; /* Gris apagado por defecto */
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none; /* Click a través del icono */
}

/* Ajuste especial para el icono del Textarea (que se quede arriba) */
.premium-input-group.textarea-group .premium-icon {
    top: 25px; 
    transform: none;
}

/* El Campo (Input / Textarea) */
.premium-input {
    width: 100%;
    background: #151515; /* Fondo muy oscuro */
    border: 2px solid #333; /* Borde sutil */
    color: white;
    padding: 18px 20px 18px 55px; /* Relleno extra a la izq para el icono */
    border-radius: 15px; /* Bordes redondeados modernos */
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
}

/* EFECTO FOCUS (Cuando escribes) */
.premium-input:focus {
    background: #000;
    border-color: var(--primary); /* Borde Cyan */
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15); /* Resplandor Cyan */
}

/* El icono también se ilumina al hacer focus en el input hermano */
.premium-input:focus + .premium-icon,
.premium-input:not(:placeholder-shown) + .premium-icon {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.premium-input-group.textarea-group .premium-input:focus + .premium-icon {
    transform: scale(1.1); /* Sin translateY en textarea */
}

/* Etiquetas (Labels) flotantes opcionales o fijas arriba */
.premium-label {
    display: block;
    margin-left: 20px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #aaa;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Botón de Enviar Mejorado */
.btn-premium-send {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #00b8cc 100%);
    color: black;
    border: none;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 50px; /* Botón pastilla */
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-premium-send:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.5);
    color: white; /* Texto blanco al pasar ratón queda pro */
}

.btn-premium-send:active {
    transform: translateY(1px);
}

/* =========================================
   PARCHE DEFINITIVO: ALINEACIÓN ICONOS Y TEXTO
   ========================================= */
/* Pegar esto al final de style.css */

/* 1. ARREGLAR TEXTO QUE SE ESCRIBE DENTRO DEL ICONO */
/* =========================================
   SOLUCIÓN FINAL DE ALINEACIÓN DE FORMULARIOS
   ========================================= */

/* 1. Wrapper que aísla el input del label */
.input-wrapper-fix {
    position: relative; /* El icono se posicionará respecto a ESTA caja, no al label */
    width: 100%;
}

/* 2. El Input */
.premium-input {
    width: 100%;
    padding-left: 55px !important; /* Espacio para que el texto no pise el icono */
    height: 55px; /* Altura fija */
    background: #151515;
    border: 2px solid #333;
    border-radius: 12px;
    color: white;
    outline: none;
    transition: 0.3s;
}

/* 3. El Icono (Centrado perfecto) */
.premium-icon {
    position: absolute;
    left: 20px;
    top: 50%; /* Mitad exacta del wrapper */
    transform: translateY(-50%); /* Corrección exacta del centro */
    color: #666;
    pointer-events: none;
    font-size: 1.1rem;
    margin: 0 !important; /* Quitamos márgenes raros */
    z-index: 10;
}

/* 4. Excepción para el Textarea (Mensaje) */
.textarea-group .premium-input {
    height: auto; /* Altura libre */
    padding-top: 18px; /* Espacio arriba */
}

/* El icono del mensaje se queda arriba */
.textarea-group .premium-icon {
    top: 25px; 
    transform: none; 
}

/* Efecto Focus (Resplandor) */
.premium-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}
.premium-input:focus + .premium-icon {
    color: var(--primary);
}

/* =========================================
   NUEVO GAME OVER Y PUBLICIDAD
   ========================================= */

/* 1. Panel de Resultados (Tarjeta Flotante) */
.game-over-panel {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #181818;
    border: 2px solid #333;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 0 100px rgba(0,0,0,0.9);
    z-index: 5000; /* Muy por encima */
    display: none; /* Oculto por defecto */
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn { from { transform: translate(-50%, -45%) scale(0.9); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

.game-over-panel h2 {
    font-size: 2rem; color: white; margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

/* Caja de Puntuación */
.final-score-box {
    background: #111;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #333;
    margin-bottom: 25px;
    display: flex; justify-content: space-around;
}

.score-item span { display: block; color: #888; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.score-item strong { display: block; font-size: 2.5rem; color: var(--primary); line-height: 1; margin-top: 5px; }

/* Botones de Acción */
.action-buttons { display: flex; gap: 10px; margin-bottom: 25px; }

.btn-game-action {
    flex: 1; padding: 15px; border: none; border-radius: 12px;
    font-size: 1rem; font-weight: 800; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: 0.2s;
}

.btn-game-action.restart {
    background: var(--primary); color: black;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}
.btn-game-action.restart:hover { transform: scale(1.05); background: white; }

.btn-game-action.share { background: #1DA1F2; color: white; }
.btn-game-action.share:hover { filter: brightness(1.2); }

/* 2. Anuncio Cuadrado (Abajo del panel) */
.square-ad-container {
    background: #000;
    border: 2px dashed #333;
    width: 100%;
    height: 250px; /* Altura estándar de anuncio MPU */
    border-radius: 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #444;
}

/* 3. Interstitial (Anuncio Pantalla Completa al reiniciar) */
.interstitial-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999; /* El más alto de todos */
    display: none;
    align-items: center; justify-content: center;
    cursor: pointer;
}

.interstitial-content {
    text-align: center;
    animation: pulse 2s infinite;
}

.click-hint {
    margin-top: 20px; color: var(--primary);
    font-size: 1.2rem; font-weight: bold;
    text-transform: uppercase; letter-spacing: 2px;
}