/* ==========================================================================
   TMScience · Suscripción (TM_CURSOS)
   Misma familia que la landing y que «Ingresa con tu institución»:
   noche + verde neón, cuadrícula fina, Bricolage Grotesque en títulos,
   Plus Jakarta Sans en texto y Montserrat 800 en mayúsculas para botones.
   El verde neón es el color propio de Suscripción (en Instituciones es el coral).
   Sin Bootstrap: este archivo es todo el estilo del sistema.
   ========================================================================== */

:root {
    --night: #0f1412;
    --night-2: #161d1a;
    --night-3: #1f2824;
    --night-4: #2a3530;
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .16);
    --txt: #e8efea;
    --txt-2: #a9b8b0;            /* 8,4:1 sobre --night-2 */
    --txt-3: #82938a;            /* 5,2:1 sobre --night-2 */

    --neon: #a8e03c;
    --neon-2: #c2f05a;
    --neon-ink: #1d3304;
    --lime: #a8e03c;
    --coral-f: #ff8f6b;
    --yellow-f: #ffd23f;
    --sky-f: #5cc8f0;
    --red-f: #ff6b6b;
    --navy: #0c3a5e;
    --navy-2: #0a2f4c;
    --grid: rgba(255, 255, 255, .028);
    --top-bg: rgba(15, 20, 18, .82);
    --input-bg: var(--night);
    --empty-bg: rgba(22, 29, 26, .6);
    --stat-bg: rgba(255, 255, 255, .07);
    --side-bg: #0e1d27;
    --hello-bg: linear-gradient(120deg, #0c3a5e 0%, #0b2a40 60%, #0e1d27 100%);
    --neon-soft: rgba(168, 224, 60, .12);
    --yellow: #ffd23f;
    --yellow-ink: #3a2c00;
    --yellow-soft: rgba(255, 210, 63, .13);
    --coral: #ff8f6b;
    --coral-ink: #3d1408;
    --coral-soft: rgba(255, 143, 107, .13);
    --sky: #5cc8f0;
    --sky-ink: #04263d;
    --sky-soft: rgba(92, 200, 240, .13);
    --red: #ff6b6b;
    --red-soft: rgba(255, 107, 107, .13);

    --title: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
    --text: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --label: 'Montserrat', 'Plus Jakarta Sans', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

    --side-w: 252px;
    --top-h: 68px;
    --r: 14px;
    --r-lg: 20px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --gutter: clamp(16px, 3.2vw, 40px);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body.tmc {
    margin: 0;
    min-height: 100vh;
    font-family: var(--text);
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--txt);
    background-color: var(--night);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 44px 44px;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.tmc h1, .tmc h2, .tmc h3, .tmc h4, .tmc h5, .tmc h6 {
    font-family: var(--title);
    color: var(--txt);
    letter-spacing: -.015em;
    line-height: 1.12;
    text-wrap: balance;
}
.tmc p { text-wrap: pretty; }
.tmc a { color: var(--neon); text-underline-offset: .2em; }
.tmc a:hover { color: var(--neon-2); }
.tmc ::selection { background: var(--lime); color: var(--neon-ink); }
.tmc :focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px; }
.tmc img { max-width: 100%; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
    position: fixed; left: 12px; top: -60px; z-index: 2000;
    background: var(--lime); color: var(--neon-ink) !important; padding: 10px 16px; border-radius: 10px;
    font-family: var(--label); font-weight: 800; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ── Estructura: barra lateral + principal ────────────────────────────── */
.tm-app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }

.tm-side {
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column;
    background: var(--side-bg);
    border-right: 1px solid var(--line);
    padding: 18px 14px 14px;
    z-index: 1040;
}
.tm-brand {
    display: flex; align-items: center; gap: 11px;
    padding: 4px 8px 20px;
    text-decoration: none; color: var(--txt) !important;
}
.tm-brand img { width: 36px; height: 36px; flex-shrink: 0; }
.tm-brand b { display: block; font-family: var(--title); font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.tm-brand small {
    display: inline-block; margin-top: 5px;
    font-family: var(--label); font-weight: 800; font-size: 10px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--neon);
}

.tm-nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; padding-bottom: 12px; }
.tm-nav .lbl {
    margin: 14px 10px 6px;
    font-family: var(--label); font-weight: 800; font-size: 10.5px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--txt-3);
}
.tm-nav .lbl:first-child { margin-top: 0; }
.tm-nav a {
    display: flex; align-items: center; gap: 12px;
    min-height: 44px; padding: 0 12px;
    border-radius: 12px;
    color: var(--txt-2) !important;
    font-weight: 600; font-size: 15px;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}
.tm-nav a i { font-size: 18px; width: 20px; text-align: center; opacity: .9; }
.tm-nav a:hover { background: var(--night-3); color: var(--txt) !important; }
.tm-nav a[aria-current="page"] { background: var(--lime); color: var(--neon-ink) !important; font-weight: 700; }
.tm-nav a[aria-current="page"] i { opacity: 1; }
.tm-nav .count {
    margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px;
    display: inline-grid; place-items: center;
    border-radius: 999px; background: var(--coral-f); color: var(--coral-ink);
    font-family: var(--label); font-weight: 800; font-size: 11px;
}
.tm-nav a[aria-current="page"] .count { background: var(--neon-ink); color: var(--lime); }

.tm-me {
    margin-top: auto;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 10px 4px;
    border-top: 1px solid var(--line);
}
.tm-me .who { min-width: 0; flex: 1; }
.tm-me .who b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-me .who span { font-size: 12.5px; color: var(--txt-3); }
.tm-me .out {
    width: 38px; height: 38px; flex-shrink: 0;
    display: grid; place-items: center; border-radius: 10px;
    color: var(--txt-2) !important; text-decoration: none;
    border: 1px solid var(--line);
}
.tm-me .out:hover { color: var(--coral) !important; border-color: var(--coral-f); }

.avatar {
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: 50%; object-fit: cover;
    background: var(--night-4);
    display: inline-grid; place-items: center;
    font-family: var(--title); font-weight: 800; font-size: 15px; color: var(--txt);
}
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.lg { width: 96px; height: 96px; font-size: 34px; }

.tm-main { min-width: 0; display: flex; flex-direction: column; }
.tm-top {
    position: sticky; top: 0; z-index: 1030;
    height: var(--top-h);
    display: flex; align-items: center; gap: 14px;
    padding: 0 var(--gutter);
    background: var(--top-bg);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.tm-top .ttl { font-family: var(--title); font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-top .ttl .crumb { color: var(--txt-3); font-weight: 600; }
.tm-top .ttl .crumb a { color: var(--txt-3); text-decoration: none; }
.tm-top .ttl .crumb a:hover { color: var(--txt); }
.tm-top .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
    position: relative;
    width: 42px; height: 42px; flex-shrink: 0;
    display: inline-grid; place-items: center;
    border-radius: 12px; border: 1px solid var(--line);
    background: transparent; color: var(--txt-2) !important;
    font-size: 18px; text-decoration: none; cursor: pointer;
    transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--txt) !important; }
.icon-btn .dot {
    position: absolute; top: 8px; right: 8px; width: 9px; height: 9px;
    border-radius: 50%; background: var(--coral-f); box-shadow: 0 0 0 2px var(--night);
}
.tm-burger { display: none; }
.me-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 12px 4px 4px; border-radius: 999px;
    border: 1px solid var(--line); background: transparent; color: var(--txt);
    font-weight: 600; font-size: 14px; cursor: pointer;
}
.me-btn:hover { border-color: var(--line-2); }
.me-btn .avatar { width: 32px; height: 32px; font-size: 13px; }

