/* ============================================================
   GM Estudio — Premium Dark SaaS UI
   Sistema de diseño: modo oscuro, glassmorphism, oro GM
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg2: #0a0f1e;
  --card: #0d1526;
  --line: rgba(255, 255, 255, 0.09);
  --surface: rgba(255, 255, 255, 0.045);
  --surface2: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.055);
  --text: #f2f5fb;
  --muted: #98a3bd;
  --muted2: #6b7690;
  --gold: #e9b949;
  --gold2: #f6d47c;
  --gold-deep: #b97f1f;
  --gold-grad: linear-gradient(135deg, #f6d47c 0%, #e9b949 45%, #c98f24 100%);
  --blue: #5b8cff;
  --blue-soft: rgba(91, 140, 255, 0.14);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.13);
  --bad: #fb7185;
  --bad-soft: rgba(251, 113, 133, 0.12);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.12);
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.75);
  --shadow-gold: 0 10px 34px -10px rgba(233, 185, 73, 0.45);
  --card-grad: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  --card-hi: inset 0 1px 0 rgba(255,255,255,0.08);
  --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  --r-xl: 26px;
  --font-d: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-b);
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Orbes de fondo */
.bg-orbs {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.bg-orbs i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: orbFloat 18s ease-in-out infinite alternate;
}
.bg-orbs i:nth-child(1) { width: 480px; height: 480px; left: -160px; top: -140px;
  background: radial-gradient(circle, rgba(233,185,73,0.20), transparent 65%); }
.bg-orbs i:nth-child(2) { width: 520px; height: 520px; right: -180px; top: 22%;
  background: radial-gradient(circle, rgba(91,140,255,0.16), transparent 65%); animation-delay: -6s; }
.bg-orbs i:nth-child(3) { width: 420px; height: 420px; left: 8%; bottom: -180px;
  background: radial-gradient(circle, rgba(52,211,153,0.10), transparent 65%); animation-delay: -12s; }
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(46px, 34px) scale(1.08); }
}

h1, h2, h3 { font-family: var(--font-d); letter-spacing: -0.025em; margin: 0 0 10px;
  text-wrap: balance; }
h1 { font-size: clamp(26px, 6vw, 40px); font-weight: 800; line-height: 1.1; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 16.5px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
p { line-height: 1.6; }
a { color: inherit; }
.hidden { display: none !important; }
.center { text-align: center; }
.mt { margin-top: 16px; }
.small { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.gold { color: var(--gold2); }
.gold-grad-text {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.88), rgba(5, 7, 13, 0.68));
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.6);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.gm-logo {
  width: 38px; height: 38px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 800; font-size: 15px; color: #1a1206;
  background: var(--gold-grad);
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.5);
}
.gm-logo.sm { width: 26px; height: 26px; font-size: 11px; border-radius: 8px; }
.brand-name { font-family: var(--font-d); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  font-family: var(--font-d); font-weight: 700; font-size: 12px; letter-spacing: 0.06em;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 14px; cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s;
}
.lang-toggle:active { transform: scale(0.94); }
.user-chip {
  font-size: 12.5px; font-weight: 600; color: var(--gold2);
  background: rgba(233, 185, 73, 0.10); border: 1px solid rgba(233, 185, 73, 0.30);
  padding: 8px 14px; border-radius: 999px; max-width: 44vw;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- layout ---------- */
.app { max-width: 1060px; margin: 0 auto; padding: 22px 16px 120px; }
.view { animation: viewIn 0.45s var(--ease); }
.view > .card, .view > .kpis, .view > .dash-head { animation: cardIn 0.55s var(--ease) backwards; }
.view > *:nth-child(2) { animation-delay: 0.06s; }
.view > *:nth-child(3) { animation-delay: 0.12s; }
.view > *:nth-child(4) { animation-delay: 0.18s; }
.view > *:nth-child(5) { animation-delay: 0.24s; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(0.99); } to { opacity: 1; transform: none; } }

/* ---------- tarjetas glass ---------- */
.card {
  background: var(--card-grad);
  background-color: rgba(13, 21, 38, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  margin: 16px 0;
  box-shadow: var(--card-hi), var(--shadow-card);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
a.card-link { text-decoration: none; display: block; color: inherit; }
a.card-link:hover { transform: translateY(-3px); border-color: rgba(233,185,73,0.35); }

.hero { padding: 26px 6px 8px; }
.hero p { color: var(--muted); margin: 8px 0 0; font-size: 15px; max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold2); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold-grad); border-radius: 2px; }

/* ---------- botones ---------- */
.btn {
  font-family: var(--font-d); font-weight: 800; font-size: 15.5px; letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.28); cursor: pointer; border-radius: 999px;
  padding: 15px 28px; color: #1a1206;
  background: var(--gold-grad);
  box-shadow: 0 14px 38px -12px rgba(233, 185, 73, 0.6), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -2px 6px rgba(120, 70, 10, 0.25);
  transition: transform 0.16s var(--ease), box-shadow 0.2s, filter 0.2s;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.5) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform 0.6s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.96); }
