/* =========================================================================
   CAMPUS AMPLIFIA — misma identidad que www.grupoamplifia.com
   ink #070707 · paper #efece5 · lime #d7f24a · olive #43590a
   Instrument Serif (titulares) + Inter (interfaz)
   ========================================================================= */
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #070707;
  --ink-1: #0b0b0a;
  --ink-2: #0f0f0e;
  --ink-3: #151513;
  --ink-4: #1d1d1a;
  --paper: #efece5;
  --paper-2: rgba(239, 236, 229, 0.82);
  --muted: rgba(239, 236, 229, 0.6);
  --faint: rgba(239, 236, 229, 0.38);
  --line: rgba(239, 236, 229, 0.09);
  --line-2: rgba(239, 236, 229, 0.16);
  --line-3: rgba(239, 236, 229, 0.26);
  --lime: #d7f24a;
  --lime-2: #e4f76b;
  --lime-a: rgba(215, 242, 74, 0.1);
  --lime-b: rgba(215, 242, 74, 0.22);
  --olive: #43590a;
  --coral: #ff7a63;
  --coral-a: rgba(255, 122, 99, 0.12);
  --amber: #f2c14a;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --side: 248px;
  --top: 68px;
  --gut: clamp(16px, 3.2vw, 44px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html.has-modal { overflow: hidden; }
body { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--paper); background: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100vh; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; text-align: inherit; }
ul, ol { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
h1:focus { outline: none; }
::selection { background: var(--lime); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
code, .mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.92em; letter-spacing: 0.02em; }
code { background: var(--ink-3); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

/* ---------- íconos */
.i { width: 20px; height: 20px; flex-shrink: 0; }
.i.sm { width: 16px; height: 16px; }
.i.xs { width: 13px; height: 13px; }
.i.xl { width: 46px; height: 46px; }
.i.lime { color: var(--lime); }
.i.ok { color: var(--lime); }

/* ---------- tipografía */
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.4vw, 70px); line-height: 0.96; letter-spacing: -0.02em; font-synthesis: none; }
.display.md { font-size: clamp(32px, 3.4vw, 54px); line-height: 1; }
.display.sm { font-size: clamp(26px, 2.4vw, 38px); line-height: 1.04; }
em { font-style: italic; color: var(--lime); }
.display em, h1 em, h2 em { font-family: var(--serif); }
.kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.lead { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.55; color: var(--paper-2); max-width: 60ch; }
.lead b { color: var(--paper); font-weight: 600; }
.muted { color: var(--muted); }
.small, small { font-size: 13px; }
.prose { color: var(--paper-2); max-width: 70ch; }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--lime); font-size: 14px; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link.small { font-size: 13px; }
.link-btn { color: var(--lime); font-size: 12px; font-weight: 500; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2vw, 32px); line-height: 1.08; letter-spacing: -0.01em; }
h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--ink-4); font-family: var(--sans); font-size: 12px; color: var(--paper-2); vertical-align: middle; }
.mt { margin-top: 28px; }
.block-s { display: block; color: var(--muted); }

/* ---------- botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--lime); color: #000; font-size: 14px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s, color 0.25s; border: 1px solid transparent; }
.btn:hover { background: var(--lime-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--paper); border-color: var(--line-3); }
.btn.ghost:hover { border-color: var(--lime); color: var(--lime); background: var(--lime-a); }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn.lg { min-height: 54px; padding: 0 28px; font-size: 15px; }
.btn.block { width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
.btn.danger { background: var(--coral); }
.btn.is-done { background: var(--lime-a); color: var(--lime); border-color: var(--lime-b); }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn.is-busy { opacity: 0.7; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
.danger-t { color: var(--coral) !important; }
.danger-t:hover { border-color: var(--coral) !important; background: var(--coral-a) !important; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--paper-2); transition: background 0.2s, color 0.2s; position: relative; flex-shrink: 0; }
.icon-btn:hover { background: var(--ink-4); color: var(--paper); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn:disabled { opacity: 0.3; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- formularios */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-l { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field-h { color: var(--faint); font-size: 12px; }
.input { width: 100%; min-height: 50px; padding: 13px 16px; border-radius: var(--r-md); background: var(--ink-2); border: 1px solid var(--line-2); color: var(--paper); font-size: 15px; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; outline: none; }
textarea.input { min-height: 0; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input::placeholder { color: var(--faint); }
.input:hover { border-color: var(--line-3); }
.input:focus { border-color: var(--lime); background: var(--ink-1); box-shadow: 0 0 0 4px var(--lime-a); }
.input:disabled { opacity: 0.55; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.row { display: flex; gap: 10px; }
.row .input { flex: 1; }
.pass { position: relative; display: block; }
.pass .input { padding-right: 52px; }
.pass-eye { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.pass-eye:hover { color: var(--paper); }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--paper-2); cursor: pointer; position: relative; line-height: 1.35; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-3); flex-shrink: 0; display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.check input:checked + span { background: var(--lime); border-color: var(--lime); }
.check input:checked + span::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #000; border-bottom: 2px solid #000; rotate: -45deg; translate: 0 -1px; }
.check input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.checks.col { display: grid; gap: 10px; max-height: 240px; overflow: auto; padding: 4px 2px; }
.switch { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--paper-2); cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 42px; height: 24px; border-radius: 99px; background: var(--ink-4); border: 1px solid var(--line-2); position: relative; flex-shrink: 0; transition: background 0.2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); transition: translate 0.25s var(--ease), background 0.2s; }
.switch input:checked + span { background: var(--lime); border-color: var(--lime); }
.switch input:checked + span::after { translate: 18px 0; background: #000; }
.switch input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.meter i { height: 3px; border-radius: 2px; background: var(--line-2); transition: background 0.2s; }
.meter[data-s="1"] i:nth-child(-n+1) { background: var(--coral); }
.meter[data-s="2"] i:nth-child(-n+2) { background: var(--amber); }
.meter[data-s="3"] i:nth-child(-n+3) { background: var(--lime); }
.meter[data-s="4"] i { background: var(--lime); }
.form-err { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--coral-a); border: 1px solid rgba(255, 122, 99, 0.35); color: #ffc2b6; font-size: 14px; }
.form-err .i { color: var(--coral); margin-top: 1px; }
.form-ok { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--lime-a); border: 1px solid var(--lime-b); font-size: 14px; color: var(--paper-2); }
.form-ok .i { color: var(--lime); }
.seg-ctl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seg-ctl label { cursor: pointer; }
.seg-ctl input { position: absolute; opacity: 0; }
.seg-ctl span { display: grid; gap: 3px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--ink-2); height: 100%; transition: border-color 0.2s, background 0.2s; }
.seg-ctl small { color: var(--muted); font-size: 12px; }
.seg-ctl input:checked + span { border-color: var(--lime); background: var(--lime-a); }
.seg-ctl input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---------- arranque */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--ink); z-index: 999; }
.boot .logo-mark { width: 54px; height: 64px; }
.boot .bar { fill: var(--paper); animation: rise 1.1s var(--ease) infinite alternate; transform-origin: bottom; transform-box: fill-box; }
.boot .bar:nth-child(2) { animation-delay: 0.1s; } .boot .bar:nth-child(3) { animation-delay: 0.2s; } .boot .bar:nth-child(4) { animation-delay: 0.3s; }
.boot .stripe { fill: var(--lime); }
@keyframes rise { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }

/* ---------- marca */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 24px; height: 28px; overflow: visible; }
.logo-mark .bar { fill: var(--paper); }
.logo-mark .stripe { fill: var(--lime); }
.brand-name { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1; }
.brand-tag { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lime); border: 1px solid var(--lime-b); padding: 4px 8px 3px; border-radius: 99px; }

/* =========================================================================
   SHELL
   ========================================================================= */
.shell { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--ink-1); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 14px 18px; z-index: 40; }
.side .brand { padding: 4px 10px 26px; }
.side-nav { display: grid; gap: 2px; overflow-y: auto; flex: 1; align-content: start; scrollbar-width: none; }
.side-label { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); padding: 18px 12px 8px; }
.side-label:first-child { padding-top: 0; }
.side-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 500; position: relative; transition: background 0.2s, color 0.2s; }
.side-link:hover { background: var(--ink-3); color: var(--paper); }
.side-link.is-on { color: var(--lime); background: var(--lime-a); }
.side-link.is-on::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--lime); }
.side-foot { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.side-out { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--muted); font-size: 13px; border-radius: 10px; }
.side-out:hover { color: var(--paper); background: var(--ink-3); }
.side-out .i:last-child { margin-left: auto; opacity: 0.6; }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; margin: 0 12px; padding: 6px 10px; border-radius: 99px; background: rgba(242, 193, 74, 0.1); border: 1px solid rgba(242, 193, 74, 0.28); color: var(--amber); font-size: 11.5px; width: fit-content; }

.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: var(--top); margin-left: var(--side); padding: 0 var(--gut); background: rgba(7, 7, 7, 0.94); border-bottom: 1px solid var(--line); }
.top-brand { display: none; }
.search-trigger { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 14px; border-radius: 99px; background: var(--ink-2); border: 1px solid var(--line); color: var(--faint); font-size: 14px; transition: border-color 0.2s; }
.search-trigger:hover { border-color: var(--line-3); color: var(--muted); }
.search-trigger span { flex: 1; }
kbd { font-family: var(--sans); font-size: 11px; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); background: var(--ink-3); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.search-mobile { display: none; }
.bell .dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--lime); color: #000; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--ink); }
.user-btn { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 10px 0 4px; border-radius: 99px; transition: background 0.2s; font-size: 14px; font-weight: 500; }
.user-btn:hover { background: var(--ink-3); }
.user-btn .i { opacity: 0.6; }

