/* ============================================
   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);
}

/* ============================================================
   LANDING ACADEMIA — DARK CINEMATIC (Fase 0/1, 2026-07-18)
   El tema se limita a body.landing-dark para no afectar examenes.
   ============================================================ */
body.landing-dark {
    --card-subj-bg: rgba(7, 20, 38, .86);
    --card-count-color: #d5e7f7;
    --sim-bg: rgba(7, 20, 38, .88);
    --sim-border: rgba(77, 231, 210, .42);
    --sim-name-color: #d7fff0;
    --sim-desc-color: #c6e8dc;
    --icon-accent: #6ee7b7;
}

body.landing-dark header {
    background: rgba(4, 12, 24, .9);
    border-bottom-color: rgba(0, 243, 255, .14);
}

body.landing-dark .header-product {
    color: var(--primary);
    font-weight: 500;
}

.sim-icon {
    width: 28px;
    height: 28px;
    display: block;
    flex: 0 0 auto;
    color: var(--primary);
}

.sim-icon--xs { width: 14px; height: 14px; }
.sim-icon--sm { width: 20px; height: 20px; }
.sim-icon--lg { width: 32px; height: 32px; }

.landing-icon-wrap {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    margin: 0 auto 9px;
    color: var(--primary);
    background: rgba(0, 243, 255, .07);
    border: 1px solid rgba(0, 243, 255, .2);
    border-radius: 12px;
}

.landing-icon-wrap--lg {
    width: 58px;
    height: 58px;
    margin: 0;
    border-radius: 15px;
}

.landing-lock,
.circuit-zone-cta,
.btn-general {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.landing-card {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
    transition: transform .24s var(--ease-out-quart), border-color .24s ease, box-shadow .24s ease !important;
}

a:hover .landing-card {
    transform: translateY(-3px);
    border-color: rgba(0, 243, 255, .62) !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .36), 0 0 18px rgba(0, 243, 255, .1);
}

.resource-arrow {
    color: var(--sim-name-color);
    opacity: .72;
}

html.scroll-fx-ready [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity .62s var(--ease-out-quart), transform .62s var(--ease-out-quart);
}

html.scroll-fx-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (max-width: 600px) {
    body.landing-dark .hero {
        padding-top: 46px;
    }

    body.landing-dark .hero::before {
        width: 100vw;
        max-width: 600px;
    }

    body.landing-dark .hero-subjects > div {
        gap: 12px !important;
    }

    body.landing-dark .landing-card {
        box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
    }

    body.landing-dark .resource-card {
        padding: 15px 16px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.scroll-fx-ready [data-reveal],
    html.scroll-fx-ready [data-reveal].is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .landing-card,
    a:hover .landing-card {
        transform: none;
        transition: none !important;
    }
}

@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);
}

/* ============================================================
   LANDING ACADEMIA - REDISENO ESTRUCTURAL FASE 2 (2026-07-18)
   Todo queda limitado a body.landing-dark.
   ============================================================ */
body.landing-dark {
    --landing-ink: #f4f8ff;
    --landing-copy: #b8c7d9;
    --landing-muted: #7f93ab;
    --landing-line: rgba(120, 219, 255, .16);
    --landing-panel: rgba(8, 20, 37, .9);
    --landing-solid: rgba(4, 12, 23, .97);
    --landing-cyan: #2ee9f2;
    --landing-green: #6ee7b7;
    background: #050b14;
    color: var(--landing-ink);
}

body.landing-dark .landing-container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

body.landing-dark .landing-main,
body.landing-dark .landing-footer {
    position: relative;
    z-index: 3;
}

body.landing-dark .landing-header {
    padding: 0;
    background: rgba(4, 11, 21, .82);
    border-bottom: 1px solid rgba(120, 219, 255, .11);
    box-shadow: 0 12px 38px rgba(0, 0, 0, .18);
}

body.landing-dark .landing-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 34px;
}

body.landing-dark .landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--landing-ink);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: .08em;
    white-space: nowrap;
}

body.landing-dark .landing-brand strong {
    color: var(--landing-cyan);
    font-weight: 400;
}

body.landing-dark .landing-brand__mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-right: 2px;
    border: 1px solid rgba(46, 233, 242, .25);
    border-radius: 12px;
    background: rgba(46, 233, 242, .07);
}