.tm-content { width: 100%; max-width: 1240px; padding: clamp(22px, 3vw, 40px) var(--gutter) 64px; }

.tm-scrim { display: none; }

@media (max-width: 991.98px) {
    .tm-app { grid-template-columns: minmax(0, 1fr); }
    .tm-side {
        position: fixed; inset: 0 auto 0 0; width: min(84vw, 300px);
        transform: translateX(-102%); transition: transform .25s var(--ease);
        box-shadow: 20px 0 60px rgba(0, 0, 0, .5);
    }
    body.nav-open .tm-side { transform: none; }
    body.nav-open .tm-scrim { display: block; position: fixed; inset: 0; z-index: 1035; background: rgba(0, 0, 0, .55); }
    .tm-burger { display: inline-grid; }
    .me-btn .nm { display: none; }
    .me-btn { padding: 4px; }
}

/* ── Encabezado de página ─────────────────────────────────────────────── */
.eyebrow {
    display: inline-block;
    font-family: var(--label); font-weight: 800; font-size: 12px; letter-spacing: .15em;
    text-transform: uppercase; color: var(--neon);
}
.eyebrow.coral { color: var(--coral); }
.eyebrow.muted { color: var(--txt-3); }
.e-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; margin-bottom: 30px; }
.e-head h1 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; margin: 8px 0 0; }
.e-head p { margin: 10px 0 0; color: var(--txt-2); max-width: 60ch; font-size: 16.5px; }
.e-head .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.e-sec { margin-top: 40px; }
.e-sec:first-child { margin-top: 0; }
.e-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.e-sec-h h2 { font-size: 23px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 10px; }
.e-sec-h .more { font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.num {
    display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px;
    border-radius: 999px; background: var(--night-3); color: var(--txt-2);
    font-family: var(--label); font-weight: 800; font-size: 12px;
}

/* ── Botones (mismos que la landing) ──────────────────────────────────── */
.e-btn {
    --bg: var(--lime); --fg: var(--neon-ink); --bd: var(--lime); --glow: rgba(168, 224, 60, .55);
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 48px; padding: 0 22px;
    border-radius: 12px; border: 2px solid var(--bd);
    background: var(--bg); color: var(--fg) !important;
    font-family: var(--label); font-weight: 800; font-size: 13.5px; letter-spacing: .06em;
    text-transform: uppercase; text-decoration: none; white-space: nowrap;
    cursor: pointer;
    transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s, background-color .16s;
}
.e-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--glow); }
.e-btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.e-btn i { font-size: 16px; }
.e-btn .arr { transition: transform .2s var(--ease); }
.e-btn:hover .arr { transform: translateX(3px); }
.e-btn.sm { min-height: 40px; padding: 0 16px; font-size: 12.5px; border-radius: 10px; }
.e-btn.block { width: 100%; }
.e-btn.ghost { --bg: transparent; --fg: var(--txt); --bd: var(--line-2); --glow: transparent; }
.e-btn.ghost:hover { --bd: var(--txt); }
.e-btn.coral { --bg: var(--coral-f); --fg: var(--coral-ink); --bd: var(--coral-f); --glow: rgba(255, 143, 107, .55); }
.e-btn.sky { --bg: var(--sky-f); --fg: var(--sky-ink); --bd: var(--sky-f); --glow: rgba(92, 200, 240, .5); }
.e-btn[disabled], .e-btn.is-off { opacity: .45; pointer-events: none; }

/* ── Superficies ──────────────────────────────────────────────────────── */
.e-card {
    background: var(--night-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px;
}
.e-card.pad-0 { padding: 0; overflow: hidden; }
.e-card > h3 { font-size: 18px; margin: 0 0 14px; }
.e-grid { display: grid; gap: 18px; }
.e-grid.c2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.e-grid.c3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.e-grid.c4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.e-split { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); align-items: start; }
@media (max-width: 1100px) { .e-split { grid-template-columns: minmax(0, 1fr); } }

/* Etiquetas de estado */
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    height: 26px; padding: 0 10px; border-radius: 999px;
    font-family: var(--label); font-weight: 800; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
    white-space: nowrap;
    background: var(--night-3); color: var(--txt-2);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.pill.neon { background: var(--neon-soft); color: var(--neon); }
.pill.yellow { background: var(--yellow-soft); color: var(--yellow); }
.pill.sky { background: var(--sky-soft); color: var(--sky); }
.pill.coral { background: var(--coral-soft); color: var(--coral); }
.pill.red { background: var(--red-soft); color: var(--red); }

/* Estado vacío */
.e-empty {
    display: grid; justify-items: center; text-align: center; gap: 10px;
    padding: 44px 24px;
    border: 1.5px dashed var(--line-2); border-radius: var(--r-lg);
    background: var(--empty-bg);
}
.e-empty .ico {
    width: 62px; height: 62px; border-radius: 18px;
    display: grid; place-items: center; font-size: 27px;
    background: var(--night-3); color: var(--neon);
    margin-bottom: 4px;
}
.e-empty h3 { font-size: 20px; margin: 0; }
.e-empty p { margin: 0; color: var(--txt-2); max-width: 44ch; }
.e-empty .e-btn { margin-top: 10px; }
.e-empty.sm { padding: 26px 18px; }
.e-empty.sm .ico { width: 48px; height: 48px; font-size: 21px; border-radius: 14px; }
.e-empty.sm h3 { font-size: 17px; }

/* Avisos (sesión) */
.e-flash {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; margin-bottom: 22px;
    border-radius: var(--r); border: 1px solid;
    font-weight: 600;
}
.e-flash i { font-size: 19px; line-height: 1.3; }
.e-flash.ok { background: var(--neon-soft); border-color: rgba(168, 224, 60, .35); color: var(--neon-2); }
.e-flash.err { background: var(--red-soft); border-color: rgba(255, 107, 107, .35); color: #ffb3b3; }
.e-flash button { margin-left: auto; background: none; border: 0; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; opacity: .8; }

/* ── Bienvenida del panel ─────────────────────────────────────────────── */
.e-hello {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
    padding: clamp(24px, 3vw, 36px);
    border-radius: 24px;
    background: var(--hello-bg);
    border: 1px solid rgba(92, 200, 240, .18);
    margin-bottom: 34px;
}
.e-hello::after {
    content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px;
    background: url('../img/tms-mark-192.png') center / contain no-repeat;
    opacity: .07; transform: rotate(-12deg); pointer-events: none;
}
.e-hello h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; margin: 8px 0 0; }
.e-hello p { margin: 10px 0 0; color: var(--txt-2); font-size: 16.5px; max-width: 54ch; }
.e-hello .stats { position: relative; z-index: 1; display: flex; gap: 10px; }
.e-stat {
    min-width: 112px; padding: 14px 16px; border-radius: 16px;
    background: var(--stat-bg); border: 1px solid var(--line);
}
.e-stat b { display: block; font-family: var(--title); font-size: 30px; font-weight: 800; line-height: 1; }
.e-stat span { display: block; margin-top: 6px; font-family: var(--label); font-weight: 800; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-3); }
.e-stat.neon b { color: var(--neon); }
.e-stat.yellow b { color: var(--yellow); }
.e-stat.sky b { color: var(--sky); }
.e-stat.coral b { color: var(--coral); }
@media (max-width: 860px) {
    .e-hello { grid-template-columns: minmax(0, 1fr); }
    .e-hello .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .e-stat { min-width: 0; padding: 12px; }
    .e-stat b { font-size: 26px; }
    .e-stat span { font-size: 9.5px; letter-spacing: .08em; }
}