.view { margin-left: var(--side); padding: clamp(24px, 3.4vw, 48px) var(--gut) 80px; position: relative; min-height: calc(100vh - var(--top)); }
.view::before { content: ""; position: fixed; top: -20vh; right: -10vw; width: 60vw; height: 60vh; background: radial-gradient(closest-side, rgba(215, 242, 74, 0.055), transparent); pointer-events: none; z-index: -1; }
.view > * { max-width: 1320px; margin-left: auto; margin-right: auto; }
.view.bare, .view.focus { margin: 0; padding: 0; min-height: 100vh; }
.view.bare > *, .view.focus > * { max-width: none; }
.view.bare::before, .view.focus::before { display: none; }
.view-in > * { animation: viewIn 0.42s var(--ease) both; }
.view-in > *:nth-child(2) { animation-delay: 0.04s; } .view-in > *:nth-child(3) { animation-delay: 0.08s; } .view-in > *:nth-child(n+4) { animation-delay: 0.12s; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tabbar { display: none; }

/* ---------- popovers */
.pop { position: fixed; z-index: 120; width: min(380px, calc(100vw - 24px)); background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); overflow: hidden; animation: popIn 0.2s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } }
.pop-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.pop-list { max-height: min(420px, 60vh); overflow: auto; padding: 0 8px 8px; }
.notif { display: flex; gap: 12px; padding: 12px 10px; border-radius: 12px; }
.notif:hover { background: var(--ink-3); }
.notif-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-4); color: var(--muted); flex-shrink: 0; }
.notif.is-new .notif-ic { background: var(--lime-a); color: var(--lime); }
.notif b { display: block; font-size: 14px; font-weight: 600; }
.notif small { display: block; color: var(--muted); }
.notif i { font-style: normal; font-size: 12px; color: var(--faint); }
.notif.is-new b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin-left: 7px; vertical-align: middle; }
.pop-empty { padding: 26px 18px; color: var(--muted); text-align: center; font-size: 14px; }
.pop-usermenu { width: 290px; }
.pop-user { display: flex; gap: 12px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.pop-user b { display: block; font-size: 15px; }
.pop-user small { display: block; color: var(--muted); font-size: 12.5px; word-break: break-all; }
.pop-menu { display: grid; padding: 8px; }
.pop-menu a, .pop-menu button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; font-size: 14px; color: var(--paper-2); width: 100%; }
.pop-menu a:hover, .pop-menu button:hover { background: var(--ink-3); color: var(--paper); }

/* ---------- avatar */
.av { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 600; flex-shrink: 0; object-fit: cover; letter-spacing: 0.02em; }
.av.t0 { background: var(--lime); color: #000; }
.av.t1 { background: var(--paper); color: #000; }
.av.t2 { background: var(--olive); color: var(--lime); }
.av.lg { width: 48px; height: 48px; font-size: 16px; }
.av.xl { width: 88px; height: 88px; font-size: 30px; font-family: var(--serif); font-weight: 400; }

/* ---------- modal */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal-back { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); opacity: 0; transition: opacity 0.2s; }
.modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r); opacity: 0; transform: translateY(12px) scale(0.98); transition: opacity 0.22s var(--ease), transform 0.22s var(--ease); }
.modal.wide .modal-card { width: min(820px, 100%); }
.modal.is-open .modal-back { opacity: 1; }
.modal.is-open .modal-card { opacity: 1; transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 6px; position: sticky; top: 0; background: var(--ink-2); z-index: 2; }
.modal-head h2 { font-size: 26px; }
.modal-body { padding: 14px 22px 22px; display: grid; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--ink-2); flex-wrap: wrap; }
.celebrate { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 10px 0; color: var(--paper-2); }
.celebrate .i { width: 56px; height: 56px; color: var(--lime); }
.quote { padding: 14px 16px; border-left: 3px solid var(--lime); background: var(--ink-3); border-radius: 0 12px 12px 0; display: grid; gap: 4px; }
.quote small { color: var(--muted); }
.rec-video { width: 100%; border-radius: var(--r-md); background: #000; aspect-ratio: 16/9; }

/* búsqueda */
.search-modal { place-items: start center; padding-top: 12vh; }
.search-modal .modal-card { width: min(640px, 100%); }
.search-modal .modal-body { padding: 0; }
.sp-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.sp-in input { flex: 1; background: none; border: 0; outline: none; font-size: 17px; color: var(--paper); min-width: 0; }
.sp-list { max-height: 54vh; overflow: auto; padding: 8px; }
.sp-item { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 12px; color: var(--paper-2); }
.sp-item > span { flex: 1; min-width: 0; }
.sp-item b { display: block; font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-item small { color: var(--muted); font-size: 12.5px; }
.sp-item em { font-style: normal; color: var(--faint); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.sp-item.is-sel, .sp-item:hover { background: var(--lime-a); color: var(--paper); }
.sp-item.is-sel .i { color: var(--lime); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; display: flex; align-items: center; gap: 10px; max-width: min(520px, calc(100vw - 32px)); padding: 13px 18px; border-radius: 99px; background: var(--paper); color: #000; font-size: 14px; font-weight: 500; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: transform 0.3s var(--ease), opacity 0.3s; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast .i { color: var(--olive); }
.toast[data-kind="err"] { background: #ffd9d1; }
.toast[data-kind="err"] .i { color: #b8321b; }

/* =========================================================================
   PIEZAS
   ========================================================================= */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.page-head > div { display: grid; gap: 14px; max-width: 900px; }
.head-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.panel { background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2vw, 26px); min-width: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head > div { display: grid; gap: 6px; }
.panel-head h3 { font-size: 15px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 40px 0 18px; }
.sect { margin-top: clamp(34px, 4vw, 52px); }
.sect > h2, .block-head { margin-bottom: 18px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sect.two { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.stack { display: grid; gap: 10px; }
.stack > *, .home-side > *, .home-main > * { min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--lime); }
.notice { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--lime-b); background: var(--lime-a); margin-bottom: 26px; }
.notice > .i { color: var(--lime); }
.notice > div { flex: 1; display: grid; gap: 2px; }
.notice small { color: var(--muted); }

.bar { display: block; height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; position: relative; }
.bar.lg { height: 8px; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--lime); transition: width 0.9s var(--ease); }
.bar.is-in i { width: var(--p); }

.ring { position: relative; width: var(--s); height: var(--s); flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; rotate: -90deg; }
.ring circle { fill: none; }
.ring-bg { stroke: var(--line-2); }
.ring-fg { stroke: var(--lime); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.ring.is-in .ring-fg { stroke-dashoffset: var(--off); }
.ring-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.ring-c b { font-family: var(--serif); font-weight: 400; font-size: calc(var(--s) * 0.26); }
.ring-c b small { font-size: 0.45em; color: var(--muted); font-family: var(--sans); }
.ring-c > small { font-size: 11px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 6px; }

.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--lime); }
.stars .i { width: 14px; height: 14px; }
.stars b { margin-left: 6px; font-size: 13px; color: var(--paper); font-weight: 600; }
.stars small { margin-left: 3px; color: var(--muted); font-size: 12px; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; background: var(--ink-4); color: var(--paper-2); white-space: nowrap; }
.chip-ok { background: var(--lime-a); color: var(--lime); }
.chip-new { background: var(--lime); color: #000; }
.chip-soon { background: rgba(242, 193, 74, 0.14); color: var(--amber); }
.tag { font-style: normal; font-size: 11px; color: var(--lime); border: 1px solid var(--lime-b); border-radius: 99px; padding: 1px 8px; margin-left: 8px; }

.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: clamp(40px, 6vw, 70px) 20px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); }
.empty > .i { width: 38px; height: 38px; color: var(--lime); margin-bottom: 4px; }
.empty h3 { color: var(--paper); font-family: var(--serif); font-weight: 400; font-size: 26px; }
.empty .btn { margin-top: 8px; }

/* portadas */
.cover { position: relative; overflow: hidden; background: var(--ink-3); aspect-ratio: 16 / 10; }
.cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.72) contrast(1.06) brightness(0.86); transition: transform 0.6s var(--ease), filter 0.4s; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 7, 7, 0) 45%, rgba(7, 7, 7, 0.55)); pointer-events: none; }
.cover.is-art::after { display: none; }
.cover.is-art svg { width: 100%; height: 100%; }
.cover.sm { width: 92px; aspect-ratio: 4/3; border-radius: 10px; }
.cover.xs { width: 54px; aspect-ratio: 4/3; border-radius: 8px; }

/* tarjetas de curso */
.cards { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.ccard { display: flex; flex-direction: column; border-radius: var(--r); background: var(--ink-1); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.3s, transform 0.35s var(--ease), background 0.3s; position: relative; }
.ccard:hover { border-color: rgba(215, 242, 74, 0.55); transform: translateY(-3px); background: var(--ink-2); }
.ccard:hover .cover img { transform: scale(1.04); filter: saturate(0.95) contrast(1.05) brightness(0.92); }
.ccard-media { position: relative; }
.ccard-media .chip { position: absolute; top: 12px; left: 12px; z-index: 2; }
.ccard-pct { position: absolute; right: 12px; bottom: 12px; z-index: 2; font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--lime); }
.ccard-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.ccard h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.04; letter-spacing: -0.01em; }
.ccard-sub { color: var(--muted); font-size: 14px; line-height: 1.45; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12.5px; margin-top: auto; padding-top: 8px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.ccard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; }
.ins { display: flex; align-items: center; gap: 0; }
.ins img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink-1); margin-right: -8px; }
.ins small { margin-left: 16px; color: var(--muted); font-size: 12.5px; }
.ccard-prog { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; }
.ccard-prog small { color: var(--muted); font-size: 12.5px; }
.ccard.is-compact h3 { font-size: 22px; }

