/* ============================================
   ACADEMIA VIRTUAL v9.1 - GLASS HYBRID
   Background: Emissive/Orbital (Opcion B)
   Components: Dark/Neon Glass
   ============================================ */

:root {
    /* --- PALETA NEON --- */
    --primary: #00f3ff;
    --secondary: #bc13fe;
    --accent: #2196f3;
    --success: #39ff14;
    --warning: #ff9900;

    /* --- VARIABLES INLINE (para sobreescribir inline styles en modo claro) --- */
    --card-subj-bg:       rgba(255,255,255,.10);
    --card-count-color:   #e8f3ff;
    --color-lock:         #ffd166;
    --color-lock-hint:    #ffd166;
    --sim-bg:             rgba(255,255,255,.10);
    --sim-border:         rgba(148,255,204,.55);
    --sim-name-color:     #b7ffd8;
    --sim-desc-color:     #d8ffec;
    --footer-sub-color:   rgba(0,243,255,.50);

    /* --- FONDOS EMISIVOS (Opcion B - menos oscuro, mas luminoso) --- */
    --bg-base: #0a1225;
    --bg-emissive:
        radial-gradient(ellipse 80% 60% at 50% 25%, rgba(33, 150, 243, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 8% 50%, rgba(188, 19, 254, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 92% 70%, rgba(0, 243, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 120% 80% at 50% 100%, rgba(33, 80, 200, 0.12) 0%, transparent 50%);

    /* Paneles Glass */
    --bg-panel: rgba(10, 25, 47, 0.7);
    --bg-panel-hover: rgba(15, 30, 55, 0.85);

    /* --- EFECTOS --- */
    --glass-blur: blur(16px);
    --border-glass: 1px solid rgba(0, 243, 255, 0.2);
    --border-hover: 1px solid rgba(188, 19, 254, 0.5);
    --shadow-neon: 0 0 20px rgba(0, 243, 255, 0.2);
    --shadow-neon-strong: 0 0 25px rgba(0, 243, 255, 0.35), 0 0 50px rgba(0, 243, 255, 0.1);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-purple: 0 0 20px rgba(188, 19, 254, 0.15);

    /* --- TIPOGRAFIA --- */
    --font-display: 'Orbitron', 'Segoe UI', sans-serif;
    --font-body: 'Rajdhani', 'Segoe UI', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --text-main: #e0e6ed;
    --text-muted: #94a3b8;

    /* --- TRANSICIONES --- */
    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   MODO CLARO (PREMIUM GLASSMORPHISM)
   ============================================ */
[data-theme="light"] {
    --primary:        #1e40af;   /* blue-800 */
    --secondary:      #6d28d9;   /* violet-700 */
    --success:        #15803d;   /* green-700 */
    --warning:        #b45309;   /* amber-700 */

    --card-subj-bg:       rgba(255,255,255,.62);
    --card-count-color:   #19345a;
    --color-lock:         #b45309;
    --color-lock-hint:    #b45309;
    --sim-bg:             rgba(255,255,255,.62);
    --sim-border:         rgba(5,150,105,.50);
    --sim-name-color:     #064e3b;
    --sim-desc-color:     #064e3b;
    --footer-sub-color:   rgba(30,58,138,.65);

    --bg-base:        #c7dff7;
    --bg-emissive:
        radial-gradient(ellipse 80% 55% at 50% 20%, rgba(59,130,246,.20) 0%, transparent 65%),
        radial-gradient(ellipse 55% 55% at 5%   55%, rgba(109,40,217,.10) 0%, transparent 55%),
        radial-gradient(ellipse 55% 55% at 95%  75%, rgba(30,64,175,.12)  0%, transparent 55%);
    --bg-panel:       rgba(255,255,255,.72);
    --bg-panel-hover: rgba(255,255,255,.92);

    --glass-blur: blur(24px);
    --border-glass:   1px solid rgba(30,64,175,.22);
    --shadow-neon:    0 6px 24px rgba(30,64,175,.15), 0 1px 4px rgba(0,0,0,.08);
    --shadow-neon-strong: 0 8px 30px rgba(30,64,175,.3);

    --text-main:      #0c1b33;
    --text-muted:     #1e3a5f;
}

/* ============================================
   BOTONES HEADER CONTROLS
   ============================================ */
.mode-toggle, .btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.75em;
    cursor: pointer;
    font-family: var(--font-display);
    letter-spacing: 1px;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    z-index: 200;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    flex-shrink: 0;
    min-height: 38px;
    min-width: 44px;
}

.mode-toggle span, .btn-back-home span {
    pointer-events: none;
}

[data-theme="light"] .mode-toggle,
[data-theme="light"] .btn-back-home {
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(30,64,175,0.4);
    color: #1e40af;
}

.mode-toggle:hover, .btn-back-home:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

[data-theme="light"] .mode-toggle:hover,
[data-theme="light"] .btn-back-home:hover {
    background: rgba(255,255,255,0.96);
}

@media (max-width: 768px) {
    .text-hide-mob, .hdr-text { display: none !important; }
    .header-content { justify-content: space-between; gap: 5px; }
    header h1 { font-size: 0.85rem; white-space: nowrap; }
    .mode-toggle, .btn-back-home { padding: 8px 12px; font-size: 0.85em; }
    .header-content > div:first-child {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }
    .header-content > div:first-child h1 {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ============================================
   RESET Y BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    background-image: var(--bg-emissive);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
}

/* Scrollbar Neon */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #060d1a; }
::-webkit-scrollbar-thumb { background: rgba(0, 243, 255, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Seleccion */
::selection { background: var(--primary); color: #050b14; }
::-moz-selection { background: var(--primary); color: #050b14; }

/* Canvas de particulas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   CONTENEDOR
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 40px 20px;
    z-index: 5;
}

/* Resplandor central emisivo detras del hero */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(33, 150, 243, 0.18) 0%, rgba(188, 19, 254, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    position: relative;
    text-shadow: 2px 2px 0px rgba(0, 243, 255, 0.3), -2px -2px 0px rgba(188, 19, 254, 0.3);
    animation: heroTitleEntry 1s var(--ease-out-quart) both;
}

@keyframes heroTitleEntry {
    0% { opacity: 0; transform: translateY(30px) scale(0.96); letter-spacing: 15px; }
    60% { opacity: 1; letter-spacing: 6px; }
    100% { transform: translateY(0) scale(1); letter-spacing: 4px; }
}

/* Typing cursor */
.typing-cursor::after {
    content: '|';
    color: var(--primary);
    animation: cursorBlink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--primary);
    margin-bottom: 3rem;
    max-width: 800px;
    letter-spacing: 1px;
    opacity: 0.9;
    min-height: 1.8em;
    animation: heroSubEntry 1s var(--ease-out-quart) 0.3s both;
}

@keyframes heroSubEntry {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 0.9; transform: translateY(0); }
}

/* Boton CTA */
.btn-cta {
    background: rgba(0, 243, 255, 0.05);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 1.2rem;
    padding: 18px 50px;
    border: 1px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-out-quart);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    animation: heroSubEntry 1s var(--ease-out-quart) 0.6s both;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.35), transparent);
    transition: 0.5s;
}

.btn-cta:hover {
    background: rgba(0, 243, 255, 0.15);
    box-shadow: 0 0 30px var(--primary), inset 0 0 10px rgba(0, 243, 255, 0.15);
    text-shadow: 0 0 10px var(--primary);
    letter-spacing: 3px;
}

.btn-cta:hover::before { left: 100%; }

/* ============================================
   HEADER
   ============================================ */

header {
    background: rgba(5, 11, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.6s var(--ease-out-quart) both;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: white;
    letter-spacing: 1px;
}

.status-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--success);
    background: rgba(57, 255, 20, 0.08);
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid rgba(57, 255, 20, 0.25);
}

/* ============================================
   TABS NAVEGACION
   ============================================ */

.tabs {
    padding: 30px 0;
    text-align: center;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 30px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 50;
}

.tabs .container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-button {
    background: var(--bg-panel);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
}

/* Linea inferior animada en tabs */
.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 6px var(--primary);
}

.tab-button:hover {
    color: #fff;
    border-color: rgba(0, 243, 255, 0.3);
    transform: translateY(-2px);
}

.tab-button:hover::after {
    width: 70%;
}

.tab-button.active {
    color: #fff;
    background: rgba(0, 243, 255, 0.08);
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
}

.tab-button.active::after {
    width: 100%;
}

/* ============================================
   CONTENIDO TABS
   ============================================ */

main {
    padding: 40px 0 60px;
    min-height: 50vh;
}

.tab-content {
    display: none;
    padding-bottom: 40px;
    transition: opacity 0.4s var(--ease-out-quart), transform 0.4s var(--ease-out-quart);
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #ffffff;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(0, 243, 255, 0.2);
}

.tab-content > p {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 35px;
    font-weight: 500;
}

/* ============================================
   TARJETAS
   ============================================ */

.card,
.recurso-card,
.prueba-card {
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--border-glass);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 8px;
    position: relative;
    transition: all 0.4s var(--ease-out-quart);
    overflow: hidden;
}