/* ── Tarjeta de curso ─────────────────────────────────────────────────── */
.e-course {
    display: flex; flex-direction: column;
    background: var(--night-2); border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; text-decoration: none; color: var(--txt) !important;
    transition: transform .18s var(--ease), border-color .18s, box-shadow .18s;
}
.e-course:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .8); }
.e-course .cover { position: relative; aspect-ratio: 16 / 8.2; overflow: hidden; background: var(--night-3); }
.e-course .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.e-course:hover .cover img { transform: scale(1.04); }
.e-course .cover .tag { position: absolute; left: 12px; top: 12px; }
.e-course .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.e-course h3 { font-size: 19px; font-weight: 700; margin: 0; }
.e-course .meta { color: var(--txt-3); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e-course .desc { color: var(--txt-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.e-course .foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.e-course .go { font-family: var(--label); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--neon); display: inline-flex; gap: 6px; align-items: center; }

/* Portada de reserva cuando el curso no tiene imagen */
.cover-fb {
    position: absolute; inset: 0; display: grid; place-items: center;
    background-color: var(--c, var(--lime));
    background-image:
        linear-gradient(rgba(0, 0, 0, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, .08) 1px, transparent 1px);
    background-size: 22px 22px;
}
.cover-fb span { font-family: var(--title); font-weight: 800; font-size: 64px; color: var(--ci, var(--neon-ink)); letter-spacing: -.04em; }
.c-neon { --c: var(--lime); --ci: var(--neon-ink); }
.c-yellow { --c: var(--yellow-f); --ci: var(--yellow-ink); }
.c-sky { --c: var(--sky-f); --ci: var(--sky-ink); }
.c-coral { --c: var(--coral-f); --ci: var(--coral-ink); }

/* Barra de progreso */
.bar { height: 8px; border-radius: 999px; background: var(--night-4); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
.bar.yellow > span { background: var(--yellow-f); }
.bar.coral > span { background: var(--coral-f); }
.bar.sky > span { background: var(--sky-f); }
.prog { display: grid; gap: 6px; }
.prog .row-t { display: flex; justify-content: space-between; font-size: 13px; color: var(--txt-3); }
.prog .row-t b { color: var(--txt); font-weight: 700; }

/* ── Código de invitación (boleto) ────────────────────────────────────── */
.e-ticket {
    position: relative;
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 22px; align-items: center;
    padding: 22px 24px;
    border-radius: var(--r-lg);
    background:
        radial-gradient(circle at 0 50%, var(--night) 13px, transparent 14px),
        radial-gradient(circle at 100% 50%, var(--night) 13px, transparent 14px),
        var(--coral-f);
    color: var(--coral-ink);
}
.e-ticket .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 25px; background: rgba(61, 20, 8, .12); }
.e-ticket h3 { color: var(--coral-ink) !important; font-size: 20px; font-weight: 800; margin: 0; }
.e-ticket p { margin: 4px 0 0; font-size: 14.5px; color: rgba(61, 20, 8, .82); }
.e-ticket form { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.e-ticket input {
    flex: 1 1 220px; min-height: 52px; padding: 0 18px;
    border-radius: 12px; border: 2px dashed rgba(61, 20, 8, .45);
    background: rgba(255, 255, 255, .55); color: var(--coral-ink);
    font-family: var(--mono); font-weight: 700; font-size: 20px; letter-spacing: .32em; text-transform: uppercase;
}
.e-ticket input::placeholder { color: rgba(61, 20, 8, .45); letter-spacing: .32em; }
.e-ticket input:focus { outline: none; border-style: solid; border-color: var(--coral-ink); background: #fff; }
.e-ticket .e-btn { --bg: var(--coral-ink); --fg: #fff; --bd: var(--coral-ink); --glow: rgba(61, 20, 8, .5); min-height: 52px; }
.e-ticket.compact { padding: 18px 20px; }
.e-ticket.compact .ico { display: none; }
.e-ticket.compact { grid-template-columns: minmax(0, 1fr); }

/* ── Clases (agenda) ──────────────────────────────────────────────────── */
.e-list { display: grid; gap: 10px; }
.e-class {
    display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 16px; align-items: center;
    padding: 14px 16px; border-radius: 16px;
    background: var(--night-2); border: 1px solid var(--line);
}
.e-class.today { border-color: rgba(255, 143, 107, .5); background: linear-gradient(90deg, rgba(255, 143, 107, .09), var(--night-2) 60%); }
.e-date {
    width: 62px; height: 62px; border-radius: 14px;
    display: grid; place-content: center; text-align: center;
    background: var(--night-3);
}
.e-date b { display: block; font-family: var(--title); font-size: 25px; font-weight: 800; line-height: 1; }
.e-date span { display: block; margin-top: 3px; font-family: var(--label); font-weight: 800; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-3); }
.e-class.today .e-date { background: var(--coral-f); }
.e-class.today .e-date b, .e-class.today .e-date span { color: var(--coral-ink); }
.e-class h4 { font-size: 16.5px; font-weight: 700; margin: 0; font-family: var(--text) !important; letter-spacing: 0; }
.e-class .sub { color: var(--txt-3); font-size: 13.5px; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.e-class .sub i { margin-right: 4px; }
@media (max-width: 560px) {
    .e-class { grid-template-columns: 52px minmax(0, 1fr); }
    .e-date { width: 52px; height: 56px; }
    .e-class > .act { grid-column: 1 / -1; }
    .e-class > .act .e-btn { width: 100%; }
}

/* ── Tareas ───────────────────────────────────────────────────────────── */
.e-task {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center;
    padding: 14px 16px; border-radius: 16px;
    background: var(--night-2); border: 1px solid var(--line);
    text-decoration: none; color: var(--txt) !important;
}
a.e-task:hover { border-color: var(--line-2); }
.e-task .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--night-3); color: var(--txt-2); }
.e-task.is-due .ic { background: var(--yellow-soft); color: var(--yellow); }
.e-task.is-late .ic { background: var(--red-soft); color: var(--red); }
.e-task.is-sent .ic { background: var(--sky-soft); color: var(--sky); }
.e-task.is-done .ic { background: var(--neon-soft); color: var(--neon); }
.e-task h4 { font-family: var(--text) !important; letter-spacing: 0; font-size: 16px; font-weight: 700; margin: 0; }
.e-task .sub { color: var(--txt-3); font-size: 13.5px; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.e-task .end { display: flex; align-items: center; gap: 10px; }
.score { font-family: var(--title); font-weight: 800; font-size: 22px; line-height: 1; white-space: nowrap; }
.score small { font-size: 13px; color: var(--txt-3); font-weight: 700; }
@media (max-width: 640px) {
    .e-task { grid-template-columns: 40px minmax(0, 1fr); }
    .e-task .ic { width: 40px; height: 40px; }
    .e-task .end { grid-column: 2; flex-wrap: wrap; }
}

/* Filtros tipo pestaña */
.e-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; padding: 5px; background: var(--night-2); border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; }
.e-tabs a, .e-tabs button {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 38px; padding: 0 14px; border-radius: 10px; border: 0;
    background: transparent; color: var(--txt-2) !important;
    font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.e-tabs a:hover, .e-tabs button:hover { color: var(--txt) !important; background: var(--night-3); }
.e-tabs [aria-current="true"], .e-tabs [aria-selected="true"] { background: var(--txt); color: var(--night) !important; }
.e-tabs [aria-current="true"] .num, .e-tabs [aria-selected="true"] .num { background: var(--night); color: var(--txt); }
.e-tabs .num { height: 22px; min-width: 22px; font-size: 11px; }

/* ── Materiales ───────────────────────────────────────────────────────── */
.e-file {
    display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 14px; align-items: start;
    padding: 16px; border-radius: 16px;
    background: var(--night-2); border: 1px solid var(--line);
}
.e-file .ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: var(--night-3); }
.e-file .ic.pdf { background: var(--red-soft); color: var(--red); }
.e-file .ic.video { background: var(--sky-soft); color: var(--sky); }
.e-file .ic.doc { background: rgba(120, 160, 255, .14); color: #9db8ff; }
.e-file .ic.enlace { background: var(--neon-soft); color: var(--neon); }
.e-file .ic.rar, .e-file .ic.otro { background: var(--yellow-soft); color: var(--yellow); }
.e-file h4 { font-family: var(--text) !important; letter-spacing: 0; font-size: 15.5px; font-weight: 700; margin: 0; }
.e-file .sub { color: var(--txt-3); font-size: 13px; margin-top: 3px; }
.e-file .desc { color: var(--txt-2); font-size: 14px; margin: 8px 0 0; }
.e-file .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ── Tabla ────────────────────────────────────────────────────────────── */
.e-table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--night-2); }
.e-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.e-table th {
    text-align: left; padding: 14px 18px;
    font-family: var(--label); font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--txt-3); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.e-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.e-table tr:last-child td { border-bottom: 0; }
.e-table tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.e-table .r { text-align: right; }

/* Rendimiento por curso */
.e-perf { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; align-items: center; }
.ring {
    --p: 0; --c: var(--neon);
    width: 92px; height: 92px; border-radius: 50%;
    display: grid; place-items: center;
    background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--night-4) 0);
}
.ring::before { content: ""; grid-area: 1 / 1; width: 72px; height: 72px; border-radius: 50%; background: var(--night-2); }
.ring b { grid-area: 1 / 1; position: relative; font-family: var(--title); font-weight: 800; font-size: 22px; }
.ring b small { font-size: 12px; color: var(--txt-3); }
.ring.na { --p: 0; }
.e-perf h3 { font-size: 18px; margin: 0 0 4px; }
.e-perf .sub { color: var(--txt-3); font-size: 13.5px; }