body.landing-dark .landing-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

body.landing-dark .landing-nav a {
    position: relative;
    color: #afc1d4;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .04em;
    transition: color .2s ease;
}

body.landing-dark .landing-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 1px;
    background: var(--landing-cyan);
    transition: right .2s ease;
}

body.landing-dark .landing-nav a:hover { color: var(--landing-ink); }
body.landing-dark .landing-nav a:hover::after { right: 0; }

body.landing-dark .landing-header__cta {
    color: #051018;
    background: var(--landing-cyan);
    border: 1px solid var(--landing-cyan);
    border-radius: 10px;
    padding: 10px 16px;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(46, 233, 242, .15);
}

body.landing-dark .landing-hero {
    min-height: calc(100vh - 72px);
    display: grid;
    align-items: center;
    padding: 86px 0 96px;
    position: relative;
    overflow: hidden;
}

body.landing-dark .landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 10, 19, .76) 0%, rgba(3, 10, 19, .42) 54%, rgba(3, 10, 19, .7) 100%),
        linear-gradient(180deg, rgba(3, 10, 19, .16), rgba(3, 10, 19, .58));
    pointer-events: none;
}

body.landing-dark .landing-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
    gap: clamp(48px, 7vw, 96px);
    align-items: center;
}

body.landing-dark .landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--landing-cyan);
    font-family: var(--font-display);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

body.landing-dark .landing-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

body.landing-dark .landing-hero__content h1 {
    max-width: 760px;
    margin: 22px 0 24px;
    color: var(--landing-ink);
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.2vw, 5rem);
    line-height: 1.04;
    letter-spacing: -.04em;
    text-transform: none;
    text-shadow: 0 12px 46px rgba(0, 0, 0, .45);
    animation: none;
}

body.landing-dark .landing-hero__content h1 span {
    color: transparent;
    background: linear-gradient(100deg, var(--landing-cyan), #a8fff0 58%, var(--landing-green));
    -webkit-background-clip: text;
    background-clip: text;
}

body.landing-dark .landing-hero__content > p {
    max-width: 650px;
    color: #c5d3e3;
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.68;
}

body.landing-dark .landing-hero__actions,
body.landing-dark .landing-final-cta__inner > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

body.landing-dark .landing-action {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 11px;
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.landing-dark .landing-action:hover { transform: translateY(-2px); }
body.landing-dark .landing-action--primary {
    color: #041018;
    background: linear-gradient(105deg, var(--landing-cyan), #7ef5dd);
    border: 1px solid transparent;
    box-shadow: 0 12px 30px rgba(46, 233, 242, .18);
}
body.landing-dark .landing-action--secondary {
    color: var(--landing-ink);
    background: rgba(8, 20, 37, .64);
    border: 1px solid rgba(120, 219, 255, .24);
}
body.landing-dark .landing-action--secondary:hover { border-color: rgba(46, 233, 242, .56); }

body.landing-dark .landing-metrics {
    display: flex;
    gap: 0;
    margin-top: 42px;
}

body.landing-dark .landing-metrics > div {
    display: grid;
    gap: 1px;
    padding: 0 24px;
    border-left: 1px solid rgba(120, 219, 255, .18);
}
body.landing-dark .landing-metrics > div:first-child { padding-left: 0; border-left: 0; }
body.landing-dark .landing-metrics strong {
    color: var(--landing-ink);
    font-family: var(--font-display);
    font-size: 1.35rem;
}
body.landing-dark .landing-metrics span { color: var(--landing-muted); font-size: .76rem; }

body.landing-dark .landing-journey {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(120, 219, 255, .2);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(11, 29, 50, .88), rgba(5, 15, 29, .92));
    box-shadow: 0 28px 80px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .035);
    backdrop-filter: blur(18px);
}

body.landing-dark .landing-journey::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    top: -28px;
    right: -28px;
    border: 1px solid rgba(46, 233, 242, .16);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(46, 233, 242, .08);
}

body.landing-dark .landing-journey__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(120, 219, 255, .12);
    color: var(--landing-ink);
    font-family: var(--font-display);
    font-size: .72rem;
    letter-spacing: .08em;
}