.btn.block { display: block; width: 100%; }
.btn.ghost {
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border); box-shadow: none;
}
.btn.ghost:disabled { opacity: 0.35; cursor: default; }
.btn.danger { background: linear-gradient(135deg, #fb7185, #e11d48); color: #fff; box-shadow: 0 10px 30px -10px rgba(251,113,133,0.5); }
.btn.blue { background: linear-gradient(135deg, #7aa5ff, #3b6fe0); color: #fff; box-shadow: 0 10px 30px -10px rgba(91,140,255,0.5); }
.btn.wa { background: linear-gradient(135deg, #34e07f, #0ea44f); color: #04120a;
  box-shadow: 0 10px 30px -10px rgba(52,224,127,0.55), inset 0 1px 0 rgba(255,255,255,0.45);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.btn.wa .ti { display: inline-flex; }
.wa-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-soft); text-align: center; }
.wa-box .small { margin: 0 0 10px; }
.wa-num { margin: 8px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.btn.small { font-size: 13px; padding: 9px 18px; }
.btn:disabled { opacity: 0.5; }
.link { color: var(--gold2); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(233,185,73,0.35); }
.link:hover { border-bottom-color: var(--gold2); }

/* ---------- campos ---------- */
.field { margin: 14px 0; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; font-family: var(--font-b); font-size: 15.5px; color: var(--text);
  background: rgba(255,255,255,0.05); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); padding: 13px 15px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input:focus, .field select:focus {
  border-color: var(--gold); background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 4px rgba(233, 185, 73, 0.16);
}
.field input.ok { border-color: var(--ok); }
.field input.bad { border-color: var(--bad); }
.field .hint { font-size: 12px; margin-top: 6px; min-height: 16px; }
.hint.ok { color: var(--ok); } .hint.bad { color: var(--bad); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

/* tarjetas de licencia / opción */
.lic-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lic-card {
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: 16px 14px; text-align: center; cursor: pointer;
  background: var(--surface); transition: all 0.22s var(--ease);
}
.lic-card:hover { transform: translateY(-2px); border-color: rgba(233,185,73,0.4); }
.lic-card:active { transform: scale(0.97); }
.lic-card .t { font-family: var(--font-d); font-weight: 800; font-size: 22px; }
.lic-card .d { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.lic-card.sel {
  border-color: var(--gold); background: rgba(233, 185, 73, 0.09);
  box-shadow: 0 0 0 3px rgba(233, 185, 73, 0.14), var(--shadow-gold);
}

/* ---------- alertas ---------- */
.alert { border-radius: var(--r-sm); padding: 13px 16px; font-size: 14px; margin: 12px 0; border: 1px solid; animation: viewIn 0.3s var(--ease); }
.alert.err { background: var(--bad-soft); border-color: rgba(251,113,133,0.35); color: #fecdd3; }
.alert.okm { background: var(--ok-soft); border-color: rgba(52,211,153,0.35); color: #a7f3d0; }

/* ---------- pills ---------- */
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px; border: 1px solid; text-transform: uppercase; }
.pill.green { color: var(--ok); border-color: rgba(52,211,153,0.4); background: var(--ok-soft); }
.pill.red { color: var(--bad); border-color: rgba(251,113,133,0.4); background: var(--bad-soft); }
.pill.gray { color: var(--muted); border-color: var(--border); background: var(--surface); }
.pill.gold { color: var(--gold2); border-color: rgba(233,185,73,0.4); background: rgba(233,185,73,0.1); }
.pill.blue { color: #9db9ff; border-color: rgba(91,140,255,0.4); background: var(--blue-soft); }

/* ---------- auth premium ---------- */
.auth-wrap { max-width: 460px; margin: 26px auto 0; }
.auth-logo { text-align: center; margin-bottom: 18px; animation: viewIn 0.5s var(--ease); }
.auth-logo .gm-logo { width: 64px; height: 64px; font-size: 24px; border-radius: 20px; }
.auth-logo h1 { margin: 14px 0 4px; font-size: 30px; }
.auth-logo p { color: var(--muted); font-size: 14px; margin: 0; }
.auth-card { padding: 28px 24px; }
.auth-card h2 { text-align: center; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13.5px; margin: 0 0 8px; }
.strength { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.08); margin-top: 8px; overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width 0.3s var(--ease), background 0.3s; }

/* ---------- dashboard estudiante ---------- */
.dash-head { display: flex; align-items: center; gap: 16px; padding: 10px 4px 4px; }
.avatar {
  width: 60px; height: 60px; border-radius: 20px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 800; font-size: 23px; color: #1a1206;
  background: var(--gold-grad); box-shadow: var(--shadow-gold), 0 0 0 3px rgba(233,185,73,0.18);
  border: 1px solid rgba(255,255,255,0.35);
}
.dash-head h1 { font-size: clamp(24px, 6vw, 30px); margin: 0; letter-spacing: -0.025em; }
.dash-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.kpi {
  background: var(--card-grad); background-color: rgba(13, 21, 38, 0.66);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 18px 10px 16px; text-align: center; backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--card-hi), 0 14px 34px -18px rgba(0,0,0,0.8);
  transition: transform 0.22s var(--ease), border-color 0.22s;
  position: relative; overflow: hidden;
}
.kpi::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 2px;
  border-radius: 2px; background: var(--gold-grad); opacity: 0.7; }
.kpi.blue::before { background: linear-gradient(90deg, #7aa5ff, #3b6fe0); }
.kpi.green::before { background: linear-gradient(90deg, #34d399, #059669); }
.kpi:hover { transform: translateY(-3px); border-color: rgba(233,185,73,0.35); }
.kpi b { display: block; font-family: var(--font-d); font-size: 26px; font-weight: 800;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; }
.kpi.gold b { color: var(--gold2); }
.kpi.blue b { color: #9db9ff; }
.kpi.green b { color: var(--ok); }

.ring-wrap { display: flex; align-items: center; gap: 18px; }
.ring { transform: rotate(-90deg); filter: drop-shadow(0 0 10px rgba(233,185,73,0.35)); }
.ring .bg { stroke: rgba(255,255,255,0.08); }
.ring .fg { stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease); }
.ring-num { font-family: var(--font-d); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }

.progress { height: 10px; border-radius: 10px; background: rgba(255,255,255,0.08); overflow: hidden; }
.progress > div { height: 100%; border-radius: 10px; background: var(--gold-grad);
  transition: width 0.9s var(--ease); box-shadow: 0 0 12px rgba(233,185,73,0.5); }

/* módulos */
.mod {
  display: flex; gap: 14px; align-items: center; text-decoration: none;
  padding: 14px 12px; border-radius: 16px; border: 1px solid transparent;
  transition: all 0.22s var(--ease); margin: 4px -8px;
}
.mod:hover { background: rgba(255,255,255,0.045); border-color: var(--border-soft); transform: translateX(4px); }
.mod:active { transform: scale(0.985); }
.mod .check {
  width: 38px; height: 38px; border-radius: 13px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  background: rgba(255,255,255,0.05); border: 1.5px solid var(--border); color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: all 0.25s var(--ease);
}
.mod.done .check { background: linear-gradient(135deg, rgba(52,211,153,0.25), rgba(5,150,105,0.12));
  border-color: rgba(52,211,153,0.6); color: var(--ok);
  box-shadow: 0 4px 14px -6px rgba(52,211,153,0.5); }
.mod .mt { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.mod .mw { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* tablas */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted2); padding: 10px 8px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 12px 8px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr { transition: background 0.2s; }
.tbl tbody tr:hover { background: rgba(255,255,255,0.03); }

/* ---------- examen ---------- */
.exam-top {
  position: sticky; top: 61px; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; margin: 0 -16px 12px;
  background: rgba(5, 7, 13, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
#timer {
  font-family: var(--font-d); font-weight: 800; color: var(--gold2);
  background: rgba(233,185,73,0.1); border: 1px solid rgba(233,185,73,0.35);
  padding: 7px 15px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.q-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #9db9ff; margin-bottom: 8px; }
.opt {
  display: flex; gap: 13px; align-items: flex-start; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: 18px;
  padding: 15px; margin: 10px 0; font-size: 15px; line-height: 1.55;
  background: var(--card-grad); background-color: rgba(13, 21, 38, 0.55);
  box-shadow: var(--card-hi);
  transition: all 0.2s var(--ease);
}
.opt:hover { border-color: rgba(91,140,255,0.55); transform: translateX(3px);
  box-shadow: var(--card-hi), 0 10px 26px -14px rgba(91,140,255,0.3); }
.opt:active { transform: scale(0.99); }
.opt input { display: none; }
.opt-letter {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 800; font-size: 13px;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border);
  transition: all 0.2s var(--ease);
}
.opt.sel { border-color: var(--gold); background: linear-gradient(180deg, rgba(233,185,73,0.14), rgba(233,185,73,0.05));
  box-shadow: 0 0 0 3px rgba(233,185,73,0.14), 0 12px 30px -12px rgba(233,185,73,0.4); }
.opt.sel .opt-letter { background: var(--gold-grad); color: #1a1206; border-color: transparent;
  box-shadow: 0 4px 12px -4px rgba(233,185,73,0.6); }
.qnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 8px; margin-bottom: 16px; }
.qnav button {
  aspect-ratio: 1; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--muted); font-weight: 700; font-size: 13px;
  cursor: pointer; transition: all 0.18s var(--ease); font-family: var(--font-d);
}
.qnav button:active { transform: scale(0.9); }
.qnav button.ans { border-color: var(--blue); color: #9db9ff; background: var(--blue-soft); }
.qnav button.cur { border-color: var(--gold); color: var(--gold2);
  box-shadow: 0 0 0 3px rgba(233,185,73,0.18); }

/* resultado */
.score-ring { position: relative; width: 150px; height: 150px; margin: 6px auto 12px; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .n {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 800; font-size: 34px;
}
.score-ring .n small { font-size: 12px; color: var(--muted); font-weight: 600; font-family: var(--font-b); }
.bar-row { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; margin: 10px 0 6px; }
.bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,0.07); overflow: hidden; }
.bar > div { height: 100%; border-radius: 8px; transition: width 1s var(--ease); }
.term { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-sm);
  padding: 12px 14px; margin: 8px 0; font-size: 14px; }

/* ---------- tabs admin ---------- */
.tabs { display: flex; gap: 8px; margin: 14px 0; overflow-x: auto; padding-bottom: 4px; }
.tabs button {
  font-family: var(--font-d); font-weight: 700; font-size: 13.5px; white-space: nowrap;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 20px; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.tabs button:active { transform: scale(0.95); }
.tabs button.sel { color: #1a1206; background: var(--gold-grad); border-color: transparent;
  box-shadow: var(--shadow-gold); }

/* ---------- admin overview ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 14px 0; }
@media (min-width: 720px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi-big {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 18px; backdrop-filter: blur(12px); position: relative; overflow: hidden;
  transition: transform 0.22s var(--ease);
}
.kpi-big:hover { transform: translateY(-3px); }
.kpi-big::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold-grad); opacity: 0.85; }
.kpi-big.blue::before { background: linear-gradient(90deg, #7aa5ff, #3b6fe0); }
.kpi-big.green::before { background: linear-gradient(90deg, #34d399, #059669); }
.kpi-big.violet::before { background: linear-gradient(90deg, #a78bfa, #7c3aed); }
.kpi-big .lbl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.kpi-big .val { font-family: var(--font-d); font-size: 30px; font-weight: 800; margin: 6px 0 2px; }
.kpi-big .sub { font-size: 12px; color: var(--muted); }

.chart-card h3 { margin-bottom: 2px; }
.chart-sub { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar-col .col {
  width: 100%; max-width: 44px; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--gold2), var(--gold-deep));
  box-shadow: 0 4px 16px -4px rgba(233,185,73,0.5);
  animation: growUp 0.8s var(--ease) backwards; min-height: 4px;
}
.bar-col:nth-child(even) .col { background: linear-gradient(180deg, #7aa5ff, #3b6fe0);
  box-shadow: 0 4px 16px -4px rgba(91,140,255,0.5); }
@keyframes growUp { from { transform: scaleY(0); transform-origin: bottom; } }
.bar-col .blbl { font-size: 10.5px; color: var(--muted2); font-weight: 600; }
.bar-col .bval { font-size: 11px; font-weight: 700; color: var(--gold2); }

.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut-legend { display: grid; gap: 10px; font-size: 13.5px; }
.donut-legend .dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; }
.donut-legend b { font-family: var(--font-d); }

/* estudiantes: tarjetas en móvil */
.stu-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 16px; margin: 10px 0; backdrop-filter: blur(12px);
  transition: transform 0.22s var(--ease), border-color 0.22s;
}
.stu-card:hover { transform: translateY(-2px); border-color: rgba(233,185,73,0.35); }
.stu-card:active { transform: scale(0.99); }
.stu-top { display: flex; align-items: center; gap: 12px; }
.stu-top .avatar { width: 44px; height: 44px; font-size: 17px; border-radius: 14px; }
.stu-top .nm { font-weight: 700; font-size: 15px; }
.stu-top .em { font-size: 12px; color: var(--muted); }
.stu-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.stu-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--muted); }
.search {
  width: 100%; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px;
  padding: 13px 20px; outline: none; margin: 6px 0 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(233,185,73,0.14); }

/* expediente */
.exp-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .exp-grid { grid-template-columns: 1fr 1fr; } }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); font-weight: 500; }
.kv .v { font-weight: 700; text-align: right; }
.mail { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-sm);
  padding: 14px; margin: 10px 0; font-size: 13.5px; }
.mail pre { white-space: pre-wrap; font-family: var(--font-b); font-size: 13px; color: var(--muted);
  background: rgba(0,0,0,0.25); border-radius: 8px; padding: 10px; margin: 8px 0 0; }

/* ---------- fondo día/noche ---------- */
.bg-photo { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease; }
.bg-photo.day { background-image: url('/bg-day.webp'); }
.bg-photo.night { background-image: url('/bg-night.webp'); }
body.has-photobg.bg-day .bg-photo.day { opacity: 1; }
body.has-photobg.bg-night .bg-photo.night { opacity: 1; }
.bg-scrim { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity 1.6s ease;
  background: linear-gradient(180deg, rgba(3,5,10,0.68), rgba(3,5,10,0.52)); }
body.has-photobg .bg-scrim { opacity: 1; }
body.has-photobg .bg-orbs { display: none; }

/* ---------- tutor IA ---------- */
.ai-fab { position: fixed; right: 18px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 60;
  width: 62px; height: 62px;
  border-radius: 50%; border: 2px solid rgba(255,217,122,.6); cursor: pointer; padding: 0;
  overflow: visible; background: #0a0f1a;
  box-shadow: 0 12px 32px rgba(0,0,0,.55), 0 0 22px rgba(255,217,122,.3);
  animation: roboFloat 3.2s ease-in-out infinite; }
.ai-fab::before { content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid rgba(255,217,122,.35); animation: fabPulse 2.6s ease-out infinite; }
@keyframes fabPulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.45); opacity: 0; } }
.ai-fab img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.ai-fab img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-fab:active img { animation: roboWiggle .5s ease; }
@keyframes roboFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes roboWiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.06); } 75% { transform: rotate(12deg) scale(1.06); } }
.ai-fab.hidden, .ai-panel.hidden { display: none; }
.ai-panel { position: fixed; z-index: 70; right: 18px; bottom: calc(96px + env(safe-area-inset-bottom)); width: min(430px, calc(100vw - 36px));
  background: #0d1526; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6); display: flex; flex-direction: column; overflow: hidden;
  animation: viewIn .3s var(--ease); max-height: min(560px, 70vh); }