/* Tarjetas de cifras (docente / admin) */
.e-kpi { padding: 18px 20px; border-radius: 18px; background: var(--night-2); border: 1px solid var(--line); display: grid; gap: 6px; text-decoration: none; color: var(--txt) !important; }
a.e-kpi:hover { border-color: var(--line-2); }
.e-kpi .t { display: flex; align-items: center; justify-content: space-between; font-family: var(--label); font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-3); }
.e-kpi .t i { font-size: 18px; color: var(--c, var(--neon)); }
.e-kpi b { font-family: var(--title); font-size: 36px; font-weight: 800; line-height: 1; color: var(--c, var(--txt)); }
.e-kpi .s { font-size: 13px; color: var(--txt-3); }
.e-kpi.neon { --c: var(--neon); }
.e-kpi.yellow { --c: var(--yellow); }
.e-kpi.sky { --c: var(--sky); }
.e-kpi.coral { --c: var(--coral); }

/* Novedades */
.e-news { display: grid; gap: 2px; }
.e-news li { list-style: none; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.e-news li:last-child { border-bottom: 0; }
.e-news ul { margin: 0; padding: 0; }
.e-news .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; background: var(--night-3); color: var(--neon); }
.e-news p { margin: 0; font-size: 14px; color: var(--txt); white-space: pre-line; }
.e-news time { font-size: 12.5px; color: var(--txt-3); }

/* Formularios propios */
.e-field { display: grid; gap: 7px; margin-bottom: 16px; }
.e-field label { font-weight: 700; font-size: 14px; color: var(--txt); }
.e-input {
    width: 100%; min-height: 50px; padding: 0 16px;
    border-radius: 12px; border: 1.5px solid var(--line-2);
    background: var(--input-bg); color: var(--txt);
    font: inherit; font-size: 15.5px;
    transition: border-color .15s, box-shadow .15s;
}
.e-input::placeholder { color: var(--txt-3); }
.e-input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(168, 224, 60, .16); }
.e-pass { position: relative; }
.e-pass .e-input { padding-right: 52px; }
.e-pass button {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--txt-3); font-size: 18px; cursor: pointer;
}
.e-pass button:hover { color: var(--txt); }

/* ==========================================================================
   Ingreso (login / registro): pantalla partida
   ========================================================================== */
.tm-auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-art {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    padding: clamp(28px, 4vw, 56px);
    background: var(--lime); color: var(--neon-ink);
}
.auth-art::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(29, 51, 4, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 51, 4, .09) 1px, transparent 1px);
    background-size: 36px 36px;
}
.auth-art > * { position: relative; }
.auth-art .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--neon-ink) !important; }
.auth-art .brand img { width: 42px; height: 42px; }
.auth-art .brand b { font-family: var(--title); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.auth-art h1 { color: var(--neon-ink) !important; font-size: clamp(34px, 3.9vw, 56px); font-weight: 800; line-height: 1.16; margin: 0; letter-spacing: -.028em; max-width: 15ch; }
.auth-art h1 em { font-style: normal; display: inline-block; margin-top: .14em; background: #0f1412; color: var(--lime); padding: .02em .2em .08em; border-radius: .16em; line-height: 1.05; }
.auth-art .lead { margin: 18px 0 0; font-size: 18px; max-width: 34ch; color: rgba(29, 51, 4, .86); }
.auth-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; max-width: 420px; }
.auth-steps li {
    display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center;
    padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .34);
    font-weight: 600; font-size: 15px;
}
.auth-steps b { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--neon-ink); color: var(--lime); font-family: var(--title); font-size: 18px; font-weight: 800; }
.auth-art .back { font-family: var(--label); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--neon-ink) !important; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.auth-art .back:hover { text-decoration: underline; }

.auth-form { display: grid; place-items: center; padding: clamp(28px, 4vw, 56px) var(--gutter); }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h2 { font-size: 32px; font-weight: 800; margin: 8px 0 6px; }
.auth-box > p { color: var(--txt-2); margin: 0 0 26px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -4px 0 22px; font-size: 14px; }
.auth-row label { display: inline-flex; align-items: center; gap: 8px; color: var(--txt-2); cursor: pointer; }
.auth-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--lime); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--txt-3); font-family: var(--label); font-weight: 800; font-size: 11px; letter-spacing: .14em; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px;
    border-radius: 12px; border: 1.5px solid var(--line-2); background: transparent; color: var(--txt) !important;
    font-weight: 700; font-size: 15px; text-decoration: none; transition: border-color .15s, background-color .15s;
}
.btn-google:hover { border-color: var(--txt); background: rgba(255, 255, 255, .03); }
.btn-google svg { width: 20px; height: 20px; }
.auth-foot { margin: 22px 0 0; text-align: center; color: var(--txt-2); font-size: 14.5px; }
.auth-foot a { font-weight: 700; }
.auth-help { margin-top: 28px; padding: 14px 16px; border-radius: 14px; background: var(--night-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--txt-2); display: flex; gap: 12px; }
.auth-help i { color: var(--sky); font-size: 18px; }
@media (max-width: 900px) {
    .tm-auth { grid-template-columns: minmax(0, 1fr); }
    .auth-art { gap: 22px; }
    .auth-art .lead { font-size: 16px; }
    .auth-steps { display: none; }
}


.e-course[hidden], .e-task[hidden] { display: none !important; }


/* ==========================================================================
   Botón de tema y modo claro (azul marino institucional)
   ========================================================================== */
.theme-btn .bi-moon-stars { display: none; }
:root[data-theme="light"] .theme-btn .bi-sun { display: none; }
:root[data-theme="light"] .theme-btn .bi-moon-stars { display: inline; }
.auth-theme { position: fixed; top: 16px; right: 16px; z-index: 20; background: var(--night-2); }