body.landing-dark .landing-pill {
    display: inline-flex;
    padding: 4px 9px;
    border: 1px solid rgba(110, 231, 183, .3);
    border-radius: 999px;
    color: var(--landing-green);
    background: rgba(110, 231, 183, .07);
    font-size: .58rem;
    letter-spacing: .1em;
}

body.landing-dark .landing-journey ol {
    list-style: none;
    display: grid;
    gap: 0;
    margin: 8px 0 20px;
}

body.landing-dark .landing-journey li {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: center;
    padding: 17px 0;
}

body.landing-dark .landing-journey li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 47px;
    bottom: -7px;
    width: 1px;
    background: linear-gradient(var(--landing-cyan), transparent);
    opacity: .45;
}

body.landing-dark .landing-journey li > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(46, 233, 242, .25);
    border-radius: 12px;
    color: var(--landing-cyan);
    background: rgba(46, 233, 242, .07);
    font-family: var(--font-mono);
    font-size: .72rem;
}

body.landing-dark .landing-journey li div { display: grid; gap: 2px; }
body.landing-dark .landing-journey li strong { color: var(--landing-ink); font-size: .95rem; }
body.landing-dark .landing-journey li small { color: var(--landing-muted); font-size: .78rem; }
body.landing-dark .landing-journey > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--landing-cyan);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: .68rem;
    letter-spacing: .08em;
}

body.landing-dark .landing-section { position: relative; padding: 110px 0; }
body.landing-dark .landing-section--solid {
    background:
        linear-gradient(90deg, transparent, rgba(46, 233, 242, .02), transparent),
        var(--landing-solid);
    border-block: 1px solid rgba(120, 219, 255, .08);
}

body.landing-dark .landing-section__heading { max-width: 650px; margin-bottom: 44px; }
body.landing-dark .landing-section__heading--center { margin-inline: auto; text-align: center; }
body.landing-dark .landing-section__heading--center .landing-eyebrow::before { display: none; }
body.landing-dark .landing-section h2,
body.landing-dark .landing-final-cta h2 {
    margin: 15px 0 14px;
    color: var(--landing-ink);
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 3.1rem);
    line-height: 1.18;
    letter-spacing: -.025em;
}
body.landing-dark .landing-section__heading p,
body.landing-dark .landing-route__content > p,
body.landing-dark .landing-protocol > div > p {
    color: var(--landing-copy);
    font-size: 1rem;
    line-height: 1.65;
}

body.landing-dark .landing-subject-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

body.landing-dark .landing-subject-card {
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--landing-line);
    border-radius: 20px;
    color: inherit;
    text-decoration: none;
    background: linear-gradient(145deg, rgba(11, 28, 48, .82), rgba(6, 17, 31, .94));
    box-shadow: 0 18px 46px rgba(0, 0, 0, .18);
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

body.landing-dark a.landing-subject-card:hover {
    transform: translateY(-6px);
    border-color: rgba(46, 233, 242, .44);
    box-shadow: 0 24px 56px rgba(0, 0, 0, .28), 0 0 30px rgba(46, 233, 242, .055);
}

body.landing-dark .landing-subject-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    right: -76px;
    bottom: -76px;
    border: 1px solid rgba(46, 233, 242, .1);
    border-radius: 50%;
}