/* barra de filtros */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.search-box { flex: 1; min-width: min(100%, 280px); display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border-radius: 99px; background: var(--ink-2); border: 1px solid var(--line-2); color: var(--muted); transition: border-color 0.2s, box-shadow 0.2s; }
.search-box:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-a); }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 15px; color: var(--paper); }
.selects { display: flex; gap: 10px; flex-wrap: wrap; }
.select { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 14px; border-radius: 99px; background: var(--ink-2); border: 1px solid var(--line-2); color: var(--muted); }
.select select { appearance: none; background: none; border: 0; outline: none; color: var(--paper); font-size: 14px; padding-right: 6px; cursor: pointer; }
.select select option { background: var(--ink-2); }
.select:focus-within { border-color: var(--lime); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; margin-bottom: 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--paper-2); transition: all 0.2s; white-space: nowrap; }
.chip-btn small { font-size: 11.5px; color: var(--faint); }
.chip-btn:hover { border-color: var(--line-3); color: var(--paper); }
.chip-btn[aria-selected="true"] { background: var(--paper); color: #000; border-color: var(--paper); }
.chip-btn[aria-selected="true"] small { color: rgba(0, 0, 0, 0.55); }
.results-head { margin: 22px 0 12px; }

/* pestañas */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs > a, .tabs > button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.tabs small { font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: var(--ink-4); color: var(--paper-2); }
.tabs > *:hover { color: var(--paper); }
.tabs > [aria-selected="true"] { color: var(--paper); border-color: var(--lime); }
.tabs > [aria-selected="true"] small { background: var(--lime); color: #000; }

/* indicadores */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.kpis-6 { grid-template-columns: repeat(6, 1fr); }
.kpi { display: grid; gap: 4px; align-content: start; padding: 18px 20px; border-radius: var(--r); background: var(--ink-1); border: 1px solid var(--line); min-width: 0; }
.kpi b { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 2.8vw, 44px); line-height: 1; }
.kpi small { color: var(--muted); }
.kpi em { font-style: normal; font-size: 12px; color: var(--lime); }

/* tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-1); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--ink-1); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(239, 236, 229, 0.02); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .acts { text-align: right; white-space: nowrap; }
.table .acts .icon-btn { width: 34px; height: 34px; }
.table .ck { width: 44px; }
.table tr.is-off td { opacity: 0.55; }
.table small { color: var(--muted); }
.cell-course, .cell-user { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.cell-course b, .cell-user b { display: block; font-weight: 500; }
.cell-course small, .cell-user small { display: block; font-size: 12.5px; }
.cell-bar { display: flex; align-items: center; gap: 10px; min-width: 130px; }
.cell-bar .bar { flex: 1; }
.cell-bar small { min-width: 36px; text-align: right; }

/* insignias */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed var(--line-3); color: var(--faint); flex-shrink: 0; }
.badge.on { border: 1px solid var(--lime); background: var(--lime-a); color: var(--lime); }
.badge-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.badge-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); color: var(--muted); }
.badge-item.on { color: var(--paper); border-color: var(--lime-b); }
.badge-item > div { flex: 1; display: grid; }
.badge-item small { color: var(--muted); font-size: 12.5px; }

/* =========================================================================
   INGRESO
   ========================================================================= */
.auth { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; min-height: 100dvh; }
.auth-art { position: relative; overflow: hidden; background: var(--ink); isolation: isolate; }
.auth-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 7, 7, 0.55), rgba(7, 7, 7, 0.1) 35%, rgba(7, 7, 7, 0.75)), radial-gradient(ellipse 90% 80% at 30% 60%, transparent, rgba(7, 7, 7, 0.55)); }
.auth-art-in { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(26px, 4vw, 56px); }
.auth-art .brand-name { font-size: 28px; }
.auth-hero { display: grid; gap: 18px; max-width: 640px; }
.auth-hero .display { font-size: clamp(44px, 5.4vw, 88px); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.auth-hero p { color: var(--paper-2); font-size: clamp(15px, 1.2vw, 18px); max-width: 48ch; }
.auth-facts { display: flex; gap: clamp(20px, 3vw, 44px); flex-wrap: wrap; }
.auth-facts li { display: grid; gap: 4px; }
.auth-facts b { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; color: var(--lime); }
.auth-facts b .i { width: 30px; height: 34px; }
.auth-facts span { font-size: 12px; color: var(--paper-2); letter-spacing: 0.08em; text-transform: uppercase; }
.auth-panel { display: flex; flex-direction: column; background: var(--ink); border-left: 1px solid var(--line); }
.auth-panel-in { flex: 1; display: grid; place-items: center; padding: clamp(28px, 4vw, 64px) clamp(20px, 4vw, 64px); }
.auth-form { width: min(420px, 100%); display: grid; gap: 18px; }
.auth-form h2 { font-size: clamp(32px, 2.6vw, 42px); }
.auth-form > .muted { margin-top: -8px; font-size: 14.5px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-row .check { font-size: 13.5px; }
.auth-alt { text-align: center; color: var(--muted); font-size: 14px; }
.auth-alt.small { font-size: 12.5px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.back-link:hover { color: var(--lime); }
.demo-box { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-md); border: 1px dashed rgba(242, 193, 74, 0.4); background: rgba(242, 193, 74, 0.05); }
.demo-box b { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--amber); }
.demo-box small { color: var(--muted); }
.demo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-foot { display: flex; justify-content: space-between; gap: 14px; padding: 18px clamp(20px, 4vw, 64px); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.auth-foot a { display: inline-flex; align-items: center; gap: 6px; }
.auth-foot a:hover { color: var(--lime); }

/* =========================================================================
   INICIO
   ========================================================================= */
.home-head .lead b { color: var(--lime); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(16px, 2vw, 26px); align-items: start; }
.home-main { display: grid; gap: clamp(16px, 2vw, 26px); min-width: 0; }
.home-main > section > .sec-head { margin-top: 10px; }
.home-side { display: grid; gap: 16px; position: sticky; top: calc(var(--top) + 20px); }

.resume { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border-radius: var(--r); overflow: hidden; background: var(--ink-1); border: 1px solid var(--line); transition: border-color 0.3s; }
.resume:hover { border-color: rgba(215, 242, 74, 0.55); }
.resume-media { position: relative; }
.resume-media .cover { height: 100%; aspect-ratio: auto; min-height: 240px; }
.resume-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 68px; height: 68px; border-radius: 50%; background: var(--lime); color: #000; display: grid; place-items: center; transition: scale 0.3s var(--ease); z-index: 2; }
.resume-play .i { width: 24px; height: 24px; margin-left: 3px; }
.resume:hover .resume-play { scale: 1.08; }
.resume-body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(22px, 2.6vw, 34px); }
.resume-body h2 { font-size: clamp(30px, 2.6vw, 42px); line-height: 1; }
.resume-next { display: flex; align-items: center; gap: 8px; color: var(--paper-2); font-size: 14.5px; }
.resume-prog { display: grid; gap: 8px; }
.resume-prog span { font-size: 13px; color: var(--muted); }
.resume-prog b { color: var(--lime); }
.resume-body .btn { width: fit-content; margin-top: 4px; }
.resume.is-empty { grid-template-columns: 1fr; background: radial-gradient(ellipse at 80% 20%, var(--lime-a), transparent 60%), var(--ink-1); }

.track h2 em { font-style: italic; }
.track-line { display: flex; gap: 4px; height: 14px; margin-bottom: 18px; }
.seg { flex: var(--w) 1 0; position: relative; border-radius: 4px; background: var(--line-2); overflow: hidden; min-width: 12px; }
.seg i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--lime); transition: width 1s var(--ease); }
.seg.is-in i { width: var(--p); }
.seg:first-child { border-radius: 99px 4px 4px 99px; }
.seg:last-child { border-radius: 4px 99px 99px 4px; }
.track-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 18px; margin-bottom: 20px; }
.track-legend a { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; color: var(--paper-2); border-bottom: 1px solid var(--line); }
.track-legend a:hover { color: var(--lime); }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-3); flex-shrink: 0; }
.tl-dot.is-on { background: var(--lime); }
.tl-dot.is-done { background: var(--lime); box-shadow: 0 0 0 3px var(--lime-b); }
.tl-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-p { color: var(--lime); font-weight: 600; font-size: 12.5px; }
.track-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.track-stats div { display: grid; gap: 2px; }
.track-stats b { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.6vw, 40px); line-height: 1; }
.track-stats small { color: var(--muted); font-size: 12.5px; }

.act-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 30px; align-items: start; }
.hm-box { display: flex; gap: 6px; }
.hm { display: grid; grid-template-columns: repeat(var(--w), 15px); grid-template-rows: repeat(7, 15px); grid-auto-flow: column; gap: 4px; }
.hm i { border-radius: 3px; background: var(--ink-4); }
.hm-days { display: grid; grid-template-rows: repeat(7, 15px); gap: 4px; }
.hm-days small { font-size: 10px; line-height: 15px; color: var(--faint); }
.panel-head > .hm-legend { display: flex; }
.hm i.l1 { background: rgba(215, 242, 74, 0.25); }
.hm i.l2 { background: rgba(215, 242, 74, 0.5); }
.hm i.l3 { background: rgba(215, 242, 74, 0.75); }
.hm i.l4 { background: var(--lime); }
.hm i.hm-x { background: transparent; }
.hm-legend { display: flex; align-items: center; gap: 4px; color: var(--faint); }
.hm-legend i { width: 11px; height: 11px; border-radius: 3px; background: var(--ink-4); }
.hm-legend i.l1 { background: rgba(215, 242, 74, 0.25); } .hm-legend i.l2 { background: rgba(215, 242, 74, 0.5); } .hm-legend i.l3 { background: rgba(215, 242, 74, 0.75); } .hm-legend i.l4 { background: var(--lime); }
.hm-legend small { font-size: 11px; margin: 0 4px; }
.feed { display: grid; gap: 2px; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--paper-2); }
.feed li:first-child { border-top: 0; padding-top: 0; }
.feed p { flex: 1; min-width: 0; }
.feed b { color: var(--paper); font-weight: 500; }
.feed time { font-size: 12px; color: var(--faint); white-space: nowrap; }
.feed-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-4); color: var(--muted); flex-shrink: 0; }
.feed-ic.ev-cert, .feed-ic.ev-lesson { background: var(--lime-a); color: var(--lime); }

.goal { display: grid; justify-items: center; gap: 14px; text-align: center; }
.goal p { color: var(--paper-2); font-size: 14px; }
.goal b { color: var(--lime); }
.streak { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; }
.streak-n { display: flex; align-items: center; gap: 4px; color: var(--lime); }
.streak-n .i { width: 30px; height: 30px; }
.streak-n b { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; color: var(--paper); }
.streak > div:nth-child(2) { display: grid; }
.streak > div:nth-child(2) small { color: var(--muted); }
.week { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.week span { display: grid; justify-items: center; gap: 5px; }
.week i { width: 100%; height: 6px; border-radius: 99px; background: var(--ink-4); }
.week span.on i { background: var(--lime); }
.week span.today small { color: var(--lime); }
.week small { font-size: 11px; color: var(--faint); }
.cert-mini { position: relative; display: grid; gap: 4px; overflow: hidden; transition: border-color 0.3s; }
.cert-mini:hover { border-color: var(--lime-b); }
.cert-mini b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.05; padding-right: 40px; }
.cert-mini small { color: var(--muted); }
.cert-mini > .i { position: absolute; right: 18px; top: 18px; width: 30px; height: 30px; color: var(--lime); }