:root[data-theme="light"] {
    --night: #eef3f7;
    --night-2: #ffffff;
    --night-3: #edf2f7;
    --night-4: #dbe4ec;
    --line: rgba(12, 58, 94, .11);
    --line-2: rgba(12, 58, 94, .22);
    --txt: #0f2233;
    --txt-2: #3d556a;            /* 7,6:1 sobre blanco */
    --txt-3: #5b7084;            /* 5,1:1 sobre blanco */
    --neon: #3b7a10;             /* verde para texto: 5,3:1 sobre blanco */
    --neon-2: #2f650b;
    --neon-soft: rgba(120, 180, 40, .15);
    --yellow: #8a5c00;
    --yellow-soft: rgba(255, 190, 30, .2);
    --coral: #b8441d;
    --coral-soft: rgba(255, 143, 107, .2);
    --sky: #0a6a98;
    --sky-soft: rgba(92, 200, 240, .18);
    --red: #b8322a;
    --red-soft: rgba(230, 80, 80, .12);
    --grid: rgba(12, 58, 94, .045);
    --top-bg: rgba(238, 243, 247, .86);
    --input-bg: #ffffff;
    --empty-bg: rgba(255, 255, 255, .7);
    --side-bg: var(--navy);
    --hello-bg: linear-gradient(120deg, #0c3a5e 0%, #0f4a75 70%, #13588a 100%);
    color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }

/* La barra lateral y la bienvenida siguen siendo superficies oscuras (marino) */
:root[data-theme="light"] .tm-side,
:root[data-theme="light"] .e-hello {
    --txt: #f1f7fc; --txt-2: #c6d8e8; --txt-3: #9cb8cf;
    --night-3: rgba(255, 255, 255, .09); --night-4: rgba(255, 255, 255, .16);
    --line: rgba(255, 255, 255, .13); --line-2: rgba(255, 255, 255, .24);
    --neon: #a8e03c; --yellow: #ffd23f; --sky: #7fd6f5; --coral: #ff9e7f;
    color: var(--txt);
}
:root[data-theme="light"] .tm-side { border-right: 0; }
:root[data-theme="light"] .e-hello { border: 0; }

:root[data-theme="light"] .e-card, :root[data-theme="light"] .e-course, :root[data-theme="light"] .e-class,
:root[data-theme="light"] .e-task, :root[data-theme="light"] .e-file, :root[data-theme="light"] .e-kpi,
:root[data-theme="light"] .e-table-wrap, :root[data-theme="light"] .tmc .card, :root[data-theme="light"] .e-tabs {
    box-shadow: 0 1px 2px rgba(12, 58, 94, .05), 0 4px 14px -8px rgba(12, 58, 94, .12);
}
:root[data-theme="light"] .e-course:hover { box-shadow: 0 18px 36px -20px rgba(12, 58, 94, .35); }
:root[data-theme="light"] .e-tabs [aria-current="true"], :root[data-theme="light"] .e-tabs [aria-selected="true"] { background: var(--navy); color: #fff !important; }
:root[data-theme="light"] .e-tabs [aria-current="true"] .num, :root[data-theme="light"] .e-tabs [aria-selected="true"] .num { background: rgba(255, 255, 255, .18); color: #fff; }
:root[data-theme="light"] .e-flash.err { color: var(--red); }
:root[data-theme="light"] .e-file .ic.doc { color: #3451b2; background: rgba(52, 81, 178, .1); }
:root[data-theme="light"] .e-class.today { background: linear-gradient(90deg, rgba(255, 143, 107, .14), #fff 60%); }
:root[data-theme="light"] .tmc .btn-close { filter: none; }
:root[data-theme="light"] .tmc .alert-info, :root[data-theme="light"] .tmc .alert-primary { color: #0a4f72; }
:root[data-theme="light"] .tmc .alert-success { color: #2c5e0b; }
:root[data-theme="light"] .tmc .alert-warning { color: #6e4a00; }
:root[data-theme="light"] .tmc .alert-danger { color: #8f2520; }
:root[data-theme="light"] .tmc .dropdown-menu { box-shadow: 0 20px 50px -16px rgba(12, 58, 94, .35); }
:root[data-theme="light"] .tmc .modal-body[style*="#000"] { background: #0f1412 !important; }
:root[data-theme="light"] .auth-help { background: #fff; }
:root[data-theme="light"] .e-ticket input { background: rgba(255, 255, 255, .7); }
:root[data-theme="light"] .num { background: var(--night-4); color: var(--txt-2); }

/* ==========================================================================
   TM_CURSOS · piezas propias (sitio público, planes, pago, curso)
   ========================================================================== */

.muted { color: var(--txt-3); }
.small { font-size: 13.5px; }
.stack { display: grid; gap: 14px; }
.stack.lg { gap: 22px; }
.row-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-acts.end { justify-content: flex-end; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 14px; } .mt-3 { margin-top: 22px; } .mt-4 { margin-top: 34px; }
.mb-0 { margin-bottom: 0 !important; }
.e-btn.red { --bg: var(--red-f); --fg: #3d0b0b; --bd: var(--red-f); --glow: rgba(255, 107, 107, .5); }
.e-btn.yellow { --bg: var(--yellow-f); --fg: var(--yellow-ink); --bd: var(--yellow-f); --glow: rgba(255, 210, 63, .5); }
.e-btn.dark { --bg: #0f1412; --fg: #fff; --bd: #0f1412; --glow: rgba(0, 0, 0, .5); }
.e-btn.link { --bg: transparent; --bd: transparent; --fg: var(--neon); --glow: transparent; padding: 0 6px; }
.e-btn.icon { width: 40px; padding: 0; }
.e-btn.xs { min-height: 34px; padding: 0 12px; font-size: 11.5px; border-radius: 9px; }
.pill.plain { background: var(--night-3); color: var(--txt-2); }
.e-flash.warn { background: var(--yellow-soft); border-color: rgba(255, 210, 63, .35); color: var(--yellow); }
.e-flash.info { background: var(--sky-soft); border-color: rgba(92, 200, 240, .35); color: var(--sky); }
.e-card.tight { padding: 16px 18px; }
.e-card .h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.e-card .h h3 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 9px; }
.e-card .h h3 i { color: var(--neon); }
.e-divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

/* Formularios */
.e-input.area { min-height: 110px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
select.e-input {
    appearance: none; -webkit-appearance: none; padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='%2382938a'%3E%3Cpath d='M1.6 5.2 8 11.6l6.4-6.4-1.1-1.1L8 9.4 2.7 4.1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.e-field .hint { font-size: 13px; color: var(--txt-3); }
.e-field .req { color: var(--coral); }
.e-row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.e-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.e-check input { width: 19px; height: 19px; accent-color: var(--lime); }
input[type=file].e-input { padding: 11px 14px; min-height: 0; }
input[type=file].e-input::file-selector-button {
    margin-right: 12px; padding: 8px 14px; border-radius: 9px; border: 0;
    background: var(--night-3); color: var(--txt); font: inherit; font-weight: 700; cursor: pointer;
}

/* Zona para soltar el comprobante */
.e-drop {
    position: relative; display: grid; justify-items: center; text-align: center; gap: 6px;
    padding: 26px 18px; border-radius: 16px; border: 2px dashed var(--line-2);
    background: var(--empty-bg); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.e-drop:hover, .e-drop.is-over { border-color: var(--lime); background: var(--neon-soft); }
.e-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.e-drop .ico { font-size: 30px; color: var(--neon); }
.e-drop b { font-size: 15.5px; }
.e-drop span { font-size: 13px; color: var(--txt-3); }
.e-drop.has-file { border-style: solid; border-color: var(--lime); }
.e-drop img.prev { max-height: 160px; border-radius: 10px; margin-top: 8px; }

/* ── Sitio público ────────────────────────────────────────────────────── */
.pub-top {
    position: sticky; top: 0; z-index: 50;
    background: var(--top-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.pub-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.pub-top .pub-wrap { display: flex; align-items: center; gap: 18px; height: 70px; }
.pub-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--txt) !important; }
.pub-brand img { width: 34px; height: 34px; }
.pub-brand b { font-family: var(--title); font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.pub-brand small { display: block; margin-top: 4px; font-family: var(--label); font-weight: 800; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--neon); }
.pub-links { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.pub-links a { padding: 9px 13px; border-radius: 10px; color: var(--txt-2) !important; text-decoration: none; font-weight: 600; font-size: 15px; }
.pub-links a:hover { color: var(--txt) !important; background: var(--night-3); }
.pub-links a[aria-current="page"] { color: var(--txt) !important; background: var(--night-3); }
.pub-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pub-burger { display: none; }
@media (max-width: 860px) {
    .pub-links {
        position: fixed; top: 70px; left: 0; right: 0; margin: 0; padding: 12px var(--gutter) 18px;
        flex-direction: column; align-items: stretch; background: var(--night-2); border-bottom: 1px solid var(--line);
        display: none;
    }
    body.nav-open .pub-links { display: flex; }
    .pub-burger { display: inline-grid; }
    .pub-right .hide-sm { display: none; }
}

.pub-foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 34px 0 40px; color: var(--txt-3); font-size: 14px; }
.pub-foot .pub-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; align-items: center; }
.pub-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.pub-foot a { color: var(--txt-2) !important; text-decoration: none; }
.pub-foot a:hover { color: var(--txt) !important; }

/* Hero del catálogo */
.pub-hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.pub-hero::before {
    content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -260px;
    background: radial-gradient(circle, rgba(168, 224, 60, .16), transparent 62%); pointer-events: none;
}
.pub-hero .pub-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.pub-hero h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; margin: 14px 0 0; }
.pub-hero h1 em { font-style: normal; color: var(--neon-ink); background: var(--lime); padding: 0 .16em .04em; border-radius: .14em; white-space: nowrap; }
.pub-hero .lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--txt-2); margin: 20px 0 0; max-width: 46ch; }
.pub-hero .row-acts { margin-top: 30px; gap: 12px; }
.pub-hero .e-btn { min-height: 54px; padding: 0 26px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--txt-2); font-size: 14.5px; }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks i { color: var(--neon); }
@media (max-width: 900px) { .pub-hero .pub-wrap { grid-template-columns: minmax(0, 1fr); } }

/* Tarjetas de plan */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.plan {
    position: relative; display: flex; flex-direction: column; gap: 6px;
    padding: 26px 24px 24px; border-radius: 24px;
    background: var(--night-2); border: 1px solid var(--line);
    transition: transform .2s var(--ease), border-color .2s;
}
.plan:hover { transform: translateY(-3px); border-color: var(--line-2); }
.plan.best { background: var(--lime); border-color: var(--lime); color: var(--neon-ink); }
.plan.best h3, .plan.best .price b { color: var(--neon-ink) !important; }
.plan.best .muted, .plan.best .was, .plan.best .desc { color: rgba(29, 51, 4, .78); }
.plan .flag {
    position: absolute; top: -13px; right: 20px; padding: 5px 12px; border-radius: 999px;
    background: #0f1412; color: var(--lime); font-family: var(--label); font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.plan h3 { font-size: 22px; font-weight: 800; margin: 0; }
.plan .desc { color: var(--txt-2); font-size: 14.5px; margin: 0; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.plan .price b { font-family: var(--title); font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.plan .price span { font-family: var(--label); font-weight: 800; font-size: 14px; letter-spacing: .06em; }
.plan .was { font-size: 13.5px; color: var(--txt-3); }
.plan ul { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 14.5px; }
.plan li i { color: var(--neon); font-size: 17px; line-height: 1.3; }
.plan.best li i { color: var(--neon-ink); }
.plan .e-btn { margin-top: auto; }
.plan.best .e-btn { --bg: #0f1412; --fg: #fff; --bd: #0f1412; --glow: rgba(0, 0, 0, .45); }
.plan.is-current { outline: 2px solid var(--sky-f); outline-offset: 3px; }

/* Bloques de sección pública */
.pub-sec { padding: clamp(36px, 5vw, 64px) 0 0; }
.pub-sec .e-sec-h h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.pub-sec .sub { color: var(--txt-2); margin: 8px 0 0; max-width: 60ch; }

/* Filtros del catálogo */
.e-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.e-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.e-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--txt-3); }
.e-search .e-input { padding-left: 44px; min-height: 46px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line-2); background: transparent; color: var(--txt-2) !important; text-decoration: none;
    font-weight: 600; font-size: 14px; cursor: pointer;
}
.chip:hover { color: var(--txt) !important; border-color: var(--txt-3); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--txt); color: var(--night) !important; border-color: var(--txt); }

/* Precio en tarjeta de curso */
.price-tag { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-tag b { font-family: var(--title); font-size: 21px; font-weight: 800; }
.price-tag s { color: var(--txt-3); font-size: 13.5px; }
.price-tag .off { font-family: var(--label); font-weight: 800; font-size: 11px; color: var(--coral); letter-spacing: .06em; }
.e-course .cover .tag-r { position: absolute; right: 12px; top: 12px; }
.e-course .incl { font-size: 12.5px; font-weight: 700; color: var(--neon); display: inline-flex; gap: 6px; align-items: center; }

/* Detalle de curso */
.course-hero { padding: clamp(36px, 5vw, 64px) 0 0; }
.course-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 34px; align-items: start; }
.course-grid > aside { position: sticky; top: 92px; }
@media (max-width: 960px) { .course-grid { grid-template-columns: minmax(0, 1fr); } .course-grid > aside { position: static; } }
.course-hero h1 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.03em; margin: 12px 0 0; }
.course-hero .lead { color: var(--txt-2); font-size: 18px; margin: 14px 0 0; max-width: 56ch; }
.teacher { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.teacher b { display: block; font-size: 15px; }
.teacher span { font-size: 13px; color: var(--txt-3); }
.buy-card { border-radius: 24px; overflow: hidden; background: var(--night-2); border: 1px solid var(--line); }
.buy-card .cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-3); }
.buy-card .cover img, .buy-card .cover .cover-fb { width: 100%; height: 100%; object-fit: cover; }
.buy-card .in { padding: 22px; display: grid; gap: 14px; }
.buy-card .price-tag b { font-size: 36px; }
.buy-card .or { display: flex; align-items: center; gap: 12px; color: var(--txt-3); font-family: var(--label); font-weight: 800; font-size: 11px; letter-spacing: .14em; }
.buy-card .or::before, .buy-card .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.buy-card .sub-offer { padding: 14px 16px; border-radius: 14px; background: var(--neon-soft); border: 1px solid rgba(168, 224, 60, .3); font-size: 14px; }
.buy-card .sub-offer b { color: var(--neon); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; color: var(--txt-2); }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; }
.ticks i { color: var(--neon); }

/* Etapas (temario) */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: st; }
.stage { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--night-2); border: 1px solid var(--line); }
.stage .n { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--night-3); font-family: var(--title); font-weight: 800; font-size: 19px; color: var(--neon); }
.stage h4 { font-family: var(--text) !important; letter-spacing: 0; font-size: 16px; font-weight: 700; margin: 0; }
.stage p { margin: 3px 0 0; color: var(--txt-3); font-size: 13.5px; }
.stage .when { font-size: 13px; color: var(--txt-3); white-space: nowrap; }
@media (max-width: 560px) { .stage { grid-template-columns: 40px minmax(0, 1fr); } .stage .n { width: 40px; height: 40px; } .stage .when { grid-column: 2; } }

/* Video responsivo */
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Pago: pasos, métodos y resumen ───────────────────────────────────── */
.e-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 26px; padding: 0; counter-reset: s; }
.e-steps li { display: inline-flex; align-items: center; gap: 9px; color: var(--txt-3); font-weight: 600; font-size: 14px; counter-increment: s; }
.e-steps li::before {
    content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: var(--night-3); color: var(--txt-2); font-family: var(--label); font-weight: 800; font-size: 12px;
}
.e-steps li.done::before { content: "✓"; background: var(--neon-soft); color: var(--neon); }
.e-steps li.on { color: var(--txt); }
.e-steps li.on::before { background: var(--lime); color: var(--neon-ink); }

.methods { display: grid; gap: 10px; }
.method { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 22px; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); cursor: pointer; transition: border-color .15s, background-color .15s; }
.method:hover { border-color: var(--txt-3); }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--night-3); color: var(--neon); }
.method b { display: block; font-size: 15px; }
.method span { font-size: 13px; color: var(--txt-3); }
.method .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); }
.method:has(input:checked) { border-color: var(--lime); background: var(--neon-soft); }
.method:has(input:checked) .tick { border-color: var(--lime); background: var(--lime); box-shadow: inset 0 0 0 4px var(--night-2); }
.method:has(input:focus-visible) { outline: 3px solid var(--sky); outline-offset: 2px; }
.method-info { display: none; margin-top: 12px; padding: 18px; border-radius: 16px; background: var(--night-3); }
.method-info.show { display: grid; gap: 12px; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.method-info .qr { width: 180px; padding: 10px; border-radius: 14px; background: #fff; }
.method-info .qr img { display: block; width: 100%; height: auto; }
.method-info .txt { white-space: pre-line; font-size: 14.5px; color: var(--txt); }
.method-info .txt .lbl { display: block; font-family: var(--label); font-weight: 800; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-3); margin-bottom: 6px; }
@media (max-width: 560px) { .method-info.show { grid-template-columns: minmax(0, 1fr); justify-items: center; } }

.summary { display: grid; gap: 10px; font-size: 14.5px; }
.summary .ln { display: flex; justify-content: space-between; gap: 12px; color: var(--txt-2); }
.summary .ln b { color: var(--txt); }
.summary .total { padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.summary .total b { font-family: var(--title); font-size: 30px; font-weight: 800; color: var(--txt); }
.amount-lock { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--night-3); font-size: 13.5px; color: var(--txt-2); }
.amount-lock i { color: var(--neon); font-size: 17px; }

/* Estado de la suscripción */
.e-sub { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 22px; background: var(--lime); color: var(--neon-ink); }
.e-sub::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(29, 51, 4, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 51, 4, .08) 1px, transparent 1px); background-size: 30px 30px; pointer-events: none; }
.e-sub > * { position: relative; }
.e-sub .eyebrow { color: rgba(29, 51, 4, .8); }
.e-sub h3 { color: var(--neon-ink) !important; font-size: 24px; font-weight: 800; margin: 6px 0 0; }
.e-sub p { margin: 6px 0 0; color: rgba(29, 51, 4, .85); font-size: 14.5px; }
.e-sub .bar { background: rgba(29, 51, 4, .15); margin-top: 12px; max-width: 360px; }
.e-sub .bar > span { background: var(--neon-ink); }
.e-sub .e-btn { --bg: #0f1412; --fg: #fff; --bd: #0f1412; --glow: rgba(0, 0, 0, .4); }
.e-sub.wait { background: var(--yellow-f); color: var(--yellow-ink); }
.e-sub.wait h3 { color: var(--yellow-ink) !important; }
.e-sub.wait p, .e-sub.wait .eyebrow { color: rgba(58, 44, 0, .85); }
.e-sub.none { background: var(--night-2); color: var(--txt); border: 1px solid var(--line); }
.e-sub.none::before { display: none; }
.e-sub.none h3 { color: var(--txt) !important; }
.e-sub.none p { color: var(--txt-2); }
.e-sub.none .eyebrow { color: var(--neon); }
.e-sub.none .e-btn { --bg: var(--lime); --fg: var(--neon-ink); --bd: var(--lime); --glow: rgba(168, 224, 60, .55); }
@media (max-width: 640px) { .e-sub { grid-template-columns: minmax(0, 1fr); } }

/* Revisión de pagos (admin) */
.review { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--night-2); border: 1px solid var(--line); }
.review.warn { border-color: rgba(255, 210, 63, .5); }
.review .thumb { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--night-3); display: grid; place-items: center; color: var(--txt-3); font-size: 26px; border: 0; padding: 0; cursor: zoom-in; }
.review .thumb img { width: 100%; height: 100%; object-fit: cover; }
.review h4 { font-family: var(--text) !important; letter-spacing: 0; font-size: 16px; font-weight: 700; margin: 0; }
.review .sub { color: var(--txt-3); font-size: 13.5px; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.review .mismatch { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--yellow); display: inline-flex; gap: 6px; align-items: center; }
.review form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.review .amt { font-family: var(--title); font-weight: 800; font-size: 20px; white-space: nowrap; text-align: right; }
@media (max-width: 760px) { .review { grid-template-columns: 64px minmax(0, 1fr); } .review .thumb { width: 64px; height: 64px; } .review > :last-child { grid-column: 1 / -1; } .review form { justify-content: flex-start; } }