body.landing-dark .landing-subject-card .landing-icon-wrap { margin: 0 0 38px; }
body.landing-dark .landing-card__index {
    position: absolute;
    top: 30px;
    right: 30px;
    color: rgba(174, 204, 230, .32);
    font-family: var(--font-mono);
    font-size: .72rem;
}
body.landing-dark .landing-subject-card h3,
body.landing-dark .landing-resource-card h3 {
    color: var(--landing-ink);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: .04em;
}
body.landing-dark .landing-subject-card > p { color: var(--landing-copy); margin: 9px 0 24px; line-height: 1.55; }
body.landing-dark .landing-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 16px;
    margin-top: auto;
    color: var(--landing-muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
body.landing-dark .landing-card__meta span { display: inline-flex; align-items: center; gap: 5px; }

body.landing-dark .landing-section--route {
    padding-block: 124px;
    background: linear-gradient(90deg, rgba(3, 10, 19, .82), rgba(3, 10, 19, .56));
}
body.landing-dark .landing-route {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(54px, 8vw, 110px);
    align-items: center;
}
body.landing-dark .landing-route__visual {
    position: relative;
    min-height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 30px;
    border: 1px solid rgba(120, 219, 255, .16);
    border-radius: 28px;
    background: radial-gradient(circle at center, rgba(46, 233, 242, .13), rgba(6, 17, 31, .86) 56%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .3);
}
body.landing-dark .landing-route__visual span {
    padding: 8px 10px;
    border: 1px solid rgba(120, 219, 255, .17);
    border-radius: 9px;
    color: #c3d9e9;
    background: rgba(5, 16, 29, .8);
    font-size: .7rem;
}
body.landing-dark .landing-route__visual i { width: 25px; height: 1px; background: rgba(46, 233, 242, .4); }
body.landing-dark .landing-route__orb {
    position: absolute;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    transform: translateY(-74px);
    border: 1px solid rgba(46, 233, 242, .35);
    border-radius: 24px;
    color: var(--landing-cyan);
    background: rgba(8, 30, 48, .92);
    box-shadow: 0 0 44px rgba(46, 233, 242, .15);
}
body.landing-dark .landing-route__orb .sim-icon { width: 42px; height: 42px; }
body.landing-dark .landing-route__content h2 { max-width: 600px; }
body.landing-dark .landing-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 30px; }
body.landing-dark .landing-tags > span {
    padding: 6px 10px;
    border: 1px solid rgba(120, 219, 255, .14);
    border-radius: 999px;
    color: #a9bfd1;
    background: rgba(6, 18, 33, .72);
    font-size: .72rem;
}

body.landing-dark .landing-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
body.landing-dark .landing-resource-card {
    min-height: 150px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--landing-line);
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
    background: linear-gradient(145deg, rgba(10, 26, 44, .82), rgba(6, 17, 31, .94));
    transition: transform .24s ease, border-color .24s ease, background .24s ease;
}
body.landing-dark .landing-resource-card:hover {
    transform: translateY(-4px);
    border-color: rgba(46, 233, 242, .42);
    background: linear-gradient(145deg, rgba(12, 33, 54, .92), rgba(7, 20, 36, .97));
}
body.landing-dark .landing-resource-card .landing-icon-wrap { margin: 0; }
body.landing-dark .landing-resource-card p { margin-top: 6px; color: var(--landing-copy); font-size: .86rem; line-height: 1.45; }