/* Linea superior gradiente animada */
.card::before,
.recurso-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: gradientSlide 4s linear infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Corner accent */
.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    transition: all 0.4s ease;
    opacity: 0.4;
}

.card:hover::after {
    width: 100%;
    opacity: 0.8;
}

.card:hover,
.recurso-card:hover,
.prueba-card:hover {
    transform: translateY(-6px);
    border-color: rgba(188, 19, 254, 0.4);
    box-shadow: var(--shadow-card), var(--shadow-purple);
}

.card h3,
.recurso-card h3,
.prueba-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.card p,
.recurso-card p,
.prueba-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* ============================================
   BADGES
   ============================================ */

.badge,
.tipo-recurso {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 5px 12px;
    background: rgba(33, 150, 243, 0.12);
    color: var(--accent);
    border: 1px solid rgba(33, 150, 243, 0.35);
    border-radius: 3px;
    margin-bottom: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   INFO DE TARJETAS
   ============================================ */

.info, .prueba-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 15px;
}

.info span, .prueba-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.card-meta {
    margin-top: 12px;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.8;
}

/* ============================================
   RECURSOS GRID
   ============================================ */

.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.recurso-card {
    text-align: center;
    padding: 28px;
}

.recurso-card h3 {
    font-size: 1.15rem;
}