/* ── Modales (login, registro, vista previa, confirmaciones) ──────────── */
.modal-backdrop-custom {
    position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center;
    padding: 16px; background: rgba(5, 8, 7, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.modal-backdrop-custom.show { display: flex; animation: tmFade .18s ease-out; }
.modal-card {
    position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto;
    border-radius: 24px; background: var(--night-2); border: 1px solid var(--line-2); color: var(--txt);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); animation: tmRise .22s var(--ease);
}
.modal-card.wide { max-width: 920px; }
.modal-head { padding: 26px 26px 6px; }
.modal-head h3 { font-size: 26px; font-weight: 800; margin: 8px 0 4px; }
.modal-head p { margin: 0; color: var(--txt-2); }
.modal-body { padding: 18px 26px 8px; }
.modal-foot { padding: 6px 26px 24px; color: var(--txt-2); font-size: 14.5px; text-align: center; }
.modal-foot a { font-weight: 700; cursor: pointer; }
.close-btn { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--txt-2); font-size: 16px; cursor: pointer; }
.close-btn:hover { color: var(--txt); border-color: var(--line-2); }
.modal-card .alert-err { display: none; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.preview-modal .modal-body img, .preview-modal .modal-body video { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 12px; }
.preview-modal .modal-body iframe { width: 100%; height: 70vh; border: 0; border-radius: 12px; background: #fff; }
@keyframes tmFade { from { opacity: 0; } }
@keyframes tmRise { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* Aviso flotante */
.toast-flash {
    position: fixed; z-index: 3100; left: 50%; bottom: 24px; transform: translateX(-50%);
    display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100vw - 32px));
    padding: 14px 16px; border-radius: 16px; background: var(--night-2); border: 1px solid var(--line-2);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7); font-weight: 600; animation: tmRise .25s var(--ease);
    transition: opacity .3s, transform .3s;
}
.toast-flash.hide { opacity: 0; transform: translate(-50%, 10px); }
.toast-flash .toast-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--sky-soft); color: var(--sky); font-weight: 800; }
.toast-flash.toast-success .toast-icon { background: var(--neon-soft); color: var(--neon); }
.toast-flash.toast-danger .toast-icon { background: var(--red-soft); color: var(--red); }
.toast-flash.toast-warning .toast-icon { background: var(--yellow-soft); color: var(--yellow); }
.toast-flash .toast-close { margin-left: 6px; background: none; border: 0; color: var(--txt-3); cursor: pointer; font-size: 15px; }