body.landing-dark .landing-section--access {
    background: linear-gradient(180deg, rgba(4, 12, 23, .78), rgba(4, 12, 23, .94));
}
body.landing-dark .landing-access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
body.landing-dark .landing-access-grid a {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 7px;
    padding: 24px;
    border: 1px solid rgba(46, 233, 242, .24);
    border-radius: 17px;
    color: inherit;
    text-decoration: none;
    background: rgba(7, 21, 38, .88);
    transition: transform .22s ease, border-color .22s ease;
}
body.landing-dark .landing-access-grid a:hover { transform: translateY(-4px); border-color: var(--landing-cyan); }
body.landing-dark .landing-access-grid a span { color: var(--landing-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
body.landing-dark .landing-access-grid a strong { color: var(--landing-ink); font-family: var(--font-display); font-size: .86rem; letter-spacing: .04em; }
body.landing-dark .landing-access-grid .landing-access-grid__institution { border-color: rgba(255, 184, 77, .3); }
body.landing-dark .landing-access-grid .landing-access-grid__institution:hover { border-color: #ffb84d; }

body.landing-dark .landing-section--protocol { padding-top: 70px; background: var(--landing-solid); }
body.landing-dark .landing-protocol {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: clamp(48px, 7vw, 90px);
    padding: 42px;
    border: 1px solid rgba(120, 219, 255, .12);
    border-radius: 24px;
    background: rgba(7, 20, 36, .76);
}
body.landing-dark .landing-protocol ul { list-style: none; display: grid; gap: 0; }
body.landing-dark .landing-protocol li {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(120, 219, 255, .09);
}
body.landing-dark .landing-protocol li:last-child { border-bottom: 0; }
body.landing-dark .landing-protocol li strong { color: var(--landing-ink); font-size: .82rem; }
body.landing-dark .landing-protocol li span { color: var(--landing-muted); font-size: .8rem; line-height: 1.45; }

body.landing-dark .landing-final-cta {
    position: relative;
    z-index: 3;
    padding: 0 0 100px;
    background: var(--landing-solid);
}
body.landing-dark .landing-final-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px;
    border: 1px solid rgba(46, 233, 242, .22);
    border-radius: 26px;
    background: linear-gradient(120deg, rgba(10, 37, 56, .95), rgba(7, 19, 34, .98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, .26);
}
body.landing-dark .landing-final-cta h2 { max-width: 650px; margin-bottom: 0; }
body.landing-dark .landing-final-cta__inner > div:last-child { flex: 0 0 auto; margin-top: 0; }

body.landing-dark .landing-footer {
    padding: 30px 0;
    border-top: 1px solid rgba(120, 219, 255, .09);
    background: #030a13;
}
body.landing-dark .landing-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--landing-muted);
    font-size: .72rem;
    text-align: left;
}
body.landing-dark .landing-footer__inner p:last-child { max-width: 640px; text-align: right; }

@media (max-width: 960px) {
    body.landing-dark .landing-nav { display: none; }
    body.landing-dark .landing-header__cta { margin-left: auto; }
    body.landing-dark .landing-hero__grid,
    body.landing-dark .landing-route,
    body.landing-dark .landing-protocol { grid-template-columns: 1fr; }
    body.landing-dark .landing-hero { min-height: auto; }
    body.landing-dark .landing-journey { max-width: 620px; }
    body.landing-dark .landing-protocol { gap: 32px; }
    body.landing-dark .landing-final-cta__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
    body.landing-dark .landing-container { width: min(100% - 28px, 1180px); }
    body.landing-dark .landing-header__inner { min-height: 64px; }
    body.landing-dark .landing-brand { font-size: .84rem; }
    body.landing-dark .landing-brand__mark { width: 34px; height: 34px; }
    body.landing-dark .landing-header__cta { padding: 9px 11px; font-size: .58rem; }
    body.landing-dark .landing-hero { padding: 68px 0 74px; }
    body.landing-dark .landing-hero__grid { gap: 48px; }
    body.landing-dark .landing-hero__content h1 { font-size: clamp(2.35rem, 12vw, 3.45rem); }
    body.landing-dark .landing-hero__content > p { font-size: .98rem; }
    body.landing-dark .landing-metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
    body.landing-dark .landing-metrics > div { padding: 0 10px; }
    body.landing-dark .landing-metrics strong { font-size: 1.05rem; }
    body.landing-dark .landing-metrics span { font-size: .65rem; line-height: 1.3; }
    body.landing-dark .landing-journey { padding: 22px; border-radius: 20px; }
    body.landing-dark .landing-section { padding: 78px 0; }
    body.landing-dark .landing-section__heading { margin-bottom: 30px; }
    body.landing-dark .landing-subject-grid,
    body.landing-dark .landing-resource-grid,
    body.landing-dark .landing-access-grid { grid-template-columns: 1fr; }
    body.landing-dark .landing-subject-card { min-height: 285px; padding: 24px; }
    body.landing-dark .landing-card__index { top: 24px; right: 24px; }
    body.landing-dark .landing-route__visual { min-height: 260px; padding: 22px 12px; }
    body.landing-dark .landing-route__visual span { padding: 7px 8px; font-size: .62rem; }
    body.landing-dark .landing-route__visual i { width: 12px; }
    body.landing-dark .landing-protocol { padding: 26px 22px; }
    body.landing-dark .landing-protocol li { grid-template-columns: 1fr; gap: 4px; }
    body.landing-dark .landing-final-cta { padding-bottom: 72px; }
    body.landing-dark .landing-final-cta__inner { padding: 28px 22px; }
    body.landing-dark .landing-footer__inner { align-items: flex-start; flex-direction: column; }
    body.landing-dark .landing-footer__inner p:last-child { text-align: left; }
}

@media (max-width: 410px) {
    body.landing-dark .landing-brand strong { display: none; }
    body.landing-dark .landing-header__cta { font-size: .54rem; }
    body.landing-dark .landing-hero__actions .landing-action { width: 100%; }
    body.landing-dark .landing-resource-card { grid-template-columns: auto 1fr; }
    body.landing-dark .landing-resource-card > .resource-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    body.landing-dark .landing-action,
    body.landing-dark .landing-subject-card,
    body.landing-dark .landing-resource-card,
    body.landing-dark .landing-access-grid a { transition: none; }
}