/* clases en vivo */
.live { display: flex; align-items: center; gap: 14px; }
.live-date { display: grid; place-items: center; align-content: center; width: 54px; height: 58px; border-radius: 14px; background: var(--ink-3); border: 1px solid var(--line); flex-shrink: 0; line-height: 1; }
.live-date b { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.live-date span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--lime); margin-top: 2px; }
.live-date.lg { width: 74px; height: 84px; }
.live-date.lg b { font-size: 36px; }
.live-date small { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 3px; }
.live-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.live-body h3 { font-size: 15px; }
.live.is-compact h3 { font-size: 14px; line-height: 1.3; }
.live.is-compact .kicker { font-size: 10px; letter-spacing: 0.12em; }
.live-by { display: flex; align-items: center; min-width: 0; }
.live-by img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink-1); margin-right: -6px; }
.live-by small { min-width: 0; margin-left: 12px; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

/* =========================================================================
   CATÁLOGO · RUTAS · MIS CURSOS
   ========================================================================= */
.paths-strip { margin-bottom: 8px; }
.paths-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.path-card { display: grid; border-radius: var(--r); background: var(--ink-1); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.3s, transform 0.35s var(--ease); }
.path-card:hover { border-color: rgba(215, 242, 74, 0.55); transform: translateY(-3px); }
.path-covers { display: grid; grid-template-columns: repeat(4, 1fr); height: 92px; }
.path-covers .cover { aspect-ratio: auto; height: 100%; }
.path-covers .cover::after { background: rgba(7, 7, 7, 0.25); }
.path-body { display: grid; gap: 8px; padding: 18px 20px 20px; }
.path-body h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1; }
.path-body p { color: var(--muted); font-size: 13.5px; }
.path-prog { display: grid; gap: 6px; margin-top: 4px; }
.path-prog small { color: var(--muted); font-size: 12px; }

.paths { display: grid; gap: 20px; }
.path-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 22px; }
.path-head > div:first-child { display: grid; gap: 8px; max-width: 640px; }
.path-head h2 { font-size: clamp(30px, 2.8vw, 42px); }
.path-pct { display: grid; gap: 6px; min-width: 200px; text-align: right; }
.path-pct b { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; color: var(--lime); }
.path-pct small { color: var(--muted); }
.steps { display: grid; gap: 12px; position: relative; }
.steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--line-2); }
.step { display: flex; gap: 16px; align-items: center; position: relative; }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-1); border: 2px solid var(--line-3); font-family: var(--serif); font-size: 20px; flex-shrink: 0; z-index: 1; }
.step.is-done .step-n { background: var(--lime); border-color: var(--lime); color: #000; }
.step.is-next .step-n { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 0 5px var(--lime-a); }
.step-card { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-2); transition: border-color 0.3s; }
.step-card:hover { border-color: var(--lime-b); }
.step-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.step-body b { font-size: 16px; font-weight: 600; }
.step-body small { color: var(--muted); }
.step-body .bar { max-width: 260px; margin-top: 4px; }
.step-cta { font-size: 13px; font-weight: 600; color: var(--lime); white-space: nowrap; }

.mlist { display: grid; gap: 12px; }
.mrow { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 12px 20px 12px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-1); transition: border-color 0.3s; }
.mrow:hover { border-color: var(--lime-b); }
.mrow-media .cover { border-radius: 12px; }
.mrow-body { display: grid; gap: 6px; }
.mrow-body h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.05; }
.mrow-body h3 a:hover { color: var(--lime); }
.mrow-prog { display: flex; align-items: center; gap: 12px; max-width: 420px; }
.mrow-prog .bar { flex: 1; }
.mrow-prog b { color: var(--lime); font-size: 13px; }
.mrow-body small { display: flex; align-items: center; gap: 6px; }

/* =========================================================================
   CURSO
   ========================================================================= */