/* Menú de usuario sin Bootstrap */
.me-menu { position: relative; }
.me-menu > summary { list-style: none; }
.me-menu > summary::-webkit-details-marker { display: none; }
.me-pop {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 60;
    padding: 8px; border-radius: 16px; background: var(--night-2); border: 1px solid var(--line-2);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7);
}
.me-pop a, .me-pop .who { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--txt) !important; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.me-pop .who { display: block; color: var(--txt-3) !important; font-weight: 500; font-size: 13px; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 6px; }
.me-pop .who b { display: block; color: var(--txt); font-size: 14.5px; }
.me-pop a:hover { background: var(--night-3); }
.me-pop a.danger { color: var(--red) !important; }

/* Campana con lista */
.notif-pop { min-width: 300px; }
.notif-pop .dd-item { display: grid !important; grid-template-columns: 30px minmax(0, 1fr); align-items: start !important; }
.notif-pop .dd-item i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--night-3); color: var(--neon); font-size: 14px; }
.notif-pop .dd-empty { padding: 18px 12px; text-align: center; color: var(--txt-3); font-size: 14px; }

/* ── Curso por dentro (alumno) ────────────────────────────────────────── */
.lesson-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1100px) { .lesson-grid { grid-template-columns: minmax(0, 1fr); } }
.player { border-radius: 20px; overflow: hidden; background: var(--night-2); border: 1px solid var(--line); }
.player .video-wrap { border-radius: 0; }
.player .meta { padding: 16px 20px 18px; }
.player .meta h2 { font-size: 21px; font-weight: 800; margin: 0; }
.player .meta p { margin: 4px 0 0; color: var(--txt-3); font-size: 14px; }
.player .placeholder { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--txt-3); background: var(--night-3); }
.stage-acc { border-radius: 16px; background: var(--night-2); border: 1px solid var(--line); overflow: hidden; }
.stage-acc + .stage-acc { margin-top: 10px; }
.stage-acc > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; }
.stage-acc > summary::-webkit-details-marker { display: none; }
.stage-acc > summary .n { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--night-3); font-family: var(--title); font-weight: 800; color: var(--neon); }
.stage-acc > summary b { display: block; font-size: 15.5px; }
.stage-acc > summary span { font-size: 13px; color: var(--txt-3); }
.stage-acc > summary .chev { transition: transform .2s; color: var(--txt-3); }
.stage-acc[open] > summary .chev { transform: rotate(180deg); }
.stage-acc .items { border-top: 1px solid var(--line); padding: 6px; display: grid; gap: 2px; }
.item-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 11px; color: var(--txt) !important; text-decoration: none; background: none; border: 0; width: 100%; text-align: left; font: inherit; cursor: pointer; }
.item-row:hover, .item-row.on { background: var(--night-3); }
.item-row.on { box-shadow: inset 3px 0 0 var(--lime); }
.item-row .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--night-3); color: var(--txt-2); font-size: 15px; }
.item-row .ic.video { background: var(--sky-soft); color: var(--sky); }
.item-row .ic.file { background: var(--yellow-soft); color: var(--yellow); }
.item-row .ic.task { background: var(--coral-soft); color: var(--coral); }
.item-row .ic.done { background: var(--neon-soft); color: var(--neon); }
.item-row .t { font-weight: 600; font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-row .s { font-size: 12.5px; color: var(--txt-3); white-space: nowrap; }

/* Accesos rápidos */
.e-quick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.e-quick a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--night-2); border: 1px solid var(--line); color: var(--txt) !important; text-decoration: none; font-weight: 700; }
.e-quick a:hover { border-color: var(--line-2); }
.e-quick a i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--neon-soft); color: var(--neon); }
.e-quick a span { display: block; font-weight: 500; font-size: 13px; color: var(--txt-3); }