.duracion {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

/* ============================================
   BOTONES
   ============================================ */

.btn-inscribir,
.btn-acceder,
.btn-comenzar {
    font-family: var(--font-display);
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 10px 26px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn-inscribir::before,
.btn-acceder::before,
.btn-comenzar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.15), transparent);
    transition: left 0.4s;
}

.btn-inscribir:hover,
.btn-acceder:hover,
.btn-comenzar:hover {
    background: rgba(0, 243, 255, 0.1);
    color: #fff;
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.btn-inscribir:hover::before,
.btn-acceder:hover::before,
.btn-comenzar:hover::before { left: 100%; }

/* ============================================
   PRUEBA CARD
   ============================================ */

.prueba-card {
    border-left: 3px solid var(--primary);
}

/* ============================================
   INFO BOX
   ============================================ */

.info-box {
    background: rgba(33, 150, 243, 0.04);
    border-left: 3px solid var(--accent);
    padding: 22px 25px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
}

.info-box h3 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 22px;
    position: relative;
    line-height: 1.7;
    font-size: 0.95rem;
}

.info-box li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-family: var(--font-display);
    font-size: 0.8rem;
}

.info-box li strong {
    color: #ffffff;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero h1 { letter-spacing: 3px; }
    .tab-content h2 { font-size: 1.6rem; }
}

@media (max-width: 768px) {
    .hero {
        min-height: 75vh;
        padding: 80px 15px 40px;
    }

    .header-content {
        flex-direction: row;
        gap: 8px;
        justify-content: space-between;
    }

    .tabs .container {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.75rem;
    }

    .btn-cta {
        padding: 14px 35px;
        font-size: 1rem;
        clip-path: none;
    }

    .card, .recurso-card, .prueba-card {
        padding: 22px;
    }

    .recursos-grid {
        grid-template-columns: 1fr;
    }

    .info, .prueba-info {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero h1 { letter-spacing: 2px; }

    .container { padding: 0 12px; }

    .tab-button {
        padding: 10px 15px;
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}

/* ============================================
   HERO DUAL BUTTONS (Acceso General + IE San Lucas)
   ============================================ */

.hero-buttons {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    animation: heroSubEntry 1s var(--ease-out-quart) 0.6s both;
}

.btn-general,
.btn-san-lucas {
    font-family: var(--font-display);
    font-size: 1.1rem;
    padding: 20px 45px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-out-quart);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
}

/* Boton Acceso General - Cyan Neon */
.btn-general {
    background: rgba(0, 243, 255, 0.06);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
}

.btn-general::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.25), transparent);
    transition: left 0.5s;
}

