/* ============================================================
   IP Modu — Estilos
   Cambia los colores de marca en :root
   ============================================================ */
:root {
  --brand: #4F46E5;
  --brand-2: #0EA5E9;
  --brand-ink: #312E81;
  --brand-soft: #EEF2FF;
  --gold: #F5B301;
  --gold-soft: #FFF7DB;
  --ok: #16A34A;
  --ok-soft: #DCFCE7;
  --bad: #DC2626;
  --bad-soft: #FEE2E2;
  --warn: #D97706;
  --warn-soft: #FEF3C7;

  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --surface-2: #F1F3F9;
  --line: #E3E6EF;
  --ink: #141826;
  --ink-2: #4A5168;
  --ink-3: #8A90A6;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 38, .05), 0 4px 16px rgba(20, 24, 38, .06);
  --shadow-lg: 0 10px 40px rgba(20, 24, 38, .14);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #818CF8; --brand-2: #38BDF8; --brand-ink: #C7D2FE; --brand-soft: #1E1B4B;
    --gold-soft: #3A2E05; --ok-soft: #052E16; --bad-soft: #3B0A0A; --warn-soft: #3A2405;
    --bg: #0D1020; --surface: #161A2E; --surface-2: #1E2340; --line: #2A3052;
    --ink: #EEF0F8; --ink-2: #B6BBD2; --ink-3: #7E84A3;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 .8em; }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }
.tiny { font-size: .78rem; color: var(--ink-3); }
.center { text-align: center; }
.hidden { display: none !important; }
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--ink); font-size: 1.2rem; }
.logo svg { width: 30px; height: 30px; }
.logo-txt b { color: var(--brand); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; border: 0; border-radius: 12px; cursor: pointer;
  padding: .8rem 1.3rem; background: var(--brand); color: #fff; transition: transform .08s, filter .15s, background .15s;
  box-shadow: 0 3px 0 rgba(0,0,0,.18); text-align: center;
}
@media (hover: hover) { .btn:hover { filter: brightness(1.06); } }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem .8rem; font-size: .88rem; border-radius: 9px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); box-shadow: none; }
.btn-ok { background: var(--ok); }
.btn-bad { background: var(--bad); }
.btn-gold { background: var(--gold); color: #2B2100; }
.btn-white { background: #fff; color: #312E81; }
.link-btn { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

/* ---------- Formularios ---------- */
label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 .35rem; }
.field { margin-bottom: 1rem; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=date], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .9rem; outline: none; transition: border .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.hint { font-size: .82rem; color: var(--ink-3); margin-top: .3rem; }

/* ---------- Tarjetas y layout ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 1rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-brand { background: var(--brand-soft); color: var(--brand-ink); }
.pill-gold { background: var(--gold-soft); color: #8A6200; }
.divider { height: 1px; background: var(--line); margin: 1.25rem 0; border: 0; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 999; display: grid; gap: .5rem; width: min(92vw, 420px); }
.toast { background: var(--ink); color: var(--bg); padding: .8rem 1rem; border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: all .25s; font-weight: 600; font-size: .92rem; }
.toast.show { opacity: 1; transform: none; }
.toast-ok { background: var(--ok); color: #fff; }
.toast-bad { background: var(--bad); color: #fff; }

/* ============================================================
   APP
   ============================================================ */
.app-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.app-top .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.stats { display: flex; gap: .5rem; }
.stat { display: inline-flex; align-items: center; gap: .3rem; font-weight: 800; font-size: .92rem; padding: .35rem .65rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.stat-fire { color: #EA580C; }
.stat-xp { color: #B88600; }
.app-main { padding: 1.25rem 0 100px; min-height: calc(100vh - 60px); }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: .4rem 0 calc(.4rem + env(safe-area-inset-bottom)); }
.bottom-nav a { display: grid; justify-items: center; gap: .1rem; font-size: .72rem; font-weight: 700; color: var(--ink-3); padding: .3rem 1rem; border-radius: 12px; }
.bottom-nav a .ico { width: 24px; height: 24px; }
.bottom-nav a.active { color: var(--brand); background: var(--brand-soft); }

.hello { margin-bottom: 1.25rem; }
.level-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; }
.level-badge { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.bar { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px; transition: width .4s; }
.bar-gold > span { background: linear-gradient(90deg, var(--gold), #FB923C); }

.mod-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .75rem; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.mod-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.mod-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.mod-icon .ico { width: 26px; height: 26px; }
.mod-num { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

.lesson-list { display: grid; gap: .6rem; }
.lesson-row { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.lesson-row:hover { border-color: var(--brand); }
.lesson-row.locked { cursor: default; opacity: .7; }
.lesson-row.locked:hover { border-color: var(--line); }
.lesson-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); color: var(--ink-2); flex: none; }
.lesson-dot.done { background: var(--ok); color: #fff; }
.lesson-dot.free { background: var(--gold); color: #2B2100; }
.lesson-row .grow { flex: 1; min-width: 0; }

.medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.medal { text-align: center; padding: 1rem .5rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.medal .m-ico { width: 54px; height: 54px; margin: 0 auto .5rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: #B88600; }
.medal .m-ico .ico { width: 28px; height: 28px; }
.medal.off { opacity: .4; filter: grayscale(1); }
.medal b { display: block; font-size: .88rem; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(100%, 420px); }
.tabs { display: flex; background: var(--surface-2); border-radius: 12px; padding: 4px; margin-bottom: 1rem; }
.tabs button { flex: 1; border: 0; background: none; font: inherit; font-weight: 700; padding: .55rem; border-radius: 9px; color: var(--ink-2); cursor: pointer; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.or { display: flex; align-items: center; gap: .75rem; color: var(--ink-3); font-size: .85rem; margin: 1rem 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.g-btn { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }

/* ============================================================
   PLAYER (lección)
   ============================================================ */
.player { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; }
.player-top { display: flex; align-items: center; gap: .9rem; padding: 14px 16px; max-width: 760px; width: 100%; margin: 0 auto; }
.player-top .bar { flex: 1; height: 14px; }
.close-x { background: none; border: 0; color: var(--ink-3); cursor: pointer; padding: 4px; }
.close-x .ico { width: 28px; height: 28px; }
.player-xp { font-weight: 800; color: #B88600; display: inline-flex; align-items: center; gap: .25rem; }
.player-body { flex: 1; overflow-y: auto; padding: 8px 16px 24px; }
.step { max-width: 680px; margin: 0 auto; animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.step-kicker { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); margin-bottom: .4rem; }
.step h2 { font-size: clamp(1.35rem, 3.6vw, 1.75rem); }
.step .body { font-size: 1.04rem; color: var(--ink); }
.step .body ul, .step .body ol { padding-left: 1.2rem; }
.step .body li { margin-bottom: .5rem; }
.quote-card { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 22px; padding: 2rem 1.5rem; font-size: 1.2rem; font-weight: 600; line-height: 1.5; box-shadow: var(--shadow-lg); }
.quote-card .who { display: block; margin-top: 1rem; font-size: .88rem; opacity: .85; font-weight: 700; }

.options { display: grid; gap: .7rem; margin-top: 1rem; }
.opt {
  text-align: left; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 14px; padding: .95rem 1rem; cursor: pointer; transition: border-color .12s, background .12s;
}
@media (hover: hover) { .opt:not(:disabled):hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); } }
.opt.sel { border-color: var(--brand); background: var(--brand-soft); }
.opt.right { border-color: var(--ok); background: var(--ok-soft); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt:disabled { cursor: default; }
.opt .tag { display: inline-block; font-size: .72rem; font-weight: 800; color: var(--ink-3); margin-bottom: .3rem; letter-spacing: .05em; }

.tf { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1rem; }
.tf .opt { text-align: center; font-weight: 800; font-size: 1.1rem; }

.classify-item { background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 1.3rem 1rem; font-size: 1.1rem; font-weight: 600; text-align: center; margin: 1rem 0; min-height: 90px; display: grid; place-items: center; }
.cat-btns { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.classify-count { font-size: .85rem; color: var(--ink-3); font-weight: 700; }
.result-list { display: grid; gap: .45rem; margin-top: 1rem; }
.result-list div { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; padding: .5rem .7rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.result-list .ok .ico { color: var(--ok); }
.result-list .bad .ico { color: var(--bad); }

.order-pool, .order-picked { display: grid; gap: .55rem; }
.order-picked { min-height: 60px; padding: .6rem; border: 2px dashed var(--line); border-radius: 14px; margin: 1rem 0; }
.order-chip { text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 12px; padding: .7rem .9rem; cursor: pointer; display: flex; gap: .6rem; align-items: center; }
.order-chip .n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; }
.order-chip.right { border-color: var(--ok); background: var(--ok-soft); }
.order-chip.wrong { border-color: var(--bad); background: var(--bad-soft); }

.example-box { background: var(--gold-soft); border-radius: 10px; padding: .6rem .8rem; font-size: .88rem; margin-top: .4rem; white-space: pre-line; }
.prompt-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; white-space: pre-wrap; font-size: .92rem; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; max-height: 340px; overflow: auto; }
.check-row { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; margin-bottom: .55rem; }
.check-row input { width: 22px; height: 22px; margin: 0; accent-color: var(--ok); flex: none; }
.check-row.on { border-color: var(--ok); background: var(--ok-soft); }
.summary-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.summary-list li { display: flex; gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; }
.summary-list .ico { color: var(--ok); margin-top: .15rem; }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; margin-top: 1rem; }
.calc-out .k { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem; }
.calc-out .k b { display: block; font-size: 1.35rem; }
.calc-out .k.ok { border-color: var(--ok); background: var(--ok-soft); }
.calc-out .k.warn { border-color: var(--warn); background: var(--warn-soft); }
.calc-out .k.bad { border-color: var(--bad); background: var(--bad-soft); }
/* Videos verticales (9:16), centrados y con tamaño máximo en computadora */
.video-wrap { position: relative; aspect-ratio: 9 / 16; width: min(100%, 360px, calc(62vh * 9 / 16)); margin: 0 auto; border-radius: 16px; overflow: hidden; background: #0B0F1E; }
.video-wrap.wide { aspect-ratio: 16 / 9; width: 100%; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.video-loading { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: #fff; background: #0B0F1E; pointer-events: none; transition: opacity .3s; }
.video-loading.hidden { display: flex !important; opacity: 0; }
.spinner { width: 34px; height: 34px; margin: 1rem auto 0; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.course-hero.compact { padding: 1rem 1.1rem; margin: .75rem 0; }
.course-hero.compact h1 { font-size: 1.35rem; line-height: 1.2; }
.cc-share.on-hero { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); color: #fff; }

.player-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); transition: background .2s; }
.player-foot .inner { max-width: 680px; margin: 0 auto; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.player-foot.is-ok { background: var(--ok-soft); border-color: var(--ok); }
.player-foot.is-bad { background: var(--bad-soft); border-color: var(--bad); }
.feedback { flex: 1 1 260px; display: none; }
.player-foot.is-ok .feedback, .player-foot.is-bad .feedback { display: block; }
.feedback b { display: flex; align-items: center; gap: .4rem; font-size: 1.1rem; }
.player-foot.is-ok .feedback b { color: var(--ok); }
.player-foot.is-bad .feedback b { color: var(--bad); }
.feedback p { margin: .2rem 0 0; font-size: .92rem; color: var(--ink); }
.player-foot .btn { min-width: 160px; }

.finish { text-align: center; padding-top: 2rem; }
.finish .big-ico { width: 96px; height: 96px; margin: 0 auto 1rem; border-radius: 28px; display: grid; place-items: center; background: var(--gold); color: #2B2100; box-shadow: 0 6px 0 rgba(0,0,0,.15); animation: pop .5s ease; }
.finish .big-ico .ico { width: 54px; height: 54px; }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }
.finish-stats { display: flex; justify-content: center; gap: .75rem; margin: 1.25rem 0; flex-wrap: wrap; }
.finish-stats .k { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1.2rem; min-width: 120px; }
.finish-stats b { display: block; font-size: 1.5rem; }

/* ---------- Planes y pago ---------- */
.seg { display: inline-flex; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.seg button { border: 0; background: none; font: inherit; font-weight: 700; padding: .55rem 1.1rem; border-radius: 9px; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.pick-mod { display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.pick-mod.on { border-color: var(--brand); background: var(--brand-soft); }
.pick-mod.owned { opacity: .65; cursor: default; }
.pick-mod input { width: 20px; height: 20px; accent-color: var(--brand); }
.total-box { background: var(--surface); border: 2px solid var(--brand); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow-lg); }
.bank { background: var(--surface-2); border-radius: 14px; padding: 1rem; display: grid; gap: .35rem; }
.bank div { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.bank b { font-weight: 800; }
.ref-code { font-family: ui-monospace, Menlo, monospace; font-weight: 800; font-size: 1.3rem; letter-spacing: .06em; color: var(--brand); }
.dropzone { border: 2px dashed var(--line); border-radius: 14px; padding: 1.5rem; text-align: center; cursor: pointer; background: var(--surface); }
.dropzone:hover { border-color: var(--brand); }
.paywall { text-align: center; }
.paywall .big-ico { background: var(--brand); color: #fff; }

/* ============================================================
   LANDING
   ============================================================ */
.l-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.l-nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.l-nav nav { display: flex; gap: 1.25rem; align-items: center; }
.l-nav nav a.lnk { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
@media (max-width: 760px) { .l-nav nav a.lnk { display: none; } }
.hero { padding: 64px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .eyebrow { display: inline-flex; gap: .4rem; align-items: center; font-weight: 700; font-size: .85rem; color: var(--brand-ink); background: var(--brand-soft); padding: .35rem .8rem; border-radius: 99px; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 1.25rem; box-shadow: var(--shadow-lg); }
.mock .q { font-weight: 700; margin: .75rem 0; }
.section { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature .f-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: .75rem; }
.price-card { display: flex; flex-direction: column; gap: .5rem; }
.price-card .amt { font-size: 2.2rem; font-weight: 800; }
.price-card.featured { border: 2px solid var(--brand); position: relative; }
.price-card.featured::before { content: "Recomendado"; position: absolute; top: -12px; left: 1.25rem; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 800; padding: .2rem .7rem; border-radius: 99px; }
.biz { background: linear-gradient(135deg, var(--brand-ink), var(--brand)); color: #fff; border-radius: 24px; padding: 2rem; }
.biz h2, .biz p { color: #fff; }
.biz .card { color: var(--ink); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: .6rem; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: .6rem 0 0; color: var(--ink-2); }
.l-foot { padding: 32px 0 48px; color: var(--ink-3); font-size: .88rem; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { background: var(--surface); border-right: 1px solid var(--line); padding: 1rem; display: flex; flex-direction: column; gap: .3rem; }
.admin-side a { display: flex; gap: .6rem; align-items: center; padding: .65rem .8rem; border-radius: 10px; color: var(--ink-2); font-weight: 600; }
.admin-side a.active, .admin-side a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.admin-side .badge { margin-left: auto; background: var(--bad); color: #fff; font-size: .72rem; font-weight: 800; padding: .1rem .45rem; border-radius: 99px; }
.admin-main { padding: 1.5rem; overflow-x: auto; }
@media (max-width: 820px) {
  .admin-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; }
  .admin-side { flex-direction: row; align-items: center; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; padding: .5rem; gap: .25rem; height: auto; }
  .admin-side a { padding: .5rem .75rem; font-size: .9rem; flex: none; }
  .admin-side .logo { display: none; }
  .admin-side a { white-space: nowrap; }
  .admin-main { padding: 1rem; }
}
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.pay-card { display: grid; grid-template-columns: 1fr auto; gap: 1rem; }
.pay-card .receipt { width: 140px; height: 140px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; background: var(--surface-2); display: grid; place-items: center; }
@media (max-width: 600px) { .pay-card { grid-template-columns: 1fr; } .pay-card .receipt { width: 100%; height: 200px; } }
.modal-bg { position: fixed; inset: 0; background: rgba(10, 12, 24, .6); z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 18px; max-width: 640px; width: 100%; max-height: 90vh; overflow: auto; padding: 1.25rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.kpis .card b { display: block; font-size: 1.6rem; }

/* ============================================================
   FASE 1 · Nuevos componentes
   ============================================================ */
.modu { display: block; flex: none; }
.logo .modu { width: 26px; height: 30px; }
.intro-step { text-align: center; padding-top: 1rem; }
.intro-step .modu { margin: 0 auto 1rem; }
.feedback { display: none; align-items: center; gap: .75rem; }
.player-foot.is-ok .feedback, .player-foot.is-bad .feedback { display: flex; }
.fb-modu .modu { width: 44px; height: auto; }
.finish .modu { margin: 0 auto 1rem; animation: pop .5s ease; }

/* Clasificar */
.classify-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .5rem; }
.classify-dots { display: flex; gap: 6px; }
.classify-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: all .2s; }
.classify-dots i.now { background: var(--brand); transform: scale(1.25); }
.classify-dots i.ok { background: var(--ok); }
.classify-dots i.bad { background: var(--bad); }
.classify-item { transition: border-color .2s, background .2s; }
.classify-item.swap { animation: stepIn .25s ease; }
.classify-item.is-ok { border-color: var(--ok); background: var(--ok-soft); }
.classify-item.is-bad { border-color: var(--bad); background: var(--bad-soft); }
.classify-fb { min-height: 2rem; margin: -.4rem 0 .8rem; text-align: center; font-weight: 700; opacity: 0; transition: opacity .15s; }
.classify-fb.show { opacity: 1; }
.classify-fb.ok { color: var(--ok); }
.classify-fb.bad { color: var(--bad); }
.cat-btns .opt:disabled { opacity: 1; }

/* Precio y oferta */
.price-row { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.price-now { font-size: 2rem; font-weight: 800; }
.price-old { color: var(--ink-3); text-decoration: line-through; font-weight: 600; }
.price-tag { background: var(--bad); color: #fff; font-weight: 800; font-size: .8rem; padding: .2rem .5rem; border-radius: 8px; }
.countdown { display: inline-flex; align-items: center; gap: .4rem; background: var(--bad-soft); color: var(--bad); font-weight: 800; padding: .4rem .7rem; border-radius: 10px; font-variant-numeric: tabular-nums; }
.countdown.big { font-size: 1.05rem; padding: .55rem .9rem; }
.offer-box { border: 2px solid var(--bad); border-radius: 16px; padding: 1rem; background: var(--surface); text-align: left; }

/* Página pública */
.pub-hero { padding: 40px 0 24px; }
.pub-hero .hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
@media (max-width: 760px) { .pub-hero .hero-grid { grid-template-columns: 1fr; } .pub-hero .modu-hero { order: -1; } }
.modu-hero { display: grid; place-items: center; }
.modu-hero .modu { width: min(240px, 60vw); height: auto; }
.course-card { display: flex; flex-direction: column; gap: .75rem; cursor: pointer; }
.course-card .cc-top { height: 8px; border-radius: 99px; }
.course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.course-grid > .stack { display: flex; flex-direction: column; }
.course-grid > .stack > .course-card { flex: 1; }
.course-card { gap: .6rem; }
.cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.cc-area { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding-top: .35rem; }
.cc-share { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.cc-share .ico { width: 18px; height: 18px; }
.cc-title { margin: 0; }
.cc-demo { margin-top: auto; }
.cc-price { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.cc-price .price-now { font-size: 1.6rem; }
.cc-note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; align-self: flex-start; background: var(--bad-soft); color: var(--bad); font-weight: 700; font-size: .85rem; padding: .4rem .65rem; border-radius: 10px; font-variant-numeric: tabular-nums; }
.cc-note .ico { width: 15px; height: 15px; }
@media (max-width: 640px) {
  .course-grid { gap: .6rem; }
  .course-card { padding: .85rem; gap: .5rem; }
  .cc-desk { display: none; }
  .cc-title { font-size: 1.02rem; line-height: 1.25; }
  .cc-price .price-now { font-size: 1.2rem; }
  .cc-price { gap: .3rem; }
  .cc-price .price-tag { font-size: .7rem; padding: .15rem .35rem; }
  .cc-demo { padding: .6rem .4rem; font-size: .9rem; min-height: 0; }
  .cc-note { font-size: .78rem; padding: .35rem .5rem; }
  .cc-share { width: 32px; height: 32px; }
}
.course-hero { border-radius: 22px; color: #fff; padding: 1.5rem; margin: 1rem 0; }
.course-hero h1, .course-hero p { color: #fff; }
.check-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.check-list li { display: flex; gap: .5rem; align-items: flex-start; }
.check-list .ico { color: var(--ok); margin-top: .2rem; }
.sticky-buy { position: sticky; bottom: 76px; z-index: 5; }
.pub-only .sticky-buy { bottom: 12px; }

/* Ruta del curso (estilo Duolingo) */
.path { display: grid; gap: 1.25rem; }
.path-mod { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; }
.path-mod-head { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.path-node { display: flex; align-items: center; gap: .9rem; padding: .7rem .4rem; border-radius: 12px; cursor: pointer; }
.path-node + .path-node { border-top: 1px dashed var(--line); }
.path-node.locked { cursor: default; opacity: .55; }
.path-node.current { background: var(--brand-soft); }
.node-dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; background: var(--surface-2); color: var(--ink-2); border-bottom: 4px solid var(--line); }
.node-dot.done { background: var(--ok); color: #fff; border-color: #15803D; }
.node-dot.current { background: var(--brand); color: #fff; border-color: var(--brand-ink); }
.node-dot.video { background: #DB2777; color: #fff; border-color: #9D174D; }

/* Instalar app */
.install-bar { display: flex; align-items: center; gap: .75rem; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); border-radius: 16px; padding: .75rem 1rem; margin-bottom: 1rem; }
.install-bar .modu { width: 40px; height: auto; }
.install-bar .grow { flex: 1; min-width: 0; }
.sheet-bg { position: fixed; inset: 0; z-index: 120; background: rgba(10, 12, 24, .55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); max-height: 90vh; overflow: auto; animation: sheetUp .25s ease; }
@media (min-width: 640px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.steps-list { counter-reset: s; list-style: none; padding: 0; display: grid; gap: .6rem; }
.steps-list li { counter-increment: s; display: flex; gap: .7rem; align-items: flex-start; background: var(--surface-2); padding: .7rem .8rem; border-radius: 12px; }
.steps-list li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; font-size: .85rem; }
.plat-tabs { display: flex; gap: .4rem; margin: .75rem 0; flex-wrap: wrap; }
.plat-tabs button { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; padding: .4rem .8rem; border-radius: 99px; cursor: pointer; }
.plat-tabs button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }

/* Contraste en modo oscuro */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pill-gold { color: #FCD34D; }
  :root:not([data-theme="light"]) .pill-ok { color: #4ADE80; }
  :root:not([data-theme="light"]) .pill-bad { color: #F87171; }
  :root:not([data-theme="light"]) .pill-warn { color: #FBBF24; }
  :root:not([data-theme="light"]) .stat-xp, :root:not([data-theme="light"]) .player-xp { color: #FCD34D; }
  :root:not([data-theme="light"]) .example-box { color: #FDE68A; }
  :root:not([data-theme="light"]) .countdown { color: #FCA5A5; }
  :root:not([data-theme="light"]) .btn-soft { color: #E0E7FF; }
  :root:not([data-theme="light"]) .btn { box-shadow: 0 3px 0 rgba(0,0,0,.45); }
  :root:not([data-theme="light"]) .btn:not(.btn-ghost):not(.btn-soft):not(.btn-white):not(.btn-gold):not(.g-btn):not(.btn-ok):not(.btn-bad):not(.my-route) { background: #6366F1; }
  :root:not([data-theme="light"]) .classify-fb.ok { color: #4ADE80; }
  :root:not([data-theme="light"]) .classify-fb.bad { color: #F87171; }
}

.center-modu { margin: 0 auto; }


/* ---------- Fase 2: medallas por categoría, certificados ---------- */
.medal.off { opacity: .55; }
.medal.off .m-ico { filter: grayscale(1); }
.mcat { margin-bottom: .75rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.mcat-head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; }
.mcat-head::after { content: "▾"; margin-left: .5rem; color: var(--ink-3); transition: transform .2s; }
.mcat.open .mcat-head::after { transform: rotate(180deg); }
.mcat .medals { display: none; padding: 0 .75rem .9rem; }
.mcat.open .medals { display: grid; }
.mcat .medal { background: var(--bg); }
.cert-card { border-color: var(--gold); background: var(--gold-soft); }
.cert-preview { position: relative; background: #F8F9FD; color: #141826; border: 1px solid #E1E4F0; border-radius: 16px; padding: 2rem 1rem 1.25rem; text-align: center; overflow: hidden; }
.cert-preview .tiny { color: #6E748C; }
.cp-band { position: absolute; inset: 0 0 auto 0; height: 8px; background: linear-gradient(90deg, #4F46E5 62%, #0EA5E9 62%); }
.cp-kicker { margin: 1rem 0 .4rem; color: #4F46E5; font-weight: 800; letter-spacing: .14em; font-size: .78rem; text-transform: uppercase; }
.cp-name { font-size: 1.7rem; font-weight: 800; margin: .3rem 0 .5rem; padding-bottom: .4rem; border-bottom: 2px solid #4F46E5; display: inline-block; min-width: 60%; }
.cp-course { font-size: 1.15rem; font-weight: 800; margin: .3rem 0; }

/* ---------- Fase 3: Círculo Modu, historial ---------- */
.circle-teaser { border-style: dashed; }
.circle-card, .circle-head { background: linear-gradient(135deg, var(--brand-soft), var(--gold-soft)); border-color: var(--gold); color: var(--ink); text-decoration: none; }
.dia-balance { font-size: 2rem; font-weight: 800; line-height: 1.1; margin: .15rem 0; }
.dia-box { border: 1px solid var(--gold); background: var(--gold-soft); border-radius: 14px; padding: .8rem .9rem; }
.circle-reveal .check-list li { margin-bottom: .5rem; }
.timeline { border-left: 2px solid var(--line); margin: .4rem 0 1.2rem .9rem; padding-left: 1rem; }
.tl-item { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .9rem; position: relative; }
.tl-dot { position: absolute; left: -1.95rem; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; color: var(--brand); }
.tl-dot .ico { width: 14px; height: 14px; }
.tl-item > div:last-child { padding-left: .2rem; }
.k-stat { padding: .8rem 1rem; } .k-stat b { display: block; font-size: 1.3rem; }

/* Medallas con niveles y secretas */
.medal .m-ico { position: relative; }
.m-tier { position: absolute; right: -6px; bottom: -4px; font-size: 1.05rem; line-height: 1; }
.medal.secret .m-ico { font-size: 1.4rem; font-weight: 800; color: var(--ink-3); background: var(--line); }
.medal.tier-4 .m-ico { background: linear-gradient(135deg, #E0F2FE, #EDE9FE); color: #4F46E5; }

/* El botón principal de la lección siempre a la derecha, también cuando la retroalimentación ocupa toda la fila */
/* Botón Continuar siempre a la derecha, también cuando el mensaje es largo */
.player-foot .inner { justify-content: flex-end; }
.player-foot .inner > .feedback { flex: 1 1 260px; margin-right: auto; }
.player-foot [data-main] { margin-left: auto; align-self: flex-end; }

/* ============ Modu con vida ============ */
.modu .m-eyes { transform-box: fill-box; transform-origin: center; animation: m-blink 4.6s infinite; }
.modu .m-dot { transform-box: fill-box; transform-origin: center; animation: m-bob 2.4s ease-in-out infinite; }
.modu .m-body { transform-box: view-box; transform-origin: 100px 210px; animation: m-breathe 3.6s ease-in-out infinite; }
.modu-dormido .m-body { animation-duration: 5s; }
.modu-dormido .m-zz text { animation: m-zz 2.6s ease-in-out infinite; }
.modu-dormido .m-zz text:nth-child(2) { animation-delay: .4s; }
.modu-dormido .m-zz text:nth-child(3) { animation-delay: .8s; }
.finish .modu-celebrando { animation: m-pop .5s ease, m-jump 1s .6s ease-in-out 3; }
.modu-celebrando .m-extra { transform-box: view-box; transform-origin: 100px 100px; animation: m-spark 1.8s ease-in-out infinite; }
.modu-animando .m-extra { transform-box: fill-box; transform-origin: center; animation: m-twinkle 1.4s ease-in-out infinite; }
.modu-pensativo .m-extra circle { animation: m-float 2.2s ease-in-out infinite; }
.logo .modu *, .logo .modu { animation: none !important; }
.fb-modu .modu.jump { animation: m-hop .55s ease; }
.fb-modu .modu.shake { animation: m-shake .5s ease; }
.modu.pop-in { animation: m-pop .45s cubic-bezier(.3,1.6,.6,1); }
@keyframes m-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes m-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes m-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.015, .985); } }
@keyframes m-jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10%); } 60% { transform: translateY(-10%) rotate(-3deg); } }
@keyframes m-spark { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.08) rotate(4deg); opacity: .8; } }
@keyframes m-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.3) rotate(25deg); } }
@keyframes m-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes m-zz { 0%, 100% { opacity: .2; transform: translateY(4px); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes m-hop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-14px) scale(1.06, .94); } 70% { transform: translateY(0) scale(.96, 1.04); } 100% { transform: none; } }
@keyframes m-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-5px) rotate(-4deg); } 40% { transform: translateX(5px) rotate(4deg); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
@keyframes m-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: conf-fall linear forwards; }
@keyframes conf-fall { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: .9; } }

/* Consejo de Modu que entra desde un lado */
.modu-tip { display: flex; gap: .6rem; align-items: flex-end; margin-top: 1.1rem; animation: tip-in .6s .5s both cubic-bezier(.3,1.3,.6,1); }
.modu-tip .modu { width: 46px; height: auto; }
.modu-tip .bubble { position: relative; background: var(--brand-soft); color: var(--brand-ink); border-radius: 16px 16px 16px 4px; padding: .7rem .9rem; font-size: .95rem; }
@keyframes tip-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Racha en riesgo */
.streak-risk { display: flex; gap: .8rem; align-items: center; border-color: var(--warn); background: var(--warn-soft); margin-bottom: 1rem; }
.streak-risk .modu { width: 56px; height: auto; }

/* ============ Conversación tipo WhatsApp ============ */
.wa { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #ECE5DD; max-width: 520px; margin: 0 auto; }
.wa-top { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; background: #075E54; color: #fff; }
.wa-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #25D366; color: #053B33; flex: none; }
.wa-top b { display: block; font-size: .95rem; line-height: 1.1; }
.wa-top span { font-size: .72rem; opacity: .85; }
.wa-body { padding: .8rem .7rem 1rem; display: flex; flex-direction: column; gap: .45rem; min-height: 220px; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px; }
.wa-msg { max-width: 82%; padding: .45rem .7rem .55rem; border-radius: 12px; font-size: .95rem; line-height: 1.35; color: #111B21; box-shadow: 0 1px 1px rgba(0,0,0,.08); animation: wa-in .28s ease both; white-space: pre-line; }
.wa-msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.wa-msg.out { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 3px; }
.wa-msg .who { display: block; font-size: .72rem; font-weight: 800; color: #0E7C6B; margin-bottom: .1rem; }
.wa-note { align-self: center; display: flex; gap: .5rem; align-items: flex-start; max-width: 92%; background: #EEF2FF; color: #312E81; border-radius: 12px; padding: .5rem .7rem; font-size: .88rem; animation: wa-in .3s ease both; }
.wa-note .modu { width: 30px; height: auto; flex: none; }
.wa-typing { align-self: flex-start; background: #fff; border-radius: 12px; padding: .55rem .75rem; display: inline-flex; gap: 4px; }
.wa-typing.out { align-self: flex-end; background: #D9FDD3; }
.wa-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696A0; animation: wa-dot 1s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; } .wa-typing i:nth-child(3) { animation-delay: .3s; }
.wa-msg.good { box-shadow: 0 0 0 2px var(--ok); } .wa-msg.bad { box-shadow: 0 0 0 2px var(--bad); }
@keyframes wa-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes wa-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.wa-opts { display: grid; gap: .5rem; margin-top: .9rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.wa-opts .opt { text-align: left; }
.wa-ask { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.wa-skip { display: block; margin: .6rem auto 0; }
.wa-end { text-align: center; margin-top: .9rem; }
.wa-end .modu { margin: 0 auto .3rem; }
.sim-score { display: flex; justify-content: center; gap: 6px; margin: .2rem 0 .8rem; }
.sim-score i { width: 26px; height: 8px; border-radius: 99px; background: var(--line); }
.sim-score i.ok { background: var(--ok); } .sim-score i.bad { background: var(--bad); }

/* ============ Vista previa de anuncio ============ */
.adp { max-width: 400px; margin: 0 auto; background: #fff; color: #0F1419; border: 1px solid #DBDBDB; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); animation: m-pop .5s ease both; }
.adp-head { display: flex; align-items: center; gap: .55rem; padding: .6rem .75rem; }
.adp-av { width: 34px; height: 34px; border-radius: 50%; padding: 2px; background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); flex: none; }
.adp-av span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; color: #111; font-weight: 800; font-size: .9rem; }
.adp-head b { display: block; font-size: .88rem; line-height: 1.1; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adp-head span.sp { font-size: .72rem; color: #737373; }
.adp-img { position: relative; aspect-ratio: 1; max-height: 40vh; width: 100%; display: flex; flex-direction: column; justify-content: center; padding: 1.4rem; color: #fff; overflow: hidden; }
.adp-img::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -18%; bottom: -22%; border-radius: 50%; background: rgba(255,255,255,.12); }
.adp-img .k { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.adp-img .t { font-size: clamp(1.25rem, 6vw, 1.75rem); font-weight: 800; line-height: 1.15; margin-top: .4rem; position: relative; z-index: 1; }
.adp-img .s { margin-top: .7rem; font-size: .95rem; opacity: .95; position: relative; z-index: 1; }
.adp-cta { display: flex; justify-content: space-between; align-items: center; padding: .65rem .8rem; background: #EFEFEF; font-weight: 700; font-size: .9rem; color: #0F1419; }
.adp-cta svg { width: 18px; height: 18px; }
.adp-icons { display: flex; gap: .9rem; padding: .55rem .8rem .2rem; }
.adp-icons svg { width: 24px; height: 24px; fill: none; stroke: #0F1419; stroke-width: 1.8; }
.adp-cap { padding: .2rem .8rem .8rem; font-size: .9rem; line-height: 1.4; white-space: pre-line; }
.adp-cap b { margin-right: .3rem; }
.adp-miss { background: #FEF3C7; color: #92400E; border-radius: 4px; padding: 0 .2rem; }
@media (prefers-reduced-motion: reduce) { .modu, .modu *, .modu-tip, .wa-msg, .wa-note, .adp { animation: none !important; } }

/* ============ Precio y botón de compra ============ */
.price-stack { display: flex; flex-direction: column; gap: .1rem; }
.price-stack .price-old { font-size: 1.05rem; }
.price-tag { white-space: nowrap; }
.per-month { margin-top: .5rem; font-size: .95rem; color: var(--ink-2); }
.per-month b { color: var(--ok); }
.per-month span { display: block; font-size: .8rem; color: var(--ink-3); margin-top: .1rem; }
.per-month.sm { margin-top: .1rem; font-size: .8rem; font-weight: 700; color: var(--ok); }
.paywall .per-month, .paywall .price-stack { text-align: left; }
/* Botón de compra con brillo, latido inicial y regalo que salta */
.btn-buy { position: relative; overflow: hidden; background: linear-gradient(135deg, #4F46E5, #7C3AED 55%, #DB2777); color: #fff; box-shadow: 0 4px 0 #3730A3, 0 10px 24px rgba(124, 58, 237, .35); animation: buy-beat 1.2s ease-in-out .4s 3; }
.btn-buy::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: buy-shine 3.2s ease-in-out 1s infinite; }
.btn-buy .buy-ico { display: inline-block; font-size: 1.15em; animation: buy-gift 1.6s ease-in-out infinite; }
.btn-buy:hover { filter: brightness(1.05); }
.later-btn { display: block; margin: 0 auto; color: var(--ink-3); font-size: .95rem; padding: .6rem 1rem; }
@keyframes buy-shine { 0% { left: -60%; } 45%, 100% { left: 130%; } }
@keyframes buy-beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.04); } 55% { transform: scale(.99); } }
@keyframes buy-gift { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-4px) rotate(-12deg); } 80% { transform: translateY(0) rotate(10deg); } 90% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .btn-buy, .btn-buy::after, .btn-buy .buy-ico { animation: none; } }
:root:not([data-theme="light"]) .btn-buy { background: linear-gradient(135deg, #4F46E5, #7C3AED 55%, #DB2777) !important; }

/* ============ Mis cursos: tarjetas con el color de cada curso ============ */
.my-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.my-head { padding: .8rem .9rem .9rem; color: #fff; min-height: 96px; display: flex; flex-direction: column; gap: .35rem; }
.my-area { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .92; padding-top: .3rem; }
.my-title { font-size: 1.05rem; line-height: 1.25; }
.my-body { padding: .75rem .9rem .9rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.my-pct { font-weight: 800; color: var(--cc); font-size: .9rem; }
.my-bar span { background: var(--cc) !important; }
.my-go { margin-top: auto; }
.my-links { display: flex; flex-wrap: wrap; gap: .25rem .7rem; justify-content: center; }
.my-links a { font-weight: 700; }
@media (max-width: 640px) {
  .my-head { padding: .65rem .7rem .75rem; min-height: 88px; }
  .my-title { font-size: .95rem; }
  .my-body { padding: .6rem .7rem .75rem; }
  .my-go { padding: .6rem .4rem; font-size: .9rem; min-height: 0; }
}

/* ============ Explorar: buscador, filtros y orden ============ */
.search-box { position: relative; display: flex; align-items: center; margin-top: 1rem; }
.search-box > .ico { position: absolute; left: .9rem; width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.search-box input { width: 100%; padding: .85rem 2.6rem .85rem 2.6rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; }
.search-box input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box .close-x { position: absolute; right: .4rem; }
.chips { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem 0 .2rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 99px; padding: .4rem .85rem; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sort-sel { width: auto; padding: .35rem .6rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .85rem; font-weight: 700; }
.why { color: var(--brand); font-weight: 700; display: flex; gap: .25rem; align-items: flex-start; }
.why .ico { width: 13px; height: 13px; flex: none; margin-top: .1rem; }
.cbadges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: -.2rem; }
.cbadge { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 800; padding: .15rem .5rem; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }
.cbadge .ico { width: 13px; height: 13px; }
.cbadge.hot { background: #FFEDD5; color: #C2410C; }
.cbadge.new { background: var(--brand-soft); color: var(--brand); }
.price-up { margin-top: .6rem; padding: .5rem .7rem; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: .88rem; font-weight: 600; }
.new-banner { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; border-left: 5px solid var(--cc); padding: .75rem .8rem; }
.new-badge { flex: none; font-size: .75rem; font-weight: 800; background: var(--brand-soft); color: var(--brand); padding: .3rem .55rem; border-radius: 99px; }
.new-banner b { display: block; line-height: 1.25; }
.nb-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .new-banner { flex-wrap: wrap; } .new-banner .btn { order: 3; flex: 1 1 100%; } .nb-sub { white-space: normal; } .cbadges .cbadge:nth-child(n+2) { display: none; } .why { font-size: .72rem; line-height: 1.3; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cbadge.hot { background: #431407; color: #FDBA74; } }
.sugg { border-left: 5px solid var(--ok); margin-top: .6rem; }
.sugg.low { border-left-color: var(--warn); }
.sugg-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.sugg-price b { font-size: 1.4rem; color: var(--ok); }
.stat-line { margin-top: .35rem; }

/* ============ Tarjetas de curso v2 (más premium) ============ */
.course-card.cc2 { padding: 0; overflow: hidden; gap: 0; }
.cc2 .cc-hero { padding: .85rem .95rem 1rem; color: #fff; min-height: 112px; display: flex; flex-direction: column; gap: .4rem; }
.cc2 .cc-area { color: #fff; opacity: .92; }
.cc2 .cc-title { color: #fff; font-size: 1.12rem; line-height: 1.25; }
.cc2 .cc-body { padding: .8rem .95rem .95rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.cc-outcome { display: flex; gap: .35rem; margin: 0; font-size: .88rem; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-outcome .ico { width: 15px; height: 15px; color: var(--ok); flex: none; margin-top: .15rem; vertical-align: -2px; margin-right: .25rem; }
.cc-outcome { display: block; }
.cc-pricebox { margin-top: auto; }
.cc2 .cc-price .price-old { font-size: .85rem; }
.price-tag.sm { font-size: .72rem; padding: .12rem .4rem; border-radius: 6px; }
.cc2 .per-month.sm { color: var(--ink-3); font-weight: 600; }
.cc-gift { display: inline-block; margin-top: .3rem; font-size: .78rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: .2rem .5rem; border-radius: 8px; }
.cc2 .cc-demo { background: var(--ok-soft); color: #15803D; border: 1.5px solid var(--ok); box-shadow: none; font-weight: 800; }
.cc2 .cc-demo:hover { background: var(--ok); color: #fff; }
:root:not([data-theme="light"]) .cc2 .cc-demo { background: var(--ok-soft) !important; color: #4ADE80; }
.offer-strip { display: flex; align-items: center; gap: .5rem; padding: .65rem .9rem; border-radius: 14px; background: linear-gradient(90deg, var(--brand-soft), var(--surface)); border: 1px solid var(--line); color: var(--ink); font-size: .92rem; text-decoration: none; }
.offer-strip span { flex: 1; }
.offer-strip b { color: var(--brand); font-variant-numeric: tabular-nums; }
.offer-strip .ico { width: 18px; height: 18px; color: var(--brand); }
@media (max-width: 640px) {
  .cc2 .cc-hero { padding: .7rem .75rem .85rem; min-height: 100px; }
  .cc2 .cc-title { font-size: .98rem; }
  .cc2 .cc-body { padding: .65rem .75rem .8rem; gap: .45rem; }
  .cc-outcome { font-size: .8rem; }
  .cc2 .cc-price .price-old { display: none; }
}
.cc-cert { margin-left: .4rem; }

/* ============ Bloque de precio v2 (página del curso, demo y pago) ============ */
.pb { display: flex; flex-direction: column; gap: .35rem; text-align: left; }
.pb-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.pb-row .price-now { font-size: 2.3rem; letter-spacing: -.02em; line-height: 1.05; }
.pb-row .price-old { font-size: 1.05rem; }
.pb-row .price-tag.sm { align-self: center; font-size: .78rem; }
.pb-sub { font-size: .9rem; color: var(--ink-3); }
.pb-sub b { color: var(--ink-2); font-weight: 700; }
.pb-timer, .pb-gift { display: flex; gap: .45rem; align-items: center; margin-top: .3rem; font-size: .9rem; color: var(--ink-2); padding: .55rem .7rem; border-radius: 12px; background: var(--surface-2); }
.pb-timer .ico, .pb-gift .ico { width: 18px; height: 18px; flex: none; color: var(--brand); }
.pb-timer b { color: var(--bad); font-variant-numeric: tabular-nums; }
.pb-gift { background: var(--brand-soft); }
.pb-gift b { color: var(--brand); }
.pb-sep { height: 1px; background: var(--line); margin: 1.1rem 0; }
.pb-safe { margin: .6rem 0 0; display: flex; gap: .3rem; justify-content: center; align-items: center; }
.pb-safe .ico { width: 13px; height: 13px; }
.btn-demo-soft { background: var(--ok-soft); color: #15803D; border: 1.5px solid var(--ok); box-shadow: none; font-weight: 800; }
.btn-demo-soft:hover { background: var(--ok); color: #fff; }
:root:not([data-theme="light"]) .btn-demo-soft { background: var(--ok-soft) !important; color: #4ADE80; }
.btn-buy .buy-ico .ico { width: 20px; height: 20px; vertical-align: -4px; }
.incl { list-style: none; padding: 1rem 0 0; margin: 1rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem .8rem; }
.incl li { display: flex; gap: .45rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); line-height: 1.3; }
.incl .ico { width: 17px; height: 17px; flex: none; color: var(--brand); margin-top: .05rem; }
.paywall .pb { align-items: flex-start; }

/* Guion para grabar (panel) */
.sc-points { margin: .3rem 0 0; padding-left: 1.2rem; display: grid; gap: .25rem; }
.sc-box { margin-top: .4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); padding: .4rem .8rem; max-height: 46vh; overflow: auto; }
.sc-line { display: grid; grid-template-columns: 112px 1fr; gap: .7rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; line-height: 1.45; }
.sc-line:last-child { border-bottom: 0; }
.sc-time { font-size: .74rem; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .03em; padding-top: .15rem; }
@media (max-width: 560px) { .sc-line { grid-template-columns: 1fr; gap: .15rem; } }

/* ============ Conceptos por partes ============ */
.beats { display: flex; flex-direction: column; gap: .65rem; margin-top: .4rem; }
.beat-say { display: flex; gap: .55rem; align-items: flex-end; animation: beat-in .35s cubic-bezier(.3,1.3,.6,1) both; }
.beat-modu { width: 34px; flex: none; }
.beat-modu .modu { width: 34px; height: auto; }
.beat-bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: .75rem .95rem; font-size: 1.04rem; line-height: 1.5; box-shadow: var(--shadow); max-width: 100%; }
.beat-card { display: flex; gap: .7rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 14px; padding: .8rem .95rem; font-size: 1.02rem; line-height: 1.45; box-shadow: var(--shadow); animation: card-in .4s cubic-bezier(.3,1.3,.6,1) both; }
.beat-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: .85rem; }
.beats strong { background: linear-gradient(transparent 58%, #FDE68A 58%); padding: 0 .1em; animation: hl-in .7s .25s both; background-size: 0% 100%; background-repeat: no-repeat; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .beats strong { background-image: linear-gradient(transparent 58%, rgba(245,179,1,.35) 58%); } }
.beats-hint { text-align: center; margin-top: .9rem; color: var(--ink-3); animation: hint 1.6s ease-in-out infinite; }
@keyframes beat-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateX(26px) rotate(1deg); } to { opacity: 1; transform: none; } }
@keyframes hl-in { to { background-size: 100% 100%; } }
@keyframes hint { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.listen-btn { flex: none; display: inline-flex; align-items: center; gap: .3rem; border: 1.5px solid var(--line); background: var(--surface); color: var(--brand); border-radius: 99px; padding: .35rem .75rem; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; margin-top: .2rem; }
.listen-btn .ico { width: 14px; height: 14px; }
.listen-btn.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ============ Escena animada (video sin enlace) ============ */
.scene { position: relative; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, #1E1B4B, #312E81 55%, #0C4A6E); color: #fff; aspect-ratio: 9 / 13; width: min(100%, 380px, calc(58vh * 9 / 13)); margin: .5rem auto 0; display: flex; flex-direction: column; cursor: pointer; user-select: none; }
.scene-stage { flex: 1; display: grid; place-items: center; position: relative; padding: 1rem; }
.scene-sub { padding: .8rem 1rem 3.2rem; text-align: center; font-size: 1.08rem; font-weight: 700; line-height: 1.4; min-height: 6.5em; display: flex; align-items: flex-end; justify-content: center; }
.scene-sub span { background: rgba(0,0,0,.35); padding: .35rem .6rem; border-radius: 10px; animation: beat-in .35s ease both; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.scene-ctrl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; }
.scene-ctrl button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.scene-ctrl .ico { width: 16px; height: 16px; }
.scene-bar { flex: 1; height: 4px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; }
.scene-bar span { display: block; height: 100%; width: 0; background: #F5B301; }
.sc-cam .modu { width: 130px; height: auto; }
.modu.talking .m-body { animation: talk .32s ease-in-out infinite alternate; transform-origin: 100px 200px; transform-box: view-box; }
@keyframes talk { from { transform: scale(1, 1) rotate(-1.5deg); } to { transform: scale(1.03, .97) rotate(1.5deg); } }
.sc-board { position: relative; width: 100%; background: #F8FAFC; color: #141826; border-radius: 14px; padding: 1.1rem 1rem 2.4rem; min-height: 55%; box-shadow: 0 8px 0 #CBD5E1; display: flex; flex-direction: column; gap: .5rem; justify-content: center; }
.sc-ink { font-family: "Marker Felt", "Chalkboard SE", "Comic Sans MS", "Segoe Print", cursive; font-size: 1.12rem; font-weight: 700; color: #1E3A8A; line-height: 1.35; animation: write .9s steps(18) both; min-width: 0; overflow-wrap: anywhere; }
.sc-ink.x span { color: #94A3B8; text-decoration: line-through; text-decoration-color: #DC2626; text-decoration-thickness: 3px; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes strike { from { width: 0; } to { width: 100%; } }
.sc-modu { position: absolute; right: .4rem; bottom: -.6rem; }
.sc-modu .modu { width: 54px; height: auto; }
.sc-modu.side { right: 1rem; bottom: .2rem; }
.sc-phone { width: 62%; aspect-ratio: 9 / 16; max-height: 100%; border-radius: 22px; background: #0B0F1E; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.sc-phone-in { height: 100%; border-radius: 16px; background: #ECE5DD; padding: .6rem; display: flex; flex-direction: column; gap: .4rem; justify-content: center; }
.sc-msg { background: #fff; color: #111; font-size: .8rem; border-radius: 10px; padding: .4rem .55rem; animation: beat-in .35s ease both; }
@media (prefers-reduced-motion: reduce) { .beat-say, .beat-card, .beats strong, .sc-ink, .modu.talking .m-body { animation: none !important; } .beats strong { background-size: 100% 100%; } }

/* ---- Personajes (personajes.js) ---- */
.ch { overflow: visible; }
.ch .ch-body { animation: ch-breathe 3.2s ease-in-out infinite; transform-origin: 80px 190px; transform-box: view-box; }
.ch .ch-eyes { animation: ch-blink 4.6s infinite; transform-box: fill-box; transform-origin: center; }
.ch .ch-open { opacity: 0; }
.ch.talking .ch-closed { opacity: 0; }
.ch.talking .ch-open { opacity: 1; animation: ch-talk .26s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.ch.talking .ch-head { animation: ch-nod 1.6s ease-in-out infinite; transform-box: view-box; transform-origin: 80px 110px; }
@keyframes ch-breathe { 50% { transform: translateY(1.5px) scale(1.005); } }
@keyframes ch-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes ch-talk { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes ch-nod { 0%, 100% { transform: translate(0, 7px) rotate(0); } 50% { transform: translate(0, 7px) rotate(-2.5deg); } }
.beat-modu .ch { width: 40px; height: auto; }

/* ---- Escenas estándar (escenas.js) ---- */
.sc-in { width: 100%; height: 100%; display: grid; place-items: center; position: relative; animation: beat-in .35s ease both; }
.sc-actor { position: absolute; right: -.2rem; bottom: -.9rem; z-index: 2; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.sc-actor svg { width: 64px; height: auto; }
.sc-cam { display: grid; place-items: center; position: relative; }
.sc-cam .ch { width: 170px; height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.sc-adv { position: absolute; left: -2.4rem; bottom: 0; }
.sc-adv .modu { width: 56px; height: auto; }
.sc-card { width: 100%; background: #fff; color: #141826; border-radius: 16px; padding: .9rem .9rem 1.4rem; box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.sc-ttl { font-weight: 800; font-size: .95rem; margin-bottom: .6rem; color: #312E81; }
.sc-rotulo { text-align: center; padding: 0 .4rem; animation: pop-in .5s cubic-bezier(.2,1.4,.4,1) both; }
.sc-rotulo b { display: block; font-size: clamp(1.4rem, 6.5vw, 2rem); line-height: 1.15; font-weight: 800; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.sc-rotulo b strong { color: #F5B301; }
.sc-rotulo span { display: inline-block; margin-top: .7rem; background: #F5B301; color: #2B2100; font-weight: 800; padding: .3rem .7rem; border-radius: 99px; font-size: .9rem; }
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.sc-num { text-align: center; }
.sc-num b { display: block; font-size: clamp(2.6rem, 13vw, 3.6rem); font-weight: 800; color: #F5B301; line-height: 1; font-variant-numeric: tabular-nums; }
.sc-num span { display: block; margin-top: .5rem; font-weight: 700; font-size: 1rem; opacity: .9; }
/* diagramas */
.dg-funnel { display: grid; gap: .35rem; justify-items: center; }
.dg-f { background: linear-gradient(90deg, #6366F1, #0EA5E9); color: #fff; font-weight: 800; font-size: .88rem; text-align: center; padding: .65rem .4rem; clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%); animation: beat-in .45s ease both; }
.dg-f.hi, .dg-s.hi, .dg-col.hi, .dg-c.hi { background: #F5B301; color: #2B2100; }
.dg-f.dim, .dg-s.dim, .dg-col.dim, .dg-c.dim { opacity: .35; }
.dg-steps { display: grid; gap: .45rem; }
.dg-s { display: flex; align-items: center; gap: .6rem; background: #EEF2FF; border-radius: 12px; padding: .5rem .6rem; font-weight: 700; font-size: .9rem; animation: beat-in .4s ease both; }
.dg-s b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #4F46E5; color: #fff; display: grid; place-items: center; font-size: .8rem; }
.dg-cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .4rem; }
.dg-col { background: #EEF2FF; border-radius: 12px; padding: 1.2rem .3rem; text-align: center; font-weight: 800; font-size: .85rem; animation: beat-in .4s ease both; overflow-wrap: anywhere; }
.dg-cycle { position: relative; width: 100%; aspect-ratio: 1; }
.dg-c { position: absolute; transform: translate(-50%, -50%); background: #EEF2FF; border-radius: 12px; padding: .4rem .5rem; font-weight: 800; font-size: .78rem; max-width: 44%; text-align: center; animation: beat-in .4s ease both; }
.dg-arrow { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; color: #C7D2FE; }
.dg-light { display: grid; gap: .5rem; background: #1F2937; border-radius: 18px; padding: .7rem; }
.dg-l { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: .85rem; transition: opacity .3s; }
.dg-l i { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); }
.dg-l.verde { --c: #22C55E; } .dg-l.amarillo { --c: #FACC15; } .dg-l.rojo { --c: #EF4444; }
.dg-l.off { opacity: .28; } .dg-l.on i { animation: glow 1s ease-in-out infinite alternate; }
@keyframes glow { to { box-shadow: 0 0 28px var(--c); transform: scale(1.08); } }
/* comparar */
.sc-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; width: 100%; }
.cmp-c { position: relative; background: #fff; color: #141826; border-radius: 14px; padding: .7rem .6rem 1.8rem; font-size: .84rem; line-height: 1.35; animation: beat-in .4s ease both; transition: opacity .4s, transform .4s; }
.cmp-c + .cmp-c { animation-delay: .5s; }
.cmp-c small { display: block; font-weight: 800; color: #4F46E5; margin-bottom: .3rem; font-size: .74rem; text-transform: uppercase; }
.cmp-c i { position: absolute; right: .5rem; bottom: .4rem; font-style: normal; font-weight: 800; opacity: 0; }
.cmp-c.win { animation: beat-in .4s ease both, cmp-win .5s 1.6s ease both; } .cmp-c.win i { color: #16A34A; animation: beat-in .3s 1.6s both; opacity: 1; }
.cmp-c.lose { animation: beat-in .4s ease both, cmp-lose .5s 1.6s ease both; } .cmp-c.lose i { color: #DC2626; animation: beat-in .3s 1.6s both; opacity: 1; }
@keyframes cmp-win { to { transform: scale(1.04); box-shadow: 0 0 0 3px #22C55E; } }
@keyframes cmp-lose { to { opacity: .55; } }
/* lista */
.sl-i { display: flex; gap: .55rem; align-items: flex-start; padding: .35rem 0; font-size: .9rem; font-weight: 600; animation: beat-in .35s ease both; }
.sl-i i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #EEF2FF; color: #4F46E5; font-style: normal; font-weight: 800; font-size: .74rem; display: grid; place-items: center; }
.sl-i.ok i { background: #DCFCE7; color: #16A34A; } .sl-i.bad i { background: #FEE2E2; color: #DC2626; }
/* calendario */
.sc-cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
.cal-d { position: relative; border-radius: 8px; background: #F1F5F9; padding: .35rem .3rem; min-height: 3.3rem; font-size: .66rem; font-weight: 700; line-height: 1.2; animation: beat-in .3s ease both; }
.cal-d small { display: block; font-size: .6rem; opacity: .65; }
.cal-d i { position: absolute; top: .1rem; right: .2rem; color: #F59E0B; font-style: normal; }
.cal-d.azul { background: #DBEAFE; } .cal-d.verde { background: #DCFCE7; } .cal-d.amarillo { background: #FEF9C3; } .cal-d.rojo { background: #FEE2E2; } .cal-d.morado { background: #EDE9FE; }
/* persona */
.pc-h { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.pc-h svg { width: 56px; height: auto; }
.pc-h b { display: block; font-size: 1.05rem; } .pc-h small { color: #64748B; font-weight: 700; }
.pc-ini { width: 52px; height: 52px; border-radius: 50%; background: #4F46E5; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; }
.pc-d { background: #F1F5F9; border-radius: 10px; padding: .4rem .6rem; margin-top: .35rem; font-size: .85rem; animation: beat-in .35s ease both; }
/* celular */
.sc-phone-in { justify-content: flex-start; padding: 0; overflow: hidden; background: #F8FAFC; color: #111; }
.sp-top { padding: .5rem .6rem; color: #fff; font-size: .78rem; display: flex; flex-direction: column; }
.sp-top small { font-size: .62rem; opacity: .85; }
.sp-top.wa-g { background: #075E54; } .sp-top.ia { background: #111827; } .sp-top.panel { background: #1877F2; }
.sp-chat { flex: 1; display: flex; flex-direction: column; gap: .35rem; padding: .5rem; background: #ECE5DD; }
.sp-chat.ia { background: #F3F4F6; }
.sp-msg { max-width: 86%; font-size: .72rem; line-height: 1.3; padding: .35rem .5rem; border-radius: 10px; background: #fff; animation: beat-in .35s ease both; }
.sp-msg.out { align-self: flex-end; background: #DCF8C6; } .sp-msg.ai { background: #fff; border: 1px solid #E5E7EB; }
.sp-chat.ia .sp-msg.out { background: #E0E7FF; }
.sp-search { padding: .6rem .5rem; display: grid; gap: .45rem; }
.sp-gbar { border: 1px solid #DADCE0; border-radius: 99px; padding: .4rem .6rem; font-size: .74rem; min-height: 1.9rem; }
.sp-type { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 100%; vertical-align: bottom; border-right: 2px solid #4F46E5; animation: typing 1.1s steps(22) both, caret .7s step-end infinite; }
@keyframes typing { from { width: 0; } }
@keyframes caret { 50% { border-color: transparent; } }
.sp-res { font-size: .7rem; animation: beat-in .35s ease both; }
.sp-res b { color: #1A0DAB; font-weight: 600; display: block; }
.sp-res em { font-style: normal; font-weight: 800; font-size: .6rem; }
.sp-res.ad { background: #FEF9C3; border-radius: 8px; padding: .3rem; }
.sp-res i { display: block; height: 5px; border-radius: 3px; background: #E5E7EB; margin-top: 3px; } .sp-res i + i { width: 70%; }
.sp-prof, .sp-post { font-size: .72rem; }
.sp-prof-h { display: flex; align-items: center; gap: .4rem; padding: .45rem .5rem; }
.sp-prof-h span { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #F59E0B, #DB2777); }
.sp-prof-h em { margin-left: auto; font-style: normal; font-size: .6rem; color: #64748B; }
.sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.sp-tile { aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: .2rem; font-size: .6rem; font-weight: 800; color: #fff; animation: beat-in .3s ease both; }
.sp-tile.t0 { background: #EF4444; } .sp-tile.t1 { background: #6366F1; } .sp-tile.t2 { background: #10B981; } .sp-tile.t3 { background: #F59E0B; } .sp-tile.t4 { background: #0EA5E9; }
.sp-img { aspect-ratio: 1; background: linear-gradient(150deg, #312E81, #0EA5E9); display: grid; place-items: center; text-align: center; padding: .6rem; color: #fff; font-weight: 800; font-size: .95rem; position: relative; animation: beat-in .4s ease both; }
.sp-img.sat { background: repeating-linear-gradient(45deg, #FDE047 0 14px, #F97316 14px 28px); color: #DC2626; font-family: "Comic Sans MS", cursive; text-shadow: 2px 2px 0 #1D4ED8; }
.sp-img.sat i { position: absolute; font-style: normal; font-size: .8rem; color: #fff; background: #DC2626; padding: .1rem .3rem; border-radius: 4px; }
.sp-img.sat i:nth-of-type(1) { top: .4rem; left: .4rem; } .sp-img.sat i:nth-of-type(2) { bottom: .4rem; right: .4rem; } .sp-img.sat i:nth-of-type(3) { top: .4rem; right: .4rem; }
.sp-cta { margin: .4rem .5rem 0; background: #25D366; color: #fff; text-align: center; font-weight: 800; border-radius: 8px; padding: .35rem; animation: beat-in .3s .8s both; }
.sp-cap { padding: .4rem .5rem; line-height: 1.3; }
.sp-panel { padding: .5rem; display: grid; gap: .4rem; }
.sp-kpi { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; padding: .45rem .55rem; animation: beat-in .35s ease both; }
.sp-kpi small { font-weight: 700; color: #475569; font-size: .68rem; } .sp-kpi b { font-size: .9rem; }
.sp-kpi.good { border-color: #22C55E; } .sp-kpi.good b { color: #16A34A; } .sp-kpi.bad { border-color: #EF4444; } .sp-kpi.bad b { color: #DC2626; }
.sc-in .sc-phone { width: 66%; }
@media (prefers-reduced-motion: reduce) { .ch *, .sc-in, .sc-in * { animation: none !important; } }
.scene-stage { min-height: 0; overflow: hidden; }
.sc-in .sc-phone { width: auto; height: 100%; max-width: 72%; max-height: none; aspect-ratio: 9 / 16; }
.scene-stage > .sc-in { position: absolute; inset: .8rem .9rem .3rem; width: auto; height: auto; }
.sp-kpi b { white-space: nowrap; }
.dg-cycle { width: min(100%, 200px); margin: 0 auto; }
.dg-c { white-space: nowrap; max-width: none; font-size: .72rem; }
.scene-stage .sc-card { max-height: 100%; overflow: hidden; }
.dg-cycle { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem .8rem; width: 100%; aspect-ratio: auto; padding: .2rem 0; }
.dg-c { position: static; transform: none; white-space: normal; text-align: center; padding: .6rem .4rem; font-size: .8rem; }
.dg-arrow { pointer-events: none; font-size: 2rem; color: #A5B4FC; }
.dg-cols { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
.dg-col { overflow-wrap: normal; word-break: normal; hyphens: auto; padding: .9rem .35rem; }
.sp-kpi { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.sp-kpi b { white-space: normal; text-align: right; max-width: 9.5em; overflow-wrap: anywhere; }

/* ============ Mis cursos: Continuar y Ver ruta al mismo nivel ============ */
.my-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: auto; }
.my-btns .btn { margin: 0; padding-left: .4rem; padding-right: .4rem; }
.my-route { background: var(--surface); color: var(--cc); border: 2px solid var(--cc); border-bottom-width: 4px; box-shadow: none; }
.my-route:hover { background: color-mix(in srgb, var(--cc) 8%, var(--surface)); }
@media (max-width: 640px) { .my-btns { grid-template-columns: 1fr; } .my-btns .btn { padding: .55rem .4rem; font-size: .9rem; min-height: 0; } }

/* ============ Ruta didáctica ============ */
.rt-legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; font-size: .8rem; font-weight: 700; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .6rem .8rem; margin-bottom: 1rem; }
.rt-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.rt-k { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-style: normal; }
.rt-k .ico { width: 12px; height: 12px; }
.rt-k.done { background: var(--ok); color: #fff; } .rt-k.current { background: var(--brand); color: #fff; }
.rt-tipday { margin-left: auto; color: var(--muted, #64748B); font-weight: 600; }
.rt { display: grid; gap: 1.1rem; }
.rt-mod { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1rem 1rem 1.1rem; overflow: hidden; }
.rt-mod::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--mc); }
.rt-mod.is-cur { border-color: var(--mc); box-shadow: 0 8px 24px color-mix(in srgb, var(--mc) 18%, transparent); }
.rt-head { display: flex; gap: .7rem; align-items: center; }
.rt-badge { width: 42px; height: 42px; border-radius: 12px; background: var(--mc); color: #fff; display: grid; place-items: center; flex: none; }
.rt-num { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.rt-title { font-size: 1.05rem; line-height: 1.25; }
.rt-guide { display: flex; align-items: flex-end; gap: .5rem; margin: .7rem 0 .2rem; }
.rt-char { flex: none; width: 78px; }
.rt-char .ch { width: 78px; height: auto; display: block; }
.rt-bubble { position: relative; flex: 1; background: color-mix(in srgb, var(--mc) 10%, var(--surface)); border-radius: 16px 16px 16px 4px; padding: .55rem .75rem; font-size: .9rem; line-height: 1.35; margin-bottom: 1.1rem; }
.rt-bubble small { display: block; font-size: .7rem; font-weight: 800; color: var(--mc); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .1rem; }
.rt-mod.is-cur .rt-bubble { animation: beat-in .5s .2s ease both; }
.rt-path { position: relative; display: grid; gap: .25rem; padding: .3rem 0 .2rem; }
.rt-path::before { content: ""; position: absolute; top: 1.2rem; bottom: 1.2rem; left: calc(26px + var(--zline, 18%)); border-left: 4px dotted var(--line); display: none; }
.rt-node { display: flex; align-items: center; gap: .8rem; padding: .35rem .3rem; border-radius: 14px; cursor: pointer; transition: transform .15s; }
.rt-node.z0 { padding-left: .3rem; } .rt-node.z1 { padding-left: 14%; } .rt-node.z2 { padding-left: 28%; }
.rt-node:active { transform: scale(.98); }
.rt-dot { position: relative; width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); border-bottom: 5px solid var(--line); }
.rt-dot .ico { width: 20px; height: 20px; }
.rt-node.done .rt-dot { background: var(--ok); color: #fff; border-color: #15803D; }
.rt-node.current .rt-dot { width: 62px; height: 62px; background: var(--brand); color: #fff; border-color: var(--brand-ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent); animation: rt-pulse 1.8s ease-in-out infinite; }
.rt-node.locked .rt-dot { opacity: .7; }
.rt-node.locked .rt-txt { opacity: .62; }
@keyframes rt-pulse { 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--brand) 6%, transparent); } }
.rt-here { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #F5B301; color: #2B2100; font-style: normal; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .12rem .45rem; border-radius: 99px; white-space: nowrap; animation: rt-bob 1.2s ease-in-out infinite; }
@keyframes rt-bob { 50% { transform: translate(-50%, -3px); } }
.rt-txt { min-width: 0; display: flex; flex-direction: column; }
.rt-txt b { font-size: .95rem; line-height: 1.25; }
.rt-txt small { font-size: .78rem; color: var(--ink-2); margin-top: .1rem; }
.rt-node.current .rt-txt b { color: var(--brand); }
.rt-has span { margin-right: .15rem; }
.rt-gain { display: flex; gap: .5rem; align-items: flex-start; margin-top: .7rem; padding: .55rem .7rem; border-radius: 12px; background: var(--surface-2); font-size: .82rem; line-height: 1.35; }
.rt-gain .ico { flex: none; width: 18px; height: 18px; color: var(--mc); margin-top: .1rem; }
.rt-goal { display: flex; align-items: center; gap: .8rem; justify-content: center; padding: 1rem; border: 2px dashed var(--line); border-radius: 20px; text-align: left; }
.rt-goal b { display: block; } .rt-goal small { color: var(--ink-2); }
.rt-trophy { font-size: 2.2rem; filter: grayscale(.6); }
.rt-goal.won { border-color: #F5B301; background: color-mix(in srgb, #F5B301 10%, var(--surface)); } .rt-goal.won .rt-trophy { filter: none; }
.rt-peek .ch { width: 64px; height: auto; flex: none; }
.rt-why { display: flex; gap: .5rem; align-items: flex-start; background: var(--surface-2); border-radius: 12px; padding: .6rem .75rem; font-size: .85rem; margin: .9rem 0; }
.rt-why .ico { flex: none; width: 16px; height: 16px; margin-top: .15rem; }
.ch.still *, .ch.still { animation: none !important; }
@media (max-width: 560px) { .rt-tipday { margin-left: 0; } .rt-node.z1 { padding-left: 8%; } .rt-node.z2 { padding-left: 16%; } }
@media (prefers-reduced-motion: reduce) { .rt-node.current .rt-dot, .rt-here { animation: none; } }

/* ============ v35: iPhone ============ */
html { -webkit-text-size-adjust: 100%; }
a, button, .btn, [role=button], .rt-node, .opt, label, summary { touch-action: manipulation; }
@media (max-width: 760px) { input, textarea, select { font-size: 16px !important; } }
.player { overscroll-behavior: contain; }
.player-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.player.kb-open .player-top { padding-top: 8px; padding-bottom: 8px; }
.player.kb-open .player-foot { padding-top: 8px; padding-bottom: 8px; }
.player.kb-open .player-foot .btn-lg { padding-top: .6rem; padding-bottom: .6rem; }

/* ============ v35: celebración de medallas ============ */
.mfx { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 40%, rgba(79,70,229,.55), rgba(10,12,30,.82)); animation: mfx-in .25s ease both; overflow: hidden; }
.mfx.out { animation: mfx-out .2s ease both; }
@keyframes mfx-in { from { opacity: 0; } } @keyframes mfx-out { to { opacity: 0; } }
.mfx-card { position: relative; z-index: 2; width: min(100%, 380px); background: var(--surface); border-radius: 26px; padding: 1.4rem 1.2rem 1.2rem; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.35); animation: mfx-pop .45s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes mfx-pop { from { transform: scale(.7) translateY(30px); opacity: 0; } }
.mfx-kicker { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #B88600; }
.mfx-kicker span { margin-left: .35rem; color: var(--ink-2); background: var(--surface-2); border-radius: 99px; padding: .1rem .5rem; letter-spacing: 0; text-transform: none; }
.mfx-disc { position: relative; width: 150px; height: 150px; margin: 1rem auto .6rem; display: grid; place-items: center; }
.mfx-ray { position: absolute; inset: -40px; border-radius: 50%; background: repeating-conic-gradient(rgba(245,179,1,.28) 0 10deg, transparent 10deg 30deg); animation: mfx-spin 9s linear infinite; }
@keyframes mfx-spin { to { transform: rotate(360deg); } }
.mfx-face { position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; color: #5A3E00; background: radial-gradient(circle at 35% 30%, #FFE58A, #E0A100 70%); box-shadow: 0 0 0 8px #FFF3C4, 0 10px 30px rgba(224,161,0,.5); animation: mfx-flip 1s cubic-bezier(.2,.9,.3,1.2) both; }
.mfx-face .ico { width: 62px; height: 62px; stroke-width: 2.2; }
.mfx-disc.tier-2 .mfx-face { background: radial-gradient(circle at 35% 30%, #F1F5F9, #94A3B8 70%); color: #1E293B; box-shadow: 0 0 0 8px #E2E8F0, 0 10px 30px rgba(100,116,139,.45); }
.mfx-disc.tier-1 .mfx-face { background: radial-gradient(circle at 35% 30%, #FBD5B5, #C2410C 75%); color: #431407; box-shadow: 0 0 0 8px #FED7AA, 0 10px 30px rgba(194,65,12,.4); }
.mfx-disc.tier-4 .mfx-face { background: radial-gradient(circle at 35% 30%, #E0F2FE, #38BDF8 70%); color: #0C4A6E; box-shadow: 0 0 0 8px #BAE6FD, 0 10px 30px rgba(56,189,248,.5); }
@keyframes mfx-flip { 0% { transform: rotateY(540deg) scale(.3); opacity: 0; } 70% { transform: rotateY(-20deg) scale(1.08); opacity: 1; } 100% { transform: none; } }
.mfx-name { margin: .2rem 0 .2rem; font-size: 1.45rem; }
.mfx-why { margin: 0 auto; color: var(--ink-2); max-width: 30ch; }
.mfx-intro { display: flex; gap: .6rem; align-items: center; text-align: left; background: var(--brand-soft); border-radius: 14px; padding: .55rem .7rem; margin-top: .9rem; font-size: .88rem; line-height: 1.35; }
.mfx-intro .modu { flex: none; }
.mfx-btns { display: grid; grid-template-columns: 1fr 1.3fr; gap: .5rem; margin-top: 1.1rem; }
.mfx .confetti { z-index: 1; }
.near-medal { display: flex; gap: .7rem; align-items: center; text-align: left; max-width: 420px; margin: 0 auto 1rem; background: color-mix(in srgb, #F5B301 10%, var(--surface)); border: 1px solid color-mix(in srgb, #F5B301 40%, var(--line)); border-radius: 16px; padding: .7rem .8rem; }
.nm-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #FDE68A; color: #7C5800; }
.near-medal small { display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #B88600; }
.near-medal b { display: block; } .near-medal span { font-size: .82rem; color: var(--ink-2); }
.bottom-nav a { position: relative; }
.nav-dot { position: absolute; top: 4px; right: calc(50% - 20px); width: 10px; height: 10px; border-radius: 50%; background: #EF4444; box-shadow: 0 0 0 2px var(--surface); animation: rt-pulse 1.8s infinite; }
.medal { position: relative; }
.medal.is-new { box-shadow: 0 0 0 2px #F5B301; }
.m-new { position: absolute; top: 6px; right: 6px; background: #EF4444; color: #fff; font-size: .62rem; font-weight: 800; padding: .1rem .4rem; border-radius: 99px; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .mfx-ray, .mfx-face, .mfx-card { animation: none !important; } }

/* ============ v35: intereses ============ */
.int-wrap { padding-bottom: 6rem; }
.int-g { margin-top: 1.1rem; }
.int-g h4 { margin: 0 0 .5rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.int-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.int-chip { display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: .55rem .85rem; font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; transition: transform .12s, background .15s, border-color .15s; }
.int-chip .e { font-size: 1.1rem; line-height: 1; }
.int-chip:active { transform: scale(.96); }
.int-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 30%, transparent); }
.int-chip[hidden], .int-g[hidden] { display: none; }
.int-foot { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem max(16px, calc((100% - 680px) / 2)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.06); }
.int-card { margin-bottom: 1rem; border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.int-hint { display: flex; align-items: center; gap: .5rem; margin: .6rem 0 .2rem; padding: .6rem .8rem; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .9rem; text-decoration: none; }
.int-hint span { flex: 1; }
.cat-h { display: flex; align-items: center; gap: .4rem; margin: 1rem 0 .2rem; }
.more-topics { margin-top: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: .2rem .9rem .8rem; }
.more-topics summary { cursor: pointer; font-weight: 800; padding: .7rem 0 .3rem; }
.soon-card { display: flex; gap: .7rem; align-items: center; margin-top: .6rem; }

/* ============ v35: panel de cursos ============ */
.upload-card { margin-top: 1rem; border: 2px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.upload-card > .row > .ico { width: 26px; height: 26px; color: var(--brand); flex: none; margin-top: .1rem; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; margin-top: .7rem; }
.acard { display: flex; flex-direction: column; gap: .25rem; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--cc); border-radius: 14px; padding: .7rem .8rem; color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.acard:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.acard-top { display: flex; justify-content: space-between; gap: .4rem; align-items: flex-start; }
.acard-top b { font-size: .95rem; line-height: 1.25; }
.acard-top .pill { flex: none; font-size: .66rem; }
.acard-kpis { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .3rem; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.demand-card { margin-top: 1rem; }
.demand-card summary { cursor: pointer; }
.dem-row { display: grid; grid-template-columns: minmax(120px, 1.4fr) 2fr auto auto; gap: .6rem; align-items: center; padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: .85rem; }
.dem-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; } .dem-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.dem-row.gap .dem-bar i { background: #F59E0B; }
.dem-n { white-space: nowrap; } .dem-c { white-space: nowrap; color: var(--ink-2); }
.dem-opp { color: #B45309; }
.miss-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.cat-rows { max-height: 52vh; overflow: auto; display: grid; gap: .35rem; }
.cat-row { display: grid; grid-template-columns: 52px 1fr 150px auto; gap: .4rem; align-items: center; }
.cat-row.off { opacity: .5; }
.cat-row input, .cat-row select { padding: .4rem .5rem; }
@media (max-width: 640px) { .dem-row { grid-template-columns: 1fr auto; } .dem-bar { grid-column: 1 / -1; order: 3; } .cat-row { grid-template-columns: 48px 1fr; } .cat-row select, .cat-row label { grid-column: span 1; } }
.listen-btn .ico { width: 16px; height: 16px; }
.listen-btn.hint { animation: rt-pulse 1.4s ease-in-out infinite; border-color: var(--brand); }
.voice-samples { display: grid; gap: .4rem; margin-top: .4rem; }
.voice-samples audio { height: 34px; max-width: 100%; }

/* ===== v37 · Inicio simplificado ===== */
.hm { max-width: 640px; margin: 0 auto; }
.hm-hi { display: flex; align-items: center; gap: .7rem; margin-bottom: .55rem; }
.hm-hi h2 { margin: 0; font-size: 1.25rem; }
.hm-hi small { color: var(--ink-2); font-size: .82rem; }
.hm-lvl { display: flex; align-items: center; gap: .5rem; font-size: .74rem; color: var(--ink-2); font-weight: 700; margin-bottom: .9rem; }
.hm-n { background: var(--gold); color: #3B2A00; border-radius: 6px; padding: 1px 7px; font-weight: 800; }
.hm-ln { white-space: nowrap; }
.hm-bar { flex: 1; display: block; height: 6px; background: var(--line); border-radius: 9px; overflow: hidden; }
.hm-bar i { display: block; height: 100%; border-radius: 9px; background: var(--cc, var(--gold)); }
.hm-lvl .hm-bar i { background: var(--gold); }
.hm-bar.sm { height: 5px; margin-top: .4rem; }
.hm-tip { margin-bottom: 1rem; }
.hm-tip > * { margin-bottom: 0 !important; }
.hm-pay { border-color: var(--warn); background: var(--warn-soft); }
.hm-h { font-size: .75rem; margin: 1.3rem 0 .55rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; align-items: baseline; }
.hm-h a { text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 800; }
.hm-ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 1.15rem; background: color-mix(in srgb, var(--cc) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--cc) 30%, transparent); }
.hm-ic.lg { width: 46px; height: 46px; font-size: 1.35rem; background: var(--cc); border: 0; }
.hm-hero { background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 13%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--cc) 30%, var(--line)); border-radius: 18px; padding: 1rem; box-shadow: 0 8px 22px color-mix(in srgb, var(--cc) 14%, transparent); }
.hm-hrow { display: flex; gap: .75rem; align-items: center; cursor: pointer; }
.hm-area { font-size: .68rem; font-weight: 800; color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; }
.hm-hero h4 { margin: .15rem 0 0; font-size: 1.05rem; line-height: 1.25; }
.hm-next { margin: .8rem 0 .5rem; font-size: .84rem; color: var(--ink-2); }
.hm-next b { color: var(--ink); }
.hm-meta { display: flex; justify-content: space-between; font-size: .74rem; color: var(--ink-2); font-weight: 700; margin-top: .35rem; }
.hm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: .8rem; }
.hm-btns .btn { width: 100%; justify-content: center; }
.hm-row { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .65rem .7rem; display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; color: inherit; text-decoration: none; }
.hm-row:hover { border-color: var(--brand); text-decoration: none; }
.hm-t { flex: 1; min-width: 0; }
.hm-t b { display: block; font-size: .88rem; line-height: 1.25; }
.hm-t > span:not(.hm-bar) { display: block; font-size: .74rem; color: var(--ink-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-t .hm-demo { color: var(--brand); font-weight: 800; }
.hm-go { color: var(--brand); font-weight: 800; font-size: 1.3rem; }
.hm-pill { font-size: .74rem; font-weight: 800; color: var(--brand); background: var(--brand-soft); border-radius: 99px; padding: .3rem .65rem; white-space: nowrap; display: inline-flex; gap: .25rem; align-items: center; }
.hm-pill.ok { color: var(--ok); background: var(--ok-soft); }
.hm-pill svg { width: 14px; height: 14px; }
.hm-price { text-align: right; flex: none; }
.hm-price b { display: block; font-size: .86rem; }
.hm-price s { font-size: .7rem; color: var(--ink-2); }
.hm-more { display: block; text-align: center; font-size: .82rem; font-weight: 800; padding: .7rem; border: 1px dashed var(--line); border-radius: 12px; margin-top: 1rem; }
.hm-circle { margin-top: 1.2rem; opacity: .92; }
.hm-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.hm-chip { background: var(--brand-soft); color: var(--brand); border-radius: 99px; padding: .25rem .65rem; font-size: .75rem; font-weight: 700; }
.hm-chip.edit { background: transparent; border: 1px dashed var(--brand); }
.hm-free { background: linear-gradient(160deg, var(--cc), color-mix(in srgb, var(--cc) 70%, #1E1B4B)); color: #fff; border-radius: 20px; padding: 1rem; position: relative; overflow: hidden; }
.hm-free small { font-size: .68rem; font-weight: 800; letter-spacing: .07em; opacity: .85; display: block; padding-right: 58px; }
.hm-free h4 { margin: .25rem 0; font-size: 1.1rem; line-height: 1.25; padding-right: 58px; color: #fff; }
.hm-free p { margin: 0; font-size: .82rem; opacity: .92; }
.hm-free-m { position: absolute; right: 10px; top: 10px; }
.hm-why { display: inline-block; margin-top: .5rem; background: rgba(255,255,255,.18); border-radius: 99px; padding: .2rem .6rem; font-size: .72rem; font-weight: 700; }
.hm-cta { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: .8rem; background: #fff; color: var(--cc); font-weight: 800; border-radius: 12px; padding: .7rem; font-size: .9rem; text-decoration: none; }
.hm-cta:hover { text-decoration: none; }
.hm-cta svg { width: 18px; height: 18px; }
.hm .offer-strip { margin-top: .8rem; }
.hm-otros { margin-top: .9rem; }
.hm-otros summary { cursor: pointer; font-size: .75rem; font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .55rem; }
.hm-hero .my-route { color: var(--brand); border-color: var(--brand); }

/* ===== v37 · Explorar en filas ===== */
.ex { max-width: 980px; margin: 0 auto; }
.ex-title { margin-bottom: .2rem; }
.ex-sub { margin-top: 0; }
.ex-list { display: grid; gap: .55rem; margin-top: .5rem; }
.ex-list .hm-row { margin-bottom: 0; align-items: flex-start; padding: .8rem; }
.ex-list .hm-ic { margin-top: .15rem; }
.ex-list .hm-price, .ex-list .hm-pill { margin-top: .2rem; }
@media (min-width: 760px) { .ex-list { grid-template-columns: 1fr 1fr; } }
.ex-top { display: flex; align-items: center; gap: .4rem; margin-bottom: .1rem; }
.ex-area { font-size: .66rem; font-weight: 800; color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; }
.ex-badge { font-size: .64rem; font-weight: 800; color: var(--brand); background: var(--brand-soft); border-radius: 99px; padding: 1px 7px; }
.ex-badge.hot { color: #B45309; background: var(--gold-soft); }
.ex-row .hm-t b { font-size: .95rem; }
.hm-t > span.ex-out, .hm-t > span.ex-why { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--ink); opacity: .85; font-size: .78rem; margin-top: .2rem; line-height: 1.35; }
.hm-t > span.ex-why { color: var(--brand); opacity: 1; font-weight: 700; }
.ex-why svg { width: 13px; height: 13px; vertical-align: -2px; }
.hm-t > span.ex-meta { font-size: .7rem; margin-top: .3rem; }
.ex .more-topics { margin-top: 1rem; }
.ex .hm-h:first-child { margin-top: .6rem; }
.ex .more-topics { background: transparent; border: 0; box-shadow: none; padding: 0; }
.ex .more-topics > summary { font-size: .75rem; font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; padding: .7rem; border: 1px dashed var(--line); border-radius: 12px; text-align: center; list-style: none; }
.ex .more-topics > summary::-webkit-details-marker { display: none; }
.ex .more-topics[open] > summary { margin-bottom: .5rem; }
.hm-t > span.hm-demo { color: var(--brand); font-weight: 800; }

/* ===== v38 · doble columna ===== */
.hm { max-width: 980px; }
.hm-list { display: grid; gap: .55rem; }
.hm-list .hm-row { margin-bottom: 0; }
@media (min-width: 560px) {
  .hm-list, .ex-list { grid-template-columns: 1fr 1fr; }
  .hm-hero { max-width: none; }
}
.pf-acc { margin-top: .5rem; flex-wrap: nowrap; gap: .6rem; }
.pf-acc > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-acc .pill { flex: none; }

/* ===== v41 · Entrar solo con Google ===== */
.auth-inapp { display: flex; gap: .6rem; align-items: flex-start; background: var(--warn-soft); border: 1px solid var(--warn); border-radius: 12px; padding: .7rem .8rem; margin-bottom: .9rem; }
.auth-inapp > svg { flex: none; margin-top: .15rem; }

/* ===== v41 · Empresas ===== */
.org-chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .66rem; font-weight: 800; color: #0F766E; background: color-mix(in srgb, #14B8A6 14%, var(--surface)); border-radius: 99px; padding: 2px 8px; margin-bottom: .2rem; letter-spacing: .02em; }
.org-chip svg { width: 12px; height: 12px; }
.hm-t > .org-chip { display: inline-flex; }
.org-card { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; color: inherit; text-decoration: none; }
.org-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.org-ico.lg { width: 52px; height: 52px; }
.org-ico svg { width: 24px; height: 24px; }
.hm-orgrow { margin-bottom: .2rem; border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.emp { max-width: 980px; margin: 0 auto; }
.emp-head { display: flex; align-items: center; gap: .8rem; }
.emp-head h2 { margin: 0; }
.emp-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; margin-top: 1rem; }
@media (min-width: 640px) { .emp-tiles { grid-template-columns: repeat(4, 1fr); } }
.emp-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .8rem .9rem; }
.emp-tile b { display: block; font-size: 1.5rem; line-height: 1.1; }
.emp-tile b small { font-size: .9rem; color: var(--ink-2); font-weight: 700; }
.emp-tile span { font-size: .75rem; color: var(--ink-2); font-weight: 700; }
.emp-tile.warn { border-color: var(--warn); background: var(--warn-soft); }
.emp-grid { display: grid; gap: .7rem; margin-top: 1.2rem; }
@media (min-width: 760px) { .emp-grid { grid-template-columns: 1fr 1fr; } }
.emp-grid textarea, .emp-grid input[type=date] { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; background: var(--surface); color: var(--ink); margin-top: .35rem; }
.emp-code { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
.emp-code > span { font-size: 1.35rem; font-weight: 800; letter-spacing: .14em; color: var(--brand); background: var(--brand-soft); border-radius: 10px; padding: .25rem .7rem; }
.emp-miss { display: flex; gap: .6rem; align-items: center; margin-top: .55rem; }
.emp-miss > span { width: 24px; height: 24px; border-radius: 50%; background: var(--warn-soft); color: #92400E; font-weight: 800; font-size: .75rem; display: grid; place-items: center; flex: none; }
.emp-person { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .75rem .85rem; }
.emp-st { font-size: .7rem; font-weight: 800; border-radius: 99px; padding: 3px 9px; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.emp-st.ok { background: var(--ok-soft); color: var(--ok); }
.emp-st.bad { background: var(--bad-soft); color: var(--bad); }
.emp-st.warn { background: var(--warn-soft); color: #92400E; }
.emp-meta { display: flex; justify-content: space-between; margin-top: .3rem; }
.emp-tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .4rem; }
.emp-tags span { font-size: .7rem; font-weight: 700; background: var(--surface-2); border-radius: 99px; padding: 2px 8px; display: inline-flex; gap: .2rem; align-items: center; }
.emp-tags span.ok { background: var(--gold-soft); color: #92400E; }
.emp-tags svg { width: 12px; height: 12px; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottom-nav a { padding: .3rem .7rem; }
.hm-list > * { min-width: 0; }
.hm-row > .btn { flex: none; }
.jn-input { flex: 1; min-width: 0; font: inherit; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; background: var(--surface); color: var(--ink); }
.jn-input::placeholder { letter-spacing: 0; font-weight: 500; text-transform: none; }

/* ===== v43 · Mi empresa: áreas, cursos y reportes ===== */
.emp-tabs { margin-top: 1rem; position: sticky; top: 56px; z-index: 5; background: var(--bg); padding: .4rem 0; }
.tab-dot { font-style: normal; background: var(--bad); color: #fff; border-radius: 99px; font-size: .65rem; padding: 0 6px; margin-left: 2px; }
.emp-week { display: flex; gap: .6rem; align-items: center; margin-top: .7rem; font-size: .85rem; }
.emp-week > svg { flex: none; color: var(--brand); }
.area-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 800; border-radius: 99px; padding: 2px 8px; color: var(--ac); background: color-mix(in srgb, var(--ac) 13%, var(--surface)); white-space: nowrap; }
.area-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ac); }
.area-chip.none { --ac: #94A3B8; }
.emp-arow { display: grid; grid-template-columns: minmax(90px, 30%) 1fr 44px; gap: .6rem; align-items: center; margin: .35rem 0; }
.emp-arow b { text-align: right; }
.emp-sel { width: auto; max-width: 100%; font: inherit; font-size: .82rem; border: 1px solid var(--line); border-radius: 10px; padding: .4rem .55rem; background: var(--surface); color: var(--ink); }
input.emp-sel[type=search] { flex: 1; min-width: 140px; }
.emp-ta { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; background: var(--surface); color: var(--ink); margin-top: .5rem; }
.emp-filters { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: 1rem; }
.emp-bulk { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; padding: .5rem .7rem; border-radius: 12px; border: 1px dashed var(--line); }
.emp-bulk.on { border-style: solid; border-color: var(--brand); background: var(--brand-soft); position: sticky; top: 104px; z-index: 4; }
.emp-person.sel { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.emp-pcs { display: grid; gap: .35rem; margin-top: .55rem; }
.emp-pc { display: grid; grid-template-columns: minmax(0, 1fr) 30% auto; gap: .5rem; align-items: center; }
.emp-pc .hm-bar { margin: 0; }
.emp-table { display: grid; gap: .4rem; margin-top: .5rem; }
.emp-trow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 64px 132px; gap: .6rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .7rem; }
.emp-tn { min-width: 0; display: grid; gap: .2rem; justify-items: start; }
.emp-tn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.emp-tb { display: grid; gap: .15rem; }
.emp-trow > .emp-st { justify-self: end; }
@media (max-width: 520px) { .emp-trow { grid-template-columns: 1fr auto; } .emp-tb { grid-column: 1 / -1; } .emp-td { grid-row: 1; grid-column: 2; } .emp-trow > .emp-st { justify-self: start; } }
.emp-pend { flex-wrap: wrap; }
.emp-pend .hm-t { flex: 1 1 160px; }
.emp-pend-act { display: flex; gap: .4rem; align-items: center; margin-left: auto; }
.emp-area { border-top: 4px solid var(--ac); }
.emp-amini { display: flex; gap: .8rem; flex-wrap: wrap; font-size: .75rem; color: var(--ink-2); margin: .55rem 0 .4rem; }
.emp-amini b { color: var(--ink); }
.area-dot { width: 26px; height: 26px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; padding: 0; }
.area-dot.on { border-color: var(--ink); }

/* ---------- Cursos gratis (v45) ---------- */
.price-free { display: inline-block; background: var(--ok-soft); color: var(--ok); font-weight: 800; font-size: 1.6rem; padding: .15rem .8rem; border-radius: 12px; letter-spacing: .01em; }
.price-free.sm { font-size: 1.05rem; padding: .1rem .6rem; border-radius: 9px; }
.hm-price b.is-free { color: var(--ok); background: var(--ok-soft); padding: .12rem .5rem; border-radius: 8px; font-size: .8rem; }
.btn.btn-free, :root:not([data-theme="light"]) .btn-buy.btn-free { background: linear-gradient(135deg, #16A34A, #0EA5E9) !important; border-color: transparent; color: #fff; box-shadow: 0 4px 0 #15803D, 0 10px 24px rgba(22, 163, 74, .3); }
.btn.btn-free:hover { filter: brightness(1.05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .price-free, :root:not([data-theme="light"]) .hm-price b.is-free { color: #4ADE80; } }
:root[data-theme="dark"] .price-free, :root[data-theme="dark"] .hm-price b.is-free { color: #4ADE80; }

/* ---------- Panel: resultado al subir un curso (v46) ---------- */
.upload-card.is-busy input[type=file] { opacity: .5; pointer-events: none; }
.up-busy { display: flex; gap: .6rem; align-items: center; padding: .7rem .8rem; border-radius: 12px; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.up-busy > span:last-child { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.spinner.sm { width: 20px; height: 20px; margin: 0; border-width: 3px; flex: none; }
.up-res { position: relative; padding: .75rem 2.2rem .8rem .85rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.up-res.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.up-x { position: absolute; top: .35rem; right: .35rem; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font-size: 1rem; cursor: pointer; }
.up-x:hover { background: var(--line); color: var(--ink); }
.acard-flash { animation: acard-flash 1.3s ease-in-out 3; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 55%, transparent); }
@keyframes acard-flash { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 55%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 20%, transparent); } }
@media (prefers-reduced-motion: reduce) { .acard-flash { animation: none; } }

/* ---------- Cursos gratis primero (v47) ---------- */
button.hm-cta { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
button.hm-cta:disabled { opacity: .75; cursor: default; }
.hm-free-more { display: block; text-align: center; margin-top: .55rem; color: #fff; opacity: .92; font-size: .82rem; font-weight: 700; text-decoration: none; }
.hm-free-more:hover { opacity: 1; text-decoration: underline; }

/* ---------- Demo sin cuenta, salida de Instagram/Facebook y empresas (v49) ---------- */
.anon-save { text-align: center; max-width: 440px; margin: 0 auto; }
.anon-save h2 { margin: .5rem 0 .3rem; }
.anon-save .anon-auth { margin-top: 1rem; text-align: left; }
.anon-save .later-btn { margin-top: .8rem; }
.anon-card { max-width: 480px; margin: 1rem auto; padding: 1.4rem 1.1rem; }
.auth-inapp2 { display: flex; flex-direction: column; }
.auth-inapp2 .ia-msg { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 .8rem; padding: .75rem .8rem; border-radius: 12px; background: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.auth-inapp2 .ia-msg > .ico { flex: none; color: var(--brand); margin-top: .1rem; }
.auth-inapp2 .ia-msg > span { display: flex; flex-direction: column; gap: .2rem; }
.ia-steps { display: flex; gap: .7rem; align-items: center; padding: .7rem .8rem; border: 1px dashed var(--line); border-radius: 12px; font-size: .92rem; }
.ia-dots { flex: none; display: grid; place-items: center; width: 44px; height: 32px; border-radius: 10px; background: var(--ink); color: var(--surface); font-weight: 900; font-size: 1.1rem; letter-spacing: .05em; line-height: 1; }
.biz-link { text-align: center; margin: 2rem 0 0; }
.biz-link a { display: inline-flex; gap: .4rem; align-items: center; font-weight: 700; font-size: .92rem; color: var(--ink-2); text-decoration: none; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.biz-link a:hover { color: var(--brand); border-color: var(--brand); }
.biz-link .ico { width: 16px; height: 16px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.biz-points { gap: .6rem; }
.ex-demo-btn { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; align-self: flex-start; font-size: .82rem; padding: .4rem .75rem; }
.ex-demo-btn .ico { width: 15px; height: 15px; }

/* ---------- Efectos de sonido (v53) ---------- */
.sfx-btn { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-left: .3rem; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; }
.sfx-btn .ico { width: 19px; height: 19px; }
.sfx-btn.off { opacity: .55; }
.sfx-btn:hover { background: var(--line); }