/* Barras simples para reportes */
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.hbar .bar { height: 10px; }
.hbar b { font-variant-numeric: tabular-nums; }

/* Modo claro: piezas propias */
:root[data-theme="light"] .plan, :root[data-theme="light"] .buy-card, :root[data-theme="light"] .stage,
:root[data-theme="light"] .review, :root[data-theme="light"] .player, :root[data-theme="light"] .stage-acc,
:root[data-theme="light"] .e-quick a, :root[data-theme="light"] .modal-card, :root[data-theme="light"] .toast-flash {
    box-shadow: 0 1px 2px rgba(12, 58, 94, .05), 0 4px 14px -8px rgba(12, 58, 94, .12);
}
:root[data-theme="light"] .plan.best { box-shadow: 0 24px 50px -24px rgba(59, 122, 16, .5); }
:root[data-theme="light"] .modal-backdrop-custom { background: rgba(15, 34, 51, .45); }
:root[data-theme="light"] .pub-links { background: #fff; }
:root[data-theme="light"] .e-flash.warn { color: var(--yellow); }
:root[data-theme="light"] .e-flash.info { color: var(--sky); }
:root[data-theme="light"] .method-info { background: var(--night-3); }
:root[data-theme="light"] .pub-hero::before { background: radial-gradient(circle, rgba(120, 180, 40, .2), transparent 62%); }
:root[data-theme="light"] .pub-hero h1 em { color: var(--neon-ink); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
.pub-links .hide-lg { display: none; }
@media (max-width: 860px) { .pub-links .hide-lg { display: block; } }

/* Collage de portadas reales en el hero */
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; transform: rotate(-2deg); }
.hero-collage .hc { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--night-3); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); }
.hero-collage .hc:nth-child(2) { transform: translateY(26px); }
.hero-collage .hc:nth-child(4) { transform: translateY(26px); }
.hero-collage .hc img, .hero-collage .hc .cover-fb { width: 100%; height: 100%; object-fit: cover; }
.hero-collage .hc span { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(15, 20, 18, .82); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-collage .hc:only-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .hero-collage { display: none; } }

/* Cómo funciona */
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.how li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; padding: 20px; border-radius: 20px; background: var(--night-2); border: 1px solid var(--line); }
.how b { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--lime); color: var(--neon-ink); font-family: var(--title); font-size: 24px; font-weight: 800; }
.how h3 { font-size: 18px; margin: 4px 0 4px; }
.how p { margin: 0; color: var(--txt-2); font-size: 14.5px; }

/* Preguntas frecuentes */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--title); font-size: 24px; color: var(--neon); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--txt-2); max-width: 70ch; }
:root[data-theme="light"] .how li { box-shadow: 0 1px 2px rgba(12, 58, 94, .05), 0 4px 14px -8px rgba(12, 58, 94, .12); }

/* Retoques pedidos al rehacer páginas */
[hidden], .e-field[hidden] { display: none !important; }
.e-file .ic.cert { background: var(--neon-soft); color: var(--neon); }
.e-course.static:hover { transform: none; box-shadow: none; }
.e-course.static:hover .cover img { transform: none; }
@media (max-width: 560px) { .e-grid.c4.kpi-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .kpi-3 .e-kpi b { font-size: 26px; } }
.e-card .h.mt-3 { margin-top: 26px; } .e-card .h.mt-2 { margin-top: 18px; }