.btn-general:hover {
    background: rgba(0, 243, 255, 0.15);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3), inset 0 0 10px rgba(0, 243, 255, 0.1);
    transform: translateY(-3px);
    text-shadow: 0 0 8px var(--primary);
}

.btn-general:hover::before { left: 100%; }

/* Boton IE San Lucas - Gold/Amber */
.btn-san-lucas {
    background: rgba(255, 170, 0, 0.06);
    color: #ffaa00;
    border: 2px solid #ffaa00;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.15);
}

.btn-san-lucas::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 170, 0, 0.25), transparent);
    transition: left 0.5s;
}

.btn-san-lucas:hover {
    background: rgba(255, 170, 0, 0.15);
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.3), inset 0 0 10px rgba(255, 170, 0, 0.1);
    transform: translateY(-3px);
    text-shadow: 0 0 8px #ffaa00;
}

.btn-san-lucas:hover::before { left: 100%; }

/* Responsive dual buttons */
@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        width: 100%;
        max-width: 350px;
    }

    .btn-general,
    .btn-san-lucas {
        font-size: 0.9rem;
        padding: 16px 30px;
        justify-content: center;
    }
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.login-box {
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--border-glass);
    border-radius: 12px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffaa00, var(--secondary), #ffaa00);
    background-size: 200% 100%;
    animation: gradientSlide 4s linear infinite;
}

.login-box h2 {
    font-family: var(--font-display);
    color: #ffaa00;
    font-size: 1.4rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-align: center;
}

.login-box .subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-field select,
.login-field input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.login-field select:focus,
.login-field input:focus {
    outline: none;
    border-color: #ffaa00;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.15);
}

.login-field select option {
    background: #0a1225;
    color: var(--text-main);
}

.btn-login {
    width: 100%;
    font-family: var(--font-display);
    background: rgba(255, 170, 0, 0.1);
    color: #ffaa00;
    border: 2px solid #ffaa00;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    margin-top: 10px;
}

.btn-login:hover {
    background: rgba(255, 170, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.25);
}

.login-error {
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.3);
    color: #ff6b6b;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.login-error.visible {
    display: block;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary);
}

/* ============================================
   SUBJECTS GRID (hero — cards asignaturas)
   ============================================ */

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .subjects-grid {
        grid-template-columns: 1fr;
    }
}

.subject-card {
    background: var(--card-subj-bg);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 18px 24px;
    text-align: center;
    text-decoration: none;
    display: grid;
    grid-template-rows: auto auto auto auto;
    align-items: start;
    transition: transform 0.25s var(--ease-out-quart), box-shadow 0.25s;
}

a.subject-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(0, 243, 255, 0.25);
}

.subject-card.locked {
    cursor: default;
    opacity: 0.88;
}

.subject-icon {
    font-size: 1.8em;
    margin-bottom: 5px;
}

.subject-name {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95em;
}

.subject-count {
    color: var(--card-count-color);
    font-size: 0.7em;
    margin-top: 4px;
}