.course { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 3.4vw, 56px); align-items: start; }
.course-head { display: grid; gap: 16px; }
.course-tags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.course-head .display { font-size: clamp(40px, 4.4vw, 72px); line-height: 0.96; }
.course-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--paper-2); font-size: 13.5px; }
.course-facts > span { display: inline-flex; align-items: center; gap: 6px; }
.course-ins { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 4px; }
.course-ins > span { display: flex; align-items: center; gap: 10px; }
.course-ins > span > span { display: grid; }
.course-ins small { color: var(--muted); font-size: 12.5px; }
.course-cover-m { display: none; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.outcomes li { display: flex; gap: 12px; color: var(--paper-2); font-size: 15px; }
.outcomes .i { color: var(--lime); margin-top: 2px; }
.syllabus { display: grid; gap: 10px; }
.mod { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink-1); overflow: hidden; }
.mod[open] { border-color: var(--line-2); }
.mod summary { display: flex; align-items: center; gap: 16px; padding: 16px 18px; cursor: pointer; list-style: none; }
.mod summary::-webkit-details-marker { display: none; }
.mod summary:hover { background: var(--ink-2); }
.mod-n { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--lime); min-width: 34px; }
.mod-t { flex: 1; display: grid; gap: 2px; }
.mod-t b { font-size: 15.5px; font-weight: 600; }
.mod-t small { color: var(--muted); font-size: 12.5px; }
.mod-ring { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-3); display: grid; place-items: center; }
.mod-ring.is-done { background: var(--lime); border-color: var(--lime); color: #000; }
.chev { transition: rotate 0.3s var(--ease); color: var(--muted); }
.mod[open] .chev { rotate: 180deg; }
.lessons { padding: 0 10px 10px; }
.lesson { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 10px; border-radius: 10px; color: var(--paper-2); font-size: 14.5px; transition: background 0.2s; }
.lesson:hover { background: var(--ink-3); color: var(--paper); }
.lesson-st { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-4); color: var(--muted); flex-shrink: 0; }
.lesson.is-done .lesson-st { background: var(--lime); color: #000; }
.lesson.is-next { background: var(--lime-a); }
.lesson.is-next .lesson-st { background: transparent; border: 1.5px solid var(--lime); color: var(--lime); }
.lesson-t { flex: 1; min-width: 0; }
.lesson-t small { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; color: var(--faint); font-size: 12px; }
.lesson-m { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.exam-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); border: 1px dashed var(--line-3); background: var(--ink-1); }
.exam-row > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.exam-row small { color: var(--muted); font-size: 12.5px; }
.exam-row.is-ready { border: 1px solid var(--lime-b); background: var(--lime-a); }
.exam-row.is-ready .lesson-st { background: var(--lime); color: #000; }
.exam-row.is-done .lesson-st { background: var(--lime); color: #000; }
.instructors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.ins-card { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-1); }
.ins-card img { width: 120px; height: 140px; object-fit: cover; border-radius: 14px; filter: grayscale(0.2); }
.ins-card > div { display: grid; gap: 6px; align-content: start; }
.ins-card b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.05; }
.ins-card .kicker { font-size: 10px; letter-spacing: 0.14em; color: var(--lime); }
.ins-card p { color: var(--muted); font-size: 13.5px; }
.cert-explain { display: grid; grid-template-columns: 80px 1fr; gap: 22px; align-items: center; padding: 26px; border-radius: var(--r); border: 1px solid var(--lime-b); background: radial-gradient(ellipse at 0% 50%, var(--lime-a), transparent 60%), var(--ink-1); }
.ce-art { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--lime); color: var(--lime); }
.ce-art .i { width: 36px; height: 36px; }
.cert-explain h2 { margin-bottom: 8px; }
.review-form { display: grid; gap: 10px; padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-1); margin-bottom: 18px; }
.review-form .btn { justify-self: start; }
.star-input { display: flex; gap: 4px; }
.star-input button { color: var(--line-3); padding: 2px; }
.star-input button .i { width: 26px; height: 26px; }
.star-input button.on { color: var(--lime); }
.reviews { display: grid; gap: 4px; }
.review { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.review > div { flex: 1; display: grid; gap: 6px; }
.review-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-h time { color: var(--faint); font-size: 12px; }
.review p { color: var(--paper-2); font-size: 14.5px; }

.course-side { position: sticky; top: calc(var(--top) + 20px); }
.buy { border-radius: var(--r); border: 1px solid var(--line-2); background: var(--ink-1); overflow: hidden; }
.buy-in { display: grid; gap: 12px; padding: 20px; }
.buy-prog { display: flex; align-items: center; gap: 14px; padding-bottom: 6px; }
.buy-prog > div { display: grid; }
.buy-prog small { color: var(--muted); }
.buy-prog .ring-c b { font-family: var(--sans); font-size: 16px; font-weight: 600; }
.cta-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12.5px; text-align: center; }
.cta-note .i { color: var(--lime); }
.save-btn.is-on { color: var(--lime); border-color: var(--lime-b); }
.includes { display: grid; gap: 9px; padding: 14px 0 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.includes li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--paper-2); }
.includes .i { color: var(--lime); }
.share { justify-self: center; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.share:hover { color: var(--lime); }

/* =========================================================================
   AULA (reproductor)
   ========================================================================= */
.player { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.pl-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 clamp(10px, 2vw, 22px); background: rgba(7, 7, 7, 0.96); border-bottom: 1px solid var(--line); }
.pl-title { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.pl-title small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-title b { font-family: var(--serif); font-weight: 400; font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-prog { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.pl-prog b { color: var(--lime); min-width: 36px; }
.pl-pbar { width: 140px; height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.pl-pbar i { display: block; height: 100%; background: var(--lime); border-radius: inherit; transition: width 0.6s var(--ease); }
.pl-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.player.side-hidden .pl-body { grid-template-columns: minmax(0, 1fr) 0; }
.player.side-hidden .pl-side { display: none; }
.pl-main { padding: clamp(14px, 2vw, 28px) clamp(12px, 2.6vw, 40px) 70px; min-width: 0; max-width: 1180px; width: 100%; margin: 0 auto; }
.preview-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--lime-a); border: 1px solid var(--lime-b); margin-bottom: 14px; font-size: 14px; }
.preview-bar span { flex: 1; }
.pl-stage { border-radius: var(--r); overflow: hidden; background: var(--ink-1); }
.pl-stage.lectura, .pl-stage.quiz { border: 1px solid var(--line); }
.pl-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 22px 0 18px; flex-wrap: wrap; }
.pl-h { display: grid; gap: 8px; min-width: 0; }
.pl-h h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.02; letter-spacing: -0.01em; }
.pl-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.pl-tabs { margin-bottom: 20px; }
.pl-pane { min-height: 160px; }
.sum { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 30px; align-items: start; }
.sum > div { display: grid; gap: 16px; }
.sum .kicker { margin-top: 6px; }
.keypts { display: grid; gap: 10px; }
.keypts li { display: flex; gap: 10px; color: var(--paper-2); }
.keypts .i { color: var(--lime); margin-top: 3px; }
.sum-ins { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-1); }
.sum-ins img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.sum-ins div { display: grid; line-height: 1.3; }
.sum-ins small { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; }
.sum-ins b { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.sum-ins span { color: var(--muted); font-size: 12.5px; }
.files { display: grid; gap: 8px; margin: 12px 0 26px; }
.files li { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-1); }
.files li > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.files small { color: var(--muted); font-size: 12.5px; }
.file-ic { width: 42px; height: 48px; border-radius: 8px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; background: var(--ink-4); color: var(--paper-2); flex-shrink: 0; }
.file-ic.xlsx { background: rgba(215, 242, 74, 0.14); color: var(--lime); }
.file-ic.doc { background: rgba(143, 211, 255, 0.12); color: #8fd3ff; }
.file-ic.pdf { background: var(--coral-a); color: var(--coral); }
.note-form { display: grid; gap: 10px; margin-bottom: 18px; }
.note-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.note-foot small { display: inline-flex; align-items: center; gap: 6px; }
.notes { display: grid; gap: 8px; margin-bottom: 14px; }
.note { display: flex; align-items: flex-start; gap: 12px; padding: 12px 8px 12px 14px; border-radius: var(--r-md); background: var(--ink-1); border: 1px solid var(--line); }
.note p { flex: 1; color: var(--paper-2); white-space: pre-wrap; font-size: 14.5px; }
.note-t { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: var(--lime); color: #000; font-size: 12px; font-weight: 600; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.qa-form { display: grid; gap: 10px; margin-bottom: 18px; }
.qa-form .btn { justify-self: end; }
.threads { display: grid; gap: 12px; }
.thread { padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-1); display: grid; gap: 12px; }
.th-q, .th-r { display: flex; gap: 12px; }
.th-q > div, .th-r > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.th-r { margin-left: 22px; padding: 12px 14px; border-radius: 12px; background: var(--ink-3); }
.th-r.is-ins { border-left: 3px solid var(--lime); }
.th-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.th-h time { color: var(--faint); font-size: 12px; }
.thread p { color: var(--paper-2); font-size: 14.5px; }
.th-reply { display: flex; gap: 8px; margin-left: 22px; }
.th-reply .input { min-height: 42px; padding: 9px 14px; border-radius: 99px; font-size: 14px; }

.pl-side { border-left: 1px solid var(--line); background: var(--ink-1); position: sticky; top: 64px; height: calc(100vh - 64px); height: calc(100dvh - 64px); overflow-y: auto; }
.pl-side-head { display: none; }
.pl-outline { padding: 10px 10px 30px; }
.ol-mod { padding: 8px 0; }
.ol-head { display: flex; align-items: baseline; gap: 10px; padding: 10px 10px 8px; }
.ol-n { font-family: var(--serif); color: var(--lime); font-size: 18px; }
.ol-head b { flex: 1; font-size: 13.5px; font-weight: 600; }
.ol-head small { color: var(--faint); font-size: 11.5px; }
.ol-l, .ol-exam { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; color: var(--paper-2); transition: background 0.2s; }
.ol-l:hover, .ol-exam:hover { background: var(--ink-3); }
.ol-l.is-cur { background: var(--lime-a); color: var(--paper); box-shadow: inset 3px 0 0 var(--lime); }
.ol-st { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-4); color: var(--muted); flex-shrink: 0; }
.ol-l.is-done .ol-st, .ol-exam.is-done .ol-st { background: var(--lime); color: #000; }
.ol-l.is-cur .ol-st { background: transparent; border: 1.5px solid var(--lime); color: var(--lime); }
.ol-t { flex: 1; min-width: 0; line-height: 1.3; }
.ol-l small { color: var(--faint); font-size: 11.5px; }
.ol-exam { margin: 10px 0 0; border: 1px dashed var(--line-3); }
.ol-exam .ol-t { display: grid; }
.ol-exam small { color: var(--muted); font-size: 12px; }
.ol-exam.is-ready { border: 1px solid var(--lime-b); background: var(--lime-a); }
.ol-exam[aria-disabled="true"] { pointer-events: none; opacity: 0.7; }
.pl-scrim { display: none; }
.pl-drawer { display: contents; }

/* reproductor de video */
.vp { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; outline: none; user-select: none; -webkit-user-select: none; }
.vp video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vp iframe { width: 100%; height: 100%; border: 0; }
.vp.is-empty { display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); background: var(--ink-2); }
.vp:fullscreen { border-radius: 0; }
.vp-demo { position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 99px; background: rgba(7, 7, 7, 0.7); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.vp-big { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 84px; height: 84px; border-radius: 50%; background: var(--lime); color: #000; display: grid; place-items: center; transition: scale 0.3s var(--ease); }
.vp-big .i { width: 30px; height: 30px; margin-left: 4px; }
.vp-big:hover { scale: 1.07; }
.vp-ctrl { position: absolute; inset: auto 0 0 0; padding: 30px 14px 10px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8)); opacity: 0; transition: opacity 0.3s; }
.vp.show-ctrl .vp-ctrl, .vp:not(.is-playing) .vp-ctrl, .vp:focus-within .vp-ctrl { opacity: 1; }
.vp.is-playing:not(.show-ctrl) { cursor: none; }
.vp-seek { position: relative; height: 18px; display: flex; align-items: center; }
.vp-seek::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.22); }
.vp-buf, .vp-fill { position: absolute; left: 0; height: 4px; border-radius: 99px; pointer-events: none; }
.vp-buf { background: rgba(255, 255, 255, 0.3); }
.vp-fill { background: var(--lime); }
.vp-seek:hover::before, .vp-seek:hover .vp-buf, .vp-seek:hover .vp-fill { height: 6px; }
.vp-seek input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; margin: 0; }
.vp-row { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.vp-b { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.vp-b:hover { background: rgba(255, 255, 255, 0.12); }
.vp-b .i { width: 22px; height: 22px; }
.vp-vol { display: flex; align-items: center; }
.vp-vol input { width: 0; opacity: 0; transition: width 0.25s, opacity 0.25s; accent-color: var(--lime); }
.vp-vol:hover input, .vp-vol:focus-within input { width: 80px; opacity: 1; }
.vp-time { font-size: 13px; color: #fff; font-variant-numeric: tabular-nums; margin-left: 8px; white-space: nowrap; }
.vp-sp { flex: 1; }
.vp-speed { width: auto; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.vp-end { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7, 7, 7, 0.86); z-index: 3; }
.vp-end-in { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 20px; }
.vp-end-ok { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-weight: 600; margin-bottom: 8px; }
.vp-end-in small { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.vp-end-in b { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 34px); max-width: 24ch; line-height: 1.05; }
.vp-end-btns { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }

/* lectura */
.reading { max-width: 720px; margin: 0 auto; padding: clamp(26px, 4vw, 56px) clamp(18px, 3vw, 40px); display: grid; gap: 18px; }
.reading h2 { font-size: clamp(30px, 3vw, 44px); }
.reading p { font-size: 17px; line-height: 1.75; color: var(--paper-2); }
.reading-end { display: flex; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--lime); font-size: 14px; }

/* opciones (controles y examen) */
.mquiz { padding: clamp(22px, 3vw, 40px); display: grid; gap: 22px; max-width: 820px; margin: 0 auto; }
.mquiz h2 { font-size: clamp(28px, 2.6vw, 40px); }
.mq { border: 0; padding: 0; display: grid; gap: 10px; }
.mq legend { display: flex; gap: 12px; font-size: 16.5px; font-weight: 500; margin-bottom: 10px; line-height: 1.4; }
.mq legend span { font-family: var(--serif); color: var(--lime); font-size: 22px; line-height: 1; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--ink-2); font-size: 15px; color: var(--paper-2); cursor: pointer; transition: border-color 0.2s, background 0.2s; text-align: left; position: relative; }
.opt:hover { border-color: var(--line-3); color: var(--paper); }
.opt input { position: absolute; opacity: 0; }
.opt-l { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-3); display: grid; place-items: center; font-size: 12.5px; font-weight: 600; flex-shrink: 0; transition: all 0.2s; }
.opt:has(input:checked), .opt.is-sel { border-color: var(--lime); background: var(--lime-a); color: var(--paper); }
.opt:has(input:checked) .opt-l, .opt.is-sel .opt-l { background: var(--lime); border-color: var(--lime); color: #000; }
.opt:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 2px; }
.opt.is-correct { border-color: var(--lime); background: var(--lime-a); }
.opt.is-correct .opt-l { background: var(--lime); border-color: var(--lime); color: #000; }
.opt.is-wrong { border-color: var(--coral); background: var(--coral-a); }
.opt.is-wrong .opt-l { background: var(--coral); border-color: var(--coral); color: #000; }
.mq-fb { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--paper-2); padding: 4px 4px 0; }
.mq.is-ok .mq-fb .i { color: var(--lime); }
.mq.is-bad .mq-fb .i { color: var(--coral); }
.mquiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.mquiz-foot b.ok { color: var(--lime); font-size: 20px; }
.mquiz-foot b.bad { color: var(--coral); font-size: 20px; }

/* =========================================================================
   EXAMEN
   ========================================================================= */
.exam { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(215, 242, 74, 0.05), transparent), var(--ink); }
.ex-timer { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-2); font-variant-numeric: tabular-nums; font-size: 15px; }
.ex-timer.is-low { border-color: var(--coral); color: var(--coral); animation: pulse 1s infinite; }
.ex-body { flex: 1; display: grid; place-items: start center; padding: clamp(24px, 5vh, 70px) var(--gut) 80px; }
.ex-card { width: min(780px, 100%); display: grid; gap: 22px; }
.ex-center { justify-items: center; text-align: center; padding-top: 4vh; }
.ex-center .lead { margin: 0 auto; }
.ex-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ex-facts div { display: grid; gap: 2px; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-1); }
.ex-facts b { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; color: var(--lime); }
.ex-facts small { color: var(--muted); }
.ex-rules { display: grid; gap: 10px; }
.ex-rules li { display: flex; gap: 12px; color: var(--paper-2); font-size: 14.5px; }
.ex-rules .i { color: var(--lime); margin-top: 3px; }
.ex-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ex-center .ex-btns { justify-content: center; }
.ex-q { width: min(780px, 100%); display: grid; gap: 20px; }
.ex-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.ex-dots button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.ex-dots button.is-ans { background: var(--ink-4); color: var(--paper); border-color: var(--line-3); }
.ex-dots button.is-cur { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 0 3px var(--lime-a); }
.ex-text { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.12; }
.ex-opts { display: grid; gap: 10px; }
.ex-opts .opt { padding: 16px 18px; font-size: 15.5px; }
.ex-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.ex-grid button { display: grid; gap: 2px; padding: 14px; border-radius: var(--r-md); border: 1px dashed var(--line-3); text-align: left; }
.ex-grid button b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1; }
.ex-grid button small { color: var(--coral); }
.ex-grid button.is-ans { border: 1px solid var(--line-2); background: var(--ink-1); }
.ex-grid button.is-ans small { color: var(--muted); }
.ex-result { width: min(820px, 100%); display: grid; justify-items: center; text-align: center; gap: 18px; position: relative; padding-top: 2vh; }
.ex-result .lead { margin: 0 auto; }
.ex-result .ex-btns { justify-content: center; }
.ex-result.is-fail .ring-fg { stroke: var(--coral); }
.burst { position: absolute; top: 84px; left: 50%; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); opacity: 0; animation: burst 1.1s var(--ease) 0.3s forwards; }
.burst i:nth-child(3n) { background: var(--paper); width: 6px; height: 6px; border-radius: 50%; }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(0.4); } }
.ex-review { width: 100%; display: grid; gap: 10px; text-align: left; margin-top: 30px; }
.ex-review h2 { margin-bottom: 6px; }
.rv { padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-1); display: grid; gap: 6px; }
.rv-h { display: flex; gap: 10px; align-items: flex-start; }
.rv-h > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.rv.is-ok .rv-h > span { background: var(--lime); color: #000; }
.rv.is-bad .rv-h > span { background: var(--coral); color: #000; }
.rv-h b { font-weight: 500; }
.rv-a, .rv-c, .rv-e { padding-left: 34px; font-size: 14px; color: var(--muted); }
.rv-c { display: flex; align-items: center; gap: 6px; color: var(--lime); }
.rv-e { color: var(--paper-2); }

/* =========================================================================
   CERTIFICADOS
   ========================================================================= */
.cert-wrap { container-type: inline-size; width: 100%; }
.certificate { position: relative; width: 100%; aspect-ratio: 297 / 210; background: var(--paper); color: #0d0d0c; overflow: hidden; font-size: 1.6cqw; }
.cert-in { position: absolute; inset: 3.2cqw; border: 0.12cqw solid rgba(13, 13, 12, 0.28); display: flex; flex-direction: column; padding: 3.2cqw 4cqw 3cqw; }
.cert-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cert-brand { display: flex; align-items: center; gap: 1.2cqw; }
.cert-brand .logo-mark { width: 2.8cqw; height: 3.3cqw; }
.cert-brand .logo-mark .bar { fill: #0d0d0c; }
.cert-brand .logo-mark .stripe { fill: var(--olive); }
.cert-brand b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.6cqw; line-height: 1; }
.cert-brand small { display: block; font-size: 0.95cqw; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(13, 13, 12, 0.6); margin-top: 0.4cqw; }
.cert-no { text-align: right; display: grid; gap: 0.3cqw; }
.cert-no small { font-size: 0.9cqw; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(13, 13, 12, 0.55); }
.cert-no b { font-family: ui-monospace, Consolas, monospace; font-size: 1.25cqw; letter-spacing: 0.06em; }
.cert-main { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 0.8cqw; }
.cert-kicker { font-size: 1.05cqw; letter-spacing: 0.32em; text-transform: uppercase; color: var(--olive); font-weight: 600; margin-bottom: 0.6cqw; }
.cert-p { font-size: 1.45cqw; color: rgba(13, 13, 12, 0.66); }
.cert-name { font-family: var(--serif); font-weight: 400; font-size: 6.4cqw; line-height: 1; letter-spacing: -0.02em; color: #0d0d0c; padding: 0 0 0.4cqw; border-bottom: 0.15cqw solid var(--olive); }
.cert-course { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 3.4cqw; line-height: 1.05; max-width: 80%; color: #0d0d0c; }
.cert-detail { font-size: 1.25cqw; color: rgba(13, 13, 12, 0.66); max-width: 78%; margin-top: 0.6cqw; line-height: 1.5; }
.cert-detail b { color: #0d0d0c; font-weight: 600; }
.cert-foot { display: grid; grid-template-columns: 1fr 1fr auto; gap: 4cqw; align-items: end; }
.cert-sign { display: grid; justify-items: center; text-align: center; gap: 0.3cqw; }
.cert-sign i { font-family: var(--serif); font-style: italic; font-size: 2.3cqw; line-height: 1; color: #1b1b19; }
.cert-sign span { width: 100%; height: 0.1cqw; background: rgba(13, 13, 12, 0.4); margin: 0.4cqw 0 0.3cqw; }
.cert-sign b { font-size: 1.1cqw; font-weight: 600; }
.cert-sign small { font-size: 0.95cqw; color: rgba(13, 13, 12, 0.6); }
.cert-qr { display: flex; align-items: center; gap: 1cqw; }
.cert-qr .qr { width: 7.6cqw; height: 7.6cqw; color: #0d0d0c; background: #fff; padding: 0.3cqw; }
.cert-qr .qr.no-qr { display: none; }
.cert-qr small { font-size: 0.9cqw; line-height: 1.4; color: rgba(13, 13, 12, 0.6); }
.cert-qr small b { color: #0d0d0c; }
.certificate::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1cqw; background: linear-gradient(90deg, var(--olive), var(--lime) 70%); }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.cert-card { border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-1); overflow: hidden; transition: border-color 0.3s; }
.cert-card:hover { border-color: var(--lime-b); }
.cert-thumb { display: block; padding: 14px; background: var(--ink-3); }
.cert-thumb .certificate { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); transition: transform 0.4s var(--ease); }
.cert-card:hover .certificate { transform: translateY(-3px); }
.cert-card-b { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; }
.cert-card-b > div:first-child { display: grid; min-width: 0; }
.cert-card-b b { font-weight: 600; font-size: 15px; }
.cert-card-b small { color: var(--muted); font-size: 12px; }
.cert-acts { display: flex; }
.cert-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.cert-stage .certificate { border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.cert-side .panel { display: grid; gap: 14px; }
.cert-side .display { font-size: 30px; }

.verify { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(215, 242, 74, 0.06), transparent), var(--ink); }
.verify-top { display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gut); border-bottom: 1px solid var(--line); }
.verify-main { flex: 1; width: min(980px, 100%); margin: 0 auto; padding: clamp(28px, 5vw, 60px) var(--gut); display: grid; gap: 26px; align-content: start; }
.verify-form { width: min(560px, 100%); }
.verify-res { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--ink-1); }
.verify-res > div:last-child { display: grid; gap: 8px; }
.verify-res p { color: var(--paper-2); }
.verify-badge { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--ink-4); color: var(--muted); }
.verify-badge .i { width: 28px; height: 28px; }
.verify-res.is-ok { border-color: var(--lime-b); }
.verify-res.is-ok .verify-badge { background: var(--lime); color: #000; }
.verify-res.is-bad { border-color: rgba(255, 122, 99, 0.35); }
.verify-res.is-bad .verify-badge { background: var(--coral); color: #000; }
.verify-cert .certificate { border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.verify-note { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px var(--gut) 26px; color: var(--muted); font-size: 12.5px; text-align: center; }

/* =========================================================================
   EN VIVO · PERFIL
   ========================================================================= */
.live-hero { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r); border: 1px solid var(--lime-b); background: radial-gradient(ellipse at 100% 0%, rgba(215, 242, 74, 0.12), transparent 55%), var(--ink-1); flex-wrap: wrap; }
.live-hero > div:first-child { display: grid; gap: 8px; }
.live-hero h2 { font-size: clamp(28px, 2.8vw, 42px); max-width: 22ch; }
.live-hero p { color: var(--paper-2); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown div { display: grid; justify-items: center; min-width: 74px; padding: 12px 8px; border-radius: var(--r-md); background: var(--ink-2); border: 1px solid var(--line); }
.countdown b { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; }
.live-list { display: grid; gap: 10px; }
.live-row { display: flex; align-items: center; gap: 18px; padding: 14px 18px 14px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-1); }
.live-row.is-past { opacity: 0.85; }
.live-row h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.08; }
.live-acts { display: flex; align-items: center; gap: 6px; }

.profile-head { display: flex; align-items: center; gap: 22px; margin-bottom: 28px; flex-wrap: wrap; }
.profile-head > div { display: grid; gap: 6px; flex: 1; min-width: 240px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.profile-grid .panel h2 { margin-bottom: 16px; }
.span2 { grid-column: 1 / -1; }
.goal-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 6px; }
.goal-opt { display: grid; gap: 2px; padding: 14px 10px; border-radius: var(--r-md); border: 1px solid var(--line-2); text-align: center; transition: all 0.2s; }
.goal-opt b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1; }
.goal-opt small { color: var(--muted); font-size: 12px; }
.goal-opt:hover { border-color: var(--line-3); }
.goal-opt.on { border-color: var(--lime); background: var(--lime-a); }
.goal-opt.on b { color: var(--lime); }
.priv { display: grid; grid-template-columns: 1fr auto; gap: 16px 20px; align-items: center; }
.priv > div { display: grid; }
.priv small { color: var(--muted); }

/* =========================================================================
   ADMINISTRACIÓN
   ========================================================================= */
.adm-head { align-items: flex-end; }
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; height: 220px; align-items: end; }
.chart-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: 6px; justify-items: center; }
.chart-col i { align-self: end; width: 100%; max-width: 38px; height: var(--h); min-height: 3px; border-radius: 6px 6px 2px 2px; background: rgba(215, 242, 74, 0.32); transition: background 0.2s; }
.chart-col i.is-cur, .chart-col:hover i { background: var(--lime); }
.chart-v { font-size: 11px; color: var(--muted); opacity: 0; transition: opacity 0.2s; }
.chart-col:hover .chart-v { opacity: 1; }
.chart-col small { font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.risk, .qlist { display: grid; gap: 2px; }
.risk li, .qlist li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.risk li > div, .qlist li > div { flex: 1; min-width: 0; display: grid; }
.risk small, .qlist small { color: var(--muted); font-size: 12.5px; }
.qlist b { font-weight: 500; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.co { display: grid; gap: 8px; padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-2); transition: border-color 0.3s; }
.co:hover { border-color: var(--lime-b); }
.co-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--ink-4); color: var(--lime); }
.co b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.05; }
.co small { color: var(--muted); }
.co em { font-style: normal; font-size: 12.5px; color: var(--paper-2); }
.bulk { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-radius: 99px; background: var(--lime-a); border: 1px solid var(--lime-b); margin-bottom: 14px; flex-wrap: wrap; }
.bulk span { flex: 1; font-size: 14px; }