.ai-head { display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-d); }
.ai-head b { display: flex; align-items: center; gap: 10px; }
.ai-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,217,122,.55); background: #0a0f1a;
  animation: roboPop .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes roboPop { 0% { transform: scale(0) rotate(-30deg); } 100% { transform: scale(1) rotate(0); } }
.ai-x { background: none; border: 0; color: var(--mut); font-size: 18px; cursor: pointer; }
.ai-msgs { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.ai-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.55;
  white-space: pre-wrap; }
.ai-msg.user { align-self: flex-end; background: rgba(255,217,122,.16); border: 1px solid rgba(255,217,122,.4); }
.ai-msg.bot { align-self: flex-start; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.ai-msg.typing { color: var(--mut); }
.ai-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.ai-input input { flex: 1; background: rgba(255,255,255,.06); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; color: var(--tx); font: inherit; font-size: 14px; }
.ai-input .btn { padding: 10px 16px; }

/* ---------- acordeón de estudio ---------- */
.acc-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.acc { background: var(--card-grad); background-color: rgba(13, 21, 38, 0.66);
  border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: var(--card-hi), 0 10px 28px -14px rgba(0,0,0,.7);
  animation: viewIn .45s var(--ease); transition: border-color 0.25s; }
.acc.open { border-color: rgba(233,185,73,0.4); }
.acc-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 15px 16px;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--tx); font: inherit; }
.acc-num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,217,122,.2), rgba(185,127,31,.08));
  border: 1px solid rgba(255,217,122,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  color: #ffd97a; font-size: 14px; font-weight: 800; font-family: var(--font-d);
  display: flex; align-items: center; justify-content: center; }