.subject-lock {
    color: var(--color-lock);
    font-size: 0.65em;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* ============================================
   HERO INFO SECTION (below buttons)
   ============================================ */

.hero-info {
    margin-top: 50px;
    max-width: 700px;
    width: 100%;
    animation: heroSubEntry 1s var(--ease-out-quart) 0.9s both;
}

/* ============================================================
   MODO CLARO — Academia Día (v1.0 — 2026-03-23)
   Toggle: data-theme="light" en <html>
   Inspirado en Ocean Depths + Arctic Frost palettes
   Fondo azul cielo rico · Texto navy oscuro · Botones sólidos
   ============================================================ */

[data-theme="light"] {
    --primary:    #1e40af;   /* blue-800 — visible sobre fondo claro */
    --secondary:  #6d28d9;   /* violet-700 */
    --success:    #15803d;   /* green-700 */
    --warning:    #b45309;   /* amber-700 */
    --accent:     #0284c7;   /* sky-600 */

    --bg-base:    #c7dff7;
    --bg-emissive:
        radial-gradient(ellipse 80% 55% at 50% 20%, rgba(59,130,246,.20) 0%, transparent 65%),
        radial-gradient(ellipse 55% 55% at 5%   55%, rgba(109,40,217,.10) 0%, transparent 55%),
        radial-gradient(ellipse 55% 55% at 95%  75%, rgba(30,64,175,.12)  0%, transparent 55%);
    --bg-panel:       rgba(255,255,255,.72);
    --bg-panel-hover: rgba(255,255,255,.92);

    --glass-blur:     blur(14px);
    --border-glass:   1px solid rgba(30,64,175,.22);
    --border-hover:   1px solid rgba(109,40,217,.35);
    --shadow-neon:    0 6px 24px rgba(30,64,175,.15), 0 1px 4px rgba(0,0,0,.08);
    --shadow-neon-strong: 0 8px 28px rgba(30,64,175,.25), 0 2px 8px rgba(0,0,0,.10);
    --shadow-card:    0 4px 20px rgba(30,64,175,.12);
    --shadow-purple:  0 0 16px rgba(109,40,217,.10);

    --text-main:  #0c1b33;   /* navy casi negro — máximo contraste */
    --text-muted: #1e3a5f;   /* navy oscuro legible */

    /* Overrides inline colors */
    --card-subj-bg:       rgba(255,255,255,.65);
    --card-count-color:   rgba(30,64,175,.55);
    --color-lock:         #b45309;   /* ámbar oscuro — visible en fondo claro */
    --color-lock-hint:    #b45309;
    --sim-bg:             rgba(255,255,255,.65);
    --sim-border:         rgba(5,150,105,.45);
    --sim-name-color:     #065f46;   /* emerald-900 */
    --sim-desc-color:     rgba(6,95,70,.75);
    --footer-sub-color:   rgba(30,58,138,.55);
}

/* Header en modo claro */
[data-theme="light"] header {
    background: rgba(186,219,254,.96);
    border-bottom: 1px solid rgba(30,64,175,.25);
}

/* Hero title */
[data-theme="light"] .hero h1 {
    color: #0c1b33;
    text-shadow: 2px 2px 0 rgba(30,64,175,.15), -2px -2px 0 rgba(109,40,217,.10);
}

/* Typing text y labels en primary oscuro */
[data-theme="light"] .hero p,
[data-theme="light"] .typing-cursor { color: var(--primary); }

/* Tabs */
[data-theme="light"] .tabs { border-bottom-color: rgba(30,64,175,.12); }
[data-theme="light"] .tab-button { color: var(--text-muted); border-color: rgba(30,64,175,.15); }
[data-theme="light"] .tab-button:hover,
[data-theme="light"] .tab-button.active { color: #0c1b33; }

/* Cards */
[data-theme="light"] .card,
[data-theme="light"] .recurso-card,
[data-theme="light"] .prueba-card { background: rgba(255,255,255,.75); }

/* Footer */
[data-theme="light"] footer {
    background: rgba(186,219,254,.97);
    border-top: 1px solid rgba(30,64,175,.18);
}

/* Botones de acceso hero — sólidos en modo claro */
[data-theme="light"] .btn-general { color: #ffffff; }
[data-theme="light"] .btn-san-lucas { color: #ffffff; }

/* Scrollbar claro */
[data-theme="light"] ::-webkit-scrollbar-track { background: #bfdbfe; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(30,64,175,.30); }

/* ============================================================
   BOTÓN TOGGLE OSCURO/CLARO + BOTÓN VOLVER INICIO
   ============================================================ */

.mode-toggle, .btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,243,255,.08);
    border: 1px solid rgba(0,243,255,.35);
    color: #00f3ff;
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 0.75em;
    cursor: pointer;
    font-family: var(--font-display);
    letter-spacing: 1px;
    transition: background .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
    text-decoration: none;
}

.mode-toggle:hover, .btn-back-home:hover {
    background: rgba(0,243,255,.18);
    transform: translateY(-1px);
}

[data-theme="light"] .mode-toggle,
[data-theme="light"] .btn-back-home {
    background: rgba(255,255,255,.78);
    border-color: rgba(30,64,175,.40);
    color: #1e40af;
}

[data-theme="light"] .mode-toggle:hover,
[data-theme="light"] .btn-back-home:hover {
    background: rgba(255,255,255,.96);
    box-shadow: 0 4px 12px rgba(30,64,175,.15);
}