.editor { padding-bottom: 90px; }
.ed-pane { animation: viewIn 0.3s var(--ease); }
.ed-form { display: grid; gap: 20px; max-width: 980px; }
.cover-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.cp { border-radius: 12px; overflow: hidden; border: 2px solid transparent; transition: border-color 0.2s; }
.cp .cover { aspect-ratio: 16/10; }
.cp.on { border-color: var(--lime); }
.ed-prog { display: grid; gap: 14px; max-width: 980px; }
.ed-mod { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--ink-1); padding: 14px; display: grid; gap: 10px; }
.ed-mod-h { display: flex; align-items: center; gap: 12px; }
.ed-mod-h .input { flex: 1; min-height: 44px; font-weight: 600; }
.ed-acts { display: flex; gap: 2px; flex-shrink: 0; }
.ed-lessons { display: grid; gap: 6px; }
.ed-lesson { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); }
.ed-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-4); color: var(--lime); flex-shrink: 0; }
.ed-lt { flex: 1; min-width: 0; display: grid; }
.ed-lt b { font-weight: 500; font-size: 14.5px; }
.ed-lt small { color: var(--muted); font-size: 12px; }
.ed-lt em { color: var(--amber); font-style: normal; }
.ed-add { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.qeds { display: grid; gap: 12px; }
.qed { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--ink-1); }
.qed-h { display: flex; justify-content: space-between; align-items: center; }
.qed-opts { display: grid; gap: 8px; }
.qed-opt { display: flex; align-items: center; gap: 10px; }
.qed-opt input[type="radio"] { width: 20px; height: 20px; accent-color: var(--lime); flex-shrink: 0; }
.qed-opt .input { min-height: 44px; padding: 10px 14px; }
.res-ed { display: grid; gap: 8px; }
.res-row { display: grid; grid-template-columns: 1.4fr 0.8fr 1.6fr auto; gap: 8px; align-items: center; }
.res-row .input { min-height: 44px; padding: 10px 12px; }
.savebar { position: fixed; left: calc(var(--side) + 50%); bottom: 22px; translate: -50% 140%; z-index: 50; display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px; border-radius: 99px; background: var(--paper); color: #000; font-size: 14px; font-weight: 500; transition: translate 0.35s var(--ease); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); }
.savebar { left: calc(50% + var(--side) / 2); }
.savebar.is-dirty { translate: -50% 0; }
.savebar span { display: inline-flex; align-items: center; gap: 8px; }
.savebar .btn { background: #000; color: var(--lime); }

.mx-wrap { max-height: 70vh; }
.matrix th, .matrix td { padding: 8px 6px; text-align: center; font-size: 12.5px; }
.matrix .mx-name { text-align: left; position: sticky; left: 0; background: var(--ink-1); z-index: 2; min-width: 190px; padding-left: 16px; }
.matrix .mx-name a { display: block; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--paper); }
.matrix .mx-name a:hover { color: var(--lime); }
.matrix .mx-name small { display: block; font-size: 11.5px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.matrix thead th { position: sticky; top: 0; z-index: 3; vertical-align: bottom; }
.matrix thead .mx-name { z-index: 4; }
.mx-h { height: 150px; min-width: 46px; }
.mx-h span { writing-mode: vertical-rl; rotate: 180deg; display: inline-block; max-height: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--paper-2); }
.mx { background: rgba(215, 242, 74, calc(0.08 + var(--p) * 0.55)); color: var(--paper); font-variant-numeric: tabular-nums; border: 2px solid var(--ink-1); border-radius: 8px; min-width: 46px; height: 38px; }
.mx.is-done { background: var(--lime); color: #000; }
.mx.is-done .i { margin: 0 auto; }
.mx-none { color: var(--faint); }

/* ---------- sala en vivo */
.room { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.room-main { min-width: 0; }
.room-stage { border-radius: var(--r); overflow: hidden; background: var(--ink-1); border: 1px solid var(--line); }
.room-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.room-video iframe, .room-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.room-wait { aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 24px; background: radial-gradient(ellipse at 50% 30%, rgba(215, 242, 74, 0.1), transparent 60%), var(--ink-1); }
.room-wait h2 { font-size: clamp(26px, 2.6vw, 40px); max-width: 22ch; }
.room-wait p { color: var(--muted); max-width: 46ch; }
.room-wait .countdown div { background: var(--ink-3); }
.room-head { display: grid; gap: 10px; padding: 22px 0 6px; }
.room-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.room-desc { margin-top: 12px; }
.room-side { display: grid; gap: 16px; position: sticky; top: calc(var(--top) + 20px); }
.room-side .panel { display: grid; gap: 14px; }
.room-chat { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--ink-1); display: flex; flex-direction: column; height: min(560px, 70vh); }
.room-chat-h { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.room-chat-h small { color: var(--muted); font-size: 12px; }
.room-chat iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.room-ins { display: grid; gap: 12px; }
.room-ins > div { display: flex; align-items: center; gap: 12px; }
.room-ins span { display: grid; }
.room-ins small { color: var(--muted); font-size: 12.5px; }
.room-course { display: grid; gap: 4px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--ink-2); transition: border-color 0.2s; }
.room-course:hover { border-color: var(--lime-b); }
.room-course b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.05; }
.room-course small { display: inline-flex; align-items: center; gap: 4px; color: var(--lime); font-size: 12.5px; }
.live-qs { display: grid; gap: 8px; }
.live-qs li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-1); }
.live-qs li > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.live-qs p { color: var(--paper); }
.live-qs small { color: var(--muted); font-size: 12px; }
.vote { display: grid; justify-items: center; gap: 0; min-width: 44px; padding: 6px 4px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--muted); }
.vote b { font-size: 14px; color: var(--paper); }
.vote:hover { border-color: var(--lime-b); color: var(--lime); }
.vote.on { border-color: var(--lime); background: var(--lime-a); color: var(--lime); }
.live-row h3 a:hover { color: var(--lime); }
.live-hero .btn { width: fit-content; margin-top: 6px; }