.acc-term { flex: 1; font-family: var(--font-d); font-weight: 700; font-size: 16px; color: #ffd97a; }
.acc-chev { font-size: 22px; color: var(--mut); transition: transform .25s var(--ease); }
.acc.open .acc-chev { transform: rotate(90deg); color: #ffd97a; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc.open .acc-body { max-height: 1200px; }
.acc-body .sc-meaning { margin: 0 16px 12px; line-height: 1.65; }
.acc-body .sc-example { margin: 0 16px 10px; }
.acc-body .sc-tip { margin: 0 16px 16px; }

/* ---------- intro del simulador ---------- */
.exam-intro { text-align: center; }
.exam-facts { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.exam-facts > div { flex: 1; max-width: 150px; background: linear-gradient(180deg, rgba(255,217,122,.1), rgba(255,217,122,.03));
  border: 1px solid rgba(255,217,122,.4); border-radius: 18px; padding: 16px 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 12px 30px -14px rgba(233,185,73,0.35); }
.exam-facts b { display: block; font-family: var(--font-d); font-size: 28px; font-weight: 800;
  letter-spacing: -0.02em; color: #ffd97a; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(255,217,122,0.35); }
.exam-facts span { font-size: 12px; color: var(--mut); font-weight: 600; letter-spacing: 0.03em; }

/* ---------- tarjetitas de estudio ---------- */
.study-card { background: var(--card-grad); background-color: rgba(13, 21, 38, 0.66);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 20px; margin: 12px 0;
  box-shadow: var(--card-hi), 0 12px 32px -16px rgba(0,0,0,.7);
  animation: viewIn .45s var(--ease); }
.sc-term { font-family: var(--font-d); font-weight: 800; font-size: 17px; color: #ffd97a;
  margin-bottom: 8px; }
.sc-meaning { margin: 0 0 12px; line-height: 1.65; color: var(--tx); }
.sc-example { background: rgba(46,204,113,.10); border: 1px solid rgba(46,204,113,.35);
  border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.55;
  color: var(--tx); margin-bottom: 8px; }
.sc-tip { background: rgba(255,217,122,.08); border: 1px dashed rgba(255,217,122,.45);
  border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.55; color: var(--tx); }
.sc-label { font-weight: 700; }
.mod-head { margin-bottom: 4px; }

/* ---------- tabbar flotante ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 60; display: flex; gap: 4px; padding: 8px;
  background: rgba(10, 15, 30, 0.78); border: 1px solid var(--border);
  border-radius: 999px; backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 18px 44px -12px rgba(0,0,0,0.8);
  max-width: calc(100vw - 32px);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: var(--muted); font-size: 10.5px; font-weight: 700;
  padding: 9px 18px; border-radius: 999px; transition: all 0.22s var(--ease);
  font-family: var(--font-d); letter-spacing: 0.02em;
}
.tabbar a .ti { font-size: 19px; line-height: 1; }
.tabbar a:active { transform: scale(0.92); }
.tabbar a.on { color: #1a1206; background: var(--gold-grad); box-shadow: var(--shadow-gold); }

/* ---------- footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 26px 96px 48px 16px; color: var(--muted2); font-size: 12px;
}

/* ---------- skeleton ---------- */
.sk { border-radius: var(--r-md); background: linear-gradient(100deg, rgba(255,255,255,0.04) 40%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 60%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- escritorio ---------- */
@media (min-width: 900px) {
  .app { padding-top: 34px; }
  .auth-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 880px; margin: 30px auto 0;
    overflow: hidden; border-radius: 26px; }
  .auth-side {
    background: linear-gradient(160deg, rgba(233,185,73,0.16), rgba(91,140,255,0.10)), var(--surface);
    border: 1px solid var(--border); border-right: none; border-radius: 26px 0 0 26px;
    padding: 48px 40px; display: flex; flex-direction: column; justify-content: center;
  }
  .auth-side h2 { font-size: 30px; }
  .auth-side p { color: var(--muted); }
  .auth-main { border-radius: 0 26px 26px 0 !important; margin: 0 !important; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- menú hamburguesa ---------- */
.menu-btn { background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; padding: 6px 10px; border-radius: 10px; }
.menu-btn:active { background: rgba(255,255,255,0.08); }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 90; opacity: 1; transition: opacity .25s; }
.scrim.hidden { display: none; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 270px; max-width: 82vw; z-index: 95;
  background: rgb(13, 21, 38); border-right: 1px solid var(--border);
  transform: translateX(-105%); transition: transform .28s ease; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1px solid var(--border); font-size: 18px; }
.drawer-nav { padding: 10px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 12px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.drawer-nav a .ti { font-size: 20px; width: 26px; text-align: center; }
.drawer-nav a.on, .drawer-nav a:active { background: rgba(233,185,73,0.14); }
.drawer-sep { border-top: 1px solid var(--border); margin: 8px 4px; }
.drawer-foot { margin-top: auto; padding: 14px 16px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); }

/* ---------- racha ---------- */
.streak-pill { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 3px 10px;
  border-radius: 999px; background: rgba(255,140,40,0.14); border: 1px solid rgba(255,140,40,0.35);
  font-size: 13px; font-weight: 700; color: #ffab5e; vertical-align: middle; }

/* ---------- temas / subtemas ---------- */
.topic { display: flex; align-items: center; gap: 14px; padding: 16px 14px; border-radius: 18px;
  background: var(--card-grad); background-color: rgba(13, 21, 38, 0.6);
  border: 1px solid var(--border); margin-bottom: 10px;
  color: var(--text); text-decoration: none;
  box-shadow: var(--card-hi), 0 10px 26px -16px rgba(0,0,0,0.7);
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.25s; }
.topic:hover { border-color: rgba(233,185,73,0.4); transform: translateX(3px);
  box-shadow: var(--card-hi), 0 14px 34px -14px rgba(233,185,73,0.25); }
.topic:active { transform: scale(0.985); }
.topic .t-num { flex: none; width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(233,185,73,0.28), rgba(185,127,31,0.12));
  border: 1px solid rgba(233,185,73,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 4px 14px -6px rgba(233,185,73,0.4);
  font-weight: 800; font-size: 16px; color: var(--gold2); font-family: var(--font-d); }
.topic .t-body { flex: 1; min-width: 0; }
.topic .t-title { font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }
.topic .t-meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.topic .t-chev { flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-soft);
  color: var(--muted); font-size: 17px; }
.subt { display: flex; align-items: center; gap: 10px; padding: 13px 12px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); margin-bottom: 8px;
  color: var(--text); text-decoration: none; font-size: 14.5px; }
.subt:active { background: rgba(233,185,73,0.10); }
.subt .s-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.kq { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.kq-q { width: 100%; text-align: left; background: rgba(255,255,255,0.03); border: none; color: var(--text);
  padding: 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.kq-a { display: none; padding: 0 12px 12px; font-size: 13.5px; }
.kq.open .kq-a { display: block; }
.kq-opt { padding: 6px 0; color: var(--muted); }
.kq-opt.ok { color: #4ade80; font-weight: 700; }
.kq-exp { margin-top: 8px; padding: 10px; border-radius: 10px; background: rgba(91,140,255,0.10); line-height: 1.55; }
.listen-btn { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0; }
.spk { background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 4px 9px; font-size: 15px; cursor: pointer; margin-left: 8px; vertical-align: middle; }

/* ---------- plan 14 días ---------- */
.plan-day { border: 1px solid var(--border); border-radius: 18px; margin-bottom: 10px; overflow: hidden;
  background: var(--card-grad); background-color: rgba(13, 21, 38, 0.6);
  box-shadow: var(--card-hi), 0 10px 26px -16px rgba(0,0,0,0.7); transition: border-color 0.25s; }
.plan-day.done { border-color: rgba(74,222,128,0.45); }
.plan-day.open { border-color: rgba(233,185,73,0.4); }
.plan-head { width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: none;
  color: var(--text); padding: 14px; cursor: pointer; text-align: left; }
.plan-num { flex: none; width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: var(--font-d);
  background: linear-gradient(135deg, rgba(233,185,73,0.28), rgba(185,127,31,0.12));
  border: 1px solid rgba(233,185,73,0.4); color: var(--gold2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.plan-day.done .plan-num { background: rgba(74,222,128,0.18); color: #4ade80; }
.plan-title { flex: 1; font-weight: 700; font-size: 14.5px; }
.plan-chev { color: var(--muted); font-size: 20px; transition: transform .2s; }
.plan-day.open .plan-chev { transform: rotate(90deg); }
.plan-tasks { display: none; padding: 0 14px 14px; }
.plan-day.open .plan-tasks { display: block; }
.plan-task { display: flex; align-items: flex-start; gap: 10px; padding: 10px 4px; cursor: pointer; font-size: 14px; }
.plan-task input { width: 20px; height: 20px; margin-top: 1px; accent-color: #4ade80; flex: none; }
.plan-task.done span { text-decoration: line-through; color: var(--muted); }
.plan-prog { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; margin: 4px 0 14px; }
.plan-prog > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #e9b949, #5b8cff); transition: width .4s; }

/* ============================================================
   GM Estudio v23 — Rediseño "Learning Command Center"
   ============================================================ */
.icn { flex: none; vertical-align: -4px; }

/* ---------- hero ---------- */
.hero-card {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: 24px 22px;
  margin: 6px 0 16px;
  background: linear-gradient(160deg, rgba(233,185,73,0.14), rgba(91,140,255,0.08) 55%, rgba(13,21,38,0.4));
  background-color: rgba(13, 21, 38, 0.72);
  border: 1px solid rgba(233,185,73,0.22);
  box-shadow: var(--card-hi), 0 30px 70px -30px rgba(0,0,0,0.9), 0 0 60px -20px rgba(233,185,73,0.25);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.hero-glow {
  position: absolute; width: 340px; height: 340px; right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(233,185,73,0.28), transparent 65%);
  filter: blur(30px); pointer-events: none;
}
.hero-top { display: flex; align-items: center; gap: 16px; position: relative; }
.avatar.lg { width: 68px; height: 68px; font-size: 26px; border-radius: 22px; }
.hero-id h1 { font-size: clamp(22px, 5.6vw, 30px); margin: 6px 0 0; }
.hero-tags { display: flex; align-items: center; gap: 8px; }
.hero-lic {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--gold2); background: rgba(233,185,73,0.12);
  border: 1px solid rgba(233,185,73,0.4); border-radius: 999px; padding: 5px 12px;
}
.hero-lic .icn { width: 14px; height: 14px; }
.streak-pill .icn { width: 14px; height: 14px; }
.streak-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,140,40,0.14); border: 1px solid rgba(255,140,40,0.4);
  font-size: 13px; font-weight: 800; color: #ffab5e;
}
.hero-progress { display: flex; align-items: center; gap: 20px; margin-top: 20px; position: relative; }
.hero-pmeta { flex: 1; }
.hero-pct { font-family: var(--font-d); font-weight: 800; font-size: 38px; letter-spacing: -0.03em;
  line-height: 1; font-variant-numeric: tabular-nums; }
.hero-plbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--muted); margin: 4px 0 10px; }
.hero-bar { height: 12px; }

/* ---------- continuar ---------- */
.continue-card {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  margin-top: 18px; padding: 15px 16px; border-radius: 20px;
  background: rgba(233,185,73,0.1); border: 1px solid rgba(233,185,73,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform 0.2s var(--ease), box-shadow 0.25s, border-color 0.2s;
  position: relative;
}
.continue-card:hover { border-color: rgba(233,185,73,0.6); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 16px 36px -14px rgba(233,185,73,0.4); }
.continue-card:active { transform: scale(0.98); }
.continue-card.done { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.35); }
.cont-ic {
  flex: none; width: 46px; height: 46px; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-grad); color: #1a1206;
  box-shadow: 0 8px 20px -8px rgba(233,185,73,0.7);
}
.continue-card.done .cont-ic { background: linear-gradient(135deg, #34d399, #059669); color: #04120a; }
.cont-body { flex: 1; min-width: 0; }
.cont-lbl { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold2); margin-bottom: 2px; }
.continue-card.done .cont-lbl { color: var(--ok); }
.cont-title { display: block; font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont-go { flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border); color: var(--gold2); }

/* ---------- CTA simulador ---------- */
.sim-cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  border-radius: 24px; padding: 18px;
  margin: 0 0 16px;
  background: linear-gradient(150deg, rgba(91,140,255,0.16), rgba(13,21,38,0.5) 60%);
  background-color: rgba(13, 21, 38, 0.72);
  border: 1px solid rgba(91,140,255,0.3);
  box-shadow: var(--card-hi), 0 24px 55px -24px rgba(0,0,0,0.85), 0 0 50px -18px rgba(91,140,255,0.35);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.sim-cta-glow {
  position: absolute; width: 280px; height: 280px; left: -100px; bottom: -140px;
  background: radial-gradient(circle, rgba(91,140,255,0.3), transparent 65%);
  filter: blur(30px); pointer-events: none;
}
.sim-cta-ic {
  flex: none; width: 52px; height: 52px; border-radius: 17px; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #7aa5ff, #3b6fe0); color: #fff;
  box-shadow: 0 10px 26px -10px rgba(91,140,255,0.8), inset 0 1px 0 rgba(255,255,255,0.4);
}
.sim-cta-ic .icn { width: 26px; height: 26px; }
.sim-cta-body { flex: 1; min-width: 0; position: relative; }
.sim-cta-body b { display: block; font-family: var(--font-d); font-size: 17px; font-weight: 800;
  letter-spacing: -0.02em; }
.sim-cta-body span { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.sim-cta .btn { position: relative; flex: none; padding: 13px 20px; font-size: 14px; }
@media (max-width: 480px) {
  .sim-cta { flex-wrap: wrap; }
  .sim-cta .btn { width: 100%; margin-top: 4px; }
  .sim-cta-body span { white-space: normal; }
}

/* ---------- stats bento ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 16px; }
@media (max-width: 560px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  position: relative; overflow: hidden;
  background: var(--card-grad); background-color: rgba(13, 21, 38, 0.66);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 16px 12px 14px; text-align: center;
  box-shadow: var(--card-hi), 0 14px 34px -18px rgba(0,0,0,0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform 0.22s var(--ease), border-color 0.22s;
}
.stat:hover { transform: translateY(-3px); border-color: rgba(233,185,73,0.35); }
.stat-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 13px; margin-bottom: 8px;
  border: 1px solid;
}
.stat-ic.gold { color: var(--gold2); background: rgba(233,185,73,0.12); border-color: rgba(233,185,73,0.4); }
.stat-ic.blue { color: #9db9ff; background: rgba(91,140,255,0.12); border-color: rgba(91,140,255,0.4); }
.stat-ic.green { color: var(--ok); background: var(--ok-soft); border-color: rgba(52,211,153,0.4); }
.stat-ic.violet { color: #c4b5fd; background: rgba(167,139,250,0.12); border-color: rgba(167,139,250,0.4); }
.stat b { display: block; font-family: var(--font-d); font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span:last-child { font-size: 10.5px; color: var(--muted); font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- secciones ---------- */
.card.sec { padding: 20px 16px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 0 6px; }
.sec-head h3 { margin: 0; font-size: 17px; }
.sec-count {
  font-family: var(--font-d); font-weight: 800; font-size: 13px; color: var(--gold2);
  background: rgba(233,185,73,0.1); border: 1px solid rgba(233,185,73,0.35);
  padding: 4px 12px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.sec-bar { padding: 0 6px; margin-bottom: 8px; }
.progress.slim { height: 8px; }

/* ---------- módulos ricos ---------- */
.mod-rich {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  padding: 14px 12px; border-radius: 18px; border: 1px solid transparent;
  margin: 2px -4px; transition: all 0.22s var(--ease);
}
.mod-rich:hover { background: rgba(255,255,255,0.045); border-color: var(--border-soft); transform: translateX(4px); }
.mod-rich:active { transform: scale(0.98); }
.mod-ic {
  flex: none; width: 48px; height: 48px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(233,185,73,0.22), rgba(91,140,255,0.12));
  border: 1px solid rgba(233,185,73,0.3); color: var(--gold2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.mod-ic .icn { width: 24px; height: 24px; }
.mod-rich.done .mod-ic { background: linear-gradient(135deg, rgba(52,211,153,0.22), rgba(5,150,105,0.1));
  border-color: rgba(52,211,153,0.4); color: var(--ok); }
.mod-body { flex: 1; min-width: 0; }
.mod-title { display: block; font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; line-height: 1.3; }
.mod-meta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.mod-state {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-soft); color: var(--muted);
}
.mod-state .icn { width: 17px; height: 17px; }
.mod-rich.done .mod-state { background: var(--ok-soft); border-color: rgba(52,211,153,0.5); color: var(--ok); }

/* ---------- drawer premium ---------- */
.drawer { width: 300px; background: rgb(11, 17, 32); }
.drawer-head { display: none; }
.drawer-profile {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 18px 16px;
}
.drawer-profile .avatar { width: 48px; height: 48px; font-size: 19px; border-radius: 16px; }
.drawer-profile b { display: block; font-family: var(--font-d); font-size: 16px; letter-spacing: -0.01em; }
.drawer-profile span { font-size: 12px; color: var(--gold2); font-weight: 700; letter-spacing: 0.06em; }
.drawer-nav { padding: 6px 12px; }
.drawer-nav a {
  display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 15px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; margin-bottom: 2px; position: relative;
  transition: all 0.2s var(--ease);
}
.drawer-nav a .ti { display: inline-flex; color: var(--muted); transition: color 0.2s; }
.drawer-nav a .ti .icn, .drawer-nav a .ti svg { width: 21px; height: 21px; }
.drawer-nav a .ti.danger { color: #fb7185; }
.drawer-nav a:active { transform: scale(0.97); }
.drawer-nav a.on {
  background: linear-gradient(135deg, rgba(233,185,73,0.16), rgba(233,185,73,0.06));
  border-color: rgba(233,185,73,0.3); color: var(--gold2);
}
.drawer-nav a.on .ti { color: var(--gold2); }
.ti-on {
  margin-left: auto; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-grad); box-shadow: 0 0 10px rgba(233,185,73,0.8);
}
.drawer-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto; padding: 16px 18px; color: var(--muted); font-size: 12.5px;
  border-top: 1px solid var(--border); font-weight: 700; letter-spacing: 0.04em;
}
.menu-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px; }
.menu-btn .icn { width: 24px; height: 24px; }

/* ---------- exam hero ---------- */
.exam-hero {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 28px; padding: 34px 24px 26px; margin: 6px 0 16px;
  background: linear-gradient(165deg, rgba(91,140,255,0.16), rgba(233,185,73,0.07) 55%, rgba(13,21,38,0.5));
  background-color: rgba(13, 21, 38, 0.75);
  border: 1px solid rgba(91,140,255,0.3);
  box-shadow: var(--card-hi), 0 30px 70px -30px rgba(0,0,0,0.9), 0 0 70px -22px rgba(91,140,255,0.4);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.exam-hero-glow {
  position: absolute; width: 380px; height: 380px; left: 50%; top: -190px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(91,140,255,0.32), transparent 65%);
  filter: blur(30px); pointer-events: none;
}
.exam-hero-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 24px; margin-bottom: 14px; position: relative;
  background: linear-gradient(135deg, #7aa5ff, #3b6fe0); color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 16px 40px -12px rgba(91,140,255,0.8), inset 0 1px 0 rgba(255,255,255,0.4);
}
.exam-hero-ic .icn { width: 34px; height: 34px; }
.exam-hero .eyebrow { justify-content: center; }
.exam-hero .eyebrow::before { display: none; }
.exam-hero h2 { font-size: clamp(24px, 6vw, 32px); margin: 6px 0 8px; position: relative; }
.exam-hero-sub { color: var(--muted); font-size: 14px; max-width: 420px; margin: 0 auto 6px; position: relative; }
.exam-hero .exam-facts { position: relative; }
.ef-ic { display: inline-flex; color: var(--gold2); margin-bottom: 6px; opacity: 0.9; }
.ef-ic .icn { width: 20px; height: 20px; }
.btn-xl { padding: 17px 30px; font-size: 16.5px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-xl .icn { width: 20px; height: 20px; }

/* ---------- encabezados de página ---------- */
.page-head { display: flex; align-items: center; gap: 14px; padding: 8px 4px 4px; margin-bottom: 6px; }
.page-ic {
  flex: none; width: 52px; height: 52px; border-radius: 17px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(233,185,73,0.25), rgba(185,127,31,0.1));
  border: 1px solid rgba(233,185,73,0.4); color: var(--gold2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 20px -10px rgba(233,185,73,0.5);
}
.page-ic.blue { background: linear-gradient(135deg, rgba(91,140,255,0.25), rgba(59,111,224,0.1));
  border-color: rgba(91,140,255,0.4); color: #9db9ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 20px -10px rgba(91,140,255,0.5); }
.page-ic .icn { width: 26px; height: 26px; }
.page-head h1 { font-size: clamp(24px, 6vw, 30px); margin: 0; }
.page-head p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