/* ---------- varios */
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--lime); animation: spin 0.8s linear infinite; }
.sys { display: grid; gap: 2px; margin-bottom: 14px; }
.sys li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sys li span { color: var(--paper-2); text-align: right; }
.cp-up { display: grid; place-content: center; justify-items: center; gap: 6px; aspect-ratio: 16 / 10; border: 1.5px dashed var(--line-3); color: var(--muted); font-size: 12.5px; cursor: pointer; }
.cp-up:hover { border-color: var(--lime); color: var(--lime); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns label.btn { cursor: pointer; }
.res-file { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); font-size: 13px; padding: 0 6px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1280px) {
  .kpis-6 { grid-template-columns: repeat(3, 1fr); }
  .home-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 1080px) {
  :root { --side: 0px; }
  .side { display: none; }
  .top-brand { display: block; }
  .top-brand .brand-name { font-size: 22px; }
  .top-brand .brand-tag { display: none; }
  .search-trigger { max-width: 340px; margin-left: 10px; }
  .view { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(9, 9, 8, 0.97); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; color: var(--muted); font-size: 11px; font-weight: 500; }
  .tabbar a .i { width: 22px; height: 22px; }
  .tabbar a.is-on { color: var(--lime); }
  .tabbar a.is-on .i { filter: drop-shadow(0 0 0 transparent); }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .savebar { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .home-grid { grid-template-columns: 1fr; }
  .home-side { position: static; grid-template-columns: repeat(2, 1fr); }
  .course { grid-template-columns: 1fr; }
  .course-side { position: static; order: -1; display: none; }
  .course-cover-m { display: block; border-radius: var(--r); overflow: hidden; margin-top: 22px; }
  .course-main { display: grid; }
  .course-main::after { content: none; }
  .cert-page { grid-template-columns: 1fr; }
  .pl-body { grid-template-columns: 1fr; }
  /* Cajón del índice: un contenedor fijo con overflow oculto evita que el panel fuera de pantalla ensanche la página */
  .pl-drawer { display: block; position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; visibility: hidden; transition: visibility 0s linear 0.35s; }
  .player.side-open .pl-drawer { visibility: visible; pointer-events: auto; transition: none; }
  .pl-side { position: absolute; top: 0; right: 0; bottom: 0; height: auto; width: min(400px, 92vw); z-index: 2; transform: translateX(100%); transition: transform 0.35s var(--ease); border-left: 1px solid var(--line-2); }
  .player.side-open .pl-side { transform: none; }
  .pl-side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 6px 20px; position: sticky; top: 0; background: var(--ink-1); z-index: 2; }
  .pl-scrim { display: block; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
  .player.side-open .pl-scrim { opacity: 1; pointer-events: auto; }
  .adm-grid { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .room { grid-template-columns: 1fr; }
  .room-side { position: static; }
  .paths-row { grid-template-columns: 1fr 1fr; }
}

/* En tablet y celular el bloque de inscripción se muestra en el flujo (debajo del encabezado) */
@media (max-width: 1080px) {
  .course-side { display: block; position: static; order: 0; }
  .course { display: flex; flex-direction: column; }
  .course-main { order: 0; }
  .buy { display: grid; grid-template-columns: 1fr; }
  .buy-media { display: none; }
}

@media (max-width: 860px) {
  body { font-size: 15px; }
  .top { gap: 8px; padding: 0 12px 0 16px; height: 60px; --top: 60px; }
  .search-trigger { display: none; }
  .search-mobile { display: inline-grid; }
  .user-name, .user-btn > .i { display: none; }
  .user-btn { padding: 0 2px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis-6 { grid-template-columns: 1fr 1fr; }
  .resume { grid-template-columns: 1fr; }
  .resume-media .cover { min-height: 0; aspect-ratio: 16/9; }
  .track-stats { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .home-side { grid-template-columns: 1fr; }
  .act-grid { grid-template-columns: 1fr; gap: 22px; }
  .hm { flex: 1; grid-template-columns: repeat(var(--w), minmax(0, 1fr)); grid-template-rows: repeat(7, auto); gap: 3px; }
  .hm i { aspect-ratio: 1; }
  .hm-box { width: 100%; }
  .hm-days { grid-template-rows: repeat(7, 1fr); gap: 3px; }
  .hm-days small { line-height: 1; display: grid; align-items: center; }
  .outcomes, .sect.two, .grid2, .grid3, .profile-grid { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .mrow-cta { grid-column: 1 / -1; }
  .mrow-cta .btn { width: 100%; }
  .mrow-body h3 { font-size: 21px; }
  .paths-row { grid-template-columns: 1fr; }
  .path-head { flex-direction: column; }
  .path-pct { text-align: left; min-width: 0; width: 100%; }
  .step-card { flex-wrap: wrap; }
  .step-card .cover.sm { width: 72px; }
  .sum { grid-template-columns: 1fr; }
  .pl-top { height: 58px; gap: 8px; }
  .pl-prog .pl-pbar { width: 64px; }
  .pl-toggle span { display: none; }
  .pl-toggle { padding: 0 12px; }
  .pl-side { top: 0; }
  .pl-main { padding: 0 0 80px; }
  .pl-stage { border-radius: 0; }
  .pl-stage.lectura, .pl-stage.quiz { border-left: 0; border-right: 0; }
  .pl-main > :not(.pl-stage) { padding-left: 16px; padding-right: 16px; }
  .preview-bar { margin: 12px 16px; flex-wrap: wrap; }
  .pl-bar { padding-top: 18px; }
  .pl-nav { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
  .pl-nav .btn { flex: 1 1 0; min-width: 0; }
  .pl-nav [data-done] { order: -1; flex: 1 1 100%; }
  .vp-row { gap: 0; }
  .vp-b { width: 36px; height: 36px; }
  .vp-vol input { display: none; }
  .vp-big { width: 66px; height: 66px; }
  .vp-time { font-size: 12px; margin-left: 2px; }
  .ex-facts { grid-template-columns: 1fr 1fr; }
  .ex-nav small { display: none; }
  .live-row { flex-wrap: wrap; }
  .live-row .live-body { min-width: calc(100% - 100px); }
  .live-acts { width: 100%; justify-content: flex-end; padding-top: 4px; border-top: 1px solid var(--line); }
  .countdown { width: 100%; }
  .room-wait { aspect-ratio: auto; min-height: 260px; }
  .room-wait .countdown { grid-template-columns: repeat(4, 1fr); }
  .room-acts .btn { flex: 1 1 auto; }
  .countdown div { min-width: 0; }
  .cert-explain { grid-template-columns: 1fr; text-align: left; }
  .ins-card { grid-template-columns: 90px 1fr; }
  .ins-card img { width: 90px; height: 110px; }
  .goal-opts { grid-template-columns: 1fr 1fr; }
  .priv { grid-template-columns: 1fr; gap: 8px; }
  .priv .btn { justify-self: start; margin-bottom: 10px; }
  .res-row { grid-template-columns: 1fr 1fr; }
  .res-row .input:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  .seg-ctl { grid-template-columns: 1fr; }
  .chart { gap: 4px; height: 180px; }
  .chart-col small { font-size: 9px; writing-mode: vertical-rl; rotate: 180deg; }
  .savebar { left: 50%; width: calc(100% - 24px); justify-content: space-between; }
  .head-acts { width: 100%; }
  /* tablas como tarjetas */
  .table.cards-m thead { display: none; }
  .table.cards-m, .table.cards-m tbody, .table.cards-m tr, .table.cards-m td { display: block; width: 100%; }
  .table.cards-m tr { padding: 12px 14px; border-bottom: 1px solid var(--line); position: relative; }
  .table.cards-m td { border: 0; padding: 4px 0; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .table.cards-m td[data-l]::before { content: attr(data-l); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); flex-shrink: 0; }
  .table.cards-m td[data-l="Curso"], .table.cards-m td[data-l="Alumno"], .table.cards-m td[data-l="Clase"] { padding-bottom: 8px; }
  .table.cards-m td[data-l="Curso"]::before, .table.cards-m td[data-l="Alumno"]::before, .table.cards-m td[data-l="Clase"]::before { display: none; }
  .table.cards-m td.acts { justify-content: flex-end; padding-top: 6px; }
  .table.cards-m td.ck { position: absolute; top: 14px; right: 10px; width: auto; }
  .table.cards-m .cell-course, .table.cards-m .cell-user { min-width: 0; }
  .table.cards-m .cell-bar { min-width: 0; flex: 1; max-width: 220px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 46vh; }
  .auth-art-in { gap: 26px; padding: 22px 20px 26px; justify-content: flex-start; }
  .auth-hero .display { font-size: clamp(38px, 11vw, 56px); }
  .auth-hero p { font-size: 14.5px; }
  .auth-facts b { font-size: 26px; }
  .auth-facts b .i { width: 24px; height: 26px; }
  .auth-facts span { font-size: 10.5px; }
  .auth-panel { border-left: 0; border-top: 1px solid var(--line); }
  .auth-panel-in { padding: 28px 20px 30px; place-items: start center; }
  .cert-grid { grid-template-columns: 1fr; }
  .profile-head .head-acts { width: 100%; }
}

@media (max-width: 560px) {
  .display { font-size: clamp(34px, 10vw, 46px); }
  .display.md { font-size: clamp(30px, 8.6vw, 40px); }
  .course-head .display { font-size: clamp(36px, 10.4vw, 48px); }
  .hide-xs { display: none !important; }
  .chips { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .toolbar .selects { width: 100%; }
  .toolbar .select { flex: 1; }
  .toolbar .select select { width: 100%; }
  .kpi { padding: 14px 16px; }
  .ex-dots button { width: 28px; height: 28px; font-size: 11.5px; }
  .ex-btns .btn { flex: 1; }
  .ex-nav .btn { flex: 1; }
  .live-hero h2 { font-size: 28px; }
  .countdown b { font-size: 30px; }
  .demo-btns { grid-template-columns: 1fr 1fr; }
  .lesson-m { display: none; }
  .lesson-t small { display: flex; margin: 2px 0 0; }
  .mod summary { gap: 12px; padding: 14px; }
  .cert-page .cert-stage { margin: 0 -8px; }
  .modal { padding: 0; place-items: end center; }
  .modal-card { border-radius: var(--r) var(--r) 0 0; max-height: 92vh; max-height: 92dvh; }
  .search-modal { place-items: start center; padding: 10px; }
  .search-modal .modal-card { border-radius: var(--r); }
  .profile-head { gap: 16px; }
  .av.xl { width: 68px; height: 68px; font-size: 24px; }
  .home-head .display { font-size: clamp(36px, 10.6vw, 48px); }
  /* Ingreso en celular: portada compacta para que el formulario quede a la vista */
  .auth-art { min-height: 0; }
  .auth-art-in { gap: 18px; padding: 18px 20px 22px; }
  .auth-hero { gap: 10px; }
  .auth-hero .display { font-size: clamp(34px, 9.6vw, 42px); }
  .auth-hero p, .auth-facts { display: none; }
  .auth-panel-in { padding-top: 22px; }
  .auth-form { gap: 15px; }
  .auth-form h2 { font-size: 30px; }
}

/* En pantallas táctiles no se "pega" el estado hover después de tocar */
@media (hover: none) {
  .ccard:hover, .resume:hover, .path-card:hover, .mrow:hover, .step-card:hover, .cert-card:hover, .co:hover, .room-course:hover, .cert-mini:hover { border-color: var(--line); transform: none; background: var(--ink-1); }
  .ccard:hover .cover img { transform: none; filter: saturate(0.72) contrast(1.06) brightness(0.86); }
  .btn:hover { transform: none; }
}
.mx-note { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mx-key { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--lime); color: #000; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   IMPRESIÓN (certificado → PDF)
   ========================================================================= */
@media print {
  @page { size: A4 landscape; margin: 0; }
  html, body { background: #fff !important; }
  body * { visibility: hidden !important; }
  .cert-stage, .cert-stage * { visibility: visible !important; }
  .cert-stage { position: fixed; inset: 0; width: 297mm; height: 210mm; }
  .cert-stage .cert-wrap { width: 297mm; }
  .cert-stage .certificate { box-shadow: none !important; border-radius: 0 !important; width: 297mm; height: 210mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .side, .top, .tabbar, .toast, .no-print { display: none !important; }
  .view { margin: 0 !important; padding: 0 !important; }
}
