/* ───────── Tokens: claro por defecto, oscuro por sistema o por elección ───────── */
:root {
  --bg: #efefec;
  --surface: #ffffff;
  --surface2: #f5f5f2;
  --line: #ebebe7;
  --line2: #dedede;
  --ink: #111111;
  --ink2: #3b3b3b;
  --muted: #6f6f6f;
  --dim: #a3a3a3;
  --on-ink: #ffffff;
  --brand: #a855f7;
  --pa: var(--brand);
  --ok: #15803d;
  --ok-bg: #ecfdf3;
  --danger: #c2410c;
  --danger-bg: #fff4ed;
  --warn: #a16207;
  --shadow: 0 1px 2px rgba(0,0,0,.04);
  --overlay: rgba(239,239,236,.85);
  --r: 24px;
  --brand-soft: #f3e8ff;
  --hero: #141414;
  --hero-ink: #ffffff;
  --rs: 8px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0c; --surface: #181818; --surface2: #222222; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
    --ink: #eeeeee; --ink2: #cfcfcf; --muted: #a0a0a0; --dim: #6b6b6b; --on-ink: #111111;
    --ok: #4ade80; --ok-bg: rgba(74,222,128,.08); --danger: #fb923c; --danger-bg: rgba(251,146,60,.08); --warn: #facc15;
    --shadow: 0 1px 0 rgba(255,255,255,.03) inset; --overlay: rgba(12,12,12,.85); --brand-soft: rgba(168,85,247,.16); --hero: #1f1f1f; --hero-ink: #ffffff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c0c; --surface: #181818; --surface2: #222222; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --ink: #eeeeee; --ink2: #cfcfcf; --muted: #a0a0a0; --dim: #6b6b6b; --on-ink: #111111;
  --ok: #4ade80; --ok-bg: rgba(74,222,128,.08); --danger: #fb923c; --danger-bg: rgba(251,146,60,.08); --warn: #facc15;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset; --overlay: rgba(12,12,12,.85); --brand-soft: rgba(168,85,247,.16); --hero: #1f1f1f; --hero-ink: #ffffff;
  color-scheme: dark;
}

/* ───────── Base ───────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 'Inter Tight', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
  transition: background .3s var(--ease), color .3s var(--ease);
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Inter Tight', sans-serif; font-weight: 500; letter-spacing: -.035em; line-height: 1.12; margin: 0 0 .4em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 20px; letter-spacing: -.02em; }
h3 { font-size: 15px; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
code, .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .86em; }
code { background: var(--surface2); padding: 1px 6px; border-radius: 5px; }
img { max-width: 100%; display: block; }
::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }
.section { padding-top: 56px; padding-bottom: 72px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; flex-wrap: wrap; }
.gap { gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 14px; }
.mt { margin-top: 28px; } .mt-s { margin-top: 14px; }
.center { text-align: center; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.two { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 28px; } }

/* ───────── Topbar ───────── */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--overlay); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 16px 'Inter Tight', sans-serif; letter-spacing: -.03em; }
.logo-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--brand); position: relative; flex: none; }
.logo-mark::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a:not(.btn) { padding: 6px 12px; border-radius: var(--rs); color: var(--muted); font-size: 14px; white-space: nowrap; transition: color .15s, background .15s; }
.nav > a:not(.btn):hover { color: var(--ink); }
.nav > a.on { color: var(--ink); background: var(--surface2); }
.nav .btn { margin-left: 6px; }
.theme-toggle { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; margin-left: 4px; transition: color .15s, background .15s, transform .3s var(--ease); }
.theme-toggle:hover { color: var(--ink); background: var(--surface2); }
.theme-toggle:active { transform: rotate(20deg); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.bare-toggle { position: fixed; top: 16px; right: 16px; z-index: 5; }
.menu { position: relative; margin-left: 6px; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface2); color: var(--ink); border: 1px solid var(--line2); display: grid; place-items: center; font: 600 13px 'Inter Tight', sans-serif; }
.menu-pop { position: absolute; right: 0; top: 42px; width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.25); animation: pop .18s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--ink); background: none; border: 0; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface2); }
.menu-email { padding: 8px 10px 10px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }

/* ───────── Botones ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; font: 500 14px 'Inter Tight', sans-serif;
  padding: 11px 20px; border-radius: 99px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: opacity .15s, transform .15s var(--ease);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 99px; }
.btn-ghost { background: var(--surface2); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { filter: none; border-color: var(--line2); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.full { width: 100%; }
.link { color: var(--muted); background: none; border: 0; font: inherit; cursor: pointer; padding: 0; transition: color .15s; }
.link:hover { color: var(--ink); }
.danger { color: var(--danger) !important; }

/* ───────── Superficies ───────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 24px; }
.hoverable { display: block; transition: border-color .2s, transform .25s var(--ease); }
.hoverable:hover { border-color: var(--line2); transform: translateY(-2px); }
.accent-card { background: var(--surface2); border-color: transparent; box-shadow: none; }
.empty { text-align: center; color: var(--muted); padding: 40px 24px; }
.eyebrow { font: 500 13px 'Inter Tight', sans-serif; letter-spacing: -.01em; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pa); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 99px; background: var(--surface2); color: var(--muted); white-space: nowrap; }
.tag.ok { color: var(--ok); background: var(--ok-bg); }
.tag.warn { color: var(--warn); }
.tag.tiny { font-size: 10px; padding: 1px 7px; margin-left: 8px; vertical-align: 1px; }
.flash { margin: 20px 0 0; padding: 11px 16px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-size: 14px; animation: pop .25s var(--ease); }
.err { padding: 10px 14px; border-radius: 10px; background: var(--danger-bg); color: var(--danger); font-size: 14px; }
.hint { font-size: 12px; color: var(--dim); font-weight: 400; line-height: 1.5; }

/* ───────── Formularios ───────── */
input, select, textarea {
  width: 100%; background: var(--surface); color: var(--ink); border: 1px solid var(--line2);
  border-radius: var(--rs); padding: 10px 12px; font: inherit; font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input[type=color] { padding: 4px; height: 42px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--ink); }
input[type=file] { padding: 22px; border-style: dashed; cursor: pointer; background: var(--surface2); }
textarea { resize: vertical; line-height: 1.55; }
.num { width: 72px; }
.lbl { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.search { max-width: 320px; }

/* ───────── Productos ───────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.prod { overflow: hidden; display: flex; flex-direction: column; }
.prod-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-body h3 { margin: 0; font-size: 17px; }
.prod-body p { margin: 0; }
.prod-body .row { margin-top: auto; padding-top: 10px; }
.meta { font: 400 12px 'JetBrains Mono', monospace; color: var(--dim); }
.cover { position: relative; aspect-ratio: 16/10; overflow: hidden; background: color-mix(in srgb, var(--pa) 9%, var(--surface2)); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-art { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }
.cover-art::before {
  content: ''; position: absolute; width: 62%; aspect-ratio: 1; right: -14%; top: -22%; border-radius: 50%;
  background: color-mix(in srgb, var(--pa) 85%, transparent); opacity: .9; transition: transform .6s var(--ease);
}
.hoverable:hover .cover-art::before, .prod:hover .cover-art::before { transform: scale(1.06) translate(-4px, 4px); }
.cover-emoji { position: relative; font-size: 22px; line-height: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.cover-word { position: relative; font: 600 clamp(24px, 3vw, 30px) 'Inter Tight', sans-serif; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.locked .cover { filter: grayscale(.7); opacity: .75; transition: filter .3s, opacity .3s; }
.locked:hover .cover { filter: none; opacity: 1; }
.lock-pill { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 99px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.bar { height: 3px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--pa); border-radius: inherit; transition: width .6s var(--ease); }

/* ───────── Home ───────── */
.hero { padding-top: 96px; padding-bottom: 64px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero > * { max-width: 760px; }
.hero .row { justify-content: center; }
.hero-stats { margin-top: 36px; font-size: 14px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-stats b { color: var(--ink); font-weight: 500; }
.hero-stats i { color: var(--dim); font-style: normal; }
.seg { display: inline-flex; padding: 3px; background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 28px; font-size: 13px; }
.seg span { padding: 5px 12px; border-radius: 7px; color: var(--muted); }
.seg span:first-child { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.display { font-size: clamp(42px, 7vw, 76px); line-height: 1.02; letter-spacing: -.05em; font-weight: 500; margin-bottom: 22px; }
.grad { color: var(--ink); }
.lead { font-size: 17px; color: var(--muted); max-width: 520px; margin: 0 auto 30px; line-height: 1.55; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 48px 0 18px; flex-wrap: wrap; }
.sec-head h1, .sec-head h2 { margin: 0; }
.section > .sec-head:first-child { margin-top: 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { border-top: 1px solid var(--line); padding-top: 20px; }
.step-n { font: 400 12px 'JetBrains Mono', monospace; color: var(--dim); }
.step h3 { margin-top: 10px; font-size: 17px; }

/* ───────── Auth ───────── */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; gap: 28px; }
.auth-card { width: 100%; max-width: 400px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { font-size: 24px; margin: 0; }
.auth-card p { margin: 0; }
.auth-links { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; font-size: 13px; }
.auth-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); }
.big-emoji { font-size: 34px; }

/* ───────── Dashboard ───────── */
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.hello h1 { margin: 0; }
.continue { display: flex; gap: 18px; align-items: center; padding: 20px 22px; margin-top: 28px; transition: border-color .2s, transform .25s var(--ease); }
.continue:hover { border-color: var(--line2); transform: translateY(-2px); }
.continue h3 { margin: 0 0 2px; font-size: 17px; }
.continue .eyebrow { margin-bottom: 6px; }
.continue .bar { margin-top: 12px; max-width: 320px; }
.continue-play { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; padding-left: 2px; transition: transform .25s var(--ease); }
.continue:hover .continue-play { transform: scale(1.06); }

/* ───────── Producto ───────── */
.phero { border-bottom: 1px solid var(--line); }
.phero-in { display: flex; gap: 56px; align-items: center; padding-top: 40px; padding-bottom: 56px; }
.phero-cover { width: 420px; flex: none; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.phero .bar { max-width: 400px; }
.display-s { font-size: clamp(38px, 5.5vw, 60px); letter-spacing: -.05em; margin: 4px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips > span { font: 400 12px 'JetBrains Mono', monospace; padding: 4px 10px; border-radius: 99px; background: var(--surface2); color: var(--muted); }
@media (max-width: 860px) { .phero-in { flex-direction: column-reverse; align-items: stretch; gap: 24px; padding-top: 24px; } .phero-cover { width: 100%; } }
.incl { margin: 0; padding: 0; list-style: none; }
.incl li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.incl li:last-child { border: 0; }
.body { color: var(--ink2); }
.body p:last-child { margin: 0; }
.body ul { padding-left: 20px; }
.body li { margin: 3px 0; }
.body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); }
.body h3 { margin-top: 16px; }

/* ───────── Temario ───────── */
.syllabus { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.mod + .mod { border-top: 1px solid var(--line); }
.mod summary { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; font-weight: 500; list-style: none; transition: background .15s; }
.mod summary::-webkit-details-marker { display: none; }
.mod summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
.mod[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.mod summary:hover { background: var(--surface2); }
.mod-n { font: 400 12px 'JetBrains Mono', monospace; color: var(--dim); }
.mod ol { list-style: none; margin: 0; padding: 0 0 8px; }
.les { display: flex; align-items: center; gap: 12px; padding: 9px 18px; font-size: 14px; color: var(--ink2); transition: background .15s; }
a.les:hover { background: var(--surface2); }
.les.cur { color: var(--ink); font-weight: 500; background: var(--surface2); }
.les.off { color: var(--dim); }
.les-ic { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 8px; border: 1px solid var(--line2); color: var(--dim); }
.les.cur .les-ic { border-color: var(--brand); color: var(--brand); }
.les.done .les-ic { background: var(--pa); border-color: var(--pa); color: #fff; font-size: 10px; font-weight: 700; }

/* ───────── Clase ───────── */
.lesson-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; max-width: 1360px; margin: 0 auto; width: 100%; }
.lesson-main { padding: 28px 40px 64px; min-width: 0; }
.lesson-side { border-left: 1px solid var(--line); padding: 24px 18px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow: auto; }
.lesson-side .syllabus { border: 0; background: transparent; }
.lesson-side .mod summary, .lesson-side .les { padding-left: 6px; padding-right: 6px; border-radius: 8px; }
.lesson-side .mod + .mod { border-top: 0; }
.side-head { display: flex; justify-content: space-between; align-items: center; margin: 0 6px 12px; font-size: 13px; }
@media (max-width: 980px) { .lesson-wrap { grid-template-columns: 1fr; } .lesson-side { position: static; height: auto; border-left: 0; border-top: 1px solid var(--line); } .lesson-main { padding: 20px 16px 40px; } }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--dim); margin: 0 6px; }
.player { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--r); overflow: hidden; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: var(--surface2); }
.small-player { max-width: 420px; }
.lesson-head { display: flex; gap: 16px; align-items: flex-start; margin: 24px 0 20px; flex-wrap: wrap; }
.lesson-head h1 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 4px; }
.pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pn .btn { white-space: normal; text-align: left; }

/* ───────── Descargables ───────── */
.res { list-style: none; padding: 0; margin: 12px 0 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.res-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; transition: background .15s; }
.res-item + .res-item { border-top: 1px solid var(--line); }
.res-item:hover { background: var(--surface2); }
.res-item strong { display: block; font-size: 14px; font-weight: 500; }
.res-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--surface2); display: grid; place-items: center; font-size: 16px; }
.res-item:hover .res-ic { background: var(--surface); }
.tabs { display: inline-flex; gap: 2px; flex-wrap: wrap; margin: 8px 0 24px; padding: 3px; background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; }
.tabs button, .tabs a { font: 500 13px 'Inter Tight', sans-serif; padding: 6px 12px; border-radius: 7px; background: transparent; border: 0; color: var(--muted); cursor: pointer; transition: color .15s, background .15s; }
.tabs button:hover, .tabs a:hover { color: var(--ink); }
.tabs .on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.tabs .on:hover { color: var(--ink); }
.cat { margin-bottom: 28px; }
.cat-h { font: 500 11px 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 0; }

/* ───────── Admin ───────── */
.admin-tabs { margin: 16px 0 28px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { font: 500 32px 'Inter Tight', sans-serif; letter-spacing: -.04em; line-height: 1.1; }
.table { overflow: hidden; margin-top: 12px; }
.tr { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tr:last-child { border-bottom: 0; }
.pdot { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--pa) 14%, var(--surface2)); font-size: 15px; }
.mod-edit { margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.les-edit { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.les-edit:empty { display: none; }
.les-edit li { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.les-edit li:last-child { border-bottom: 0; }
.chip-form { display: inline; }
.chip-form button { font: 500 12px 'Inter Tight', sans-serif; padding: 3px 10px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); color: var(--ink); cursor: pointer; }
.chip-form button:hover { border-color: var(--danger); color: var(--danger); }
.copy { background: var(--surface2); border: 1px dashed var(--line2); padding: 12px 14px; border-radius: 10px; cursor: pointer; word-break: break-all; transition: border-color .15s, color .15s; }
.copy.copied { border-color: var(--ok); color: var(--ok); }
.upl-status:empty { display: none; }
.upl-bar { height: 3px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 8px; }
.upl-bar span { display: block; height: 100%; background: var(--brand); width: 0; transition: width .2s; }

/* ───────── Footer ───────── */
.foot { border-top: 1px solid var(--line); margin-top: 48px; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; padding: 24px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.foot a:hover { color: var(--ink); }

/* ───────── Móvil ───────── */
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .section { padding-top: 32px; padding-bottom: 48px; }
  .hero { padding-top: 64px; padding-bottom: 48px; }
  .pad { padding: 18px; }
  .auth-card { padding: 24px; }
  .topbar .logo > span:last-child { display: none; }
  .nav > a:not(.btn) { padding: 6px 9px; font-size: 13px; }
  .lesson-head { flex-direction: column; align-items: stretch; }
  .lesson-head form, .lesson-head .btn { width: 100%; }
  .continue { gap: 14px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation: none !important; } }

/* ───────── Barra lateral estilo Whop (productos del alumno) ───────── */
.shell { display: flex; flex: 1; min-height: 0; }
.shell > main { flex: 1; min-width: 0; }
.rail { width: 68px; flex: none; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.rail-sep { width: 28px; height: 1px; background: var(--line2); margin: 4px 0; }
.rail-i { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--surface2); color: var(--muted); transition: border-radius .2s var(--ease), background .2s; }
.rail-i:hover { border-radius: 10px; color: var(--ink); }
.rail-i.prod-i { background: color-mix(in srgb, var(--pa) 18%, var(--surface2)); }
.rail-i.on { color: var(--ink); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.rail-i::after { content: attr(data-tip); position: absolute; left: 54px; white-space: nowrap; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 500; padding: 4px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transform: translateX(-4px); transition: opacity .15s, transform .15s; z-index: 30; }
.rail-i:hover::after { opacity: 1; transform: none; }
.rail-i.add { border: 1px dashed var(--line2); background: transparent; font-size: 18px; }
.shell .foot { margin-top: 24px; }
@media (max-width: 760px) { .rail { display: none; } }

.btn-whop { background: #a855f7; color: #fff; padding: 12px 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ═════════ Diseño "app" (inicio, curso, perfil) ═════════ */
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-block { width: 100%; }
.ml-auto { margin-left: auto; }
.u { text-decoration: underline; text-underline-offset: 3px; }
.pad-s { padding: 8px 10px; margin: 0; }
.app { padding-top: 28px; padding-bottom: 96px; max-width: 1100px; }
.app.narrow { max-width: 560px; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 28px; align-items: start; }
.app-grid .col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 900px) { .app-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Encabezado: avatar + saludo + campana */
.app-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.app-head .grow { display: flex; flex-direction: column; line-height: 1.25; }
.hello-name { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.app-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 20px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.app-avatar.tint, .row-av.tint { background: color-mix(in srgb, var(--pa) 16%, var(--surface)); }
.app-avatar.big { width: 64px; height: 64px; font-size: 26px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); cursor: pointer; position: relative; flex: none; list-style: none; transition: transform .15s var(--ease); }
.icon-btn:hover { transform: scale(1.05); }
.app-head > .icon-btn .ic { transform: rotate(-90deg); }
.dot-new { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--surface); }
.bell { position: relative; }
.bell summary::-webkit-details-marker { display: none; }
.bell-pop { position: absolute; right: 0; top: 50px; width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px; z-index: 30; box-shadow: 0 20px 50px -16px rgba(0,0,0,.3); animation: pop .18s var(--ease); }
.bell-h { font-weight: 600; font-size: 13px; padding: 6px 10px 8px; }
.bell-i { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; }
.bell-i:hover { background: var(--surface2); }
.bell-i b { display: block; font-size: 14px; font-weight: 500; }

/* Tarjeta oscura con número grande + anillo */
.hero-card { position: relative; overflow: hidden; background: var(--hero); color: var(--hero-ink); border-radius: 28px; padding: 22px 24px 24px; min-height: 176px; }
.hc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.62); position: relative; z-index: 1; }
.seg-mini { display: inline-flex; background: rgba(255,255,255,.08); border-radius: 99px; padding: 3px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.seg-mini span { padding: 4px 10px; border-radius: 99px; color: rgba(255,255,255,.62); }
.seg-mini .on { background: var(--brand); color: #fff; }
.big-num { position: relative; z-index: 1; font-size: clamp(44px, 7vw, 56px); font-weight: 600; letter-spacing: -.05em; line-height: 1; margin: 22px 0 12px; font-variant-numeric: tabular-nums; }
.big-num span { color: rgba(255,255,255,.38); }
.trend { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.7); flex-wrap: wrap; }
.trend b { color: #d8b4fe; font-weight: 600; }
.trend .ic { color: #d8b4fe; }
.hc-dim { color: rgba(255,255,255,.45); }
.hero-card .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.12); }
.ring { position: absolute; right: -34px; bottom: -40px; width: 190px; height: 190px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 14; }
.ring-fg { fill: none; stroke: var(--brand); stroke-width: 14; stroke-linecap: round; opacity: .9; transition: stroke-dashoffset 1s var(--ease); }

/* Acciones rápidas circulares */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink); }
.qa-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s var(--ease), background .2s; }
.qa:first-child .qa-ic { background: var(--brand); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -10px var(--brand); }
.qa:hover .qa-ic { transform: translateY(-2px) scale(1.04); }
.qa-l { text-align: center; }

/* Tarjeta de meta (módulo actual) */
.goal { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px 18px; box-shadow: var(--shadow); transition: transform .2s var(--ease); }
.goal:hover { transform: translateY(-2px); }
.goal .grow { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.goal .grow b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goal .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goal-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.goal-pct { font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.goal .bar { grid-column: 1 / -1; height: 8px; background: var(--surface2); margin-top: 12px; }
.goal .bar span { background: var(--ink); }

/* Listas tipo "actividad reciente" */
.list-head { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 2px 0; }
.list-head h2 { font-size: 18px; margin: 0; font-weight: 600; }
.list-head.first { margin: 0 2px 20px; }
.list-head.first h1 { margin: 0; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 6px; box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; transition: background .15s; }
a.row:hover { background: var(--surface2); }
.row + .row { border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; }
.row .grow { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.row .grow b { font-weight: 500; font-size: 15px; }
.row-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface2); color: var(--ink); font-size: 17px; font-weight: 600; }
.row-amt { font-size: 17px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.row-amt span { color: var(--dim); font-weight: 500; }
.row-amt.pos { color: var(--ok); }

/* Temario con estilo de lista */
.app .syllabus { border-radius: 22px; box-shadow: var(--shadow); padding: 4px; }
.app .mod summary { border-radius: 16px; }
.app .les { border-radius: 14px; margin: 0 4px; }
.app .les-ic { width: 30px; height: 30px; background: var(--surface2); border: 0; color: var(--muted); }
.app .les.done .les-ic { background: var(--brand-soft); color: var(--brand); }
.app .les.cur .les-ic { background: var(--brand); color: #fff; }
.app .mod-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font: 600 11px 'Inter Tight', sans-serif; }

/* Secciones (bloques) */
.blk { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.blk-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; color: var(--muted); font-weight: 500; }
.blk-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.blk-title { font-size: 18px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.02em; }
.blk p { margin: 0; }
.pill-new { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--brand); color: #fff; }
.blk-ann { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.blk-welcome { background: linear-gradient(180deg, var(--brand-soft), var(--surface) 70%); }
.blk-bonus { background: var(--hero); color: var(--hero-ink); border-color: transparent; }
.blk-bonus .muted { color: rgba(255,255,255,.6); }
.blk-bonus .blk-head { color: rgba(255,255,255,.6); }
.blk-bonus .blk-ic { background: rgba(168,85,247,.22); }
.live-row { display: flex; gap: 14px; align-items: center; }
.live-date { width: 58px; height: 64px; border-radius: 16px; background: var(--ink); color: var(--on-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1.1; }
.live-date span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.live-date b { font-size: 24px; font-weight: 600; }
.countdown { color: var(--brand); margin-top: 4px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.checks label { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 12px; cursor: pointer; font-size: 15px; }
.checks label:hover { background: var(--surface2); }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.chk { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; color: transparent; flex: none; transition: all .2s var(--ease); }
.checks input:checked + .chk { background: var(--brand); border-color: var(--brand); color: #fff; }
.checks input:checked ~ span:last-child { color: var(--dim); text-decoration: line-through; }
.checks input:focus-visible + .chk { outline: 2px solid var(--ink); outline-offset: 2px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.stat-cell { background: var(--surface2); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; }
.stat-cell b { font-size: 26px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.stat-cell span { font-size: 12px; color: var(--muted); }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 2px; cursor: pointer; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--dim); transition: transform .2s var(--ease); flex: none; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 2px 14px; }
.blk-quote .stars { display: flex; gap: 2px; color: var(--brand); margin-bottom: 10px; }
.blk-quote .stars .ic { fill: currentColor; }
.quote { font-size: 17px; line-height: 1.5; letter-spacing: -.01em; }
.who { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.who .av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 600; }
.blk-img { padding: 0; overflow: hidden; }
.blk-img img { width: 100%; }
.empty-blk { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border-style: dashed; box-shadow: none; color: var(--muted); padding: 32px 20px; }
.empty-blk b { color: var(--ink); }

/* Modo edición */
.admin-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px 10px 10px 16px; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.admin-strip > span { display: flex; align-items: center; gap: 8px; }
.quick-edit { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 20px; padding: 10px; border: 1.5px dashed color-mix(in srgb, var(--brand) 50%, var(--line)); border-radius: 18px; }
.quick-edit input { flex: 1; min-width: 120px; }
.quick-edit .qe-emoji { flex: 0 0 56px; min-width: 0; text-align: center; font-size: 18px; }
.quick-edit .grow2 { flex: 2; }
.quick-edit input[type=color] { flex: 0 0 48px; min-width: 0; }
.editable { border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: 28px; padding: 6px; }
.editable.is-hidden > .blk { opacity: .45; }
.edit-bar { display: flex; align-items: center; gap: 2px; padding: 2px 4px 8px 10px; }
.edit-bar form { display: contents; }
.edit-type { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--brand); margin-right: auto; }
.ib { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: transparent; border: 0; color: var(--muted); cursor: pointer; }
.ib:hover { background: var(--surface2); color: var(--ink); }
.ib:disabled { opacity: .3; cursor: default; }
.ib.danger:hover { color: var(--danger); }
.edit-form { display: flex; flex-direction: column; gap: 12px; padding: 14px 10px 8px; }
.add-block { border: 1.5px dashed var(--line2); border-radius: 24px; padding: 4px; }
.add-block summary { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; cursor: pointer; font-weight: 600; list-style: none; border-radius: 20px; }
.add-block summary::-webkit-details-marker { display: none; }
.add-block summary:hover { background: var(--surface); }
.add-plus { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 8px; }
.type-card { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, transform .15s var(--ease); }
.type-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.type-card b { font-weight: 600; font-size: 14px; }
.type-card .small { line-height: 1.35; }
.type-ic { width: 34px; height: 34px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }

/* Barra inferior flotante (celular) */
.tabbar { display: none; }
@media (max-width: 760px) {
  .topbar .nav > a:not(.btn) { display: none; }
  .tabbar { display: flex; position: fixed; left: 14px; right: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; background: #141414; border-radius: 99px; padding: 7px; justify-content: space-between; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); }
  :root[data-theme="dark"] .tabbar { background: #262626; }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: rgba(255,255,255,.6); font-size: 10px; font-weight: 500; padding: 2px 0; }
  .tb-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
  .tabbar a.on { color: #fff; }
  .tabbar a.on .tb-ic { background: var(--brand); color: #fff; }
  .tb-l { display: none; }
  .foot { padding-bottom: 90px; }
  .app { padding-top: 18px; }
  .quick { gap: 4px; }
  .qa-ic { width: 54px; height: 54px; }
  .bell-pop { width: min(300px, calc(100vw - 32px)); }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabbar { background: #262626; } }
.edit-form[hidden] { display: none; }

.auth-seg { display: flex; margin: 0 0 6px; }
.auth-seg a { flex: 1; text-align: center; padding: 7px 12px; border-radius: 7px; color: var(--muted); font-weight: 500; }
.auth-seg a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.magic summary { list-style: none; cursor: pointer; text-align: center; }
.magic summary::-webkit-details-marker { display: none; }

/* ═════════ Estructura estilo Whop ═════════ */
:root[data-theme="dark"] {
  --bg: #111111; --surface: #181818; --surface2: #202020; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --ink: #ededed; --ink2: #cfcfcf; --muted: #a1a1a1; --dim: #6e6e6e; --on-ink: #111111;
  --hero: #1d1d1d; --overlay: rgba(17,17,17,.88); --shadow: none;
}
:root[data-theme="light"] {
  --bg: #ffffff; --surface: #ffffff; --surface2: #f4f4f4; --line: #ebebeb; --line2: #dddddd;
  --ink: #111111; --muted: #6b6b6b; --overlay: rgba(255,255,255,.9); --shadow: none; --hero: #151515;
}
body { background: var(--bg); }
.mark { flex: none; }
.logo { gap: 8px; font: 700 21px 'Inter Tight', sans-serif; letter-spacing: -.045em; }
.logo-mark { display: none; }

/* Barra superior */
.wtop { position: sticky; top: 0; z-index: 30; height: 72px; display: grid; grid-template-columns: 1fr minmax(0, 400px) 1fr; align-items: center; gap: 16px; padding: 0 20px; background: var(--overlay); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.wsearch { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 16px; background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); transition: border-color .15s; }
.wsearch:focus-within { border-color: var(--line2); }
.wsearch input { border: 0; background: transparent; padding: 0; height: 100%; box-shadow: none !important; font-size: 16px; color: var(--ink); }
.wsearch kbd { font: 500 12px 'Inter Tight', sans-serif; color: var(--muted); border: 1px solid var(--line2); border-radius: 7px; padding: 3px 7px; }
.wsearch.big { height: 54px; }
.wtop-r { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.top-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); background: transparent; border: 0; cursor: pointer; margin: 0; transition: background .15s; }
.top-ic:hover { background: var(--surface2); color: var(--ink); }
.top-link { color: var(--ink); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.top-link:hover { background: var(--surface2); }
.wtop .avatar { position: relative; width: 42px; height: 42px; background: var(--surface2); color: var(--ink); border: 1px solid var(--line2); font-size: 14px; margin-left: 6px; }
.av-chev { position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line2); display: grid; place-items: center; color: var(--muted); }
.wtop .menu-pop { top: 52px; }

/* Barra lateral */
.shell { display: flex; }
.wmain { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - 72px); }
.wside { width: 272px; flex: none; position: sticky; top: 72px; height: calc(100vh - 72px); display: flex; flex-direction: column; gap: 6px; padding: 20px 12px 14px; border-right: 1px solid var(--line); overflow-y: auto; }
.tiles { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 4px 14px; }
.tile { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--surface2); color: var(--ink); border: 1px solid var(--line); transition: transform .15s var(--ease), border-color .15s; }
.tile:hover { transform: translateY(-1px); border-color: var(--line2); }
.tile.prod { background: color-mix(in srgb, var(--pa) 18%, var(--surface2)); }
.tile.on { border: 2px solid var(--ink); }
.tile.add { color: var(--muted); }
.snav-group { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.snav-h { font-size: 14px; color: var(--muted); padding: 8px 12px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snav { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; font-size: 16px; font-weight: 500; color: var(--ink); transition: background .15s; }
.snav:hover { background: var(--surface2); }
.snav.on { background: var(--surface2); }
.snav-ic { width: 22px; display: grid; place-items: center; color: var(--ink); flex: none; }
.snav-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wside-foot { margin-top: auto; display: flex; align-items: center; gap: 4px; padding-top: 8px; }
.wside-foot .snav { flex: 1; }
html.side-min .wside { width: 84px; }
html.side-min .wside .snav-l, html.side-min .wside .snav-h, html.side-min .wside .tiles .tile:not(.on):not(:first-child) { display: none; }
html.side-min .wside .snav { justify-content: center; padding: 12px 0; }
html.side-min .wside-foot { flex-direction: column; }
html.side-min .tiles { justify-content: center; }

/* Contenido: tarjetas planas con borde, como Whop */
.app { padding-top: 28px; }
.app-head { margin-bottom: 22px; } .hello-name { font-size: 26px; letter-spacing: -.035em; } .app-head .app-avatar { width: 52px; height: 52px; border-radius: 16px; }
.hero-card { border: 1px solid var(--line); }
.goal, .list, .blk, .app .syllabus, .card, .qa-ic { box-shadow: none; }
.blk, .list, .goal, .app .syllabus { border-radius: 20px; }
.qa:first-child .qa-ic { box-shadow: none; }
.list-head h2 { font-size: 20px; }
.app .list-head.first h1 { font-size: 28px; }
.page-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.page-title h1 { font-size: 28px; margin: 0; letter-spacing: -.035em; }
.page-title .tile { width: 52px; height: 52px; }
.page-title .grow { display: flex; flex-direction: column; }
.page-title .bell { margin-left: auto; }
.foot { margin-top: auto; }
.flash { margin-top: 18px; }

@media (max-width: 1100px) { .wside { width: 84px; } .wside .snav-l, .wside .snav-h { display: none; } .wside .snav { justify-content: center; padding: 12px 0; } .wside-foot { flex-direction: column; } .tiles { justify-content: center; } .wtop { grid-template-columns: auto minmax(0, 1fr) auto; } }
@media (max-width: 760px) {
  .wside { display: none; }
  .wtop { height: 62px; padding: 0 12px; gap: 10px; }
  .wtop .logo span { display: none; }
  .wsearch { height: 40px; }
  .wsearch kbd { display: none; }
  .hide-m { display: none; }
  .wmain { min-height: calc(100vh - 62px); }
}
.app.narrow .list-head { margin-top: 22px; margin-bottom: 8px; }
@media (max-width: 760px) { .app-head .tag { display: none; } }

/* Logo oficial Content Maxxing */
.logo { gap: 10px; align-items: center; }
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.wordmark { font-family: Archivo, 'Inter Tight', sans-serif; font-stretch: 125%; font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.tagline { font: 500 13px 'Inter Tight', sans-serif; color: var(--muted); margin-top: 8px; letter-spacing: 0; }
.logo-lg { gap: 16px; }
.logo-lg .wordmark { font-size: 30px; }
@media (max-width: 760px) { .wtop .logo .logo-txt { display: none; } }

/* Barra lateral: Configuraciones siempre fija abajo, el resto se desplaza */
.wside { overflow: hidden; height: calc(100vh - 72px); height: calc(100dvh - 72px); padding-bottom: 0; gap: 0; }
.wside-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; scrollbar-width: thin; }
.wside-foot { flex: none; margin-top: 0; padding: 10px 0 14px; border-top: 1px solid var(--line); background: var(--bg); }

/* ═════════ Gamificación ═════════ */
.lvl-chip { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 5px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); margin-right: 4px; transition: border-color .15s; }
.lvl-chip:hover { border-color: var(--line2); }
.lvl-ring { --p: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line2) 0); }
.lvl-ring b { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); font-size: 12px; font-weight: 700; }
.lvl-txt { display: flex; flex-direction: column; line-height: 1.1; }
.lvl-txt b { font-size: 13px; font-weight: 600; }
.lvl-txt span { font-size: 11px; color: var(--muted); }
.streak { font-size: 13px; font-weight: 600; white-space: nowrap; }
.streak.big { display: flex; flex-direction: column; align-items: center; font-size: 22px; line-height: 1; }
.streak.big small { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 3px; }

.level-card { display: block; }
.lc-top { display: flex; align-items: center; gap: 14px; }
.lc-top .grow { display: flex; flex-direction: column; line-height: 1.3; }
.lc-name { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.lc-badge { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(160deg, #c084fc, #7e22ce); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex: none; }
.lc-badge b { font-size: 24px; font-weight: 700; }
.lc-badge span { font-size: 8px; letter-spacing: .14em; opacity: .85; margin-top: 2px; }
.xp-bar { height: 10px; border-radius: 99px; background: var(--surface2); overflow: hidden; margin-top: 14px; }
.xp-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7e22ce, #c084fc); transition: width .8s var(--ease); }
.xp-bar.dark { background: rgba(255,255,255,.1); position: relative; z-index: 1; max-width: 70%; }

.challenges { display: flex; flex-direction: column; gap: 6px; }
.ch { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--surface2); }
.ch .grow { display: flex; flex-direction: column; gap: 6px; }
.ch b { font-weight: 500; font-size: 14px; }
.ch-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-size: 16px; flex: none; }
.ch.ok .ch-ic { background: var(--brand); color: #fff; }
.ch-bar { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; display: block; }
.ch-bar span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.ch-xp { display: flex; flex-direction: column; align-items: flex-end; font-weight: 600; font-size: 14px; line-height: 1.2; }
.ch-xp small { font-size: 11px; color: var(--brand); font-weight: 600; }
.ch.ok b { color: var(--muted); text-decoration: line-through; }

.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ach { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); opacity: .55; }
.ach.on { opacity: 1; border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: linear-gradient(180deg, var(--brand-soft), var(--surface) 75%); }
.ach-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--surface2); color: var(--muted); margin-bottom: 6px; }
.ach.on .ach-ic { background: var(--surface); }
.ach b { font-size: 14px; font-weight: 600; }
.ach .small { line-height: 1.35; }
.ach-xp { position: absolute; top: 14px; right: 12px; font-size: 11px; font-weight: 600; color: var(--brand); }
.rank { width: 32px; text-align: center; font-weight: 600; color: var(--muted); font-size: 15px; flex: none; }
.row.me { background: var(--brand-soft); }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 18px 40px -14px rgba(0,0,0,.45); animation: toastIn .5s var(--ease) both; animation-delay: var(--d); transition: opacity .5s, transform .5s; }
.toast.out { opacity: 0; transform: translateX(30px); }
.toast .grow { display: flex; flex-direction: column; line-height: 1.3; }
.toast b { font-size: 14px; font-weight: 600; }
.toast .grow span { font-size: 12px; color: var(--brand); font-weight: 600; }
.toast-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--brand-soft); flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@media (max-width: 760px) { .toasts { left: 16px; right: 16px; bottom: 96px; max-width: none; } .lvl-chip { padding-right: 8px; } }

/* ═════════ Perfil ═════════ */
.prof-head { display: flex; gap: 22px; align-items: center; margin-bottom: 20px; }
.prof-head h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.04em; }
.prof-head .grow { display: flex; flex-direction: column; gap: 4px; }
.prof-head .xp-bar { max-width: 420px; margin-top: 10px; }
.prof-av { position: relative; width: 104px; height: 104px; border-radius: 30px; display: grid; place-items: center; font-size: 44px; font-weight: 700; color: #fff; background: linear-gradient(160deg, #c084fc, #7e22ce); flex: none; }
.prof-lvl { position: absolute; right: -8px; bottom: -8px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-size: 15px; font-weight: 700; border: 4px solid var(--bg); }
.prof-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag.accent { background: var(--brand-soft); color: var(--brand); }
.pstats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 20px; }
.pstat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.pstat-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 8px; }
.pstat b { font-size: 20px; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.pstat span:last-child { font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) { .pstats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .pstats { grid-template-columns: repeat(2, 1fr); } .prof-head { gap: 16px; } .prof-av { width: 76px; height: 76px; font-size: 32px; border-radius: 22px; } .prof-head h1 { font-size: 24px; } }

.vc-num { font-size: 64px; font-weight: 700; letter-spacing: -.05em; line-height: 1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.vc-num span { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.vcount .xp-bar { margin-top: 10px; margin-bottom: 6px; }
.vc-btns { display: flex; gap: 8px; margin-top: 16px; }
.vc-btns form { display: contents; }
.vc-btns .btn { flex: 1; padding: 12px 10px; }
.vc-btns .vc-main { flex: 2; font-size: 16px; font-weight: 600; }
.vc-more { margin-top: 12px; }
.vc-more summary { list-style: none; cursor: pointer; }
.vc-more summary::-webkit-details-marker { display: none; }

.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route::before { content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.rs { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 9px 0; }
.rs .grow { display: flex; flex-direction: column; line-height: 1.35; padding-top: 6px; }
.rs b { font-weight: 500; font-size: 15px; }
.rs-dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); color: var(--dim); border: 2px solid var(--surface); flex: none; }
.rs.done .rs-dot { background: var(--brand); color: #fff; }
.rs.done b { color: var(--muted); }
.rs.cur .rs-dot { background: var(--surface); color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.rs.cur b { font-weight: 600; }
.rs-xp { font-size: 12px; font-weight: 600; color: var(--dim); padding-top: 9px; white-space: nowrap; }
.rs-xp.got { color: var(--brand); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--surface2); border: 1px solid var(--line); cursor: default; }
.only-m { display: none !important; }
@media (max-width: 760px) {
  .only-m { display: grid !important; }
  .wtop { grid-template-columns: auto 1fr; }
  .wtop .wsearch { display: none; }
  .wtop .lvl-chip .lvl-txt { display: none; }
  .wtop-r { gap: 2px; }
  .wtop .top-ic { width: 38px; height: 38px; }
}

/* Formularios dentro de tarjetas: aire entre campos y botón */
.blk.stack { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.blk.stack > .blk-head { margin-bottom: 0; }
.blk.stack > .btn { align-self: flex-start; margin-top: 6px; }

/* ═════════ Social ═════════ */
.list-head.first { align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.list-head.first > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.seg.filter { margin: 0; display: inline-flex; }
.seg.filter a { padding: 6px 14px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 500; }
.seg.filter a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.pstats.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .pstats.four { grid-template-columns: repeat(2, 1fr); } }

.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 10px 0; overflow: hidden; }
.pod b { font-size: 15px; font-weight: 600; }
.pod .small { font-size: 11px; }
.pod-av { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 700; background: var(--surface2); margin-bottom: 6px; }
.pod.p1 .pod-av { width: 68px; height: 68px; background: linear-gradient(160deg, #c084fc, #7e22ce); color: #fff; }
.pod-medal { position: absolute; right: -6px; bottom: -6px; font-size: 20px; }
.pod-step { width: 100%; margin-top: 12px; padding: 10px 0; font-size: 22px; font-weight: 700; color: var(--muted); background: var(--surface2); }
.pod.p1 .pod-step { padding: 22px 0; color: var(--brand); background: var(--brand-soft); }
.pod.p2 .pod-step { padding: 14px 0; }

.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.chart-head h3 { margin: 0 0 2px; font-size: 16px; font-weight: 600; }
.chart-total { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.chart-total b { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.chart-total span { font-size: 11px; color: var(--muted); }
.cc { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 170px auto; column-gap: 8px; }
.cc-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); text-align: right; transform: translateY(-6px); height: calc(100% + 12px); }
.cc-plot { position: relative; display: grid; grid-template-columns: repeat(14, 1fr); align-items: end; height: 100%; }
.cc-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.cc-grid i { display: block; height: 1px; background: var(--line); }
.cc-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; outline: none; border-radius: 6px; }
.cc-col:hover, .cc-col:focus-visible { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.cc-bar { position: relative; z-index: 1; width: min(24px, 60%); min-height: 0; background: var(--brand); border-radius: 4px 4px 0 0; transition: height .6s var(--ease); }
.cc-val { position: absolute; z-index: 2; font-size: 11px; font-weight: 600; color: var(--ink); }
.cc-x { grid-column: 2; display: grid; grid-template-columns: repeat(14, 1fr); margin-top: 8px; font-size: 11px; color: var(--muted); text-align: center; white-space: nowrap; }
.cc-tip { position: fixed; z-index: 80; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 500; pointer-events: none; opacity: 0; transition: opacity .12s; white-space: nowrap; }
.chart-table { margin-top: 12px; }
.chart-table summary { list-style: none; cursor: pointer; }
.chart-table summary::-webkit-details-marker { display: none; }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.chart-table th, .chart-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.chart-table td:last-child, .chart-table th:last-child { text-align: right; }
@media (max-width: 600px) { .cc-x span:nth-child(4n+2) { visibility: hidden; } }

.board-tabs { margin: 4px 0 0; }
.board .grow { gap: 6px; }
.hbar { display: block; height: 6px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.hbar span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.feed-t { font-size: 14px; line-height: 1.35; }
.feed-t b { font-weight: 600; }

/* ═════════ Menú del curso en la barra lateral ═════════ */
.snav { position: relative; }
.snav-badge { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface2); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.snav-ext { margin-left: auto; color: var(--dim); }
.course-nav .snav-h { font-weight: 600; color: var(--ink); font-size: 15px; }
.cn-progress { margin: 2px 4px 8px; padding: 12px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.cn-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.cn-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.cn-bar span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.cn-continue { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: var(--brand); color: #fff; }
.cn-continue:hover { filter: brightness(1.08); }
.cn-continue .grow { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cn-continue b { font-size: 13px; }
.cn-continue .grow span { font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-continue.done { background: var(--brand-soft); color: var(--ink); }
.cn-play { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; }
.cn-eps summary { list-style: none; cursor: pointer; }
.cn-eps summary::-webkit-details-marker { display: none; }
.cn-chev { color: var(--dim); transition: transform .2s var(--ease); margin-left: 4px; }
.cn-eps[open] .cn-chev { transform: rotate(180deg); }
.cn-mods { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 8px 22px; }
.cn-mod-h { font-size: 12px; color: var(--muted); padding: 6px 8px 2px; display: flex; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-mod-h span { color: var(--dim); font-family: 'JetBrains Mono', monospace; }
.cn-ep { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: 14px; color: var(--ink2); }
.cn-ep:hover { background: var(--surface2); }
.cn-ep.on { background: var(--surface2); color: var(--ink); font-weight: 500; }
.cn-ep.done { color: var(--muted); }
.cn-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; flex: none; color: #fff; }
.cn-ep.done .cn-dot { background: var(--brand); border-color: var(--brand); }
.cn-ep.on .cn-dot { border-color: var(--brand); }
html.side-min .wside .cn-progress, html.side-min .wside .cn-mods, html.side-min .wside .snav-badge, html.side-min .wside .snav-ext, html.side-min .wside .cn-chev { display: none; }
@media (max-width: 1100px) { .wside .cn-progress, .wside .cn-mods, .wside .snav-badge, .wside .snav-ext, .wside .cn-chev { display: none; } }

/* ═════════ Certificado ═════════ */
.cert-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cert-name input { width: 220px; }
.cert { background: #fffdf8; color: #151515; border-radius: 20px; padding: 18px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); aspect-ratio: 1.414; max-width: 980px; margin: 0 auto; }
.cert-in { height: 100%; border: 2px solid #151515; border-radius: 10px; outline: 1px solid #151515; outline-offset: -8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4% 6%; position: relative; background:
  radial-gradient(600px 300px at 0% 0%, rgba(168,85,247,.08), transparent 60%), radial-gradient(600px 300px at 100% 100%, rgba(126,34,206,.08), transparent 60%); }
.cert-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 4%; }
.cert-logo .wordmark { color: #151515; font-size: 20px; }
.cert-kicker { font: 600 13px 'Inter Tight', sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #7e22ce; }
.cert-small { margin: 3% 0 0; color: #555; font-size: 15px; }
.cert-name-big { font-family: Archivo, 'Inter Tight', sans-serif; font-stretch: 112%; font-weight: 800; font-size: clamp(30px, 5.5vw, 58px); letter-spacing: -.03em; margin: 1% 0 0; color: #151515; line-height: 1.05; }
.cert-course { font-size: clamp(20px, 3vw, 30px); font-weight: 600; margin: 1% 0 0; color: #151515; letter-spacing: -.02em; }
.cert-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; width: 100%; margin-top: 6%; }
.cert-foot > div:not(.cert-seal) { display: flex; flex-direction: column; border-top: 1px solid #151515; padding-top: 8px; font-size: 14px; }
.cert-foot span { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: .14em; margin-top: 2px; }
.cert-seal { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: linear-gradient(160deg, #c084fc, #7e22ce); box-shadow: 0 0 0 6px #fffdf8, 0 0 0 8px #7e22ce; }
.cert-locked { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 24px; }
.cert-locked .xp-bar { width: 100%; max-width: 320px; }
.cert-lock { font-size: 40px; }
@media (max-width: 600px) { .cert { aspect-ratio: auto; padding: 10px; } .cert-in { padding: 28px 16px; } .cert-foot { gap: 12px; } .cert-seal { width: 52px; height: 52px; font-size: 24px; } }
@media print {
  @page { size: landscape; margin: 0; }
  body { background: #fff !important; }
  .wtop, .wside, .tabbar, .foot, .no-print, .flash, .toasts { display: none !important; }
  .app { padding: 0 !important; max-width: none; }
  .cert { box-shadow: none; border-radius: 0; max-width: none; height: 100vh; aspect-ratio: auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Barra inferior del celular: blanca en modo claro, gris oscuro en modo oscuro */
@media (max-width: 760px) {
  .tabbar { background: var(--surface) !important; border: 1px solid var(--line); box-shadow: 0 12px 34px -10px rgba(0,0,0,.22); }
  .tabbar a { color: var(--muted); }
  .tabbar a.on { color: var(--ink); }
  :root[data-theme="dark"] .tabbar { background: #1f1f1f !important; border-color: rgba(255,255,255,.08); box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); }
}

/* ═════════ Menú del curso en celular ═════════ */
.cm-wrap { display: none; }
@media (max-width: 760px) {
  .cm-wrap { display: block; position: sticky; top: 62px; z-index: 25; background: var(--overlay); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  .cm-bar { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px; scrollbar-width: none; }
  .cm-bar::-webkit-scrollbar { display: none; }
  .cm-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); color: var(--ink); font: 500 13px 'Inter Tight', sans-serif; white-space: nowrap; cursor: pointer; }
  .cm-chip.main { background: var(--ink); color: var(--on-ink); border-color: transparent; }
  .cm-chip.accent { background: var(--brand); color: #fff; border-color: transparent; }
  .cm-pct { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: color-mix(in srgb, var(--on-ink) 18%, transparent); }
  .cm-sheet { position: fixed; inset: 0; z-index: 70; }
  .cm-sheet[hidden] { display: none; }
  .cm-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); animation: fadeIn .2s ease; }
  .cm-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; border-top: 1px solid var(--line2); padding: 10px 12px calc(24px + env(safe-area-inset-bottom)); animation: sheetUp .28s var(--ease); }
  .cm-grab { width: 42px; height: 5px; border-radius: 99px; background: var(--line2); margin: 0 auto 6px; }
  .cm-close { position: absolute; top: 10px; right: 10px; }
  .cm-close .ic { transform: rotate(45deg); }
  .cm-panel .course-nav { margin: 0; }
  .cm-panel .snav-h { padding-right: 48px; font-size: 17px; }
  .cm-panel .cn-mods { padding-left: 14px; }
}
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes fadeIn { from { opacity: 0; } }

/* ═════════ VERSIÓN MORADA · solo oscuro, con resplandor ═════════ */
:root, :root[data-theme="dark"], :root[data-theme="light"] {
  --bg: #0b0912; --surface: #13101b; --surface2: #1b1626; --line: rgba(196,163,255,.09); --line2: rgba(196,163,255,.17);
  --ink: #f1edf9; --ink2: #d3cbe4; --muted: #a39cb6; --dim: #6c6580; --on-ink: #0b0912;
  --brand: #a855f7; --pa: #a855f7; --brand-soft: rgba(168,85,247,.16); --hero: #171124; --hero-ink: #ffffff;
  --overlay: rgba(11,9,18,.82); --ok: #4ade80; --ok-bg: rgba(74,222,128,.08);
  --glow: 0 0 0 1px rgba(168,85,247,.35), 0 10px 40px -10px rgba(168,85,247,.65);
  color-scheme: dark;
}
/* (toggle de tema visible otra vez: modo claro) */
body { background: radial-gradient(900px 500px at 85% -10%, rgba(168,85,247,.14), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(126,34,206,.12), transparent 60%), var(--bg); background-attachment: fixed; }
.btn { background: linear-gradient(135deg, #c084fc, #a855f7 45%, #7e22ce); box-shadow: 0 10px 30px -10px rgba(168,85,247,.85), inset 0 1px 0 rgba(255,255,255,.22); }
.btn:hover { filter: brightness(1.12); box-shadow: 0 14px 40px -8px rgba(168,85,247,1), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-ghost { background: var(--surface2); box-shadow: none; }
.btn-ghost:hover { box-shadow: none; }
.mark { filter: drop-shadow(0 0 10px rgba(168,85,247,.55)); }
.wtop { background: rgba(11,9,18,.78); }
.hero-card { background: radial-gradient(420px 220px at 100% 0%, rgba(168,85,247,.28), transparent 70%), linear-gradient(160deg, #1c1430, #120d1d); border-color: rgba(168,85,247,.25); box-shadow: 0 30px 70px -40px rgba(168,85,247,.7); }
.ring-fg { stroke: url(#none); stroke: #b77cfb; filter: drop-shadow(0 0 8px rgba(168,85,247,.8)); }
.qa:first-child .qa-ic, .continue-play, .cn-continue, .goal-ic { box-shadow: 0 0 24px -4px rgba(168,85,247,.75); }
.qa-ic { background: var(--surface2); }
.tile.on, .rail-i.on { border-color: #c084fc; box-shadow: 0 0 18px -4px rgba(168,85,247,.8); }
.lvl-ring { background: conic-gradient(#c084fc calc(var(--p) * 1%), var(--line2) 0); }
.lvl-chip { box-shadow: 0 0 0 1px rgba(168,85,247,.25); }
.xp-bar span, .bar span, .cn-bar span, .ch-bar span, .hbar span, .cc-bar { background: linear-gradient(90deg, #7e22ce, #a855f7, #c084fc); box-shadow: 0 0 12px rgba(168,85,247,.6); }
.blk, .list, .goal, .card, .app .syllabus, .pstat, .ach, .pod, .vt { box-shadow: 0 1px 0 rgba(255,255,255,.03) inset; }
.blk:hover, .ach.on, .row.me { border-color: rgba(168,85,247,.35); }
.lc-badge, .prof-av, .pod.p1 .pod-av { background: linear-gradient(160deg, #c084fc, #7e22ce); box-shadow: 0 0 30px -6px rgba(168,85,247,.85); }
.tabbar, :root[data-theme="dark"] .tabbar { background: rgba(23,17,36,.92) !important; border: 1px solid rgba(168,85,247,.25) !important; box-shadow: 0 16px 40px -12px rgba(0,0,0,.8), 0 0 30px -10px rgba(168,85,247,.5) !important; }
.tabbar a.on .tb-ic { box-shadow: 0 0 20px -2px rgba(168,85,247,.9); }
.toast { border-color: rgba(168,85,247,.5); box-shadow: 0 18px 40px -14px rgba(0,0,0,.6), 0 0 30px -10px rgba(168,85,247,.7); }
.cert-in { background: radial-gradient(600px 300px at 0% 0%, rgba(168,85,247,.10), transparent 60%), radial-gradient(600px 300px at 100% 100%, rgba(126,34,206,.10), transparent 60%); }
.cert-kicker { color: #7e22ce; }
.cert-seal { background: linear-gradient(160deg, #c084fc, #7e22ce); box-shadow: 0 0 0 6px #fffdf8, 0 0 0 8px #7e22ce; }
.auth-card { box-shadow: 0 40px 90px -40px rgba(168,85,247,.55); border-color: rgba(168,85,247,.2); }
.flash { background: rgba(168,85,247,.12); color: #e9d5ff; }


/* ════════════ DARK EDITORIAL TECH (app) ════════════
   Inter Tight (títulos y texto) · Instrument Serif itálica (palabra clave / subtítulos) · JetBrains Mono (metadata y botones) */
:root, :root[data-theme="dark"], :root[data-theme="light"] {
  --bg: #0E0B14; --surface: #17121F; --surface2: #1C1626; --line: #2A2236; --line2: #3A3245;
  --ink: #F2EFEA; --ink2: #CFC9D6; --muted: #8A8296; --dim: #5E566B; --on-ink: #0E0B14;
  --brand: #9B5CFF; --pa: #9B5CFF; --brand-soft: rgba(155,92,255,.12); --hero: #17121F; --hero-ink: #F2EFEA;
  --overlay: rgba(14,11,20,.86); --shadow: none; --glow: #5B2A9E;
}
body { background: var(--bg) !important; font-family: 'Inter Tight', system-ui, sans-serif; letter-spacing: -.005em; }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .035; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
h1, h2, h3, .hello-name, .blk-title, .lc-name, .prof-head h1, .display, .display-s { font-family: 'Inter Tight', sans-serif; font-weight: 800; letter-spacing: -.045em; }
h1 { line-height: .95; }
h2, .list-head h2 { font-weight: 700; letter-spacing: -.035em; }
.row .grow b, .snav, .goal .grow b { letter-spacing: -.015em; }

/* Serif itálica: subtítulos y frases con personalidad */
.app-head .grow > .muted.small, .tagline, .lead, .auth-card > p.muted, .hc-dim { font-family: 'Instrument Serif', Georgia, serif !important; font-style: italic; font-size: 19px !important; letter-spacing: -.005em; color: var(--ink2) !important; }

/* Mono: metadata, etiquetas, numeraciones y botones */
.eyebrow, .snav-h, .blk-label, .hc-top > span, .seg-mini, .tag, .pill-new, .meta, .lbl, .menu-email, .crumbs, .bell-h, .cn-row, .cn-mod-h,
.stat-cell span, .pstat span:last-child, .ch-xp small, .rs-xp, .list-head .link, .list-head > .muted, .snav-badge, .lock-pill, .tb-l,
.qa-l, .edit-type, .chart-total span, .cc-y, .cc-x, .kick, .doc-meta, .wsearch kbd, .av-chev, .trend, .vc-num span, .mod-n, .step-n, .live-date span {
  font-family: 'JetBrains Mono', monospace !important; text-transform: uppercase; letter-spacing: .16em; font-weight: 500; }
.eyebrow, .snav-h, .blk-label, .hc-top > span, .tag, .meta, .lbl, .crumbs, .cn-row, .list-head .link, .list-head > .muted, .qa-l, .trend { font-size: 10.5px !important; color: var(--muted); }
.eyebrow::before { background: var(--brand); }
.snav-h { padding-top: 14px; }
.course-nav .snav-h { font-family: 'Inter Tight', sans-serif !important; text-transform: none; letter-spacing: -.02em; font-size: 15px !important; color: var(--ink); font-weight: 700; }

/* Botones: píldora en acento, mono mayúscula oscura */
.btn { background: var(--brand); color: #0E0B14; border: 1px solid var(--brand); border-radius: 99px; box-shadow: none !important; filter: none !important;
  font: 600 11.5px 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }
.btn:hover { background: #A873FF; transform: translateY(-1px); }
.btn-ghost, .btn-dark { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover, .btn-dark:hover { background: var(--surface2); border-color: var(--line2); }
.btn-whop { background: var(--brand); color: #0E0B14; }
.btn-sm { font-size: 10.5px; padding: 8px 14px; }

/* Superficies con borde de 1px, sin sombras ni brillos */
.card, .blk, .list, .goal, .app .syllabus, .pstat, .ach, .pod, .hero-card, .bell-pop, .menu-pop, .toast, .level-card, .cn-progress, .tabbar, .lvl-chip, .icon-btn, .tile, .qa-ic, .avatar, .stat-cell, .ch {
  box-shadow: none !important; filter: none !important; }
.card, .blk, .list, .goal, .app .syllabus, .pstat, .ach, .pod { background: var(--surface); border: 1px solid var(--line); }
.blk:hover, .ach.on, .row.me, .hoverable:hover { border-color: var(--line2); }
.hero-card { background: radial-gradient(380px 220px at 100% 0%, rgba(91,42,158,.45), transparent 70%), var(--surface) !important; border: 1px solid var(--line) !important; }
.blk-welcome, .blk-bonus { background: radial-gradient(360px 200px at 100% 0%, rgba(91,42,158,.35), transparent 70%), var(--surface); color: var(--ink); }
.blk-bonus .muted, .blk-bonus .blk-head { color: var(--muted); }
.blk-ic, .goal-ic, .pstat-ic, .type-ic, .ch-ic, .row-av { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.big-num { font-family: 'Inter Tight', sans-serif; font-weight: 800; letter-spacing: -.055em; color: var(--ink); }
.big-num span { color: var(--line2); }
.trend b, .trend .ic { color: var(--brand); }
.seg-mini { background: transparent; border: 1px solid var(--line); }
.seg-mini .on { background: var(--brand); color: #0E0B14; }
.qa-ic { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.qa:first-child .qa-ic { background: var(--brand); color: #0E0B14; border-color: var(--brand); }
.ring-fg { stroke: var(--brand); filter: none !important; }
.ring-bg { stroke: rgba(242,239,234,.05); }
.xp-bar span, .bar span, .cn-bar span, .ch-bar span, .hbar span, .cc-bar, .goal .bar span { background: var(--brand) !important; box-shadow: none !important; }
.goal .bar span { background: var(--ink) !important; }
.lc-badge, .prof-av, .pod.p1 .pod-av { background: transparent !important; border: 1px solid var(--brand); color: var(--ink); box-shadow: none !important; }
.lc-badge b, .prof-av { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--brand); }
.prof-av { font-size: 56px; }
.prof-lvl { background: var(--brand); color: #0E0B14; border-color: var(--bg); font-family: 'JetBrains Mono', monospace; }
.tile.on, .rail-i.on { border: 1px solid var(--brand); box-shadow: none !important; }
.tile.prod { background: var(--surface2); }
.snav.on { background: var(--surface2); box-shadow: inset 2px 0 0 var(--brand); }
.cn-continue { background: var(--brand); color: #0E0B14; box-shadow: none !important; }
.cn-continue .grow span { opacity: .7; }
.lvl-ring { background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0); }
.lvl-ring b { background: var(--bg); }
.lvl-chip { background: transparent; border: 1px solid var(--line); }
.lvl-txt b { font-family: 'JetBrains Mono', monospace; letter-spacing: .08em; font-size: 11px; }
.tabbar, :root[data-theme="dark"] .tabbar { background: rgba(23,18,31,.95) !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
.tabbar a.on .tb-ic { background: var(--brand); color: #0E0B14; box-shadow: none !important; }
.toast { border-color: var(--line); }
.toast .grow span { color: var(--brand); font-family: 'JetBrains Mono', monospace; letter-spacing: .1em; font-size: 11px; }
.toast-ic { background: transparent; border: 1px solid var(--line); }
.pill-new { background: transparent; border: 1px solid var(--brand); color: var(--brand); }
.les.done .les-ic, .cn-ep.done .cn-dot { background: var(--brand); border-color: var(--brand); color: #0E0B14; }
.les.cur .les-ic { background: transparent; border: 1px solid var(--brand); color: var(--brand); }
.app .mod-n { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.chk { border-color: var(--line2); }
.checks input:checked + .chk { background: var(--brand); border-color: var(--brand); color: #0E0B14; }
.mark { filter: none !important; }
.wtop { background: rgba(14,11,20,.86) !important; }
.wsearch { background: transparent; border: 1px solid var(--line); }
.auth-card { background: var(--surface); border: 1px solid var(--line); box-shadow: none !important; }
.flash { background: transparent; border: 1px solid var(--line); color: var(--ink); font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.flash::before { content: '● '; color: var(--brand); }
.err { background: transparent; border: 1px solid rgba(251,146,60,.35); }
input, select, textarea { background: var(--bg); border-color: var(--line); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(155,92,255,.15); }
.cover { background: radial-gradient(120% 90% at 100% 0%, rgba(91,42,158,.5), transparent 60%), var(--surface2) !important; }
.cover-art::before { display: none; }
.cover-word { font-family: 'Inter Tight', sans-serif; font-weight: 800; letter-spacing: -.05em; }
.cover-emoji { background: transparent; border: 1px solid var(--line); }
.cert-name-big { font-family: 'Inter Tight', sans-serif; font-weight: 800; letter-spacing: -.05em; }
.cert-course { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.stat-cell b, .pstat b, .ar-n, .goal-pct, .row-amt, .vc-num, .stat, .chart-total b, .cd b { font-family: 'Inter Tight', sans-serif; font-weight: 800; letter-spacing: -.045em; }
.foot-in { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ch-ic, .tile.prod, .row-av.tint, .app-avatar.tint, .cover-emoji, .rank, .streak, .badge, .ach-ic, .toast-ic { filter: grayscale(1) brightness(1.15) !important; }
.ach.on .ach-ic { filter: none !important; }

/* ===== Interacción nativa: toasts flotantes, botones en curso, sin saltos ===== */
.toast.mini { padding: 10px 14px 10px 10px; }
.toast.mini .toast-ic { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; filter: none !important; color: var(--brand); }
.toasts { pointer-events: none; } .toast { pointer-events: auto; animation: toastIn .28s var(--ease, ease) both; transition: opacity .3s, transform .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
form.busy button { opacity: .55; pointer-events: none; }
button:active:not(:disabled), .btn:active { transform: scale(.97); }
.vc-num.bump { animation: vcBump .35s var(--ease, ease); }
@keyframes vcBump { 40% { transform: scale(1.06); color: var(--brand); } }
html { overflow-anchor: auto; -webkit-tap-highlight-color: transparent; }
.prof-head { position: relative; }
.prof-cfg { position: absolute; top: 0; right: 0; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; }
.res-item[hidden], [data-catblock][hidden] { display: none !important; }
[id] { scroll-margin-top: 84px; }
@media (max-width: 760px) {
  input, select, textarea { font-size: 16px; }
  .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .toast:nth-child(n+3) { display: none; }
}

/* ---------- Packs con galería (Descargables → captions + fonts) ---------- */
.pack-hero { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 22px 24px; margin-bottom: 20px; border-radius: var(--r); background: radial-gradient(120% 140% at 0% 0%, var(--brand-soft), transparent 60%), var(--surface); border: 1px solid var(--line2); }
.pack-hero-main { flex: 1 1 320px; color: inherit; text-decoration: none; }
.pack-hero h2 { margin: 10px 0 4px; font-size: 22px; }
.pack-hero p { margin: 0; max-width: 560px; }
.pack-hero-act, .pack-top-act { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-block; font: 500 11px 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); }
.pack-top { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.pack-top h1 { margin: 0 0 6px; }
.pack-top p { margin: 0; }
.pack-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 22px; }
.pack-bar .tabs { margin: 0; }
.pack .chips { margin: 14px 0 18px; }
.pack .chips button { font: 500 12px 'Inter Tight', sans-serif; padding: 5px 11px; border-radius: 99px; background: var(--surface2); color: var(--muted); border: 1px solid var(--line); cursor: pointer; }
.pack .chips button:hover { color: var(--ink); }
.pack .chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pack-grid > .empty { grid-column: 1 / -1; }
.pk-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pk-card[hidden] { display: none; }
.pk-card:hover { border-color: var(--line2); }
.pk-reel { container-type: inline-size; position: relative; aspect-ratio: 9 / 16; width: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 14px 10% 30%; overflow: hidden; border: 0; cursor: pointer; }
.pk-reel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(34% 20% at 50% 30%, rgba(255,255,255,.2), transparent 70%), radial-gradient(60% 30% at 50% 62%, rgba(255,255,255,.1), transparent 70%), linear-gradient(transparent 70%, rgba(0,0,0,.25)); }
.pk-cap { position: relative; text-align: center; line-height: 1.12; max-width: 100%; min-height: 3.6em; align-content: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .08em .26em; }
.pk-cap .w { display: inline-block; paint-order: stroke fill; white-space: nowrap; }
.pk-meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pk-meta b { font-size: 14px; }
.pk-meta b i { font-style: normal; color: var(--muted); font-weight: 500; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.pk-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.pk-sample { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 150px; border: 0; cursor: pointer; background: var(--surface2); color: var(--ink); }
.pk-sample span { font-size: 56px; line-height: 1; }
.pk-sample small { font-size: 18px; opacity: .85; }
.pack-modal { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line2); border-radius: var(--r); background: var(--surface); color: var(--ink); }
.pack-modal::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.pack-modal-body { padding: 24px; }
.pack-x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: var(--surface2); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.pk-big { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 24px; align-items: start; }
.pk-big .pk-reel { border-radius: 14px; cursor: default; }
.pk-detail h2 { margin: 10px 0 4px; }
.pk-spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 16px 0; font: 13px/1.5 'JetBrains Mono', monospace; }
.pk-spec dt { color: var(--muted); }
.pk-spec dd { margin: 0; }
.pk-spec .sw, .pk-meta .sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; border: 1px solid var(--line2); }
.pk-specimen { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; padding: 20px; border-radius: 12px; background: var(--surface2); overflow-wrap: anywhere; }
.pk-cap .caret::after { content: "▍"; animation: pk-flicker .8s infinite; margin-left: 2px; }
.pk-cap .a-pop { animation: pk-pop .28s cubic-bezier(.2,1.4,.4,1); }
.pk-cap .a-bounce { animation: pk-bounce .34s cubic-bezier(.2,1.5,.4,1); }
.pk-cap .a-shake { animation: pk-shake .25s linear; }
.pk-cap .a-flicker { animation: pk-flicker .5s linear; }
.pk-cap .a-fade { animation: pk-fade .3s ease-out; }
.pk-cap .a-slide { animation: pk-slide .25s ease-out; }
.pk-cap .a-step { animation: pk-pop .3s steps(3); }
@keyframes pk-pop { 0% { transform: scale(.6) } 60% { transform: scale(1.18) } 100% { transform: scale(1) } }
@keyframes pk-bounce { 0% { transform: translateY(18px) scale(.9) } 50% { transform: translateY(-8px) scale(1.08) } 100% { transform: none } }
@keyframes pk-shake { 0%, 100% { transform: none } 20% { transform: translate(-3px,1px) } 40% { transform: translate(3px,-1px) } 60% { transform: translate(-2px,0) } 80% { transform: translate(2px,1px) } }
@keyframes pk-flicker { 0%, 18%, 22%, 60%, 64% { opacity: 1 } 20%, 62% { opacity: .35 } }
@keyframes pk-fade { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
@keyframes pk-slide { from { opacity: 0; transform: translateX(-30px) skewX(-12deg) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .pk-cap .w { animation: none !important; } }
@media (max-width: 640px) {
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pk-big { grid-template-columns: 1fr; }
  .pk-big .pk-reel { max-width: 260px; margin: 0 auto; }
  .pack-modal-body { padding: 18px 16px; }
  .pk-specimen div:first-child { font-size: 40px !important; }
  .pack-bar .search { max-width: none; width: 100%; }
}

/* ---------- Pack de música: lista + reproductor ---------- */
.pack-bar .chips { margin: 0; }
.pack-top-act [hidden] { display: none; }
.tracks { list-style: none; margin: 18px 0 0; padding: 0 0 110px; display: flex; flex-direction: column; gap: 6px; }
.tr { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.tr[hidden] { display: none; }
.tr:hover { border-color: var(--line2); }
.tr.on { border-color: var(--brand); background: linear-gradient(90deg, var(--brand-soft), transparent 60%), var(--surface); }
.tr-play, .pl-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; font-size: 13px; background: var(--surface2); color: var(--ink); }
.tr-play:hover, .tr.on .tr-play, .pl-main { background: var(--brand); color: #fff; }
.tr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tr-main b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 5px; display: none; }
.tr.on .tr-bar { display: block; }
.tr-bar span { display: block; height: 100%; width: 0; background: var(--brand); }
.apl { position: fixed; z-index: 45; left: 50%; transform: translateX(-50%); bottom: 16px; width: min(760px, calc(100vw - 32px)); display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line2); box-shadow: 0 20px 50px -14px rgba(0,0,0,.6); }
.apl[hidden] { display: none; }
@media (min-width: 761px) { .apl { left: calc(50% + 40px); width: min(760px, calc(100vw - 140px)); } }
.pl-btn { width: 36px; height: 36px; font-size: 12px; }
.pl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; margin-left: 4px; }
.pl-info b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-seek { display: flex; align-items: center; gap: 8px; font: 11px 'JetBrains Mono', monospace; color: var(--muted); }
.pl-seek input { flex: 1; min-width: 0; accent-color: var(--brand); }
@media (max-width: 760px) {
  .tr { gap: 10px; padding: 9px 10px; }
  .tr .btn { padding: 7px 10px; font-size: 0; }
  .tr .btn::after { content: "↓"; font-size: 14px; }
  .apl { bottom: calc(84px + env(safe-area-inset-bottom)); gap: 6px; padding: 8px 10px; }
  .apl [data-prev] { display: none; }
  .tracks { padding-bottom: 190px; }
}

/* Accesos directos a packs en el inicio del curso */
.pack-links { display: flex; flex-direction: column; gap: 8px; }
.pack-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: radial-gradient(120% 160% at 0% 0%, var(--brand-soft), transparent 55%), var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .15s, transform .2s; }
.pack-link:hover { border-color: var(--brand); transform: translateY(-1px); }
.pack-link .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pack-link b { font-size: 15px; }
.pack-link-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.pack-link-go { flex: none; font: 500 12px 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .06em; padding: 8px 14px; border-radius: 99px; background: var(--brand); color: #fff; }

/* Fondo vivo del login (auth-bg.js) */
.auth { position: relative; isolation: isolate; overflow: hidden; }
.auth-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.auth::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(8,6,12,.75)); }
.auth-card { background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }


/* ═════════════════ UNICORN LAYER · looksmax visual (solo estética) ═════════════════
   Misma marca (Inter Tight + Instrument Serif + JetBrains Mono, morado #9B5CFF);
   más profundidad, luz y precisión: superficies con brillo superior, hairlines, cristal,
   movimiento suave y estados de foco/hover cuidados. */
:root, :root[data-theme="dark"], :root[data-theme="light"] {
  --bg: #09070E; --surface: #120E19; --surface2: #191422; --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.13);
  --ink: #F5F2EE; --ink2: #D6D0DD; --muted: #8E879A; --dim: #5B5467;
  --brand: #9B5CFF; --pa: #9B5CFF; --brand-soft: rgba(155,92,255,.12); --brand-2: #C9A6FF;
  --r: 22px; --rs: 10px; --ease: cubic-bezier(.22,.8,.24,1);
  --hi: inset 0 1px 0 rgba(255,255,255,.055);
  --lift: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 48px -28px rgba(0,0,0,.9);
  --glass: rgba(16,12,23,.62);
}
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { font-feature-settings: 'ss01', 'cv11', 'calt'; }
::selection { background: rgba(155,92,255,.38); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255,255,255,.22); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 10px; }

/* Luz ambiental fija: dos auroras muy tenues + grano más fino */
body::before { content: ''; position: fixed; inset: -20vh -10vw auto; height: 90vh; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 55% at 72% 0%, rgba(155,92,255,.16), transparent 70%), radial-gradient(30% 40% at 12% 8%, rgba(91,42,158,.14), transparent 70%); }
body::after { opacity: .022 !important; }

/* Tipografía: más contraste de jerarquía */
h1 { letter-spacing: -.05em; }
h1, .hello-name, .display { background: linear-gradient(180deg, #fff 30%, #CFC6DD); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted, .small.muted { color: var(--muted); }

/* Barra superior y lateral: cristal con hairline */
.wtop, .topbar { background: rgba(9,7,14,.62) !important; backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px); border-bottom: 1px solid var(--line) !important; }
.wside { background: linear-gradient(180deg, rgba(255,255,255,.015), transparent 30%); border-right: 1px solid var(--line) !important; }
.wsearch { background: rgba(255,255,255,.03) !important; border: 1px solid var(--line) !important; border-radius: 14px !important; box-shadow: var(--hi); transition: border-color .2s var(--ease), background .2s var(--ease); }
.wsearch:hover, .wsearch:focus-within { border-color: var(--line2) !important; background: rgba(255,255,255,.05) !important; }
.wsearch kbd { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 6px; }
.tile, .icon-btn, .top-ic, .avatar { transition: transform .25s var(--ease), border-color .2s, background .2s; }
.tile { background: rgba(255,255,255,.025) !important; border: 1px solid var(--line) !important; box-shadow: var(--hi) !important; }
.tile:hover { transform: translateY(-1px); border-color: var(--line2) !important; }
.tile.on, .rail-i.on { border-color: rgba(155,92,255,.7) !important; background: linear-gradient(160deg, rgba(155,92,255,.22), rgba(155,92,255,.04)) !important; box-shadow: 0 0 0 4px rgba(155,92,255,.08), var(--hi) !important; }
.snav { border-radius: 12px; transition: background .2s var(--ease), color .2s; }
.snav:hover { background: rgba(255,255,255,.035); }
.snav.on { background: linear-gradient(90deg, rgba(155,92,255,.16), rgba(155,92,255,.02)) !important; box-shadow: inset 2px 0 0 var(--brand) !important; color: var(--ink); }
.lvl-chip { background: rgba(255,255,255,.03) !important; border: 1px solid var(--line) !important; box-shadow: var(--hi) !important; }
.avatar { background: linear-gradient(160deg, #2a2236, #17121F) !important; border: 1px solid var(--line2) !important; }

/* Superficies: brillo superior, hairline, elevación al pasar */
.card, .blk, .list, .goal, .app .syllabus, .pstat, .ach, .pod, .pk-card, .tr, .pack-link, .pack-hero, .stat-cell, .ch, .level-card {
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0) 42%), var(--surface) !important;
  border: 1px solid var(--line) !important; box-shadow: var(--hi) !important;
  transition: border-color .25s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.blk:hover, .goal:hover, .pk-card:hover, .tr:hover, .pack-link:hover, .hoverable:hover, .ach.on {
  border-color: var(--line2) !important; box-shadow: var(--lift) !important; }
.goal:hover, .pk-card:hover, .pack-link:hover, .hoverable:hover { transform: translateY(-2px); }
.hero-card { border-radius: calc(var(--r) + 4px) !important; border: 1px solid rgba(155,92,255,.22) !important;
  background: radial-gradient(70% 90% at 100% 0%, rgba(155,92,255,.32), transparent 62%), radial-gradient(60% 70% at 0% 100%, rgba(91,42,158,.22), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.04), transparent 40%), #120D1B !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 40px 80px -48px rgba(155,92,255,.55) !important; }
.pack-hero { border-color: rgba(155,92,255,.2) !important; background: radial-gradient(60% 120% at 0% 0%, rgba(155,92,255,.16), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.03), transparent 45%), var(--surface) !important; }
.tr.on { border-color: rgba(155,92,255,.55) !important; background: linear-gradient(90deg, rgba(155,92,255,.14), transparent 65%), var(--surface) !important; }
.blk-ic, .goal-ic, .pstat-ic, .type-ic, .ch-ic, .row-av, .pack-link-ic, .toast-ic {
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01)) !important; border: 1px solid var(--line) !important; box-shadow: var(--hi); }
.pack-link-ic { color: var(--brand-2) !important; }
.syllabus .mod, .app .syllabus > * + * { border-color: var(--line) !important; }

/* Botones: luz interior, brillo al pasar, presión táctil */
.btn { position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #AE7BFF, #9B5CFF 55%, #8A48F5) !important; border: 1px solid rgba(255,255,255,.14) !important; color: #120A20 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px -10px rgba(155,92,255,.8) !important;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), filter .2s !important; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 14px 34px -10px rgba(155,92,255,1) !important; }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ghost, .btn-dark { background: rgba(255,255,255,.035) !important; color: var(--ink) !important; border: 1px solid var(--line2) !important; box-shadow: var(--hi) !important; }
.btn-ghost::after, .btn-dark::after { background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%); }
.btn-ghost:hover, .btn-dark:hover { background: rgba(255,255,255,.07) !important; border-color: rgba(255,255,255,.22) !important; box-shadow: var(--hi) !important; }
.qa-ic, .continue-play, .cn-play, .tr-play, .pl-btn { transition: transform .25s var(--ease), background .2s, box-shadow .3s; }
.qa:hover .qa-ic, .tr-play:hover, .pl-btn:hover { transform: scale(1.06); }
.qa-ic { background: rgba(255,255,255,.03) !important; border: 1px solid var(--line2) !important; box-shadow: var(--hi); }
.qa:first-child .qa-ic, .tr.on .tr-play, .pl-main, .cn-continue, .tabbar a.on .tb-ic {
  background: linear-gradient(180deg, #AE7BFF, #8A48F5) !important; color: #120A20 !important; border-color: transparent !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 30px -8px rgba(155,92,255,.85) !important; }

/* Pestañas, chips y segmentos */
.tabs, .auth-seg { background: rgba(255,255,255,.03) !important; border: 1px solid var(--line) !important; border-radius: 14px !important; box-shadow: var(--hi); padding: 4px !important; }
.tabs .on, .auth-seg a.on { background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04)) !important; color: var(--ink) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 16px -8px rgba(0,0,0,.8) !important; border-radius: 10px !important; }
.pack .chips button, .seg-mini { background: rgba(255,255,255,.03) !important; border: 1px solid var(--line) !important; transition: all .2s var(--ease); }
.pack .chips button:hover { border-color: var(--line2) !important; color: var(--ink); }
.pack .chips button.on, .seg-mini .on { background: linear-gradient(180deg, #AE7BFF, #8A48F5) !important; color: #120A20 !important; border-color: transparent !important; box-shadow: 0 6px 18px -8px rgba(155,92,255,.9); }
.pill { background: rgba(155,92,255,.1) !important; border: 1px solid rgba(155,92,255,.28); color: var(--brand-2) !important; }

/* Campos: hundidos, anillo de foco suave */
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
  background: rgba(0,0,0,.28) !important; border: 1px solid var(--line) !important; border-radius: 12px !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.5) !important; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):hover, select:hover, textarea:hover { border-color: var(--line2) !important; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus, select:focus, textarea:focus {
  border-color: rgba(155,92,255,.8) !important; background: rgba(0,0,0,.36) !important; box-shadow: inset 0 1px 2px rgba(0,0,0,.5), 0 0 0 4px rgba(155,92,255,.16) !important; outline: none; }
input[type=range] { accent-color: var(--brand); }

/* Barras de progreso con brillo */
.xp-bar span, .bar span, .cn-bar span, .ch-bar span, .hbar span, .cc-bar, .tr-bar span { background: linear-gradient(90deg, #7B3FE4, #9B5CFF 60%, #C9A6FF) !important; box-shadow: 0 0 14px rgba(155,92,255,.55) !important; }
.goal .bar span { background: linear-gradient(90deg, #CFC6DD, #fff) !important; box-shadow: none !important; }

/* Flotantes: menús, toasts, barra inferior, reproductor y modales en cristal */
.menu-pop, .bell-pop, .toast, .apl, .tabbar, :root[data-theme="dark"] .tabbar, .pack-modal {
  background: var(--glass) !important; backdrop-filter: saturate(1.6) blur(24px); -webkit-backdrop-filter: saturate(1.6) blur(24px);
  border: 1px solid var(--line2) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 30px 60px -20px rgba(0,0,0,.85) !important; }
.pack-modal { background: rgba(14,10,20,.9) !important; border-radius: 26px !important; }
.pack-modal[open] { animation: ul-pop .35s var(--ease); }
.pack-modal::backdrop { background: rgba(5,3,9,.7) !important; backdrop-filter: blur(8px); }
.toast { border-radius: 18px !important; animation: ul-pop .4s var(--ease); }
.pk-reel, .pk-sample { border-radius: 0; }
.pk-big .pk-reel { border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.06); }

/* Login: tarjeta de cristal con borde luminoso */
.auth-card { background: rgba(18,14,25,.62) !important; border: 1px solid rgba(255,255,255,.09) !important; border-radius: 28px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 50px 100px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(155,92,255,.06) !important; }

/* Entrada suave del contenido */
@keyframes ul-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ul-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.wmain > *, .auth > .card, .auth > .logo, .auth > a:first-of-type { animation: ul-rise .6s var(--ease) both; }
.app-grid > .col:nth-child(2) { animation: ul-rise .7s .08s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .btn::after { display: none; }
}
.wsearch input:not([type=checkbox]):not([type=radio]):not([type=range]), .wsearch input:not([type=checkbox]):not([type=radio]):not([type=range]):hover, .wsearch input:not([type=checkbox]):not([type=radio]):not([type=range]):focus { background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.wsearch:focus-within { box-shadow: var(--hi), 0 0 0 4px rgba(155,92,255,.14) !important; border-color: rgba(155,92,255,.6) !important; }
.mark-img { display: block; flex: none; border-radius: 24%; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 6px 18px -6px rgba(110,80,255,.6); }
/* Logo Content Maxxing (marca sin fondo) y su uso como ícono del curso */
.mark-logo { display: block; flex: none; margin: -4px -2px; filter: drop-shadow(0 0 12px rgba(120,90,255,.45)); }
.pmark { width: 72%; height: 72%; object-fit: contain; display: block; filter: drop-shadow(0 0 8px rgba(120,90,255,.5)); }
.tile.prod:has(.pmark), .row-av:has(.pmark), .app-avatar:has(.pmark), .cover-emoji:has(.pmark) { filter: none !important; display: grid; place-items: center; }
.cover-emoji .pmark { width: 80%; height: 80%; }
/* Wordmark "contentmaxxing": minúsculas, degradado blanco → lavanda con brillo (como el logo) */
.wordmark { font-family: Archivo, 'Inter Tight', sans-serif !important; font-stretch: 100%; font-weight: 800; text-transform: none !important; letter-spacing: -.035em !important; font-size: 23px;
  background: linear-gradient(180deg, #FFFFFF 8%, #E6E0FF 48%, #A595FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 1.5px rgba(220,210,255,.55)) drop-shadow(0 0 12px rgba(130,100,255,.6)); line-height: 1.1; padding-bottom: .08em; }
.logo-lg .wordmark { font-size: 36px; }
.cert-logo .wordmark { background: none; color: #151515; -webkit-text-fill-color: #151515; filter: none; }
/* Admin → Correos: estados */
.tag.bad { background: rgba(248,113,113,.12) !important; color: #f87171 !important; border-color: rgba(248,113,113,.35) !important; }
.tag.warn { background: rgba(251,191,36,.12) !important; color: #fbbf24 !important; border-color: rgba(251,191,36,.35) !important; }

/* ---------- Packs de video: light leaks y referencias ---------- */
.vp-colors { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -6px 0 18px; }
.vp-colors[hidden] { display: none; }
.vp-all { font: 500 12px 'Inter Tight', sans-serif; padding: 5px 11px; border-radius: 99px; background: var(--surface2); color: var(--muted); border: 1px solid var(--line); cursor: pointer; }
.vp-all.on { color: var(--ink); border-color: var(--line2); }
.vp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
.vp-grid > .empty { grid-column: 1 / -1; }
.vp-empty[hidden] { display: none; }
.vp-card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease); }
.vp-card[hidden] { display: none; }
.vp-card:hover { border-color: var(--line2); transform: translateY(-2px); }
.vp-thumb { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.vp-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vp-dur { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 6px; font: 600 10px 'JetBrains Mono', monospace; color: #fff; background: rgba(0,0,0,.6); }
.vp-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.vp-thumb:hover .vp-play { opacity: 1; }
.vp-meta { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.vp-meta b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-meta .btn { margin-top: auto; align-self: flex-start; }
.vp-dots { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 6px; }
.vp-dot { width: 16px; height: 16px; border-radius: 50%; padding: 0; cursor: pointer; background: var(--c); border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(255,255,255,.18); transition: transform .15s; }
.vp-dot:hover { transform: scale(1.15); }
.vp-dot.on { border-color: var(--bg); box-shadow: 0 0 0 2px var(--ink); }
.vp-dots.big .vp-dot { width: 24px; height: 24px; }
.vp-colors .vp-dot { width: 20px; height: 20px; }
.vp-big { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 24px; align-items: start; }
.vp-stage { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.vp-stage video { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-stage.ref video { object-fit: contain; }
.vp-scene { position: absolute; inset: 0; display: none; background: radial-gradient(120% 80% at 50% 15%, #3a2a55, #0d0a12 70%); }
.vp-scene i { position: absolute; left: 50%; bottom: 0; width: 120%; height: 58%; transform: translateX(-50%); }
.vp-scene i::before { content: ''; position: absolute; left: 50%; top: 0; width: 36%; aspect-ratio: .82; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(70% 70% at 50% 35%, #3a2f52, #15111d); }
.vp-scene i::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 82%; height: 60%; transform: translateX(-50%); border-radius: 50% 50% 0 0; background: linear-gradient(180deg, #2a2240, #120e19); }
.vp-stage.scene .vp-scene { display: block; }
.vp-stage.scene video { mix-blend-mode: screen; }
.seg-toggle { display: inline-flex; gap: 2px; padding: 3px; margin: 12px 0 14px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); }
.seg-toggle button { font: 500 12.5px 'Inter Tight', sans-serif; padding: 6px 12px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.seg-toggle button.on { background: var(--surface); color: var(--ink); }
@media (max-width: 640px) {
  .vp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vp-big { grid-template-columns: 1fr; }
  .vp-stage { max-width: 280px; margin: 0 auto; width: 100%; }
}

/* ---------- Favoritos (estrella) y "Descargado" en los packs ---------- */
:root { --star: #f5c451; }
.pack-bar-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fav-filter { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 500 13px 'Inter Tight', sans-serif; cursor: pointer; white-space: nowrap; transition: border-color .2s, color .2s, background .2s; }
.fav-filter:hover { border-color: var(--line2); color: var(--ink); }
.fav-filter > span:first-child { color: var(--star); font-size: 14px; }
.fav-filter.on { color: var(--ink); border-color: var(--star); background: color-mix(in srgb, var(--star) 14%, var(--surface)); }
.fav-star { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: transform .25s var(--ease), color .2s, background .2s, border-color .2s; }
.fav-star svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill .2s; }
.fav-star:hover { color: var(--star); border-color: color-mix(in srgb, var(--star) 50%, var(--line)); }
.fav-star.on { color: var(--star); border-color: color-mix(in srgb, var(--star) 55%, transparent); }
.fav-star.on svg { fill: currentColor; }
.fav-star.pop { animation: fav-pop .45s var(--ease); }
@keyframes fav-pop { 0% { transform: scale(1); } 35% { transform: scale(1.35) rotate(-8deg); } 100% { transform: scale(1); } }
.fav-star:focus-visible, .fav-filter:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* sobre el preview de las tarjetas */
.vp-card, .pk-card { position: relative; }
.fav-star.ovl { position: absolute; top: 8px; right: 8px; z-index: 2; border: 0; background: rgba(0,0,0,.45); color: rgba(255,255,255,.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fav-star.ovl:hover { background: rgba(0,0,0,.65); color: var(--star); }
.fav-star.ovl.on { color: var(--star); background: rgba(0,0,0,.55); }
.fav-star.big { width: 40px; height: 40px; }
.fav-star.big svg { width: 20px; height: 20px; }
.fav-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fav-head h2 { margin: 0; }
.tr .fav-star { width: 36px; height: 36px; }
/* "Descargado" */
.got-tag { display: none; font: 600 10px 'JetBrains Mono', monospace; letter-spacing: .02em; color: #3ddc84; }
.got .got-tag { display: inline-block; }
.vp-card > .got-tag, .pk-card > .got-tag { position: absolute; top: 12px; left: 8px; z-index: 2; padding: 4px 7px; border-radius: 6px; background: rgba(0,0,0,.6); }
.tr .got-tag { margin-left: 6px; vertical-align: 1px; }
/* "Tus favoritos" en Descargables */
.fav-box { margin-bottom: 20px; }
.fav-box-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fav-box-h h2 { font-size: 20px; margin: 0; }
.fav-box-h h2 span { color: var(--star); }
.fav-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.fav-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); color: inherit; text-decoration: none; transition: border-color .2s, transform .25s var(--ease); min-width: 0; }
.fav-item b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-item:hover { border-color: color-mix(in srgb, var(--star) 50%, var(--line)); transform: translateY(-1px); }
@media (max-width: 640px) {
  .pack-bar-r { width: 100%; }
  .pack-bar-r .search { flex: 1; min-width: 0; max-width: none; }
}

/* ---------- Teléfono: vista en grande como hoja desde abajo, con el botón de descarga siempre a la vista ---------- */
@media (max-width: 640px) {
  .pack-modal { width: 100vw; max-width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 26px 26px 0 0 !important; border-bottom: 0; overflow-y: auto; overscroll-behavior: contain; }
  .pack-modal[open] { animation: sheet-up .38s var(--ease); }
  .pack-modal-body { padding: 16px 16px 0; }
  .vp-stage, .pk-big .pk-reel { height: min(46dvh, 420px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; margin: 0 auto; }
  .vp-stage.ref { width: 100%; height: min(52dvh, 460px); aspect-ratio: auto; }
  .vp-big, .pk-big { gap: 14px; }
  .vp-detail .pk-act, .pk-detail .pk-act, .pk-fontview > .pk-act {
    position: sticky; bottom: 0; z-index: 3; margin: 12px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(transparent, rgba(14,10,20,.96) 28%);
  }
  .vp-detail .pk-act .btn, .pk-detail .pk-act .btn, .pk-fontview > .pk-act .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .pack-x { position: sticky; top: 0; float: right; margin: 10px 10px -44px 0; }
  /* filtros en una fila que se desliza, como app */
  [data-pack-chips] { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 32px); margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  [data-pack-chips]::-webkit-scrollbar { display: none; }
  [data-pack-chips] > * { flex: none; }
  .vp-colors { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .vp-colors::-webkit-scrollbar { display: none; }
  .vp-colors > * { flex: none; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.dl-busy { opacity: .75; pointer-events: none; }

/* ---------- Navegación tipo app: transición suave entre páginas (Chrome, Safari 18+) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
html { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }

/* ═════════════════ MODO CLARO ═════════════════
   Misma marca (morado, Inter Tight + Instrument Serif + JetBrains Mono) sobre papel claro.
   Se activa con el botón sol/luna de arriba (se guarda en el navegador). */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F4F9; --surface: #FFFFFF; --surface2: #F0ECF6; --line: rgba(24,14,44,.09); --line2: rgba(24,14,44,.16);
  --ink: #15111C; --ink2: #3A3346; --muted: #6B6478; --dim: #A39DB0; --on-ink: #FFFFFF;
  --brand: #8B4DF5; --pa: #8B4DF5; --brand-soft: rgba(139,77,245,.10); --brand-2: #6D2FE0;
  --hero: #FFFFFF; --hero-ink: #15111C;
  --hi: inset 0 1px 0 rgba(255,255,255,.9);
  --lift: 0 1px 2px rgba(24,14,44,.05), 0 18px 40px -26px rgba(24,14,44,.28);
  --glass: rgba(255,255,255,.72);
  --star: #E0A400;
  --overlay: rgba(246,244,249,.85);
}
:root[data-theme="light"] body { background: var(--bg); color: var(--ink); }
:root[data-theme="light"] body::before { background: radial-gradient(42% 55% at 72% 0%, rgba(139,77,245,.10), transparent 70%), radial-gradient(30% 40% at 12% 8%, rgba(139,77,245,.06), transparent 70%); }
:root[data-theme="light"] body::after { opacity: 0 !important; }
:root[data-theme="light"] h1, :root[data-theme="light"] .hello-name, :root[data-theme="light"] .display { background: linear-gradient(180deg, #15111C 40%, #4A3F5C); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] ::selection { background: rgba(139,77,245,.25); color: var(--ink); }
:root[data-theme="light"] * { scrollbar-color: rgba(24,14,44,.18) transparent; }
:root[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(24,14,44,.16); }
/* barras */
:root[data-theme="light"] .wtop, :root[data-theme="light"] .topbar { background: rgba(246,244,249,.78) !important; }
:root[data-theme="light"] .wside { background: transparent; }
:root[data-theme="light"] .tabbar { background: rgba(255,255,255,.92) !important; border: 1px solid var(--line2) !important; box-shadow: 0 16px 40px -18px rgba(24,14,44,.3) !important; }
:root[data-theme="light"] .avatar { background: linear-gradient(160deg, #EFE8FA, #E2D8F3) !important; color: var(--ink); }
/* superficies que en oscuro usan blanco translúcido */
:root[data-theme="light"] .wsearch, :root[data-theme="light"] .tile, :root[data-theme="light"] .lvl-chip, :root[data-theme="light"] .qa-ic,
:root[data-theme="light"] .tabs, :root[data-theme="light"] .auth-seg, :root[data-theme="light"] .pack .chips button, :root[data-theme="light"] .seg-mini,
:root[data-theme="light"] .wsearch kbd { background: rgba(24,14,44,.035) !important; }
:root[data-theme="light"] .wsearch:hover, :root[data-theme="light"] .wsearch:focus-within { background: #fff !important; }
:root[data-theme="light"] .tabs .on, :root[data-theme="light"] .auth-seg a.on { background: #fff !important; box-shadow: 0 1px 3px rgba(24,14,44,.12) !important; }
:root[data-theme="light"] .pack .chips button.on { background: var(--brand) !important; color: #fff !important; }
:root[data-theme="light"] .card, :root[data-theme="light"] .blk, :root[data-theme="light"] .list, :root[data-theme="light"] .goal, :root[data-theme="light"] .pstat,
:root[data-theme="light"] .ach, :root[data-theme="light"] .pod, :root[data-theme="light"] .vt, :root[data-theme="light"] .vp-card, :root[data-theme="light"] .pk-card,
:root[data-theme="light"] .tr { box-shadow: 0 1px 2px rgba(24,14,44,.04) !important; }
:root[data-theme="light"] .pack-hero { background: radial-gradient(60% 120% at 0% 0%, rgba(139,77,245,.10), transparent 60%), var(--surface) !important; border-color: rgba(139,77,245,.22) !important; }
/* botones: texto blanco sobre morado */
:root[data-theme="light"] .btn, :root[data-theme="light"] .btn-whop, :root[data-theme="light"] .seg-mini .on, :root[data-theme="light"] .qa:first-child .qa-ic,
:root[data-theme="light"] .prof-lvl, :root[data-theme="light"] .cn-continue, :root[data-theme="light"] .tabbar a.on .tb-ic,
:root[data-theme="light"] .les.done .les-ic, :root[data-theme="light"] .cn-ep.done .cn-dot, :root[data-theme="light"] .checks input:checked + .chk { color: #fff; }
:root[data-theme="light"] .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line2); }
/* menús, avisos, modales */
:root[data-theme="light"] .menu-pop, :root[data-theme="light"] .bell-pop, :root[data-theme="light"] .toast, :root[data-theme="light"] .apl {
  background: rgba(255,255,255,.96) !important; border-color: var(--line2) !important; box-shadow: 0 24px 60px -24px rgba(24,14,44,.35) !important; color: var(--ink); }
:root[data-theme="light"] .pack-modal { background: rgba(255,255,255,.97) !important; border-color: var(--line2); }
:root[data-theme="light"] .pack-modal::backdrop { background: rgba(30,20,50,.35) !important; }
:root[data-theme="light"] .pack-x { background: #fff; }
:root[data-theme="light"] .auth-card { background: rgba(255,255,255,.82) !important; border-color: var(--line2) !important; }
@media (max-width: 640px) {
  :root[data-theme="light"] .vp-detail .pk-act, :root[data-theme="light"] .pk-detail .pk-act, :root[data-theme="light"] .pk-fontview > .pk-act { background: linear-gradient(transparent, rgba(255,255,255,.97) 28%); }
}
:root[data-theme="light"] .fav-star:not(.ovl) { background: #fff; }
:root[data-theme="light"] .got-tag { color: #1f9d55; }
:root[data-theme="light"] .vp-card > .got-tag, :root[data-theme="light"] .pk-card > .got-tag { color: #3ddc84; }
:root[data-theme="light"] .fav-item { background: var(--surface2); }
:root[data-theme="light"] .wordmark { background: linear-gradient(180deg, #1B1426 20%, #6D2FE0 110%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 6px 14px rgba(139,77,245,.25)); }
:root[data-theme="light"] .cert-logo .wordmark { background: none; filter: none; }
:root[data-theme="light"] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), :root[data-theme="light"] select, :root[data-theme="light"] textarea { background: #fff !important; color: var(--ink); border-color: var(--line2) !important; }
:root[data-theme="light"] input:focus, :root[data-theme="light"] select:focus, :root[data-theme="light"] textarea:focus { border-color: var(--brand) !important; }
:root[data-theme="light"] .wsearch input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]) { background: transparent !important; border: 0 !important; box-shadow: none !important; }
/* La tarjeta de avance/precio sigue oscura en modo claro: dentro usa los colores del modo oscuro */
:root[data-theme="light"] .hero-card { --ink: #F5F2EE; --ink2: #D6D0DD; --muted: #A49CB1; --dim: #6B6478; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.16); color: #F5F2EE; }
:root[data-theme="light"] .hero-card .big-num { background: linear-gradient(180deg, #fff 30%, #CFC6DD); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
:root[data-theme="light"] .hero-card .big-num span { -webkit-text-fill-color: rgba(255,255,255,.35); }
:root[data-theme="light"] .hero-card .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
:root[data-theme="light"] .hero-card .hc-top, :root[data-theme="light"] .hero-card .trend { color: #A49CB1; }
:root[data-theme="light"] .hero-card .seg-mini { background: rgba(255,255,255,.06) !important; }

/* ---------- Pantallas de acceso (entrar, crear cuenta, revisa tu correo): tipografía limpia ---------- */
.auth .tagline, .auth-card > p.muted, .auth-card p {
  font-family: 'Inter Tight', system-ui, sans-serif !important; font-style: normal !important; font-weight: 400;
  font-size: 16px !important; line-height: 1.6; letter-spacing: -.005em; color: var(--muted);
}
.auth .tagline { font-size: 15px !important; margin-top: 6px; }
.auth-card p strong, .auth-card p b { color: var(--ink); font-weight: 600; }
.auth-card h1 { font-size: 28px; letter-spacing: -.035em; line-height: 1.1; }
.auth-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--brand); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.auth-ic svg { width: 22px; height: 22px; }
:root[data-theme="light"] .auth .wordmark, :root[data-theme="light"] .logo-lg .wordmark { background: linear-gradient(180deg, #1B1426 20%, #6D2FE0 110%) !important; -webkit-background-clip: text !important; background-clip: text !important; filter: drop-shadow(0 6px 14px rgba(139,77,245,.25)) !important; }
/* "Ver contraseña" y "¿No sabes tu contraseña actual?" */
.pw-show { display: inline-flex; align-items: center; gap: 8px; margin-top: -2px; font: 500 13.5px 'Inter Tight', sans-serif; color: var(--muted); cursor: pointer; user-select: none; width: fit-content; }
.pw-show input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.pw-show:hover { color: var(--ink); }
.pw-forgot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding: 0 4px; }
.pw-forgot .link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--brand-2, var(--brand)); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Skills para Claude ---------- */
.sk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sk-head h2 { margin: 8px 0 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.035em; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sk-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease); }
.sk-card:hover { border-color: var(--line2); transform: translateY(-2px); }
.sk-top { display: flex; align-items: center; justify-content: space-between; }
.sk-n { font: 600 12px 'JetBrains Mono', monospace; color: var(--brand); }
.sk-card h3 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.02em; }
.sk-card code { font: 500 11.5px 'JetBrains Mono', monospace; color: var(--muted); }
.sk-card p { margin: 0; flex: 1; }
.sk-card .btn { align-self: flex-start; margin-top: 6px; }
.sk-how { margin-top: 12px; }
.sk-how summary { cursor: pointer; font-weight: 600; }
.sk-how ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink2); line-height: 1.55; }
.sk-how code { font: 500 12.5px 'JetBrains Mono', monospace; background: var(--surface2); padding: 2px 6px; border-radius: 6px; }
.sk-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.sk-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.sk-item[hidden] { display: none; }
.sk-item:hover { border-color: var(--line2); }
.sk-num { font: 600 12px 'JetBrains Mono', monospace; color: var(--dim); text-align: right; }
.sk-main b { font-size: 15.5px; margin-right: 8px; }
.sk-main p { margin: 4px 0 6px; }
.sk-cat { font: 500 10px 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.sk-tag { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 99px; font: 600 10px 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; background: var(--surface2); color: var(--muted); vertical-align: 2px; }
.sk-tag.rec { background: var(--brand-soft); color: var(--brand); }
.sk-tag.warn { background: rgba(251,191,36,.12); color: #d99a00; }
.sk-act { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) {
  .sk-item { grid-template-columns: 28px 1fr; }
  .sk-act { grid-column: 1 / -1; justify-content: flex-start; }
}
/* Accesibilidad: enlace para saltar al contenido (aparece al navegar con teclado) */
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- Selector de la barra lateral: Mi academia + Tus cursos (con nombre) ---------- */
.sw { display: flex; flex-direction: column; gap: 4px; padding: 0 2px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.sw-h { font: 500 10.5px 'JetBrains Mono', monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 4px; }
.sw-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; color: var(--ink); text-decoration: none; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.sw-row:hover { background: var(--surface2); }
.sw-row.on { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.sw-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--line); font-size: 20px; }
.sw-ic.prod { background: color-mix(in srgb, var(--pa, var(--brand)) 16%, var(--surface2)); }
.sw-ic .pmark { width: 78%; height: 78%; }
.sw-row.home .sw-ic { color: var(--brand); }
.sw-row.on .sw-ic { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.sw-l { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sw-l b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-l small { font-size: 12px; color: var(--muted); }
.sw-row.on .sw-l small { color: var(--brand-2, var(--brand)); }
.sw-row.add .sw-ic { color: var(--muted); border-style: dashed; background: transparent; }
.sw-row.add .sw-l b { color: var(--muted); font-weight: 500; }
.sw-dot { position: absolute; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
/* Barra contraída (o pantallas medianas): solo íconos, centrados */
html.side-min .sw-l, html.side-min .sw-h, html.side-min .sw-dot { display: none; }
html.side-min .sw-row { justify-content: center; padding: 6px 0; }
@media (max-width: 1100px) { .sw-l, .sw-h, .sw-dot { display: none; } .sw-row { justify-content: center; padding: 6px 0; } }
.sw-ic.prod { filter: grayscale(1) brightness(1.15); } .sw-ic.prod:has(.pmark) { filter: none; }

/* ---------- Admin → Ventas ---------- */
.sv-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-top: 14px; }
.sv-big { font: 800 clamp(40px, 6vw, 60px)/1 'Inter Tight', sans-serif; letter-spacing: -.05em; margin: 6px 0 10px; }
.sv-big small { font: 500 14px 'JetBrains Mono', monospace; color: var(--muted); letter-spacing: .1em; }
.sv-mini { display: flex; gap: 22px; }
.sv-mini div { display: flex; flex-direction: column; }
.sv-mini b { font-size: 20px; letter-spacing: -.03em; }
.sv-mini span { font-size: 12px; color: var(--muted); }
.sv-chart-card { position: relative; }
.sv-ch-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.sv-chart { width: 100%; height: auto; display: block; }
.sv-grid { stroke: var(--line); stroke-width: 1; }
.sv-ax { fill: var(--muted); font: 500 10px 'JetBrains Mono', monospace; }
.sv-fill { fill: var(--brand); }
.sv-bar:hover .sv-fill { fill: var(--brand-2, var(--brand)); }
.sv-tip { position: absolute; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 600 12px 'Inter Tight', sans-serif; white-space: nowrap; z-index: 2; }
.sv-tip[hidden] { display: none; }
.sv-empty { padding: 50px 0; text-align: center; }
.sv-cols { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12px; align-items: start; }
.sv-prod { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.sv-prow { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.sv-pn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-pbar { height: 8px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.sv-pbar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.sv-pv { font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) { .sv-cols { grid-template-columns: 1fr; } }
.sv-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.sv-day { display: flex; align-items: center; gap: 6px; }
.sv-day input[type=date] { height: 38px; padding: 0 10px; border-radius: 10px; color-scheme: dark; }
:root[data-theme="light"] .sv-day input[type=date] { color-scheme: light; }
.sv-sp { width: 38px; }
a.sv-bar { cursor: pointer; }

/* ---------- Admin → Resumen: cómo usan los cursos ---------- */
.ins-table { display: flex; flex-direction: column; margin-top: 10px; }
.ins-row { display: grid; grid-template-columns: 1.4fr .7fr .9fr .9fr 1.3fr .9fr; gap: 10px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; font-size: 14px; }
a.ins-row:hover { background: var(--surface2); border-radius: 10px; }
.ins-head { font: 500 10.5px 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ins-prog { position: relative; height: 22px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.ins-prog i { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--brand) 55%, transparent); border-radius: 99px; }
.ins-prog em { position: relative; font-style: normal; font-size: 12px; font-weight: 600; padding-left: 10px; line-height: 22px; }
.fn { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.fn-row { display: grid; grid-template-columns: 26px minmax(140px, 1.2fr) 1.4fr minmax(200px, 1.3fr); gap: 12px; align-items: center; padding: 8px 6px; border-radius: 10px; font-size: 14px; }
.fn-row.drop { background: rgba(248,113,113,.07); }
.fn-n { font: 600 12px 'JetBrains Mono', monospace; color: var(--muted); text-align: right; }
.fn-t { display: flex; flex-direction: column; min-width: 0; }
.fn-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.fn-bar { position: relative; height: 10px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.fn-bar i, .fn-bar u { position: absolute; inset: 0 auto 0 0; border-radius: 99px; }
.fn-bar i { background: color-mix(in srgb, var(--brand) 35%, transparent); }
.fn-bar u { background: var(--brand); }
.fn-v { font-size: 12.5px; color: var(--muted); }
.fn-v em { font-style: normal; color: #f87171; font-weight: 600; }
.ins-favs { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ins-favs li span { display: block; }
@media (max-width: 900px) {
  .ins-row { grid-template-columns: 1.2fr .6fr .8fr .8fr; } .ins-row > :nth-child(5), .ins-row > :nth-child(6) { display: none; }
  .fn-row { grid-template-columns: 22px 1fr; } .fn-bar, .fn-v { grid-column: 2; }
}

/* ---------- Cuenta admin: centro de mando, ficha de alumno y barra del celular ---------- */
.hq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hq-head h1 { margin: 6px 0 4px; }
.hq-head p { margin: 0; }
.hq-kick { font: 500 11px 'JetBrains Mono', monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); }
.hq-find { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; min-width: min(340px, 100%); border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); color: var(--muted); }
.hq-find input { flex: 1; border: 0; background: transparent; padding: 0; height: 100%; color: var(--ink); outline: none; box-shadow: none; }
.hq-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.hq-money { display: flex; flex-direction: column; padding: 22px; color: inherit; text-decoration: none; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%), var(--surface); }
.hq-lbl { font: 500 11px 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hq-big { font: 700 clamp(40px, 6vw, 56px) 'Inter Tight', sans-serif; letter-spacing: -.05em; line-height: 1; margin: 10px 0 4px; }
.hq-sub { color: var(--muted); font-size: 14px; }
.hq-spark { width: 100%; height: 64px; margin: 18px 0 14px; display: block; }
.hq-spark rect { fill: color-mix(in srgb, var(--ink) 10%, transparent); }
.hq-spark rect.on { fill: var(--brand); }
.hq-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.hq-row3 span { display: flex; flex-direction: column; min-width: 0; }
.hq-row3 b { font-size: 18px; letter-spacing: -.02em; }
.hq-row3 small { color: var(--muted); font-size: 12px; }
.hq-row3 em { font-style: normal; font-weight: 600; margin-left: 4px; }
.hq-row3 em.up { color: #34d399; } .hq-row3 em.down { color: #f87171; }
.hq-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hq-tile { display: flex; flex-direction: column; gap: 2px; padding: 18px; color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; }
.hq-tile:hover, .hq-money:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.hq-tile .ic { color: var(--brand); margin-bottom: 8px; }
.hq-tile b { font: 700 30px 'Inter Tight', sans-serif; letter-spacing: -.04em; line-height: 1.05; }
.hq-tile span { font-size: 14px; font-weight: 500; }
.hq-tile small { color: var(--muted); font-size: 12px; }
.hq-tile.hot { border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.hq-alerts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.hq-al { display: block; padding: 11px 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); color: var(--ink); font-size: 14px; text-decoration: none; }
.hq-al.bad { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.35); }
.hq-actions { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 14px 0; }
.hq-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; text-align: center; transition: border-color .15s, background .15s; }
.hq-act .ic { color: var(--brand); }
.hq-act:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: var(--surface2); }
.hq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hq-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hq-sh a { text-decoration: none; }
.hq-list { display: flex; flex-direction: column; }
.hq-mail, .hq-sale, .hq-feed, .hq-rank a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; margin: 0 -8px; border-radius: 10px; color: inherit; text-decoration: none; }
a.hq-mail:hover, a.hq-sale:hover, a.hq-feed:hover, .hq-rank a:hover { background: var(--surface2); }
.hq-mt { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 14px; }
.hq-mt > b, .hq-mt > span, .hq-mt > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-mt > b { font-weight: 500; }
.hq-mt small { color: var(--muted); font-size: 12px; }
.hq-mail.new .hq-mt > b { font-weight: 700; }
.hq-mail.new .hq-av { box-shadow: 0 0 0 2px var(--brand); }
.hq-mail time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.hq-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 12px 'Inter Tight', sans-serif; background: color-mix(in srgb, var(--brand) 22%, var(--surface2)); color: var(--ink); }
.hq-av.xl { width: 64px; height: 64px; font-size: 22px; }
.hq-rank { list-style: none; margin: 0; padding: 0; }
.hq-pos { width: 24px; text-align: center; font: 600 13px 'JetBrains Mono', monospace; color: var(--muted); flex: none; }
.hq-xp { font: 600 13px 'JetBrains Mono', monospace; color: var(--brand); white-space: nowrap; }
.hq-amt { font-weight: 600; white-space: nowrap; color: #34d399; display: flex; flex-direction: column; align-items: flex-end; }
.hq-amt.off { color: var(--muted); text-decoration: line-through; }
.hq-amt small { font-size: 11px; text-decoration: none; color: #f87171; }
.hq-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.15); }
.hq-dot.dl { background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.hq-prof { display: flex; align-items: center; gap: 16px; margin: 14px 0 22px; flex-wrap: wrap; }
.hq-prof h1 { margin: 0; }
.hq-prof p { margin: 2px 0 0; }
.hq-prof-act { display: flex; gap: 8px; }
.hq-course { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hq-heat { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; }
.hq-heat i { aspect-ratio: 1; border-radius: 3px; background: color-mix(in srgb, var(--brand) calc(var(--a) * 100%), var(--surface2)); }
.hq .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hq .chip { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); }
.adm-bar { display: none; }
@media (max-width: 1000px) { .hq-grid, .hq-cols { grid-template-columns: 1fr; } .hq-actions { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .admin-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tabs a { white-space: nowrap; flex: none; }
  .hq-head { align-items: stretch; }
  .hq-find { min-width: 0; width: 100%; }
  .hq-tiles { gap: 10px; } .hq-tile { padding: 14px; } .hq-tile b { font-size: 26px; }
  .hq-actions { display: flex; overflow-x: auto; scrollbar-width: none; margin: 14px -16px; padding: 0 16px; }
  .hq-actions::-webkit-scrollbar { display: none; }
  .hq-act { flex: none; width: 96px; }
  .hq-row3 b { font-size: 15px; }
  .hq-prof-act { width: 100%; } .hq-prof-act > * { flex: 1; } .hq-prof-act .btn { width: 100%; justify-content: center; }
  .sec-head { flex-wrap: wrap; gap: 10px; }
  body:has(.adm-bar) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .adm-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg, #0E0B14) 96%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .adm-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 10px; color: var(--muted); font-size: 11px; font-weight: 500; text-decoration: none; }
  .adm-bar a.on { color: var(--ink); }
  .adm-bar a.on .ic { color: var(--brand); }
}
.hq-grid > *, .hq-cols > *, .hq-tiles > * { min-width: 0; }
.hq-grant { flex-wrap: wrap; align-items: center; }
.hq-grant select { flex: 1 1 200px; min-width: 0; }

/* ---------- Afiliados ---------- */
.aff-side { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; padding: 10px 12px; border-radius: 14px; color: var(--ink); text-decoration: none;
  background: linear-gradient(135deg, color-mix(in srgb, #34d399 16%, transparent), color-mix(in srgb, var(--brand) 16%, transparent)); border: 1px solid color-mix(in srgb, #34d399 30%, var(--line)); }
.aff-side:hover, .aff-side.on { border-color: #34d399; }
.aff-side-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, #34d399 20%, var(--surface2)); font-size: 18px; }
.aff-side .sw-l { display: flex; flex-direction: column; min-width: 0; }
.aff-side .sw-l b { font-size: 14px; } .aff-side .sw-l small { color: var(--muted); font-size: 12px; }
html.side-min .aff-side .sw-l { display: none; } html.side-min .aff-side { justify-content: center; padding: 8px; }
@media (max-width: 1100px) { .wside .aff-side .sw-l { display: none; } .wside .aff-side { justify-content: center; padding: 8px; } }
.aff-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; padding: 28px; overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, #34d399 18%, transparent), transparent 55%), radial-gradient(100% 100% at 100% 100%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%), var(--surface); }
.aff-hero h1 { margin: 8px 0 10px; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.04em; line-height: 1.02; }
.aff-hero h1 em { font-style: normal; color: #34d399; }
.aff-hero p { margin: 0; color: var(--muted); font-size: 16px; } .aff-hero p b { color: var(--ink); }
.aff-calc { padding: 18px; border-radius: 16px; background: color-mix(in srgb, var(--bg, #0c0c0c) 55%, transparent); border: 1px solid var(--line); }
.aff-calc-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.aff-calc-row input { flex: 1; accent-color: #34d399; }
.aff-calc-row b { font-size: 20px; min-width: 34px; text-align: right; }
.aff-calc-out { font-size: 15px; } .aff-calc-out b { font: 700 34px 'Inter Tight', sans-serif; letter-spacing: -.04em; color: #34d399; }
.aff-why { padding: 10px 12px; border-radius: 10px; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3); font-size: 14px; }
.aff-manual { margin-top: 14px; } .aff-manual summary { cursor: pointer; }
.aff-url { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.aff-url code { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); font: 500 15px 'JetBrains Mono', monospace; overflow-wrap: anywhere; color: #34d399; }
.aff-url .btn.copied::after, .aff-msg .btn.copied::after { content: ' ✓'; }
.aff-share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.aff-earn .stat { color: #34d399; }
.aff-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.aff-bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--surface2); }
.aff-bars i.on { background: #34d399; }
.aff-msgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.aff-msg { padding: 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.aff-msg p { font-size: 14px; color: var(--muted); flex: 1; overflow-wrap: anywhere; }
.aff-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.aff-steps .card { position: relative; display: flex; flex-direction: column; gap: 6px; }
.aff-steps .ic { color: #34d399; }
.aff-steps p { margin: 0; }
.aff-num { position: absolute; top: 14px; right: 16px; font: 600 12px 'JetBrains Mono', monospace; color: var(--muted); }
.aff-faq details { border-top: 1px solid var(--line); padding: 12px 0; } .aff-faq details:first-of-type { margin-top: 10px; }
.aff-faq summary { cursor: pointer; font-weight: 500; } .aff-faq p { margin: 8px 0 0; }
@media (max-width: 860px) { .aff-hero, .aff-msgs, .aff-steps { grid-template-columns: 1fr; } .aff-hero { padding: 20px; } .aff-url .btn { width: 100%; justify-content: center; } }
/* Prompt JSON de cada referencia de edición */
.vp-prompt { margin-top: 18px; padding: 14px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); min-width: 0; }
.vp-prompt-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vp-prompt p { margin: 6px 0 10px; }
.vp-prompt pre { margin: 0; max-height: 300px; overflow: auto; padding: 12px; border-radius: 10px; background: var(--bg, #0c0c0c); border: 1px solid var(--line);
  font: 12px/1.55 'JetBrains Mono', monospace; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.vp-detail { min-width: 0; }
.vp-ori { margin: 0 0 10px; }

/* ---------- Inicio del alumno (home2) ---------- */
.home2 .mt { margin-top: 28px; }
.h2-hero { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; margin-top: 18px; padding: 30px; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--pa, var(--brand)) 38%, transparent), transparent 60%), radial-gradient(90% 120% at 100% 100%, color-mix(in srgb, #EC4899 22%, transparent), transparent 60%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--pa, var(--brand)) 35%, var(--line)); }
.h2-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"); }
.h2-hero.done, .h2-hero:not(:has(.h2-hero-art)) { grid-template-columns: 1fr; }
.h2-kick { display: inline-flex; padding: 6px 12px; border-radius: 99px; background: color-mix(in srgb, var(--pa, var(--brand)) 22%, transparent); color: var(--ink); font: 600 12px 'Inter Tight', sans-serif; letter-spacing: .02em; }
.h2-hero h1 { margin: 14px 0 8px; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.04; letter-spacing: -.035em; }
.h2-meta { margin: 0; color: var(--muted); }
.h2-prog { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 10%, transparent); margin: 18px 0; overflow: hidden; max-width: 460px; }
.h2-prog span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--pa, var(--brand)), #EC4899); }
.h2-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.h2-play { box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--pa, var(--brand)) 70%, transparent); }
.h2-hero-art { position: relative; display: block; border-radius: 20px; overflow: hidden; transform: rotate(1.5deg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transition: transform .3s; }
.h2-hero-art:hover { transform: rotate(0) scale(1.02); }
.h2-hero-art .cover { aspect-ratio: 16 / 10; border-radius: 0; }
.h2-hero-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #111; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.h2-pct { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font: 600 12px 'JetBrains Mono', monospace; }
.h2-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.h2-stat { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; overflow: hidden; }
.h2-stat b { font: 700 26px 'Inter Tight', sans-serif; letter-spacing: -.03em; }
.h2-stat span { color: var(--muted); font-size: 13px; }
.h2-stat i { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p) * 1%); background: linear-gradient(90deg, var(--brand), #EC4899); }
a.h2-stat:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.h2-kit { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.h2-kit-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; min-height: 128px; border-radius: 18px; color: var(--ink); text-decoration: none; overflow: hidden;
  background: linear-gradient(150deg, color-mix(in srgb, var(--k) 30%, var(--surface)), var(--surface) 75%); border: 1px solid color-mix(in srgb, var(--k) 35%, var(--line)); transition: transform .2s, border-color .2s; }
.h2-kit-card:hover { transform: translateY(-3px); border-color: var(--k); }
.h2-kit-emoji { font-size: 30px; line-height: 1; margin-bottom: auto; }
.h2-kit-card b { font-size: 15px; margin-top: 14px; }
.h2-kit-card small { color: var(--muted); font-size: 12px; }
.h2-kit-card::after { content: ''; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: var(--k); opacity: .18; filter: blur(10px); }
.h2-new { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.h2-new-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; color: #fff; text-decoration: none; min-height: 170px; transition: transform .2s; }
.h2-new-card:hover { transform: translateY(-3px); }
.h2-new-card.a { background: linear-gradient(140deg, #6D28D9, #A855F7); }
.h2-new-card.b { background: linear-gradient(140deg, #BE185D, #F472B6); }
.h2-new-card.c { background: linear-gradient(140deg, #047857, #34D399); }
.h2-new-card b { font-size: 19px; letter-spacing: -.02em; }
.h2-new-card p { margin: 0; font-size: 14px; opacity: .9; flex: 1; }
.h2-new-card code { background: rgba(0,0,0,.25); padding: 1px 6px; border-radius: 6px; color: #fff; }
.h2-badge { align-self: flex-start; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.22); font: 600 11px 'Inter Tight', sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.h2-go { font-weight: 600; font-size: 14px; }
.h2-path { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.h2-step { flex: 0 0 190px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.h2-step b { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h2-step small { color: var(--muted); font-size: 12px; }
.h2-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 12px 'JetBrains Mono', monospace; background: var(--surface2); color: var(--muted); }
.h2-step.done .h2-dot { background: #34D399; color: #052e1f; }
.h2-step.cur { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.h2-step.cur .h2-dot { background: var(--brand); color: #fff; }
.h2-board { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; }
.h2-board li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.h2-board li span:last-child { margin-left: auto; color: var(--muted); font: 500 12px 'JetBrains Mono', monospace; }
.h2-board li.me { background: color-mix(in srgb, var(--brand) 14%, transparent); }
.h2-medal { width: 26px; text-align: center; }
@media (max-width: 900px) {
  .h2-hero { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
  .h2-hero-art { order: -1; transform: none; }
  .h2-stats { grid-template-columns: repeat(2, 1fr); }
  .h2-new { grid-template-columns: 1fr; }
  .h2-new-card { min-height: 0; }
  .h2-kit { grid-template-columns: repeat(2, 1fr); }
}
.h2-kit { grid-template-columns: repeat(4, 1fr); }
.h2-kit-card:first-child { grid-column: span 2; }
.h2-kit-card:first-child b { font-size: 20px; }
@media (max-width: 900px) { .h2-kit { grid-template-columns: repeat(2, 1fr); } }

/* ════════════ DECK · el lenguaje de las presentaciones del curso ════════════
   Fondo casi negro con brillo morado arriba a la derecha, brillo cálido abajo y cuadrícula tenue.
   Títulos: Inter Tight 800 con degradado blanco→lavanda + segunda línea en Instrument Serif itálica
   (lavanda→rosa, o durazno→rosa→morado). Etiquetas mono espaciadas con línea. Tarjetas "PASO" con número serif. */
:root, :root[data-theme="dark"] {
  --dk-bg: #0F0E13; --dk-card: rgba(255,255,255,.028); --dk-card2: rgba(255,255,255,.045); --dk-line: rgba(255,255,255,.07); --dk-line2: rgba(255,255,255,.12);
  --dk-lav: #B69CFF; --dk-kick: #A98BFF; --dk-num: rgba(155,92,255,.42);
  --dk-sans: linear-gradient(180deg, #FFFFFF 35%, #CBC3DA);
  --dk-serif: linear-gradient(90deg, #E9DDFF 0%, #B48CFF 45%, #E879F9 100%);
  --dk-warm: linear-gradient(90deg, #F6D2C2 0%, #E8907A 35%, #D07AD8 70%, #A66BFF 100%);
  --bg: var(--dk-bg);
}
:root[data-theme="light"] {
  --dk-bg: #F6F4F9; --dk-card: #FFFFFF; --dk-card2: #FFFFFF; --dk-line: rgba(24,14,44,.08); --dk-line2: rgba(24,14,44,.14);
  --dk-lav: #6D2FE0; --dk-kick: #7C3AED; --dk-num: rgba(124,58,237,.30);
  --dk-sans: linear-gradient(180deg, #15111C 40%, #4A3F5C);
  --dk-serif: linear-gradient(90deg, #7C3AED 0%, #A855F7 50%, #D946EF 100%);
  --dk-warm: linear-gradient(90deg, #E07A5F 0%, #D0609A 50%, #8B4DF5 100%);
}
/* Ambiente: cuadrícula + brillos (detrás de todo) */
body::before { inset: 0 !important; height: auto !important;
  background:
    radial-gradient(38% 42% at 82% 0%, rgba(124,77,255,.20), transparent 70%),
    radial-gradient(30% 34% at 70% 92%, rgba(232,120,90,.07), transparent 70%),
    radial-gradient(28% 38% at 0% 100%, rgba(91,42,158,.16), transparent 70%),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px) 0 0 / 88px 88px !important;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 60%, rgba(0,0,0,.35)); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 60%, rgba(0,0,0,.35)); }
:root[data-theme="light"] body::before {
  background:
    radial-gradient(38% 42% at 82% 0%, rgba(139,77,245,.12), transparent 70%),
    radial-gradient(30% 34% at 70% 92%, rgba(224,122,95,.06), transparent 70%),
    linear-gradient(rgba(24,14,44,.035) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(90deg, rgba(24,14,44,.035) 1px, transparent 1px) 0 0 / 88px 88px !important; }

/* Piezas tipográficas reutilizables */
.kick { display: inline-flex; align-items: center; gap: 14px; font: 500 11px/1 'JetBrains Mono', monospace; letter-spacing: .32em; text-transform: uppercase; color: var(--dk-kick); }
.kick::before { content: ''; width: 30px; height: 1px; background: currentColor; opacity: .7; }
.dk-mono { font: 500 10.5px/1.2 'JetBrains Mono', monospace; letter-spacing: .26em; text-transform: uppercase; color: var(--dk-kick); }
.dk-serif { font-family: 'Instrument Serif', serif !important; font-style: italic; font-weight: 400 !important; letter-spacing: -.02em !important; background: var(--dk-serif); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.dk-serif.warm { background: var(--dk-warm); -webkit-background-clip: text; background-clip: text; }
.dk-sans { background: var(--dk-sans); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dk-link { font: 500 11px 'JetBrains Mono', monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.dk-link:hover { color: var(--ink); }

/* ── Inicio ── */
.dk { padding-top: 26px; padding-bottom: 60px; }
.dk-adminbar { display: block; margin-bottom: 18px; padding: 10px 16px; border-radius: 12px; border: 1px dashed var(--dk-line2); font: 500 11px 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dk-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; min-height: 440px; padding: 30px 0 10px; }
.dk-hero-l { position: relative; z-index: 1; }
.dk-ghost { position: absolute; z-index: -1; left: -14px; top: -40px; font: italic 400 300px/1 'Instrument Serif', serif; letter-spacing: -.06em; background: linear-gradient(180deg, rgba(124,77,255,.42), rgba(124,77,255,.02) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; pointer-events: none; user-select: none; }
:root[data-theme="light"] .dk-ghost { background: linear-gradient(180deg, rgba(124,58,237,.18), rgba(124,58,237,0) 85%); -webkit-background-clip: text; background-clip: text; }
.dk-title { margin: 22px 0 18px; display: flex; flex-direction: column; background: none !important; color: inherit !important; }
.dk-title .dk-sans { font: 800 clamp(46px, 6.2vw, 88px)/.92 'Inter Tight', sans-serif; letter-spacing: -.06em; }
.dk-title .dk-serif { font-size: clamp(50px, 6.6vw, 96px); line-height: 1; margin-top: 2px; }
.dk-lead { max-width: 520px; margin: 0 0 24px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.dk-lead b { color: var(--ink); font-weight: 600; }
.dk-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.dk-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.dk-pills span { padding: 9px 14px; border-radius: 99px; border: 1px solid var(--dk-line2); background: var(--dk-card); font: 500 10.5px 'JetBrains Mono', monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--ink2); }

/* Mockup de la ventana del reproductor (perspectiva, como las diapositivas 06 y 16) */
.dk-hero-r { display: block; perspective: 1600px; color: inherit; }
.mk-win { position: relative; transform: rotateY(-14deg) rotateX(4deg) rotateZ(-1deg); transform-origin: 30% 50%; border-radius: 18px; background: linear-gradient(180deg, #1A1722, #121017); border: 1px solid var(--dk-line2);
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03) inset, 0 40px 120px -60px rgba(124,77,255,.6); transition: transform .6s var(--ease); }
.dk-hero-r:hover .mk-win { transform: rotateY(-8deg) rotateX(2deg) rotateZ(0); }
:root[data-theme="light"] .mk-win { background: linear-gradient(180deg, #FFFFFF, #F4F1F8); box-shadow: 0 50px 90px -46px rgba(24,14,44,.45), 0 30px 80px -50px rgba(124,58,237,.5); }
.mk-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--dk-line); }
.mk-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
:root[data-theme="light"] .mk-bar i { background: rgba(24,14,44,.14); }
.mk-url { margin-left: 10px; padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,.04); border: 1px solid var(--dk-line); font: 400 11px 'JetBrains Mono', monospace; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-url b { color: var(--ink); font-weight: 500; }
.mk-body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; padding: 14px; }
.mk-player { position: relative; aspect-ratio: 16 / 10.5; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
  background: radial-gradient(90% 90% at 80% 0%, color-mix(in srgb, var(--pa) 55%, transparent), transparent 60%), radial-gradient(70% 80% at 0% 100%, rgba(232,120,90,.35), transparent 60%), #0D0B12; }
.mk-player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.mk-num { position: absolute; top: -6px; right: 10px; font: italic 400 120px/1 'Instrument Serif', serif; color: rgba(255,255,255,.14); }
.mk-title { position: relative; font: 700 19px/1.15 'Inter Tight', sans-serif; letter-spacing: -.03em; color: #fff; max-width: 85%; margin-bottom: 14px; }
.mk-play { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -40px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: #15111C; box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 0 10px rgba(255,255,255,.08); }
.mk-play .ic { margin-left: 3px; fill: currentColor; }
.mk-time { position: relative; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; }
.mk-time span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #C9A6FF, #E879F9); border-radius: 4px; }
.mk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mk-list li { display: grid; grid-template-columns: 28px 1fr; gap: 2px 8px; padding: 10px; border-radius: 10px; border: 1px solid var(--dk-line); background: rgba(255,255,255,.02); }
.mk-list li.on { border-color: rgba(155,92,255,.5); background: rgba(155,92,255,.10); }
.mk-list span { grid-row: span 2; font: italic 400 22px/1 'Instrument Serif', serif; color: var(--dk-lav); }
.mk-list b { font: 600 12px/1.25 'Inter Tight', sans-serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-list small { font: 400 10px 'JetBrains Mono', monospace; color: var(--muted); }
.mk-badge { position: absolute; top: -14px; right: 26px; padding: 7px 12px; border-radius: 99px; background: linear-gradient(135deg, #B48CFF, #8B4DF5); color: #fff; font: 600 10px 'JetBrains Mono', monospace; letter-spacing: .18em; text-transform: uppercase; box-shadow: 0 10px 30px -8px rgba(139,77,245,.9); }

/* Cifras grandes separadas por líneas (diapositiva 02 de módulo 2) */
.dk-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 30px; border-top: 1px solid var(--dk-line); }
.dk-metrics > * { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 6px 0; color: inherit; }
.dk-metrics > * + * { padding-left: 24px; border-left: 1px solid var(--dk-line); }
.dk-metrics b { font: 800 clamp(34px, 3.6vw, 52px)/.95 'Inter Tight', sans-serif; letter-spacing: -.055em; background: var(--dk-sans); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dk-metrics b small { font-size: .55em; letter-spacing: -.02em; }
.dk-metrics span { font: 500 10.5px 'JetBrains Mono', monospace; letter-spacing: .22em; text-transform: uppercase; color: var(--dk-kick); }
.dk-metrics a:hover b { filter: brightness(1.15); }

/* Secciones */
.dk-sec { margin-top: 64px; }
.dk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 22px; flex-wrap: wrap; }
.dk-h2 { margin: 14px 0 0; font: 800 clamp(28px, 3.2vw, 42px)/1 'Inter Tight', sans-serif !important; letter-spacing: -.05em !important; color: var(--ink); }
.dk-h2 .dk-serif { font-size: 1.08em; }

/* Kit: tarjetas con ilustración propia */
.dk-kit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dk-kit-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 18px; border-radius: 20px; border: 1px solid var(--dk-line); background: linear-gradient(180deg, var(--dk-card2), var(--dk-card)); color: inherit; transition: transform .35s var(--ease), border-color .25s, box-shadow .35s; overflow: hidden; }
.dk-kit-card:first-child { grid-column: span 2; }
.dk-kit-card:hover { transform: translateY(-3px); border-color: rgba(155,92,255,.45); box-shadow: 0 30px 60px -40px rgba(124,77,255,.8); }
.dk-kit-card b { font: 700 18px/1.15 'Inter Tight', sans-serif; letter-spacing: -.035em; margin-top: 4px; }
.dk-kit-card small { color: var(--muted); font-size: 13px; }
.dk-kit-card .dk-mono { margin-top: 6px; }
.dk-arrow { position: absolute; right: 16px; bottom: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--dk-line2); color: var(--muted); transition: background .25s, color .25s, border-color .25s; }
.dk-kit-card:hover .dk-arrow { background: var(--brand); border-color: var(--brand); color: #fff; }
.kit-art { width: 100%; height: auto; aspect-ratio: 280 / 132; display: block; margin-bottom: 4px; }
.dk-kit-card:first-child .kit-art { max-height: 170px; }
.ka-panel { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.09); }
.ka-dot { fill: rgba(255,255,255,.16); }
.ka-track { fill: rgba(255,255,255,.08); }
.ka-mono { font: 500 13px 'JetBrains Mono', monospace; fill: var(--ink); }
.ka-dim { fill: var(--muted); font-size: 11px; }
.ka-serif { font: italic 400 78px 'Instrument Serif', serif; }
.ka-sans { font: 800 64px 'Inter Tight', sans-serif; letter-spacing: -4px; fill: var(--ink); }
.ka-cap { font: 800 12px 'Inter Tight', sans-serif; fill: #111; }
.ka-capw { fill: #fff; }
.ka-blink { animation: kaBlink 1.1s steps(2) infinite; }
@keyframes kaBlink { 50% { opacity: 0; } }
:root[data-theme="light"] .ka-panel { fill: #F3EFF9; stroke: rgba(24,14,44,.08); }
:root[data-theme="light"] .ka-dot { fill: rgba(24,14,44,.14); }
:root[data-theme="light"] .ka-track { fill: rgba(24,14,44,.08); }

/* Tarjetas "PASO" con número serif (diapositiva 02 / 03) */
.dk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dk-step, .dk-lesson { position: relative; display: flex; flex-direction: column; padding: 22px 22px 24px; border-radius: 20px; border: 1px solid var(--dk-line); background: linear-gradient(180deg, var(--dk-card2), var(--dk-card)); color: inherit; transition: transform .35s var(--ease), border-color .25s, box-shadow .35s; }
.dk-step:hover, .dk-lesson:hover { transform: translateY(-3px); border-color: var(--dk-line2); }
.dk-step.on, .dk-lesson.on { border-color: rgba(155,92,255,.55); background: linear-gradient(180deg, rgba(124,77,255,.16), rgba(124,77,255,.04)); box-shadow: 0 40px 70px -40px rgba(124,77,255,.75); }
.dk-num { font: italic 400 76px/1 'Instrument Serif', serif; color: var(--dk-num); margin: 30px 0 10px; }
.dk-step b, .dk-lesson b { font: 700 21px/1.12 'Inter Tight', sans-serif; letter-spacing: -.04em; }
.dk-step p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.dk-path { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x mandatory; }
.dk-lesson { flex: 0 0 230px; scroll-snap-align: start; padding: 18px 18px 20px; }
.dk-lesson .dk-num { font-size: 60px; margin: 18px 0 8px; }
.dk-lesson b { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dk-lesson small { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dk-lesson.done .dk-num { color: rgba(52,211,153,.45); }
.dk-lesson.done small { color: #34D399; }

/* Paneles y listas numeradas (diapositiva 05) */
.dk-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; margin-top: 64px; align-items: start; }
.dk-cols .dk-head { margin-bottom: 14px; }
.dk-cols section > * + .dk-head { margin-top: 30px; }
.dk-panel { padding: 8px 20px; border-radius: 20px; border: 1px solid var(--dk-line); background: linear-gradient(180deg, var(--dk-card2), var(--dk-card)); }
.dk-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 0; color: inherit; border-bottom: 1px solid var(--dk-line); }
.dk-row:last-child { border-bottom: 0; }
.dk-row-av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--pa) 18%, transparent); border: 1px solid color-mix(in srgb, var(--pa) 35%, transparent); flex: none; }
.dk-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dk-row-t b { font: 650 15px 'Inter Tight', sans-serif; letter-spacing: -.02em; }
.dk-row-t small { color: var(--muted); font-size: 12.5px; }
.dk-row-pc { font: 800 22px 'Inter Tight', sans-serif; letter-spacing: -.04em; }
.dk-row-bar { position: absolute; left: 54px; right: 0; bottom: -1px; height: 2px; }
.dk-row-bar span { display: block; height: 100%; background: linear-gradient(90deg, #B48CFF, #E879F9); }
.dk-circle { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(155,92,255,.55); color: var(--dk-lav); font: 500 12px 'JetBrains Mono', monospace; }
.dk-board { margin-top: 16px; padding-top: 18px; }
.dk-board .dk-row.me { margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 12px; background: rgba(155,92,255,.10); }
.dk-cols .lc, .dk-cols .ch-card, .dk-cols .hero-card { border-radius: 20px !important; }

@media (max-width: 1080px) {
  .dk-hero { grid-template-columns: 1fr; min-height: 0; gap: 34px; }
  .mk-win { transform: rotateY(-6deg) rotateX(3deg); }
  .dk-kit { grid-template-columns: repeat(2, 1fr); }
  .dk-steps { grid-template-columns: 1fr; }
  .dk-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dk { padding-top: 10px; }
  .dk-ghost { font-size: 200px; top: -24px; }
  .dk-metrics { grid-template-columns: repeat(2, 1fr); }
  .dk-metrics > * { padding: 20px 14px 18px 0; }
  .dk-metrics > *:nth-child(3) { padding-left: 0; border-left: 0; }
  .dk-metrics > *:nth-child(n+3) { border-top: 1px solid var(--dk-line); }
  .mk-body { grid-template-columns: 1fr; }
  .mk-list { display: none; }
  .mk-win { transform: none; }
  .dk-kit-card:first-child { grid-column: span 2; }
  .dk-sec { margin-top: 48px; }
  .dk-num { margin-top: 18px; font-size: 64px; }
}
.dk-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .95fr); gap: 32px; }
.dk-title .dk-sans { font-size: clamp(44px, 5.4vw, 80px); white-space: nowrap; }
.dk-title .dk-serif { font-size: clamp(46px, 5.6vw, 84px); white-space: nowrap; }
.dk-ghost { top: -10px; left: -30px; font-size: 380px; }
@media (max-width: 640px) { .dk-title .dk-sans, .dk-title .dk-serif { white-space: normal; } .dk-ghost { font-size: 220px; } }
.mk-title { font-size: 15px; margin-bottom: 12px; max-width: 70%; }
.mk-play { top: 42%; width: 50px; height: 50px; margin: -25px 0 0 -25px; }
.dk-soon { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dk-soon .dk-step { padding: 18px; }
.dk-soon-ic { width: 46px; height: 46px; margin: 24px 0 14px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--pa) 16%, transparent); border: 1px solid color-mix(in srgb, var(--pa) 32%, transparent); }
.dk-soon .dk-step b { font-size: 18px; }
@media (max-width: 640px) { .dk-soon { grid-template-columns: 1fr; } }
/* Encabezados de página estilo presentación */
.dk-page-head { margin: 8px 0 26px; }
.dk-page-title { margin: 16px 0 10px; background: none !important; color: inherit !important; font: 800 clamp(36px, 4.6vw, 64px)/.98 'Inter Tight', sans-serif !important; letter-spacing: -.055em !important; }
.dk-page-title .dk-serif { font-size: 1.07em; }
.dk-page-lead { margin: 0; max-width: 640px; color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.pack-top .dk-page-head { margin-bottom: 0; }
.dk-course { padding: 20px 0 4px; }
.dk-course .dk-cta { margin-top: 22px; }
.dk-course .dk-metrics { margin-top: 34px; }
.dk-course + .app-grid { margin-top: 44px; }
.dk-kit-2 { grid-template-columns: repeat(2, 1fr); }
.dk-kit-2 .dk-kit-card:first-child { grid-column: span 2; }
/* Paquetes en la página de recursos */
.dk-packs { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.dk-pack { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; align-items: center; gap: 26px; padding: 14px 24px 14px 14px; border-radius: 22px; border: 1px solid var(--dk-line); background: linear-gradient(180deg, var(--dk-card2), var(--dk-card)); color: inherit; transition: transform .35s var(--ease), border-color .25s, box-shadow .35s; }
.dk-pack:hover { transform: translateY(-2px); border-color: rgba(155,92,255,.45); box-shadow: 0 30px 60px -44px rgba(124,77,255,.9); }
.dk-pack-art { display: block; border-radius: 16px; background: rgba(0,0,0,.18); border: 1px solid var(--dk-line); padding: 6px; }
:root[data-theme="light"] .dk-pack-art { background: #F8F6FB; }
.dk-pack-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dk-pack-txt b { font: 800 26px/1.05 'Inter Tight', sans-serif; letter-spacing: -.045em; }
.dk-pack-txt .muted { font-size: 14.5px; line-height: 1.5; max-width: 560px; }
@media (max-width: 860px) {
  .dk-pack { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .dk-pack-go { justify-self: start; }
  .dk-kit-2 { grid-template-columns: 1fr 1fr; }
}
/* ── Acabado "deck" para el resto de la plataforma ── */
.card, .list, .blk, .goal, .syllabus, .app .syllabus, .ach, .pod, .pstat, .vt, .hero-card, .lc, .ch-card, .sk-card, .vp-card, .pk-card, .fav-box, .aff-msg, .pack-hero, .table.card {
  border-color: var(--dk-line) !important; }
.card, .list, .blk, .goal, .app .syllabus, .ach, .pstat, .sk-card, .fav-box, .table.card {
  background: linear-gradient(180deg, var(--dk-card2), var(--dk-card)) !important; }
.blk, .card, .list, .goal, .app .syllabus { border-radius: 20px !important; }
.list-head h2, .sec-head h2 { font: 800 24px/1.05 'Inter Tight', sans-serif !important; letter-spacing: -.045em !important; }
.pill { font: 500 10.5px 'JetBrains Mono', monospace !important; letter-spacing: .2em !important; text-transform: uppercase; padding: 7px 12px !important; border-radius: 99px !important; border: 1px solid var(--dk-line2) !important; background: var(--dk-card) !important; color: var(--dk-kick) !important; }
.blk-label, .hc-top > span:first-child, .cn-h, .snav-h, .sw-h { font-family: 'JetBrains Mono', monospace !important; letter-spacing: .24em !important; text-transform: uppercase; font-size: 10.5px !important; color: var(--dk-kick) !important; }
.tabs { background: var(--dk-card) !important; border: 1px solid var(--dk-line) !important; border-radius: 14px !important; }
.tabs a, .tabs button { font: 500 11px 'JetBrains Mono', monospace !important; letter-spacing: .12em; text-transform: uppercase; }
.chips button, .seg a { font-family: 'JetBrains Mono', monospace !important; letter-spacing: .08em; text-transform: uppercase; font-size: 10.5px !important; }
.stat { font: 800 34px 'Inter Tight', sans-serif !important; letter-spacing: -.055em !important; background: var(--dk-sans); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row-av, .blk-ic, .res-ic, .ch-ic, .ach-ic { border-radius: 12px !important; }
.syllabus .sy-num, .sy-n { font-family: 'JetBrains Mono', monospace !important; }
.wrap.section > h1:first-child, .wrap.section > .sec-head h1 { font-size: clamp(34px, 4.2vw, 56px); letter-spacing: -.055em; }
.big-emoji { color: var(--dk-lav); }
.dk-lesson-title { margin: 12px 0 0; font: 800 clamp(26px, 3vw, 40px)/1.02 'Inter Tight', sans-serif !important; letter-spacing: -.05em !important; }
.lesson-head .kick { font-size: 10px; letter-spacing: .26em; }
@media (max-width: 1080px) { .dk-hero { grid-template-columns: 1fr; gap: 34px; } .dk-hero-r { max-width: 620px; } }
@media (max-width: 640px) { .dk-title .dk-sans { font-size: 46px; } .dk-title .dk-serif { font-size: 50px; } .dk-pills span { font-size: 9.5px; padding: 8px 11px; } .dk-cta .btn { flex: 1 1 auto; justify-content: center; } }
/* Títulos que nunca se salen: se ajustan al ancho y pueden partir línea */
.dk-title .dk-sans, .dk-title .dk-serif { white-space: normal !important; overflow-wrap: anywhere; }
.dk-title .dk-sans { font-size: clamp(40px, 4.8vw, 76px); }
.dk-title .dk-serif { font-size: clamp(44px, 5vw, 80px); }
.dk-hero-l { min-width: 0; }
/* Mockup: play arriba a la izquierda, número arriba a la derecha y título abajo, sin encimarse */
.mk-player { justify-content: flex-end; }
.mk-play { top: 16px !important; left: 16px !important; margin: 0 !important; width: 42px !important; height: 42px !important; }
.mk-num { font-size: 96px; top: -4px; right: 8px; }
.mk-title { max-width: 100%; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* ── Arreglos de textos que chocaban (auditoría en 1440/1180/900/760/375 px) ── */
/* Página de clase: título a todo el ancho y botones debajo */
.lesson-head { flex-direction: column; align-items: stretch; gap: 14px; }
.lesson-head > .grow { min-width: 0; width: 100%; }
.lesson-head .kick { display: flex; flex-wrap: wrap; row-gap: 6px; line-height: 1.4; }
.dk-lesson-title { overflow-wrap: break-word; hyphens: auto; }
.lesson-head form, .lesson-head > .btn, .lesson-head > div:not(.grow) { align-self: flex-start; }
/* Chip de nivel de la barra superior: nunca en dos líneas */
.lvl-txt, .lvl-txt b, .lvl-txt span { white-space: nowrap; }
/* Mockup del inicio: título y duración separados */
.mk-list li { row-gap: 4px; align-items: start; }
.mk-list b { line-height: 1.3; }
.mk-list small { line-height: 1.2; margin-top: 2px; }
/* Tarjeta de módulo actual: el texto se corta con "…" antes del porcentaje */
.goal .grow .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goal-pct { white-space: nowrap; }
/* Bloque de cifras: etiquetas que caben */
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.stat-cell { min-width: 0; }
.stat-cell span { overflow-wrap: anywhere; letter-spacing: .1em !important; }
/* Títulos de página: aire entre la etiqueta y el título, y entre las dos líneas */
.dk-page-title, .dk-title { margin-top: 20px !important; }
.dk-title .dk-serif { margin-top: 8px; }
.dk-page-title { line-height: 1.06 !important; overflow-wrap: break-word; }
/* Celular: nada se sale a lo ancho */
.cc, .cc-plot { min-width: 0; max-width: 100%; }
.pack .chips, .pack-bar { flex-wrap: wrap; }
.pack-bar-r { min-width: 0; flex-wrap: wrap; }
.pack-bar-r .search { min-width: 0; }
@media (max-width: 640px) {
  .pack-bar-r { width: 100%; }
  .pack-bar-r .search { flex: 1 1 160px; }
  .dk-ghost { left: 0; }
  .dk-btn-wide, .dk-course .dk-cta .btn { flex: 1 1 100%; justify-content: center; }
}
.cc-plot, .cc-x { grid-template-columns: repeat(14, minmax(0, 1fr)) !important; }
.cc-x span { overflow: hidden; }
.cc { grid-template-columns: auto minmax(0, 1fr); }
/* Filtros de los paquetes en celular: tira deslizable de orilla a orilla (sin desbordar la página) */
@media (max-width: 760px) {
  .pack [data-pack-chips] { flex-wrap: nowrap; margin: 14px -16px 18px; width: calc(100% + 32px); max-width: none; }
}
/* Filas de tablas del admin en celular: los textos largos se parten en vez de salirse */
.tr .grow, .tr strong, .tr .muted { min-width: 0; overflow-wrap: anywhere; }
.tr > .tag, .tr > .btn, .tr > form { flex-shrink: 0; }
@media (max-width: 640px) { .tr { gap: 8px 12px; } .tr .grow { flex: 1 1 100%; } }
.row.gap > .grow { min-width: 0; overflow-wrap: anywhere; }
.row.gap > .grow strong, .row.gap > .grow .muted { white-space: normal; }
@media (max-width: 640px) { form.row.gap > .grow { flex: 1 1 100%; } form.row.gap > input { max-width: none !important; flex: 1 1 160px; } }
/* Textos con degradado: el color solo se pinta dentro de la caja del texto, así que con interlineado
   apretado se cortaban las colas (g, p, y, j) y los acentos. Damos aire arriba/abajo/derecha y lo
   compensamos con margen negativo para que el diseño no se mueva. */
h1, .hello-name, .display, .dk-sans, .dk-serif, .dk-metrics b, .stat, .big-num {
  padding-top: .1em; padding-bottom: .2em; padding-right: .1em;
  margin-top: -.1em; margin-bottom: -.2em; margin-right: -.1em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dk-serif { padding-left: .06em; margin-left: -.06em; }
.dk-title .dk-serif { margin-top: calc(8px - .1em) !important; }
/* Los títulos de página siguen con su separación de la etiqueta */
.dk-page-title, .dk-title { margin-top: 20px !important; }
h1, .hello-name, .display, .dk-sans, .dk-serif, .dk-metrics b, .stat, .big-num { padding-top: .18em; margin-top: -.18em; }
.dk-title .dk-serif { margin-top: calc(8px - .18em) !important; }
/* ── Sugerencias ── */
.sug-side { display: flex; align-items: center; gap: 12px; margin: 8px 0 6px; padding: 10px 12px; border-radius: 14px; color: var(--ink); border: 1px dashed rgba(155,92,255,.45); background: rgba(155,92,255,.06); transition: border-color .2s, background .2s; }
.sug-side:hover, .sug-side.on { border-style: solid; border-color: rgba(155,92,255,.7); background: rgba(155,92,255,.12); }
.sug-side-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(155,92,255,.16); color: var(--dk-lav); }
.sug-side .sw-l { display: flex; flex-direction: column; min-width: 0; }
.sug-side .sw-l b { font-size: 14px; } .sug-side .sw-l small { color: var(--muted); font-size: 12px; }
html.side-min .sug-side .sw-l { display: none; } html.side-min .sug-side { justify-content: center; padding: 8px; }
@media (max-width: 1100px) { .wside .sug-side .sw-l { display: none; } .wside .sug-side { justify-content: center; padding: 8px; } }
.sug-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.sug-form { display: flex; flex-direction: column; gap: 14px; padding: 24px !important; }
.sug-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sug-cat input { position: absolute; opacity: 0; pointer-events: none; }
.sug-cat-box { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--dk-line2); background: var(--dk-card); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; height: 100%; }
.sug-cat-box .dk-num { font-size: 34px; margin: 0 0 4px; line-height: 1; }
.sug-cat-box b { font-size: 15px; letter-spacing: -.02em; }
.sug-cat-box small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.sug-cat input:checked + .sug-cat-box { border-color: rgba(155,92,255,.7); background: rgba(124,77,255,.14); box-shadow: 0 20px 40px -30px rgba(124,77,255,.9); }
.sug-cat input:focus-visible + .sug-cat-box { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.sug-form textarea { min-height: 150px; resize: vertical; }
.sug-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sug-row { align-items: flex-start; }
.sug-row .dk-row-t b { font-weight: 500; line-height: 1.4; }
.sug-note { color: var(--dk-lav) !important; margin-top: 4px; }
.sug-dot { width: 8px; height: 8px; flex: none; margin-top: 8px; border-radius: 50%; background: var(--dk-lav); }
.sug-dot.vista { background: #FBBF24; } .sug-dot.hecha { background: #34D399; }
.sug-list { display: flex; flex-direction: column; gap: 12px; }
.sug-item-h, .sug-item-f { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sug-item.nueva { border-color: rgba(155,92,255,.45) !important; }
.sug-body { margin: 12px 0; font-size: 15.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.sug-admin { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sug-admin input { flex: 1 1 260px; min-width: 0; }
@media (max-width: 860px) { .sug-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .sug-cats { grid-template-columns: 1fr; } }
/* ── Maxx, el asistente ── */
.maxx-av { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-family: 'Instrument Serif', serif; font-style: italic; color: #fff; line-height: 1;
  background: radial-gradient(120% 120% at 30% 20%, #E9DDFF 0%, #B48CFF 35%, #8B4DF5 65%, #E879F9 110%); box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 8px 24px -8px rgba(139,77,245,.9); padding-bottom: .06em; }
.maxx { position: fixed; right: 22px; bottom: 22px; z-index: 120; }
.maxx-fab { display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 99px; border: 1px solid rgba(155,92,255,.45); background: rgba(20,16,28,.88); color: #F5F2EE; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); cursor: pointer; font: 600 13.5px 'Inter Tight', sans-serif; box-shadow: 0 18px 40px -16px rgba(0,0,0,.8), 0 0 30px -12px rgba(155,92,255,.8); transition: transform .25s var(--ease), border-color .2s; }
.maxx-fab:hover { transform: translateY(-2px); border-color: rgba(155,92,255,.8); }
.maxx.on .maxx-fab { opacity: 0; pointer-events: none; }
:root[data-theme="light"] .maxx-fab { background: rgba(255,255,255,.92); color: var(--ink); }
.maxx-panel { position: absolute; right: 0; bottom: 0; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #17141F, #110F16); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 60px -30px rgba(139,77,245,.9); }
:root[data-theme="light"] .maxx-panel { background: #FFFFFF; border-color: var(--line2); box-shadow: 0 40px 90px -40px rgba(24,14,44,.45); }
.maxx-panel[hidden] { display: none; }
.maxx-h { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--dk-line); }
.maxx-h .grow { display: flex; flex-direction: column; min-width: 0; }
.maxx-h b { font: 700 16px 'Inter Tight', sans-serif; letter-spacing: -.02em; }
.maxx-h small { color: var(--muted); font-size: 12px; }
.maxx-left { font: 500 10.5px 'JetBrains Mono', monospace; letter-spacing: .1em; color: var(--dk-kick); white-space: nowrap; }
.maxx-left.low { color: #FBBF24; }
.maxx-x { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.maxx-x .ic { transform: rotate(45deg); }
.maxx-x:hover { background: var(--surface2); color: var(--ink); }
.maxx-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.maxx-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.maxx-msg p { margin: 0 0 6px; } .maxx-msg p:last-child { margin: 0; }
.maxx-msg ul, .maxx-msg ol { margin: 4px 0 6px; padding-left: 20px; }
.maxx-msg a { color: var(--dk-lav); text-decoration: underline; text-underline-offset: 2px; }
.maxx-msg code { font: 12.5px 'JetBrains Mono', monospace; background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 5px; }
.maxx-msg.bot { align-self: flex-start; background: var(--dk-card2); border: 1px solid var(--dk-line); border-top-left-radius: 6px; }
.maxx-msg.me { align-self: flex-end; background: linear-gradient(135deg, #9B5CFF, #7C3AED); color: #fff; border-top-right-radius: 6px; }
.maxx-msg.typing p { animation: kaBlink 1s steps(2) infinite; }
.maxx-fb { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.maxx-fb button { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--dk-line2); background: transparent; color: var(--ink2); cursor: pointer; font-size: 12px; }
.maxx-fb button:hover { border-color: var(--brand); color: var(--ink); }
.maxx-sug { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.maxx-sug button { text-align: left; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--dk-line2); background: transparent; color: var(--ink2); cursor: pointer; font: 500 13px 'Inter Tight', sans-serif; transition: border-color .2s, color .2s; }
.maxx-sug button:hover { border-color: rgba(155,92,255,.6); color: var(--ink); }
.maxx-in { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--dk-line); }
.maxx-in textarea { flex: 1; min-height: 42px; max-height: 140px; resize: none; border-radius: 14px; padding: 10px 12px; font-size: 14.5px; }
.maxx-send { width: 42px; height: 42px; flex: none; border-radius: 12px; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #B48CFF, #8B4DF5); }
.maxx-foot { margin: 0; padding: 0 14px 12px; font-size: 11.5px; color: var(--muted); }
.maxx-foot button { border: 0; background: none; color: var(--dk-lav); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.maxx-bar { height: 4px; border-radius: 4px; background: var(--surface2); margin-top: 10px; overflow: hidden; } .maxx-bar span { display: block; height: 100%; background: linear-gradient(90deg, #B48CFF, #E879F9); }
.maxx-chart { display: flex; align-items: flex-end; gap: 4px; height: 110px; margin-top: 12px; } .maxx-chart i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #B48CFF, #8B4DF5); min-width: 3px; }
.maxx-qs { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; } .maxx-qs small { color: var(--muted); }
.maxx-setup ol { margin: 10px 0; padding-left: 20px; line-height: 1.7; }
@media (max-width: 760px) {
  .maxx { right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .maxx-fab-l { display: none; } .maxx-fab { padding: 6px; }
  .maxx-panel { position: fixed; inset: auto 8px calc(8px + env(safe-area-inset-bottom)) 8px; width: auto; height: min(78vh, 640px); }
}
@media print { .maxx { display: none; } }

/* ---------- Tu primer clip en 24 h ---------- */
.fc .dk-steps.fc-steps { grid-template-columns: repeat(4, 1fr); }
.fc-bar { height: 4px; border-radius: 99px; background: var(--dk-line); margin: 0 0 18px; overflow: hidden; }
.fc-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7C4DFF, #E879F9); transition: width .6s var(--ease); }
.fc .dk-num { font-size: 60px; margin: 18px 0 8px; }
.fc .dk-num svg { display: block; }
.dk-step.done { opacity: .72; }
.dk-step.done .dk-num { color: rgba(52,211,153,.6); }
.dk-step.done .dk-mono { color: #34D399; }
.fc-go { margin-top: auto; padding-top: 14px; font-size: 13px; }
@media (max-width: 1100px) { .fc .dk-steps.fc-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fc .dk-steps.fc-steps { grid-template-columns: 1fr; } .fc .dk-num { margin: 10px 0 4px; font-size: 48px; } }

/* ---------- Retos semanales y muro de clips ---------- */
.reto-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: center; padding: 28px; border-radius: 24px; border: 1px solid rgba(155,92,255,.4);
  background: radial-gradient(120% 140% at 0% 0%, rgba(124,77,255,.18), transparent 60%), linear-gradient(180deg, var(--dk-card2), var(--dk-card)); margin-bottom: 30px; }
.reto-l .dk-h2 { margin: 10px 0 8px; }
.reto-l .dk-page-lead { margin: 0 0 14px; max-width: 60ch; }
.reto-l .dk-cta { margin-top: 18px; }
.reto-ref { position: relative; display: block; aspect-ratio: 9 / 16; max-height: 360px; border-radius: 18px; overflow: hidden; border: 1px solid var(--dk-line2); background: #000; justify-self: end; width: 100%; }
.reto-ref img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reto-none { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 20px; border: 1px dashed var(--dk-line2); background: var(--dk-card); margin-bottom: 30px; }
.reto-none > div { flex: 1; min-width: 0; }
.reto-none p { margin: 3px 0 0; }
.reto-none-ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: var(--dk-lav); background: rgba(124,77,255,.14); border: 1px solid rgba(155,92,255,.35); }
.retos-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.retos .dk-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.wall-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; height: 100%; }
.wall-how .dk-step b { margin-top: 26px; }

/* Formulario para subir */
.clip-form { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px; border: 1px solid rgba(155,92,255,.35);
  background: radial-gradient(140% 90% at 100% 0%, rgba(232,121,249,.12), transparent 55%), linear-gradient(180deg, var(--dk-card2), var(--dk-card)); }
.clip-form h3 { margin: 4px 0 6px; font: 800 22px/1.15 'Inter Tight', sans-serif; letter-spacing: -.04em; }
.clip-form input { width: 100%; }
.clip-form .btn { justify-content: center; margin-top: 4px; }

/* El muro */
.wall { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--dk-line); }
.wall-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.wall-head .dk-h2 { margin: 10px 0 0; }
.wall-stats { display: flex; gap: 0; border: 1px solid var(--dk-line); border-radius: 18px; overflow: hidden; background: var(--dk-card); }
.wall-stats div { padding: 12px 20px; display: flex; flex-direction: column; gap: 2px; min-width: 104px; }
.wall-stats div + div { border-left: 1px solid var(--dk-line); }
.wall-stats b { font: 800 26px/1 'Inter Tight', sans-serif; letter-spacing: -.04em; }
.wall-stats span { font: 500 10.5px/1.3 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wall-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.wall-top > .dk-mono { margin-right: 6px; }
.wall-cr { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 99px; border: 1px solid var(--dk-line); background: var(--dk-card); }
.wall-cr b { display: block; font: 650 13px/1.2 'Inter Tight', sans-serif; }
.wall-cr small { display: block; font-size: 11px; color: var(--muted); }
.wall-rank { font: italic 400 20px/1 'Instrument Serif', serif; color: var(--dk-lav); width: 14px; text-align: center; }
.wall-tabs { margin: 0 0 18px; }
.clip-av { flex: none; display: inline-grid; place-items: center; border-radius: 50%; font-family: 'Inter Tight', sans-serif; font-weight: 800; letter-spacing: -.02em; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 85% 62%), hsl(calc(var(--h) + 50) 80% 48%)); box-shadow: 0 0 0 2px rgba(0,0,0,.35); }

/* Tarjeta de clip (vertical, 9:16) */
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.wall-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.clip { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; color: inherit; }
.clip-media { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: #111018; color: #fff; border: 1px solid var(--dk-line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; isolation: isolate; }
.clip-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.clip-media.yt img { transform: scale(1.8); }
.clip:hover .clip-media { transform: translateY(-4px); border-color: rgba(155,92,255,.5); box-shadow: 0 40px 60px -34px rgba(124,77,255,.8); }
.clip:hover .clip-media img { transform: scale(1.05); }
.clip:hover .clip-media.yt img { transform: scale(1.9); }
.clip.feat .clip-media { border-color: rgba(232,121,249,.6); box-shadow: 0 0 0 1px rgba(232,121,249,.35), 0 30px 60px -36px rgba(232,121,249,.7); }
.clip-media::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 22%, transparent 52%, rgba(0,0,0,.88) 100%); pointer-events: none; }
/* Portada dibujada cuando no hay miniatura */
.clip-art { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.clip-art i { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .7; }
.clip-art i:nth-child(1) { width: 70%; height: 45%; left: -10%; top: 8%; background: #7C4DFF; }
.clip-art i:nth-child(2) { width: 60%; height: 40%; right: -15%; top: 40%; background: #E879F9; opacity: .5; }
.clip-art i:nth-child(3) { width: 80%; height: 30%; left: 10%; bottom: -5%; background: #3B1E7A; }
.tt .clip-art i:nth-child(1) { background: #25F4EE; opacity: .45; } .tt .clip-art i:nth-child(2) { background: #FE2C55; opacity: .55; }
.ig .clip-art i:nth-child(1) { background: #F97316; opacity: .5; } .ig .clip-art i:nth-child(2) { background: #C026D3; }
.clip-art b { position: relative; font: italic 400 34px/1 'Instrument Serif', serif; color: rgba(255,255,255,.9); letter-spacing: -.01em; transform: translateY(-18px); }
.clip-plat { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 5px 10px; border-radius: 99px; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 10px/1.2 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,.12); }
.clip-tags { position: absolute; z-index: 2; right: 12px; top: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.clip-tag { padding: 5px 10px; border-radius: 99px; background: rgba(124,77,255,.9); font: 500 10px/1.2 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.clip-tag.feat { background: linear-gradient(90deg, #E879F9, #7C4DFF); }
.clip-play { position: absolute; z-index: 2; left: 50%; top: 46%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.3); color: #fff;
  opacity: 0; transform: scale(.85); transition: opacity .3s, transform .4s var(--ease); }
.clip-play svg { margin-left: 3px; }
.clip:hover .clip-play, .clip-media:focus-visible .clip-play { opacity: 1; transform: scale(1); }
.clip-over { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.clip-over > b { font: 750 16px/1.2 'Inter Tight', sans-serif; letter-spacing: -.03em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
.clip-who { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; font-weight: 600; }
.clip-who > span:not(.clip-av) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-who small { margin-left: auto; flex: none; opacity: .7; font-weight: 500; font-size: 11.5px; }
.clip-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; min-width: 0; }
.clip-style { font: 500 11px/1.3 'JetBrains Mono', monospace; color: var(--dk-lav); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.clip-style.ghost { color: var(--muted); opacity: .6; }
.clip-like { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--dk-line2); background: var(--dk-card);
  color: inherit; font: 700 13px 'Inter Tight', sans-serif; cursor: pointer; transition: border-color .2s, color .2s, background .2s, transform .2s; }
.clip-like:hover:not(:disabled) { border-color: rgba(251,146,60,.6); color: #FB923C; }
.clip-like.on { background: linear-gradient(90deg, rgba(251,146,60,.2), rgba(232,121,249,.2)); border-color: rgba(251,146,60,.55); color: #FDBA74; cursor: default; }
.clip-like.ro { cursor: default; border-color: transparent; background: transparent; color: var(--muted); }
.clip-like.pop { animation: clip-pop .5s var(--ease); }
@keyframes clip-pop { 40% { transform: scale(1.22); } }
/* Lugar vacío del muro */
.clip.ghost .clip-media { border: 1px dashed var(--dk-line2); background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.018) 14px 15px), var(--dk-card); }
.clip.ghost .clip-media::after { display: none; }
.clip-ghost-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; color: var(--muted); }
.clip-ghost-in svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; border: 1px dashed var(--dk-line2); }
.clip-ghost-in b { font: italic 400 22px/1.15 'Instrument Serif', serif; color: var(--text); opacity: .75; }
.clip.ghost:hover .clip-media { border-color: rgba(155,92,255,.5); }

/* Reproductor */
.clip-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(6,5,10,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: clip-fade .25s ease; }
.clip-modal[hidden] { display: none; }
@keyframes clip-fade { from { opacity: 0; } }
.clip-modal-in { position: relative; height: min(86vh, 820px); aspect-ratio: 9 / 16; max-width: 100%; }
.clip-modal-in [data-clip-frame] { height: 100%; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.clip-modal iframe { flex: 1; width: 100%; border: 0; border-radius: 22px; background: #000; box-shadow: 0 50px 120px -40px rgba(124,77,255,.6); }
.clip-modal-open { font: 500 11px 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.clip-modal-x { position: absolute; top: -6px; right: -54px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--dk-line2); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; }
.clip-modal-x svg { transform: rotate(45deg); }
body.clip-open { overflow: hidden; }

/* Vista previa en el inicio */
.wall-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.wall-strip .clip { scroll-snap-align: start; }
.wall-prev .dk-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .retos-grid { grid-template-columns: 1fr; }
  .retos-grid aside { order: -1; }
  .reto-hero { grid-template-columns: 1fr; padding: 22px; }
  .reto-ref { justify-self: start; max-width: 200px; }
  .clip-modal-x { right: 4px; top: 4px; z-index: 2; background: rgba(0,0,0,.6); }
}
@media (max-width: 640px) {
  .wall-how { grid-template-columns: 1fr; }
  .wall-stats { width: 100%; } .wall-stats div { flex: 1; min-width: 0; padding: 10px 12px; } .wall-stats b { font-size: 21px; }
  .clips, .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .clip-over { padding: 10px; gap: 6px; } .clip-over > b { font-size: 13.5px; } .clip-who small { display: none; }
  .clip-plat { left: 8px; top: 8px; } .clip-tags { right: 8px; top: 8px; }
  .clip-play { opacity: .9; transform: scale(.8); }
  .reto-none { flex-wrap: wrap; } .reto-none .btn { width: 100%; justify-content: center; }
  .wall-strip { grid-auto-columns: 44%; }
  .clip-modal { padding: 10px; } .clip-modal-in { height: 82vh; }
}
.maxx [hidden] { display: none !important; }
.clip-cover { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--dk-line2); cursor: pointer; transition: border-color .2s, background .2s; }
.clip-cover:hover, .clip-cover.on { border-color: rgba(155,92,255,.55); background: rgba(124,77,255,.07); }
.clip-cover input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.clip-cover-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(124,77,255,.14); color: var(--dk-lav); }
.clip-cover b { display: block; font-size: 13px; } .clip-cover small { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
@media (max-width: 640px) {
  .wall-top { flex-wrap: nowrap; overflow-x: auto; margin-left: 0; margin-right: 0; padding: 0 0 4px; scrollbar-width: none; }
  .wall-top::-webkit-scrollbar { display: none; }
  .wall-top > .dk-mono { display: none; }
  .wall-cr { flex: none; }
  .wall-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .wall-tabs a { flex: none; }
}
main.swapping { opacity: .55; transition: opacity .15s; pointer-events: none; }

/* HyperFrames en Recursos → Skills */
.hf-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 14px; }
.hf-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; border: 1px solid var(--dk-line2); background: #000; display: block; }
.hf-steps { margin: 0; padding: 0; list-style: none; counter-reset: hf; display: flex; flex-direction: column; gap: 14px; }
.hf-steps li { counter-increment: hf; position: relative; padding: 14px 16px 14px 58px; border-radius: 16px; border: 1px solid var(--dk-line); background: var(--dk-card); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hf-steps li::before { content: counter(hf, decimal-leading-zero); position: absolute; left: 16px; top: 12px; font: italic 400 28px/1 'Instrument Serif', serif; color: var(--dk-lav); }
.hf-steps b { font: 700 16px/1.25 'Inter Tight', sans-serif; }
.hf-steps span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.hf-cmd { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 8px 8px 12px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--dk-line); min-width: 0; }
.hf-cmd code { flex: 1; min-width: 0; font: 500 12.5px/1.45 'JetBrains Mono', monospace; color: #E2D9FF; white-space: pre-wrap; word-break: break-word; }
.hf-cmd .btn { flex: none; }
.hf-cmd .btn.copied::after { content: ' ✓'; }
@media (max-width: 900px) { .hf-grid { grid-template-columns: 1fr; } .hf-cmd { flex-direction: column; align-items: stretch; } }
.fx-preview { width: 100%; max-height: 420px; object-fit: cover; object-position: top; border-radius: 18px; border: 1px solid var(--dk-line2); margin: 6px 0 14px; display: block; }

/* Afiliados · cómo funciona */
.aff-how .aff-how-t { margin: 10px 0 18px; font: 800 40px/1.05 'Inter Tight', sans-serif; letter-spacing: -.045em; }
.aff-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: af; }
.aff-flow li { counter-increment: af; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 18px; border-radius: 18px; border: 1px solid var(--dk-line); background: var(--dk-card); }
.aff-flow li::before { content: counter(af, decimal-leading-zero); font: italic 400 34px/1 'Instrument Serif', serif; color: var(--dk-lav); margin-bottom: 6px; }
.aff-flow b { font: 700 16px/1.25 'Inter Tight', sans-serif; }
.aff-flow span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.aff-flow code, .aff-rules code { font-size: 12px; padding: 1px 6px; border-radius: 6px; background: rgba(155,92,255,.14); color: #E2D9FF; word-break: break-all; }
.aff-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.aff-rules > div { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--dk-line); background: var(--dk-card); }
.aff-rules b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.aff-rules b.ok { color: #34D399; }
.aff-rules b.no { color: #F87171; }
.aff-rules b.no svg { transform: rotate(45deg); }
.aff-rules ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.aff-tip { margin: 14px 0 0; }
@media (max-width: 980px) { .aff-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .aff-flow, .aff-rules { grid-template-columns: 1fr; } .aff-how .aff-how-t { font-size: 32px; } }
.aff-whop { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aff-whop h3, .aff-fine h3 { margin: 8px 0 10px; font: 800 24px/1.15 'Inter Tight', sans-serif; letter-spacing: -.03em; }
.aff-whop ol { margin: 0 0 10px; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.aff-whop ol b, .aff-fine b { color: var(--ink, #F2EFEA); }
.aff-fine ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.65; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 760px) { .aff-whop { grid-template-columns: 1fr; } }

/* Misiones de la semana */
.mis { margin: 4px 0 34px; }
.mis .dk-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.mis-sum { display: flex; align-items: baseline; gap: 10px; }
.mis-sum b { font: 800 34px/1 'Inter Tight', sans-serif; letter-spacing: -.04em; }
.mis-sum span { color: var(--muted); font-size: 13px; }
.mis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mis-card { position: relative; display: flex; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid var(--dk-line); background: linear-gradient(180deg, var(--dk-card2), var(--dk-card)); color: inherit; transition: transform .3s var(--ease), border-color .25s; min-width: 0; }
.mis-card:hover { transform: translateY(-2px); border-color: var(--dk-line2); }
.mis-card.done { border-color: rgba(52,211,153,.4); }
.mis-ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: var(--dk-lav); background: rgba(124,77,255,.14); border: 1px solid rgba(155,92,255,.3); }
.mis-card.done .mis-ic { color: #34D399; background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.35); }
.mis-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.mis-txt b { font: 700 15px/1.25 'Inter Tight', sans-serif; }
.mis-txt small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.mis-bar { display: block; height: 6px; border-radius: 99px; background: var(--dk-line); overflow: hidden; margin-top: 6px; }
.mis-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7C4DFF, #E879F9); }
.mis-card.done .mis-bar i { background: #34D399; }
.mis-meta { display: flex; justify-content: space-between; font: 500 11px 'JetBrains Mono', monospace; letter-spacing: .06em; color: var(--muted); }
.mis-xp { color: var(--dk-lav); }
.mis-card.done .mis-xp { color: #34D399; }
.mis-go { position: absolute; right: 14px; top: 14px; font-size: 12px; opacity: 0; transition: opacity .2s; }
.mis-card:hover .mis-go { opacity: 1; }
.mis-foot { margin: 12px 0 0; }
.reto-prize { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--dk-lav); font-size: 14px; }
@media (max-width: 1100px) { .mis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mis-grid { grid-template-columns: 1fr; } .mis-go { display: none; } }

/* Dashboard de afiliados */
.affd-kpis { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 12px; }
.affd-kpi { padding: 18px; border-radius: 18px; border: 1px solid var(--dk-line); background: linear-gradient(180deg, var(--dk-card2), var(--dk-card)); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.affd-kpi span { font: 500 11px 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.affd-kpi b { font: 800 34px/1 'Inter Tight', sans-serif; letter-spacing: -.04em; }
.affd-kpi.big { border-color: rgba(52,211,153,.35); background: radial-gradient(120% 120% at 0% 0%, rgba(52,211,153,.14), transparent 60%), var(--dk-card); }
.affd-kpi.big b { font-size: 46px; }
.affd-kpi small { color: var(--muted); font-size: 12.5px; }
.affd .ok { color: #34D399; }
.affd-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-top: 12px; }
.affd-legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.affd-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.affd-legend i.v { background: #7C4DFF; } .affd-legend i.s { background: #34D399; border-radius: 50%; }
.affd-bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; margin-top: 14px; }
.affd-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.affd-col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--dk-line); }
.affd-col i.on { background: #7C4DFF; }
.affd-col:hover i { background: #A98BFF; }
.affd-dot { width: 12px; height: 12px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52,211,153,.2); font: 700 8px/12px 'Inter Tight', sans-serif; color: #04251A; text-align: center; }
.affd-axis { display: flex; justify-content: space-between; margin-top: 6px; font: 500 11px 'JetBrains Mono', monospace; color: var(--muted); }
.affd-step + .affd-step { margin-top: 14px; }
.affd-step-h { display: flex; justify-content: space-between; font-size: 14px; } .affd-step-h b { font-size: 18px; }
.affd-step-bar { height: 10px; border-radius: 99px; background: var(--dk-line); overflow: hidden; margin-top: 6px; }
.affd-step-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7C4DFF, #34D399); }
.affd-step small { color: var(--muted); font-size: 12px; }
.affd-goal-t { margin: 8px 0 12px; font: 800 28px/1.1 'Inter Tight', sans-serif; letter-spacing: -.03em; }
.affd-goal-bar { height: 12px; border-radius: 99px; background: var(--dk-line); overflow: hidden; }
.affd-goal-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7C4DFF, #E879F9); }
.affd-br { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--dk-line); font-size: 14px; }
.affd-br:first-of-type { border-top: 0; }
.affd-br.me { color: var(--dk-lav); }
.affd-pos { font: italic 400 24px/1 'Instrument Serif', serif; color: var(--dk-lav); width: 22px; }
.affd-table { display: flex; flex-direction: column; }
.affd-tr { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--dk-line); font-size: 14px; }
.affd-tr.head { border-top: 0; font: 500 11px 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.affd-st { font-style: normal; padding: 3px 10px; border-radius: 99px; font-size: 12px; }
.affd-st.paid { background: rgba(52,211,153,.14); color: #34D399; } .affd-st.refunded, .affd-st.disputed { background: rgba(248,113,113,.14); color: #F87171; }
@media (max-width: 1100px) { .affd-kpis { grid-template-columns: repeat(2, 1fr); } .affd-kpi.big { grid-column: 1 / -1; } .affd-row { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .affd-tr { grid-template-columns: 1fr 1fr; } .affd-tr.head { display: none; } .affd-kpi b { font-size: 28px; } .affd-kpi.big b { font-size: 38px; } }
@media (max-width: 640px) { .wall-tabs { max-width: 100%; box-sizing: border-box; } }

/* Ranking con premios */
.rk-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; }
.rk-head h2 { margin: 0; font: 700 20px/1.2 'Inter Tight', sans-serif; letter-spacing: -.02em; }
.rk-tabs { margin: 0; }
.rk-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; margin-bottom: 10px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(245,196,81,.16), transparent 60%), var(--dk-card, var(--surface2)); border: 1px solid rgba(245,196,81,.3); }
.rk-prizes { display: flex; gap: 6px; flex-wrap: wrap; }
.rk-pz { padding: 5px 10px; border-radius: 99px; font: 600 12.5px 'Inter Tight', sans-serif; background: rgba(255,255,255,.06); }
.rk-pz b { margin-right: 4px; }
.rk-pz.rk-1 { background: linear-gradient(90deg, rgba(245,196,81,.35), rgba(245,196,81,.15)); color: #FDE68A; }
.rk-pz.rk-2 { color: #E5E7EB; } .rk-pz.rk-3 { color: #F3C4A0; }
.rk-clock { display: inline-flex; align-items: center; gap: 6px; font: 500 12px 'JetBrains Mono', monospace; color: var(--muted); }
.rk-prize { padding: 3px 9px; border-radius: 99px; font: 700 12px 'Inter Tight', sans-serif; color: #FDE68A; background: rgba(245,196,81,.15); border: 1px solid rgba(245,196,81,.3); margin-right: 8px; white-space: nowrap; }
.rk-me { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.rk-me b { color: var(--ink, #F2EFEA); }
.rk-past { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.rk-pw { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #FDE68A; }
.rk-pw b { color: var(--ink, #F2EFEA); }
.dk-board-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 14px; flex-wrap: wrap; }
.rk-hint { margin: 6px 0 4px; font-size: 12.5px; color: var(--muted); }
.rk-hint b { color: #FDE68A; }
.dk-circle.rk-1 { border-color: rgba(245,196,81,.8); color: #FDE68A; background: rgba(245,196,81,.12); }
.dk-circle.rk-2 { border-color: rgba(229,231,235,.6); color: #E5E7EB; }
.dk-circle.rk-3 { border-color: rgba(243,196,160,.6); color: #F3C4A0; }
.rk-more { display: block; margin: 10px 0 12px; font-size: 13px; }

/* ---------- Comunidad: feed ---------- */
.feed-grid { display: grid; grid-template-columns: minmax(0, 580px) 300px; gap: 32px; justify-content: center; align-items: start; }
.feed-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.feed-tabs { margin: 0; }
.feed-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.feed-stats { width: 100%; }
.feed-stats div { min-width: 0; flex: 1; padding: 12px 14px; }
.feed-reto { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; text-decoration: none; color: inherit; }
.feed-reto b { font: 700 17px/1.25 'Inter Tight', sans-serif; letter-spacing: -.02em; }
.feed-reto small { color: var(--muted); font-size: 12.5px; }
.feed-side .wall-rank { margin-right: 2px; }
.feed-up { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--dk-line); border-radius: 18px; background: var(--dk-card); color: inherit; text-decoration: none; transition: border-color .2s; }
.feed-up:hover { border-color: var(--accent, #7C4DFF); }
.feed-up > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.feed-up small { color: var(--muted); font-size: 12.5px; }
.fp { border: 1px solid var(--dk-line); border-radius: 22px; background: var(--dk-card); overflow: hidden; }
.fp.feat { border-color: rgba(168,85,247,.55); box-shadow: 0 0 0 1px rgba(168,85,247,.25), 0 18px 40px -24px rgba(168,85,247,.6); }
.fp-h { display: flex; align-items: center; gap: 11px; padding: 14px 16px; }
.fp-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fp-who b { font: 700 15px/1.2 'Inter Tight', sans-serif; }
.fp-who small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-who small a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.fp-plat { flex: none; font: 500 10.5px/1 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--dk-line); border-radius: 99px; padding: 6px 9px; }
.clip-media.fp-media { aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; border-radius: 0; border: 0; border-top: 1px solid var(--dk-line); border-bottom: 1px solid var(--dk-line); }
.fp-media .fp-bg { filter: blur(28px) brightness(.55); transform: scale(1.2); }
.fp-media .fp-img { object-fit: contain; }
.clip-media.fp-media:hover .fp-img { transform: scale(1.02); }
.fp-media .clip-play { width: 64px; height: 64px; }
.fp-f { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.fp-t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fp-t b { font: 700 16.5px/1.3 'Inter Tight', sans-serif; letter-spacing: -.015em; }
.fp-acts { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.fp-acts form { margin: 0; }
.clip-like.fp-like { padding: 9px 14px; font-size: 14px; gap: 7px; }
.fp-like em { font-style: normal; font-weight: 600; opacity: .8; }
.fp-open { font-size: 13px; color: var(--muted); text-decoration: none; }
.fp-open:hover { color: inherit; }
.feed-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 20px; border: 1px dashed var(--dk-line); border-radius: 22px; }
.feed-more { align-self: center; }
.feed-end { text-align: center; color: var(--muted); padding: 8px 0 20px; }
@media (max-width: 960px) {
  .feed-grid { grid-template-columns: minmax(0, 1fr); }
  .feed-side { position: static; order: -1; }
  .feed-side .dk-panel:not(.feed-reto) { display: none; }
}
@media (max-width: 560px) {
  .feed .fp { border-radius: 18px; }
  .fp-open { display: none; }
  .feed-up .btn { display: none; }
}
@media (max-width: 960px) {
  .feed-stats { display: none; }
  .feed-reto { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 16px; }
  .feed-reto .kick { width: 100%; }
  .feed-reto small { display: none; }
  .feed-reto .dk-link { margin-left: auto; }
}
@media (max-width: 560px) {
  .feed .dk-page-lead { display: none; }
  .feed-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .feed-tabs::-webkit-scrollbar { display: none; }
  .feed-tabs a { flex: none; white-space: nowrap; }
  .clip-media.fp-media { max-height: 64vh; }
  .fp-h { padding: 12px 14px; }
  .fp-f { padding: 12px 14px 14px; }
}

/* ---------- Admin: uso y gastos ---------- */
.us-sum { display: flex; flex-direction: column; gap: 4px; border-left: 4px solid #22c55e; }
.us-sum.warn { border-left-color: #f59e0b; } .us-sum.over { border-left-color: #ef4444; }
.us-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.us-m { display: flex; flex-direction: column; gap: 8px; }
.us-m p { margin: 0; }
.us-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.us-pill { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: rgba(34,197,94,.14); color: #22c55e; white-space: nowrap; }
.us-m.warn .us-pill { background: rgba(245,158,11,.15); color: #f59e0b; }
.us-m.over .us-pill { background: rgba(239,68,68,.15); color: #ef4444; }
.us-num { font: 800 24px/1.1 'Inter Tight', sans-serif; letter-spacing: -.03em; }
.us-num small { font: 500 13px/1 Inter, sans-serif; color: var(--muted); letter-spacing: 0; }
.us-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.us-bar span { display: block; height: 100%; border-radius: 99px; background: #22c55e; }
.us-m.warn .us-bar span { background: #f59e0b; } .us-m.over .us-bar span { background: #ef4444; }
.us-r2 { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.us-r2-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 76px; gap: 12px; align-items: center; }
.us-r2-l { display: flex; flex-direction: column; min-width: 0; }
.us-r2-l small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-r2-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.us-r2-bar span { display: block; height: 100%; background: var(--accent, #7C4DFF); border-radius: 99px; }
.us-r2-n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 560px) { .us-r2-row { grid-template-columns: minmax(0, 1fr) 70px; } .us-r2-bar { grid-column: 1 / -1; order: 3; } }
.us-m.paid .us-pill { background: rgba(124,77,255,.15); color: #a78bfa; } .us-m.paid .us-bar span { background: #a78bfa; }
.sug-cat { position: relative; display: block; min-width: 0; }
/* Celular: pasos compactos tipo lista (ícono/número a la izquierda) */
@media (max-width: 560px) {
  .dk-steps .dk-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 14px 16px; align-items: center; }
  .dk-steps .dk-step > .dk-mono { grid-column: 2; font-size: 10px; }
  .dk-steps .dk-step > .dk-num { grid-column: 1; grid-row: 1 / span 4; margin: 0; font-size: 40px; text-align: center; }
  .dk-steps .dk-step > .dk-num svg { width: 28px; height: 28px; }
  .dk-steps .dk-step > b { grid-column: 2; font-size: 16.5px; }
  .dk-steps .dk-step > p { grid-column: 2; margin: 2px 0 0; font-size: 13px; }
  .dk-steps .dk-step > :not(.dk-num):not(.dk-mono):not(b):not(p) { grid-column: 2; }
  .dk-steps { gap: 10px; }
  .dk-step:hover, .dk-lesson:hover { transform: none; }
}
/* Celular: botones y campos cómodos para el dedo, sin zoom de iOS al escribir */
@media (max-width: 560px) {
  input, select, textarea { font-size: 16px !important; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 38px; }
  .tabs a { min-height: 36px; display: inline-flex; align-items: center; }
}
html { -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior-y: none; }

/* ---------- Comunidad en modo vertical (tipo TikTok) ---------- */
body.tk-body { background: #000; overflow: hidden; }
body.tk-body .bare-toggle, body.tk-body .foot { display: none !important; }
.tk { position: fixed; inset: 0; background: #000; color: #fff; z-index: 50; }
.tk-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 18px; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent); pointer-events: none; }
.tk-top > * { pointer-events: auto; }
.tk-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); border: 0; cursor: pointer; backdrop-filter: blur(8px); }
.tk-tabs { display: flex; gap: 4px; }
.tk-tabs a { color: rgba(255,255,255,.62); font: 700 15.5px/1 'Inter Tight', sans-serif; padding: 9px 10px; text-decoration: none; position: relative; }
.tk-tabs a.on { color: #fff; }
.tk-tabs a.on::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: 0; height: 3px; border-radius: 3px; background: #fff; }
.tk-list { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.tk-list::-webkit-scrollbar { display: none; }
.tk-s { position: relative; height: 100%; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; display: grid; place-items: center; }
.tk-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) brightness(.35) saturate(1.3); }
.tk-stage { position: relative; height: 100%; width: min(100vw, calc(100dvh * 9 / 16)); display: grid; place-items: center; }
.tk-media { position: relative; width: 100%; height: 100%; background: #0b0910; overflow: hidden; }
.tk-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tk-media .clip-art { position: absolute; inset: 0; }
.tk-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; z-index: 2; }
.tk-media.ig iframe { background: #fff; }
.tk-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; border: 0; display: grid; place-items: center;
  color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(10px); cursor: pointer; z-index: 1; }
.tk-s.playing .tk-play { display: none; }
.tk-info { position: absolute; left: 0; right: 84px; bottom: 0; z-index: 3; padding: 60px 16px calc(22px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); pointer-events: none; }
.tk-info > * { pointer-events: auto; }
.tk-who { color: #fff; font: 800 16px/1.2 'Inter Tight', sans-serif; text-decoration: none; }
.tk-title { margin: 6px 0 10px; font-size: 14.5px; line-height: 1.4; color: rgba(255,255,255,.92); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(255,255,255,.14); padding: 5px 10px; border-radius: 99px; text-decoration: none; backdrop-filter: blur(6px); }
.tk-chip.feat { background: rgba(168,85,247,.55); }
.tk-chip.ghost { background: transparent; color: rgba(255,255,255,.65); padding-left: 0; }
.tk-rail { position: absolute; right: 8px; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tk-av { margin-bottom: 4px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; display: block; }
.tk-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; color: #fff; cursor: pointer; text-decoration: none; padding: 0; min-width: 56px; }
.tk-btn-ic { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); transition: transform .2s; }
.tk-btn b { font: 700 12.5px/1 'Inter Tight', sans-serif; text-shadow: 0 1px 4px rgba(0,0,0,.6); max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-btn:active .tk-btn-ic { transform: scale(.88); }
.tk-btn.on .tk-btn-ic { background: linear-gradient(135deg, #ff7a18, #ff2d55); box-shadow: 0 0 24px -4px rgba(255,61,85,.8); }
.tk-btn.pop .tk-btn-ic { animation: tkPop .45s var(--ease, ease); }
@keyframes tkPop { 40% { transform: scale(1.3); } }
.tk-burst { position: absolute; z-index: 6; transform: translate(-50%, -50%); color: #ff3d55; pointer-events: none; animation: tkBurst .9s ease forwards; }
.tk-burst svg { width: 96px; height: 96px; filter: drop-shadow(0 6px 20px rgba(255,61,85,.6)); }
@keyframes tkBurst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -110%) scale(1); } }
.tk-end-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px; max-width: 340px; }
.tk-end-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #7C4DFF, #c026d3); }
.tk-end-in b { font: 800 22px/1.2 'Inter Tight', sans-serif; }
.tk-end-in p { margin: 0; color: rgba(255,255,255,.7); }
.tk-end-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.tk-sheet-bg { position: absolute; inset: 0; z-index: 8; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .25s; }
.tk-sheet-bg.open { opacity: 1; }
.tk-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; max-width: 560px; margin: 0 auto; height: min(72dvh, 620px); display: flex; flex-direction: column;
  background: #15121c; color: #fff; border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform .25s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom); }
.tk-sheet.open { transform: none; }
.tk-sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.tk-sheet-h .tk-ic svg { transform: rotate(45deg); }
.tk-sheet-list { flex: 1; overflow-y: auto; padding: 8px 16px; overscroll-behavior: contain; }
.tk-sheet-note { color: rgba(255,255,255,.6); text-align: center; padding: 28px 16px; margin: 0; font-size: 14px; }
.tk-c { display: flex; gap: 10px; padding: 10px 0; align-items: flex-start; }
.tk-c-b { flex: 1; min-width: 0; }
.tk-c-b b { font-size: 13px; color: rgba(255,255,255,.75); }
.tk-c-b small { font-weight: 500; color: rgba(255,255,255,.4); margin-left: 4px; }
.tk-c-b p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.tk-c-x { background: none; border: 0; color: rgba(255,255,255,.45); font-size: 12px; cursor: pointer; padding: 4px; }
.tk-quick { order: 2; display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; scrollbar-width: none; }
.tk-quick::-webkit-scrollbar { display: none; }
.tk-quick button { flex: none; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 99px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.tk-sheet-f { order: 3; display: flex; gap: 8px; padding: 10px 12px 12px; }
.tk-sheet-f input { flex: 1; min-width: 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 99px; padding: 12px 16px; font-size: 16px; }
.tk-send { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7C4DFF, #c026d3); cursor: pointer; }
.tk-send:disabled { opacity: .5; }
.tk-toast { position: absolute; left: 50%; top: 80px; transform: translateX(-50%); z-index: 10; background: rgba(20,16,28,.92); color: #fff; padding: 10px 16px; border-radius: 99px; font-size: 14px; white-space: nowrap; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 761px) {
  .tk-rail { right: auto; left: calc(50% + min(50vw, 100dvh * 9 / 32) + 14px); }
  .tk-info { left: calc(50% - min(50vw, 100dvh * 9 / 32)); right: auto; width: min(100vw, calc(100dvh * 9 / 16)); }
  .tk-media { border-radius: 14px; height: calc(100% - 24px); }
}
/* Entrada a la vista vertical desde Comunidad */
.feed-tk { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, #1b1030, #3a1458 60%, #6d1f6e); border: 1px solid rgba(168,85,247,.45); }
.feed-tk-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.feed-tk > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.feed-tk small { color: rgba(255,255,255,.75); font-size: 12.5px; }
.fp-cm { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); text-decoration: none; padding: 9px 12px; border-radius: 99px; border: 1px solid var(--dk-line); }
.fp-cm:hover { color: inherit; }
/* Sobre el reproductor de TikTok/YouTube: nuestros botones con fondo sólido para que se lean encima de sus controles */
.tk-s.playing .tk-btn-ic { background: rgba(10,8,16,.72); box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.tk-s.playing .tk-btn.on .tk-btn-ic { background: linear-gradient(135deg, #ff7a18, #ff2d55); }
.tk-s.playing .tk-info { background: linear-gradient(0deg, rgba(0,0,0,.85) 30%, transparent); }
.tk-s.playing .tk-chip { background: rgba(10,8,16,.7); }
.tk-top { background: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,.35) 70%, transparent); padding-bottom: 26px; }
/* Calculadora de afiliados: barra propia que se llena hasta el final (hasta 1,000 ventas) */
.aff-calc-row input[type=range] { -webkit-appearance: none; appearance: none; height: 8px; border-radius: 99px; outline-offset: 6px;
  background: linear-gradient(90deg, #34d399 var(--p, 10%), rgba(255,255,255,.14) var(--p, 10%)); cursor: pointer; }
.aff-calc-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #34d399; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(52,211,153,.6); }
.aff-calc-row input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #34d399; border: 3px solid #fff; }
.aff-calc-row input[type=range]::-moz-range-track { background: transparent; }
.aff-calc-row b { min-width: 4.2ch; }
/* Admin en celular / web app del iPhone: una sola barra abajo (la de admin), sin la barra del alumno escondida detrás,
   y el contenido con espacio suficiente para que nada quede tapado (incluye la zona del indicador de inicio) */
@media (max-width: 760px) {
  body:has(.adm-bar) .tabbar { display: none !important; }
  body:has(.adm-bar) { padding-bottom: 0; }
  body:has(.adm-bar) .wmain { padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
  body:has(.adm-bar) .maxx { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .adm-bar { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .adm-bar a { min-height: 48px; justify-content: center; }
  /* Alumno: el contenido termina arriba de la barra flotante */
  body:not(:has(.adm-bar)) .wmain { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
.aff-cur { font: 600 13px/1 'JetBrains Mono', monospace; letter-spacing: .06em; color: var(--muted); vertical-align: middle; }
/* Centro de mando: el negocio en un vistazo */
.biz { margin: 18px 0; }
.biz-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.biz-t { display: flex; flex-direction: column; gap: 4px; padding: 16px; color: inherit; text-decoration: none; min-width: 0; }
.biz-t > span { font: 500 10.5px/1.3 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.biz-t b { font: 800 26px/1.1 'Inter Tight', sans-serif; letter-spacing: -.03em; }
.biz-t small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.biz-t.off b { color: var(--brand, #7C4DFF); }
.biz-t.good b, .biz-t b.pos { color: #22c55e; } .biz-t.warn b { color: #f59e0b; } .biz-t.bad b, .biz-t b.neg { color: #ef4444; }
.biz-t.big { background: linear-gradient(135deg, rgba(124,77,255,.14), rgba(34,197,94,.08)); }
.biz-mini { margin-top: 10px; font-size: 13px; } .biz-mini a { color: var(--muted); }
@media (max-width: 1000px) { .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .biz-t b { font-size: 21px; } }
.ads-chart { display: flex; align-items: flex-end; gap: 3px; height: 140px; margin-top: 12px; }
.ads-day { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 1px; min-width: 0; }
.ads-day i { flex: 1; background: #7C4DFF; border-radius: 3px 3px 0 0; } .ads-day i.v { background: #22c55e; }
/* Calculadora de afiliados: la barra no hereda el estilo de las cajas de texto (borde, relleno, alto, aro morado) */
.aff-calc-row input[type=range] { flex: 1; min-width: 0; height: 8px !important; min-height: 0 !important; padding: 0 !important; margin: 10px 0 !important;
  border: 0 !important; border-radius: 99px !important; box-shadow: none !important; outline: none;
  background: linear-gradient(90deg, #34d399 var(--p, 10%), rgba(255,255,255,.14) var(--p, 10%)) !important; }
.aff-calc-row input[type=range]:focus, .aff-calc-row input[type=range]:focus-visible { box-shadow: none !important; border: 0 !important; }
.aff-calc-row input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(52,211,153,.35); }
.aff-calc-row input[type=range]::-webkit-slider-runnable-track { height: 8px; background: transparent; border: 0; }
.aff-calc-row input[type=range]::-webkit-slider-thumb { margin-top: -7px; }
:root[data-theme="light"] .aff-calc-row input[type=range] { background: linear-gradient(90deg, #10b981 var(--p, 10%), rgba(0,0,0,.1) var(--p, 10%)) !important; }

/* ---------- Hooks virales ---------- */
.hk-top-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }
.hk-nav { position: sticky; top: 64px; z-index: 6; margin-bottom: 20px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; backdrop-filter: blur(14px); }
.hk-nav::-webkit-scrollbar { display: none; } .hk-nav a { white-space: nowrap; flex: none; }
.hk-goal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 10px 0 26px; }
.hk-goal { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; border: 1px solid var(--dk-line); background: var(--dk-card); color: inherit; cursor: pointer; transition: border-color .2s, transform .2s; position: relative; overflow: hidden; }
.hk-goal::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--hc); }
.hk-goal:hover, .hk-goal.on { border-color: var(--hc); transform: translateY(-2px); }
.hk-goal-n { font: italic 400 30px/1 'Instrument Serif', serif; color: var(--hc); }
.hk-goal b { font: 700 16px/1.25 'Inter Tight', sans-serif; }
.hk-goal small { color: var(--muted); font-size: 12.5px; line-height: 1.4; } .hk-goal em { font-style: normal; color: var(--ink, #fff); }
.hk-bar { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--dk-line); border-radius: 20px; background: var(--dk-card); margin-bottom: 24px; scroll-margin-top: 120px; }
.hk-topic, .hk-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--dk-line2, var(--dk-line)); background: rgba(255,255,255,.03); }
.hk-topic { border-color: rgba(168,85,247,.55); box-shadow: 0 0 0 4px rgba(168,85,247,.08); }
.hk-topic input, .hk-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 12px 0 !important; color: inherit; font-size: 15px; }
.hk-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hk-chips button, .hk-chips select { border: 1px solid var(--dk-line); background: transparent; color: var(--muted); padding: 7px 12px; border-radius: 99px; font: 600 12.5px/1 'Inter Tight', sans-serif; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.hk-chips button.on { background: var(--ink, #fff); color: var(--bg, #000); border-color: transparent; }
.hk-chips button[data-cat-f].on[style] { background: var(--hc); color: #fff; }
.hk-chips select { padding-right: 26px; }
.hk-lbl { font: 500 10.5px/1 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.hk-random { margin-left: auto; color: var(--ink, #fff) !important; border-color: rgba(168,85,247,.5) !important; }
.hk-count { margin: 0; }
.hk-blank { display: inline-block; padding: 0 6px; margin: 0 1px; border-radius: 6px; background: rgba(168,85,247,.16); color: #c4a5ff; font-weight: 700; border-bottom: 2px dashed rgba(168,85,247,.6); }
.hk-blank.on { background: rgba(34,197,94,.16); color: #4ade80; border-bottom-color: rgba(34,197,94,.6); }
.hk-cat { margin: 34px 0 10px; scroll-margin-top: 120px; }
.hk-cat-h { display: flex; align-items: flex-start; gap: 16px; }
.hk-cat-h > div { flex: 1; min-width: 0; } .hk-cat-h p { margin: 4px 0 0; }
.hk-cat-n { font: italic 400 56px/0.9 'Instrument Serif', serif; color: var(--hc); }
.hk-cat-tag { flex: none; font: 600 11px/1 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; padding: 7px 11px; border-radius: 99px; color: var(--hc); border: 1px solid color-mix(in srgb, var(--hc) 50%, transparent); }
.hk-body { font-size: 13.5px; color: var(--muted); padding: 10px 14px; border-left: 3px solid var(--hc); background: rgba(255,255,255,.02); border-radius: 0 12px 12px 0; margin: 14px 0 16px; }
.hk-body b { color: var(--ink, #fff); }
.hk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.hk-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; border: 1px solid var(--dk-line); background: var(--dk-card); position: relative; scroll-margin-top: 140px; transition: border-color .2s, box-shadow .3s; }
.hk-card:hover { border-color: color-mix(in srgb, var(--hc) 55%, transparent); }
.hk-card.hk-hl { animation: hkFlash 1.6s ease; }
@keyframes hkFlash { 0%, 60% { box-shadow: 0 0 0 3px var(--hc), 0 20px 50px -20px var(--hc); } 100% { box-shadow: none; } }
.hk-card-top { display: flex; align-items: center; gap: 8px; }
.hk-num { font: 700 12px/1 'JetBrains Mono', monospace; color: var(--hc); }
.hk-lvl { font: 600 10px/1 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; }
.hk-lvl.inc { background: rgba(236,72,153,.14); color: #f472b6; } .hk-lvl.pro { background: rgba(249,115,22,.14); color: #fb923c; }
.hk-lvl.sol { background: rgba(34,197,94,.14); color: #4ade80; } .hk-lvl.prd { background: rgba(59,130,246,.14); color: #60a5fa; }
.hk-fav { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--dk-line); background: transparent; color: var(--muted); cursor: pointer; }
.hk-fav.on { color: #facc15; border-color: rgba(250,204,21,.5); background: rgba(250,204,21,.1); }
.hk-formula { margin: 0; font: 700 17px/1.4 'Inter Tight', sans-serif; letter-spacing: -.01em; }
.hk-use { margin: 0; font-size: 13px; color: var(--muted); }
.hk-ex { font-size: 13.5px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); font-style: italic; }
.hk-ex span { display: block; font: 600 10px/1 'JetBrains Mono', monospace; font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--hc); margin-bottom: 6px; }
.hk-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.hk-fmts { display: flex; flex-wrap: wrap; gap: 4px; } .hk-fmts i { font-style: normal; font-size: 11px; color: var(--muted); border: 1px solid var(--dk-line); padding: 3px 7px; border-radius: 99px; }
.hk-acts { display: flex; gap: 6px; flex: none; }
.hk-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--dk-line); background: transparent; color: inherit; padding: 7px 10px; border-radius: 99px; font: 600 12.5px/1 'Inter Tight', sans-serif; cursor: pointer; min-height: 34px; }
.hk-copy { background: var(--hc); border-color: transparent; color: #fff; }
.hk-copy.done span::after { content: ' ✓'; }
.hk-empty { text-align: center; padding: 40px 0; }
.hk-sec { margin: 56px 0 0; scroll-margin-top: 120px; }
.hk-sec .dk-steps { margin-top: 18px; }
.hk-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.hk-levels div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px; border: 1px solid var(--dk-line); border-radius: 14px; }
.hk-levels small { color: var(--muted); font-size: 12.5px; }
.hk-anat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.hk-anat .card { display: flex; flex-direction: column; gap: 6px; } .hk-anat b { font: 700 17px/1.2 'Inter Tight', sans-serif; } .hk-anat p { margin: 0; }
.hk-anat-ex { margin-top: 12px; } .hk-anat-ex dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; margin: 12px 0 0; }
.hk-anat-ex dt { font: 600 11px/1.4 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); } .hk-anat-ex dd { margin: 0; }
.hk-ost { display: inline-block; background: #fff; color: #111; font-weight: 800; padding: 4px 10px; border-radius: 6px; }
.hk-loops { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.hk-loop { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 14px; cursor: pointer; color: inherit; border: 1px solid var(--dk-line); }
.hk-loop span { font-size: 14px; } .hk-loop small { color: var(--muted); font-size: 11.5px; display: inline-flex; gap: 4px; align-items: center; }
.hk-loop:hover { border-color: rgba(168,85,247,.5); }
.hk-rehooks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hk-rehooks button { border: 1px dashed rgba(168,85,247,.5); background: rgba(168,85,247,.06); color: inherit; padding: 9px 14px; border-radius: 99px; font-size: 13.5px; cursor: pointer; }
.hk-boost td:first-child { white-space: nowrap; }
.hk-combo { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.hk-combo-r { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--dk-line); }
.hk-combo-r span { font: 600 11px/1.5 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hk-combo-r.fin b { color: #4ade80; }
.hk-test { display: flex; gap: 8px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(250,204,21,.07); border: 1px solid rgba(250,204,21,.3); margin-top: 14px; }
.hk-scorer { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.hk-scorer textarea { width: 100%; font: 700 17px/1.4 'Inter Tight', sans-serif; }
.hk-crit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hk-crit-i { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--dk-line); cursor: pointer; }
.hk-crit-i:has(input:checked) { border-color: rgba(34,197,94,.55); background: rgba(34,197,94,.06); }
.hk-crit-i input { margin-top: 3px; width: 18px; height: 18px; accent-color: #22c55e; flex: none; }
.hk-crit-i span { display: flex; flex-direction: column; gap: 2px; } .hk-crit-i em { font-style: normal; color: #4ade80; font-size: 12px; } .hk-crit-i small { color: var(--muted); font-size: 12.5px; }
.hk-result { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hk-result > div:nth-child(2) { flex: 1; min-width: 200px; } .hk-result p { margin: 4px 0 0; }
.hk-gauge { --s: 0; --col: #ef4444; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; align-content: center; flex: none;
  background: radial-gradient(closest-side, var(--dk-card, #15121c) 78%, transparent 80% 100%), conic-gradient(var(--col) calc(var(--s) * 1%), rgba(255,255,255,.1) 0); }
.hk-gauge b { font: 800 30px/1 'Inter Tight', sans-serif; } .hk-gauge small { color: var(--muted); font-size: 11px; }
.hk-gauge.ok { --col: #22c55e; } .hk-gauge.good { --col: #84cc16; } .hk-gauge.warn { --col: #f59e0b; } .hk-gauge.bad { --col: #ef4444; }
.hk-bands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 13px; }
.hk-bands span { padding: 6px 10px; border-radius: 99px; border: 1px solid var(--dk-line); }
.hk-bands .ok b { color: #22c55e; } .hk-bands .good b { color: #84cc16; } .hk-bands .warn b { color: #f59e0b; } .hk-bands .bad b { color: #ef4444; }
.hk-ba { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin-top: 14px; }
.hk-before p { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(239,68,68,.6); }
.hk-before .dk-mono { color: #ef4444; } .hk-after .dk-mono { color: #22c55e; }
.hk-ba-r { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--dk-line); }
.hk-ba-r span { font: 600 11px/1.6 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); } .hk-ba-r p { margin: 0; }
.hk-why { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hk-why li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; } .hk-why .ic { color: #22c55e; flex: none; margin-top: 2px; }
.hk-claude { padding-bottom: 20px; }
.hk-lock { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .hk-lock > div { flex: 1; min-width: 200px; }
.hk-toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 130; background: #15121c; color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; border: 1px solid rgba(168,85,247,.4); }
@media (max-width: 900px) {
  .hk-goal-grid, .hk-anat, .hk-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hk-ba { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hk-nav { top: 56px; }
  .hk-crit, .hk-why { grid-template-columns: 1fr; }
  .hk-cat-n { font-size: 42px; } .hk-cat-h { flex-wrap: wrap; } .hk-cat-tag { order: 3; }
  .hk-anat-ex dl, .hk-combo-r, .hk-ba-r { grid-template-columns: 1fr; gap: 4px; }
  .hk-random { margin-left: 0; }
  .hk-grid { grid-template-columns: 1fr; }
}
.hk-chips select { width: auto !important; min-width: 0; flex: none; padding: 7px 28px 7px 12px !important; height: auto !important; font-size: 12.5px !important; }
.hk-nav { background: color-mix(in srgb, var(--bg, #0E0B14) 92%, transparent) !important; }
@media (max-width: 560px) {
  .hk-cat-h > div { flex: 1 1 calc(100% - 70px); }
  .hk-cat-tag { order: 3; margin-left: 58px; }
}
.hk-promo { display: flex; align-items: center; gap: 18px; padding: 18px 20px; margin: 18px 0; border-radius: 22px; text-decoration: none; color: inherit;
  background: linear-gradient(120deg, rgba(168,85,247,.18), rgba(34,197,94,.08)); border: 1px solid rgba(168,85,247,.45); }
.hk-promo-n { font: italic 400 64px/1 'Instrument Serif', serif; color: #c4a5ff; flex: none; }
.hk-promo-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .hk-promo-t b { font: 800 20px/1.2 'Inter Tight', sans-serif; }
@media (max-width: 640px) { .hk-promo { flex-wrap: wrap; } .hk-promo .btn { width: 100%; justify-content: center; } .hk-promo-n { font-size: 48px; } }
.hk-nav { display: flex !important; width: 100% !important; max-width: 100% !important; min-width: 0; overflow-x: auto !important; box-sizing: border-box; }
.hk-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0 6px; }
.hk-skill { padding: 20px; display: flex; flex-direction: column; gap: 10px; border: 1px solid rgba(168,85,247,.35); background: linear-gradient(160deg, rgba(168,85,247,.10), transparent 60%); }
.hk-skill-h { display: flex; gap: 12px; align-items: center; } .hk-skill-h div { display: flex; flex-direction: column; gap: 3px; }
.hk-skill-h b { font: 800 19px/1.2 'Inter Tight', sans-serif; letter-spacing: -.02em; word-break: break-word; }
.hk-skill-n { font: italic 400 44px/1 'Instrument Serif', serif; color: #c4a5ff; }
.hk-skill p { margin: 0; } .hk-skill ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.hk-skill li { display: flex; gap: 8px; align-items: flex-start; } .hk-skill li .ic { color: #4ade80; flex: none; margin-top: 3px; }
.hk-skill .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 760px) { .hk-skills { grid-template-columns: 1fr; } .hk-skill .btn { align-self: stretch; justify-content: center; } }
.cert-preview { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.4); font-size: 14px; } .cert-preview a { color: inherit; text-decoration: underline; }

/* ---------- Certificado de lujo: negro y dorado, tipo premio ---------- */
.aw { --gold: linear-gradient(115deg, #8a6a2b 0%, #f6e7ad 22%, #c9a24d 42%, #fff3c8 55%, #b4862e 74%, #f0d78c 100%);
  position: relative; max-width: 1040px; margin: 0 auto; aspect-ratio: 1.414; border-radius: 18px; padding: 10px;
  background: var(--gold); box-shadow: 0 40px 120px -30px rgba(201,162,77,.45), 0 30px 80px -30px rgba(0,0,0,.9); }
.aw-frame { height: 100%; border-radius: 12px; padding: 14px;
  background: radial-gradient(120% 90% at 50% 0%, #1b150b 0%, #0b0906 55%, #050403 100%); }
.aw-in { position: relative; height: 100%; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4.5% 9%;
  border: 1px solid rgba(233,198,108,.55); outline: 1px solid rgba(233,198,108,.25); outline-offset: -10px;
  background: radial-gradient(60% 45% at 50% 42%, rgba(201,162,77,.16), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 2px, transparent 2px 6px); color: #f3ead2; }
.aw-in::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 120%, rgba(201,162,77,.22), transparent 45%), radial-gradient(circle at 50% -20%, rgba(255,243,200,.10), transparent 40%); }
.aw-corner { position: absolute; width: 13%; max-width: 120px; aspect-ratio: 1; }
.aw-corner.aw-tl { top: 10px; left: 10px; } .aw-corner.aw-tr { top: 10px; right: 10px; transform: scaleX(-1); }
.aw-corner.aw-bl { bottom: 10px; left: 10px; transform: scaleY(-1); } .aw-corner.aw-br { bottom: 10px; right: 10px; transform: scale(-1, -1); }
.aw-spark { position: absolute; width: var(--z); height: var(--z); opacity: .8; animation: awTwinkle 3.2s ease-in-out infinite; animation-delay: var(--d); }
.aw-spark svg { width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(255,236,170,.9)); }
@keyframes awTwinkle { 0%, 100% { opacity: .15; transform: scale(.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(20deg); } }
.aw-top { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.aw-stars { display: flex; align-items: flex-end; gap: 6px; }
.aw-stars span { width: 16px; height: 16px; } .aw-stars span.big { width: 24px; height: 24px; }
.aw-stars svg { width: 100%; height: 100%; filter: drop-shadow(0 0 8px rgba(233,198,108,.6)); }
.aw-brand { display: flex; align-items: center; gap: 10px; }
.aw-brand img { border-radius: 9px; box-shadow: 0 0 0 1px rgba(233,198,108,.6); }
.aw-brand span { font: 800 19px/1 'Inter Tight', sans-serif; letter-spacing: .14em; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aw-brand em { font: italic 400 18px/1 'Instrument Serif', serif; color: #d9c48d; }
.aw-kicker { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 4%; font: 600 12.5px/1 'JetBrains Mono', monospace; letter-spacing: .42em; text-transform: uppercase; color: #e9c66c; }
.aw-kicker i { width: 48px; height: 1px; background: linear-gradient(90deg, transparent, #e9c66c); } .aw-kicker i:last-child { transform: scaleX(-1); }
.aw-small { position: relative; margin: 3% 0 0; color: #b9ab86; font-size: 15px; letter-spacing: .02em; }
.aw-name { position: relative; margin: .6% 0 0; font: italic 400 clamp(40px, 7vw, 84px)/1.05 'Instrument Serif', serif; letter-spacing: -.01em; padding: 0 .1em;
  background: var(--gold); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 18px rgba(233,198,108,.35)); animation: awShine 6s linear infinite; }
@keyframes awShine { from { background-position: 0% 0; } to { background-position: 220% 0; } }
.aw-rule { position: relative; display: flex; align-items: center; gap: 10px; margin: 1.6% 0 0; width: min(420px, 60%); }
.aw-rule i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(233,198,108,.8)); } .aw-rule i:last-child { transform: scaleX(-1); }
.aw-rule svg { width: 14px; height: 14px; flex: none; }
.aw-course { position: relative; margin: .8% 0 0; font: 800 clamp(22px, 3.4vw, 38px)/1.1 'Inter Tight', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #fff8e6; text-shadow: 0 0 24px rgba(233,198,108,.35); }
.aw-desc { position: relative; margin: 1% 0 0; color: #9d916f; font-size: 13px; letter-spacing: .04em; }
.aw-foot { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 28px; width: 100%; margin-top: 3.5%; }
.aw-sign { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid rgba(233,198,108,.6); }
.aw-sign b { font: 600 16px/1.2 'Inter Tight', sans-serif; color: #f6ecd0; }
.aw-sign span { font: 500 10px/1.2 'JetBrains Mono', monospace; letter-spacing: .2em; text-transform: uppercase; color: #a89566; }
.aw-medal { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: -18px; }
.aw-laurel { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); filter: drop-shadow(0 0 10px rgba(233,198,108,.35)); }
.aw-seal { position: relative; width: 92px; height: 115px; margin-top: 30px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.6)) drop-shadow(0 0 14px rgba(233,198,108,.45)); }
.cert-page .cert-actions .btn { --x: 0; }
@media (max-width: 700px) {
  .aw { aspect-ratio: auto; padding: 6px; border-radius: 14px; } .aw-frame { padding: 8px; }
  .aw-in { padding: 40px 18px 30px; }
  .aw-corner { width: 64px; } .aw-kicker { letter-spacing: .24em; font-size: 10.5px; margin-top: 18px; } .aw-kicker i { width: 22px; }
  .aw-course { letter-spacing: .12em; } .aw-small { margin-top: 14px; font-size: 13.5px; }
  .aw-foot { grid-template-columns: 1fr; justify-items: center; gap: 18px; margin-top: 18px; }
  .aw-medal { order: -1; margin-bottom: 0; } .aw-sign { width: 100%; text-align: center; align-items: center; }
}
@media print {
  .aw { max-width: none; width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; box-shadow: none; padding: 10px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .aw * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .aw-spark, .aw-name { animation: none !important; } .aw-spark { opacity: .9; }
  body:has(.aw) { background: #050403 !important; }
}
/* Certificado en PDF: exactamente una hoja horizontal, sin cortes (todo lo demás se oculta y no ocupa espacio) */
@media print {
  @page { size: 297mm 210mm; margin: 0; }
  html:has(.aw), html:has(.aw) body { width: 297mm; height: 210mm; margin: 0 !important; padding: 0 !important; overflow: hidden !important; background: #050403 !important; }
  body:has(.aw) * { visibility: hidden !important; }
  body:has(.aw) .aw, body:has(.aw) .aw * { visibility: visible !important; }
  body:has(.aw) .shell, body:has(.aw) .wmain, body:has(.aw) main { height: 210mm !important; min-height: 0 !important; overflow: hidden !important; padding: 0 !important; }
  .aw { position: fixed !important; left: 0; top: 0; width: 297mm !important; height: 210mm !important; max-width: none !important; margin: 0 !important; box-sizing: border-box; padding: 4mm !important; aspect-ratio: auto !important; border-radius: 0 !important; box-shadow: none !important; break-inside: avoid; page-break-after: avoid; }
  .aw-frame { padding: 4mm !important; box-sizing: border-box; }
  .aw-in { padding: 9mm 22mm !important; }
  .aw-name { font-size: 64px !important; filter: none !important; }
  .aw-course { font-size: 32px !important; }
  .aw-foot { margin-top: 6mm !important; }
}
@media print {
  body:has(.aw) .shell, body:has(.aw) .wmain, body:has(.aw) main, body:has(.aw) main > *, body:has(.aw) .cert-page { transform: none !important; animation: none !important; filter: none !important; opacity: 1 !important; }
  .aw-name { background: none !important; color: #ecca72 !important; -webkit-text-fill-color: #ecca72 !important; }
}
@media print { .aw-brand span { background: none !important; color: #ecca72 !important; -webkit-text-fill-color: #ecca72 !important; } }

/* ---------- Hooks: interruptor verbales / visuales ---------- */
.hk-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; margin: 14px 0 6px; border-radius: 18px; border: 1px solid var(--dk-line); background: var(--dk-card); max-width: 640px; }
.hk-switch a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 13px; text-decoration: none; color: var(--muted); }
.hk-switch a b { font: 700 15px/1.2 'Inter Tight', sans-serif; color: inherit; } .hk-switch a small { font-size: 12px; }
.hk-switch a.on { background: linear-gradient(135deg, #7C4DFF, #c026d3); color: #fff; box-shadow: 0 10px 30px -12px rgba(168,85,247,.8); }

/* ---------- Hooks visuales y formatos ---------- */
.vz-three { margin: 10px 0 18px; }
.vz-three-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin: 14px 0; }
.vz-dec { display: flex; flex-direction: column; gap: 4px; padding: 16px; text-decoration: none; color: inherit; border: 1px solid var(--dk-line); transition: border-color .2s; }
.vz-dec:hover { border-color: rgba(168,85,247,.6); } .vz-dec b { font: 800 20px/1.1 'Inter Tight', sans-serif; } .vz-dec small { color: var(--muted); font-size: 13px; }
.vz-x { font: 300 26px/1 'Inter Tight', sans-serif; color: #a78bfa; text-align: center; }
.vz-mix { padding: 20px; margin: 8px 0 10px; border: 1px solid rgba(168,85,247,.45); background: linear-gradient(135deg, rgba(124,77,255,.14), rgba(192,38,211,.06)); }
.vz-mix.pop { animation: vzPop .5s ease; } @keyframes vzPop { 40% { transform: scale(1.01); box-shadow: 0 0 0 3px rgba(168,85,247,.4); } }
.vz-mix-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; } .vz-mix-h h3 { margin: 4px 0 0; font: 800 20px/1.2 'Inter Tight', sans-serif; }
.vz-mix-row { display: grid; grid-template-columns: 1fr auto 1fr auto 2fr; gap: 10px; align-items: center; margin: 16px 0 10px; }
.vz-mix-row > div { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--dk-line); min-width: 0; }
.vz-mix-row b { font: 700 15.5px/1.35 'Inter Tight', sans-serif; }
.vz-mix-a { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.vz-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 16px 0 26px; }
.vz-strip a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; font-size: 12px; line-height: 1.3; }
.vz-strip a .vz-phone { transition: transform .25s; } .vz-strip a:hover .vz-phone { transform: translateY(-3px); box-shadow: 0 0 0 2px #a78bfa; }
.vz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 14px; }
.vz-card { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px; border-radius: 20px; border: 1px solid var(--dk-line); background: var(--dk-card); scroll-margin-top: 120px; }
.vz-card.hk-hl { animation: hkFlash 1.6s ease; --hc: #a855f7; }
.vz-txt { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vz-txt h3 { margin: 0; font: 800 19px/1.2 'Inter Tight', sans-serif; letter-spacing: -.02em; }
.vz-txt dl { display: grid; grid-template-columns: 112px 1fr; gap: 6px 10px; margin: 4px 0; font-size: 13.5px; line-height: 1.45; }
.vz-txt dt { font: 500 10px/1.5 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; } .vz-txt dd { margin: 0; }
.vz-ideal { display: flex; flex-wrap: wrap; gap: 5px; } .vz-ideal i { font-style: normal; font-size: 11.5px; padding: 4px 9px; border-radius: 99px; background: rgba(168,85,247,.12); color: #c4a5ff; }
.vz-combo-h { margin-top: 6px; } .vz-combo { display: flex; flex-wrap: wrap; gap: 6px; }
.vz-combo a { font-size: 12.5px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--dk-line); text-decoration: none; color: inherit; } .vz-combo a b { color: #a78bfa; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.vz-combo a:hover { border-color: rgba(168,85,247,.6); }
.vz-recipes { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.vz-recipe { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 16px; align-items: center; }
.vz-recipe-ph { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vz-recipe-h { font: 700 18px/1.35 'Inter Tight', sans-serif; margin: 6px 0; }
@media (max-width: 900px) { .vz-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .vz-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .hk-switch a { padding: 9px 10px; } .hk-switch a b { font-size: 13.5px; } .hk-switch a small { font-size: 11px; }
  .vz-three-row, .vz-mix-row { grid-template-columns: 1fr; } .vz-x { display: none; }
  .vz-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vz-card { grid-template-columns: 112px 1fr; gap: 12px; padding: 12px; } .vz-txt dl { grid-template-columns: 1fr; gap: 2px; } .vz-txt dt { padding-top: 6px; }
  .vz-recipe { grid-template-columns: 1fr; } .vz-recipe-ph { max-width: 240px; }
}

/* ---- El teléfono y sus escenas (ilustraciones propias, en bucle) ---- */
.vz-phone { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #111; border: 2px solid #26222f; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); container-type: inline-size; isolation: isolate; }
.vz-n { position: absolute; top: 6px; left: 6px; z-index: 9; font: 700 10px/1 'JetBrains Mono', monospace; color: #fff; background: rgba(0,0,0,.55); padding: 4px 6px; border-radius: 99px; }
@media (prefers-reduced-motion: reduce) { .vz-phone * { animation: none !important; } }
/* PDF: sombras y brillos de texto se imprimen como recuadros; en papel van sin ellos */
@media print {
  .aw *, .aw *::before, .aw *::after { text-shadow: none !important; filter: none !important; box-shadow: none !important; }
  .aw-in::before { display: none !important; }
}

.vz-phone > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vz-card { grid-template-columns: 150px 1fr 64px; }
.vz-seq { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.vz-seq .dk-mono { font-size: 9px; letter-spacing: .1em; }
.vz-seq img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; border: 1px solid var(--dk-line); background: #111; }
.vz-strip.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.vz-note { margin-top: 30px; text-align: center; }
@media (max-width: 900px) { .vz-strip.six { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .vz-card { grid-template-columns: 112px 1fr; }
  .vz-seq { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; } .vz-seq img { width: 64px; } .vz-seq .dk-mono { writing-mode: horizontal-tb; align-self: center; margin-right: 4px; }
  .vz-strip.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.vz-txt dl { grid-template-columns: 1fr !important; gap: 2px !important; } .vz-txt dt { padding-top: 8px !important; } .vz-txt dt:first-child { padding-top: 2px !important; }

/* ---------- Reels (modo TikTok): versión limpia ---------- */
html:has(.tk), html:has(.tk) body { background: #000 !important; }
.tk-sheet[hidden], .tk-sheet-bg[hidden] { display: none !important; }
.tk-top { padding: calc(8px + env(safe-area-inset-top)) 10px 30px; background: linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,0)); }
.tk-ic { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.08); }
.tk-tabs a { font-size: 16px; text-shadow: 0 1px 6px rgba(0,0,0,.6); padding: 10px 9px 12px; }
.tk-tabs a.on::after { left: 32%; right: 32%; bottom: 2px; height: 2.5px; }
/* acciones: iconos sueltos con sombra (sin círculos), como TikTok */
.tk-rail { right: 6px; gap: 18px; bottom: calc(96px + env(safe-area-inset-bottom)); }
.tk-btn-ic, .tk-s.playing .tk-btn-ic { width: 44px; height: 44px; background: none !important; box-shadow: none !important; backdrop-filter: none; filter: drop-shadow(0 1px 4px rgba(0,0,0,.55)); }
.tk-btn-ic svg { width: 32px; height: 32px; stroke-width: 2; }
.tk-btn.on .tk-btn-ic, .tk-s.playing .tk-btn.on .tk-btn-ic { background: none !important; color: #ff3b5c; }
.tk-btn.on .tk-btn-ic svg { fill: #ff3b5c; }
.tk-btn b { font-size: 12.5px; font-weight: 700; }
.tk-av { margin-bottom: 6px; box-shadow: 0 0 0 2px #fff, 0 4px 14px rgba(0,0,0,.5); }
.tk-info { padding: 80px 72px calc(22px + env(safe-area-inset-bottom)) 14px; right: 0; background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 55%, transparent 100%); }
.tk-s.playing .tk-info { background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 55%, transparent 100%); }
.tk-who { font-size: 16.5px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.tk-title { font-size: 14.5px; text-shadow: 0 1px 4px rgba(0,0,0,.6); margin: 6px 0 9px; }
.tk-chip { background: rgba(255,255,255,.16) !important; font-size: 11.5px; padding: 5px 9px; }
.tk-chip.ghost { background: none !important; }
.tk-play { width: 72px; height: 72px; background: rgba(0,0,0,.35); border: 1.5px solid rgba(255,255,255,.35); }
/* pista "desliza" en el primer clip */
.tk-s[data-first]::after { content: 'Swipe to see more'; position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 7; font: 600 12px/1 'Inter Tight', sans-serif; color: rgba(255,255,255,.85); padding: 8px 12px 8px 30px; border-radius: 99px; background: rgba(0,0,0,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E") no-repeat 10px center / 14px; animation: tkHint 1.6s ease-in-out infinite; pointer-events: none; }
.tk.swiped .tk-s[data-first]::after { display: none; }
@keyframes tkHint { 50% { transform: translate(-50%, -6px); } }
/* pantalla final / vacía */
.tk-end { background: #000; }
.tk-end-glow { position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 42%, rgba(124,77,255,.35), transparent 70%), radial-gradient(40% 30% at 70% 70%, rgba(236,72,153,.18), transparent 70%); }
.tk-end-in { gap: 12px; max-width: 320px; }
.tk-end-stack { position: relative; width: 120px; height: 150px; margin-bottom: 14px; }
.tk-end-stack span { position: absolute; inset: 0; border-radius: 18px; border: 1.5px solid rgba(255,255,255,.18); background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); }
.tk-end-stack span:nth-child(1) { transform: rotate(-12deg) translate(-18px, 6px); }
.tk-end-stack span:nth-child(2) { transform: rotate(10deg) translate(18px, 4px); }
.tk-end-stack .ic { display: grid; place-items: center; background: linear-gradient(160deg, #7C4DFF, #c026d3); border: 0; box-shadow: 0 20px 50px -14px rgba(168,85,247,.9); }
.tk-end-in b { font-size: 26px; letter-spacing: -.02em; }
.tk-end-in p { font-size: 15px; line-height: 1.45; }
.tk-end-cta { flex-direction: column; width: 100%; gap: 10px; margin-top: 14px; }
.tk-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px 18px; border-radius: 14px; font: 700 15.5px/1 'Inter Tight', sans-serif; text-decoration: none; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }
.tk-cta.main { background: linear-gradient(135deg, #7C4DFF, #c026d3); border: 0; box-shadow: 0 14px 34px -12px rgba(168,85,247,.85); }
.tk-cta:active { transform: scale(.98); }

/* ---------- Celular: menú lateral completo como cajón deslizable ---------- */
.mside-head { display: none; }
.tabbar .tb-menu { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; color: rgba(255,255,255,.6); font-size: 10px; font-weight: 500; padding: 2px 0; cursor: pointer; font-family: inherit; }
:root[data-theme="light"] .tabbar .tb-menu { color: var(--muted); }
.adm-bar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 10px; color: var(--muted); font-size: 11px; font-weight: 500; background: none; border: 0; cursor: pointer; font-family: inherit; min-height: 48px; justify-content: center; }
@media (max-width: 760px) {
  .adm-bar { grid-template-columns: repeat(6, 1fr) !important; }
  html.mside-open, html.mside-open body { overflow: hidden; }
  html.mside-open body::after { content: ''; position: fixed; inset: 0; z-index: 299; background: rgba(5,3,10,.55); backdrop-filter: blur(3px); animation: msFade .2s ease; }
  html.mside-open .wside { display: flex !important; position: fixed; top: 0; left: 0; bottom: 0; z-index: 300; width: min(86vw, 340px) !important; height: 100dvh !important;
    padding: calc(10px + env(safe-area-inset-top)) 12px 0; background: var(--bg, #0E0B14); box-shadow: 20px 0 60px -10px rgba(0,0,0,.7); animation: msIn .25s cubic-bezier(.2,.8,.2,1); }
  html.mside-open .mside-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
  html.mside-open .mside-head b { font: 800 20px/1 'Inter Tight', sans-serif; }
  html.mside-open .mside-head .top-ic svg { transform: rotate(45deg); }
  /* dentro del cajón todo va completo, con nombres (como en la compu) */
  html.mside-open .wside .snav-l, html.mside-open .wside .snav-h { display: block !important; }
  html.mside-open .wside .snav { justify-content: flex-start !important; padding: 10px 12px !important; }
  html.mside-open .wside .cn-progress, html.mside-open .wside .cn-mods { display: block !important; }
  html.mside-open .wside .snav-badge, html.mside-open .wside .snav-ext, html.mside-open .wside .cn-chev { display: inline-flex !important; }
  html.mside-open .wside .sw-l { display: flex !important; } html.mside-open .wside .sw-h { display: block !important; } html.mside-open .wside .sw-dot { display: block !important; }
  html.mside-open .wside .sw-row { justify-content: flex-start !important; padding: 8px 10px !important; }
  html.mside-open .wside .aff-side, html.mside-open .wside .sug-side { justify-content: flex-start !important; padding: 10px 12px !important; }
  html.mside-open .wside-foot { flex-direction: row !important; padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important; }
  html.mside-open .wside-foot .collapse { display: none !important; }
  html.mside-open .tabbar, html.mside-open .adm-bar, html.mside-open .maxx { visibility: hidden; }
}
@keyframes msIn { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes msFade { from { opacity: 0; } }

/* Buscadores con ícono: el campo va "dentro" de la caja (sin su propio borde) y el texto con aire, en tema claro y oscuro */
.hq-find input, .wsearch input, .hk-topic input, .hk-search input, .hq-find input:hover, .hq-find input:focus, .wsearch input:hover, .wsearch input:focus,
:root[data-theme="light"] .hq-find input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]) {
  background: transparent !important; border: 0 !important; box-shadow: none !important; outline: none !important; padding: 0 6px !important; min-width: 0; }
.hq-find, .wsearch { gap: 8px; }
.hq-find:focus-within, .wsearch:focus-within, .hk-topic:focus-within, .hk-search:focus-within { border-color: var(--brand, #7C4DFF) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #7C4DFF) 18%, transparent) !important; }
:root[data-theme="light"] .hk-topic input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),
:root[data-theme="light"] .hk-search input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),
:root[data-theme="light"] .wsearch input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),
.hk-topic input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),
.hk-search input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),
.hq-find input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]) {
  background: transparent !important; border: 0 !important; box-shadow: none !important; outline: none !important; padding: 0 6px !important; }
@media (max-width: 760px) {
  html.mside-open .wside { background: #0E0B14 !important; }
  :root[data-theme="light"].mside-open .wside { background: #F6F4F9 !important; }
  html.mside-open .wside-foot { background: transparent !important; }
}
/* Adsmaxxing · orden de una campaña (pack de skills de copy) */
.ads-flow { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ads-flow li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.ads-flow li:not(:last-child)::after { content: '→'; margin-left: 6px; color: var(--muted); }
.ads-flow code { font: 500 12.5px 'JetBrains Mono', monospace; }
.sk-card .sk-tag { align-self: flex-start; }
/* Adsmaxxing · Kit del media buyer */
.kit-tabs { position: sticky; top: 64px; z-index: 5; padding: 8px 0; background: var(--bg); }
.kit-pane { margin-top: 8px; }
.kc-grid { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 16px; align-items: start; }
.kc-form { display: grid; gap: 12px; }
.kc-in { display: grid; gap: 4px; font-size: 13px; }
.kc-in > div { display: flex; align-items: center; gap: 8px; }
.kc-in input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); color: var(--ink); font: 600 15px 'JetBrains Mono', monospace; }
.kc-in input:focus { outline: none; border-color: var(--brand); }
.kc-in em { font: 500 12px 'JetBrains Mono', monospace; color: var(--muted); font-style: normal; width: 14px; }
.kc-out { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.kc-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.kc-tile span { font: 500 10.5px 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kc-tile b { font: 800 26px 'Inter Tight', sans-serif; letter-spacing: -.03em; }
.kc-tile small { color: var(--muted); font-size: 12px; }
.kc-tile.hl { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.kc-verdict { grid-column: 1 / -1; padding: 12px 16px; border-radius: var(--r); background: var(--surface2); font-weight: 600; }
.kc-verdict.ok { background: rgba(34,197,94,.12); color: #4ade80; }
.kc-verdict.warn { background: rgba(251,191,36,.12); color: #fbbf24; }
.kc-verdict.bad { background: rgba(239,68,68,.12); color: #f87171; }
.kp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.kp h3 { margin: 10px 0 6px; font-size: 17px; letter-spacing: -.02em; }
.kp p, .kw p { margin: 0; white-space: pre-line; }
.kp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kk-head { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.kk-head b { font-size: 18px; }
.kk-head .btn { margin-left: auto; }
.kk-bar { height: 6px; border-radius: 99px; background: var(--surface2); margin: 10px 0 18px; overflow: hidden; }
.kk-bar i { display: block; height: 100%; background: var(--brand); transition: width .3s var(--ease); }
.kk-blk h4 { margin: 18px 0 8px; font: 500 11px 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kk-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 6px; cursor: pointer; }
.kk-item input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.kk-item:has(input:checked) span { color: var(--muted); text-decoration: line-through; }
.kw-blk h3 { margin: 22px 0 10px; font-size: 18px; }
.kw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.kw code { font: 600 12px 'JetBrains Mono', monospace; color: var(--brand); }
.kw p { margin-top: 8px; font-size: 14px; }
@media (max-width: 760px) { .kc-grid { grid-template-columns: 1fr; } .kit-tabs { top: 56px; overflow-x: auto; flex-wrap: nowrap; } .kit-tabs button { flex: none; } }
/* Logo ADS de Adsmaxxing: brillo azul en cualquier página (barra lateral, buscador, tarjetas) */
.pmark.ads { filter: drop-shadow(0 0 8px rgba(30,140,255,.55)); }
/* AIvideomaxxing: su tarjeta de curso (Explorar, Mi academia) en el dorado de su logo AIV */
.prod[data-course="aivideomaxxing"] { border-color: rgba(245,163,10,.28) !important; background: linear-gradient(180deg, rgba(245,163,10,.06), transparent 55%), var(--surface) !important; }
.prod[data-course="aivideomaxxing"]:hover { border-color: rgba(255,190,60,.6) !important; box-shadow: 0 30px 70px -40px rgba(255,170,30,.75) !important; }
.prod[data-course="aivideomaxxing"] .cover { background: radial-gradient(120% 90% at 100% 0%, rgba(245,163,10,.42), transparent 60%), radial-gradient(80% 70% at 0% 100%, rgba(160,82,6,.28), transparent 70%), var(--surface2) !important; filter: none !important; opacity: 1 !important; }
.prod[data-course="aivideomaxxing"] .cover-emoji { border-color: rgba(245,163,10,.4); background: rgba(245,163,10,.08); box-shadow: 0 0 22px -6px rgba(255,170,30,.7); }
.prod[data-course="aivideomaxxing"] .cover-emoji .pmark { width: 92%; height: 92%; filter: drop-shadow(0 0 8px rgba(255,170,30,.6)) !important; }
.prod[data-course="aivideomaxxing"] .cover-word, .prod[data-course="aivideomaxxing"] .prod-body h3 { background: linear-gradient(180deg, #FFF6DC 15%, #FFD36B 60%, #F5A30A 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prod[data-course="aivideomaxxing"] .lock-pill { border: 1px solid rgba(245,163,10,.45); color: #FFD36B; background: rgba(20,12,2,.7); }
.prod[data-course="aivideomaxxing"] .meta, .prod[data-course="aivideomaxxing"] .tag.ok { color: #F7B23A; }
.prod[data-course="aivideomaxxing"] .btn:not(.btn-ghost) {
  background: linear-gradient(180deg, #FFE08A 0%, #FFC53D 38%, #F5A30A 70%, #D97A06 100%) !important; color: #2A1600 !important; border-color: rgba(255,240,200,.4) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(120,60,0,.35), 0 8px 26px -10px rgba(255,170,30,.85) !important; }
.prod[data-course="aivideomaxxing"] .btn:not(.btn-ghost):hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 14px 36px -10px rgba(255,170,30,1) !important; }
.prod[data-course="aivideomaxxing"] .btn::after { background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); }

/* Afiliados: cierres de video (kit para pegar al final) */
.cz-jump { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--accent, #A78BFA); text-decoration: none; }
.cz-lead { max-width: 760px; margin: 0 0 18px; }
.cz-steps { list-style: none; counter-reset: cz; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 22px; padding: 0; }
.cz-steps li { counter-increment: cz; position: relative; padding: 16px 16px 16px 52px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.cz-steps li::before { content: counter(cz); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 13px 'JetBrains Mono', monospace; background: rgba(139,92,255,.18); color: #C4B5FD; }
.cz-steps li span { font-size: 13px; color: var(--muted); }
.cz-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cz-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface2); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--cz); }
.cz-v { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #07060A; }
.cz-b { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cz-b p { margin: 0; min-height: 2.6em; }
.cz-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cz-h b { font-size: 15px; }
.cz-h small { margin-left: auto; font: 500 11px 'JetBrains Mono', monospace; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cz-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cz); box-shadow: 0 0 10px var(--cz); }
.cz-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cz .cz-dl .btn, .cz .cz-copy, .cz-tips .btn { justify-content: center; padding: 9px 8px; font: 600 13px/1.1 'Inter Tight', sans-serif; letter-spacing: -.01em; text-transform: none; white-space: nowrap; }
.cz-copy { width: 100%; white-space: normal !important; }
.cz-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.cz-tips > div { padding: 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); }
.cz-tips p { margin: 6px 0 10px; }
@media (max-width: 1100px) { .cz-grid { grid-template-columns: repeat(3, 1fr); } .cz-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .cz-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .cz-steps, .cz-tips { grid-template-columns: 1fr; } .cz-dl { grid-template-columns: 1fr; } }
.cz-gt { margin: 28px 0 12px; font: 800 24px/1.1 'Inter Tight', sans-serif; letter-spacing: -.03em; }
.cz-guide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cz-g { padding: 16px 18px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); }
.cz-g ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.cz-g ol b { color: var(--text, #fff); }
.cz-g p { margin: 8px 0; }
.cz-prompt { padding: 12px 14px; border-radius: 10px; background: rgba(139,92,255,.1); border: 1px solid rgba(139,92,255,.25); font: 500 13px/1.5 'JetBrains Mono', monospace; color: #DDD6FE; }
@media (max-width: 800px) { .cz-guide { grid-template-columns: 1fr; } }
.cz-all { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 20px; }
.cz-all .btn { gap: 8px; }
.cz-vw { position: relative; }
.cz-fab { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--cz); box-shadow: 0 8px 24px -6px var(--cz); text-decoration: none; }
.cz-fab:hover { transform: scale(1.06); }
.cz-dl.one { grid-template-columns: 1fr; }
.cz .cz-dl .btn { gap: 6px; }
/* Admin → Guerra: inteligencia de competidores */
.gu-lede { font-size: 16px; line-height: 1.6; max-width: 900px; }
.gu-wins { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gu-win { display: block; overflow: hidden; color: inherit; text-decoration: none; transition: transform .15s; }
.gu-win:hover { transform: translateY(-2px); }
.gu-th { aspect-ratio: 9 / 12; background: var(--surface2) center / cover no-repeat; position: relative; }
.gu-days { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.72); color: #fff; font: 600 11px/1 'JetBrains Mono', monospace; padding: 5px 7px; border-radius: 6px; }
.pad-s { padding: 12px; }
.gu-hook { display: block; margin: 6px 0; font-size: 14px; line-height: 1.35; }
.gu-comps { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.gu-comp { border-left: 3px solid var(--line2); } .gu-comp.t-alta { border-left-color: #ef4444; } .gu-comp.t-media { border-left-color: #f59e0b; } .gu-comp.t-baja { border-left-color: #22c55e; }
.gu-ch { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.gu-name { font-size: 17px; }
.gu-threat { font: 600 10.5px/1 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; border-radius: 6px; white-space: nowrap; background: var(--surface2); }
.gu-threat.t-alta { color: #ef4444; } .gu-threat.t-media { color: #f59e0b; } .gu-threat.t-baja { color: #22c55e; }
.gu-kpis { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0; font-size: 12.5px; color: var(--muted); }
.gu-kpis b { color: var(--ink, inherit); }
.gu-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gu-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gu-list { margin: 10px 0 0; padding-left: 18px; line-height: 1.55; font-size: 14px; } .gu-list li { margin-bottom: 8px; }
.mt-xs { margin-top: 6px; }
@media (max-width: 800px) { .gu-two { grid-template-columns: 1fr; } }
.gu-offer { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.gu-est { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.gu-est b { color: var(--ink, inherit); }
.gu-offer details { margin-top: 8px; font-size: 13px; } .gu-offer summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.gu-offer details p { margin: 8px 0 0; line-height: 1.5; }
.gu-table td { vertical-align: top; } .gu-table td.small { max-width: 260px; }

/* ── Reproductor de clase: a la proporción real del video (sin barras) ── */
.player { aspect-ratio: var(--ar, 16/9); width: min(100%, calc((100svh - 190px) * var(--ar, 1.7778))); margin-inline: auto; background: #000 !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 80px -40px rgba(155,92,255,.55); }
.player iframe { color-scheme: normal; }
@media (max-width: 760px) {
  .lesson-main { display: flex; flex-direction: column; padding-top: 0 !important; }
  .lesson-main > .player { order: -1; width: auto; margin: 0 -16px; border-radius: 0; box-shadow: none; }
  .lesson-main > .crumbs { display: none; }
  .lesson-head { margin-top: 18px; }
}

/* ── Temario: sin contadores, flechita y PDFs debajo de cada clase ── */
.mod summary::after { content: none !important; display: none !important; }
.mod-chev { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--muted); border: 1px solid var(--line); transition: transform .25s var(--ease), color .2s, border-color .2s; }
.mod[open] .mod-chev { transform: rotate(180deg); color: var(--brand); border-color: rgba(155,92,255,.45); }
.mod summary:hover .mod-chev { color: var(--ink); }
.les-file { padding-top: 6px !important; padding-bottom: 6px !important; font-size: 13px; color: var(--muted); }
.les-file .les-ic { border-style: dashed; }
a.les-file:hover { color: var(--ink); }
a.les-file:hover .les-ic { color: var(--brand); border-color: var(--brand); }

/* ── Temario: clics directos a cada clase ── */
.cl { display: flex; flex-direction: column; gap: 6px; }
.app .cl { padding: 8px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.cl-mod { font: 500 10.5px 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 14px 8px 4px; }
.cl-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; border: 1px solid transparent; color: var(--ink2, var(--ink)); transition: background .2s, border-color .2s; }
a.cl-item:hover { background: var(--surface2); border-color: var(--line); }
.cl-item.cur { background: linear-gradient(90deg, rgba(155,92,255,.16), rgba(155,92,255,.04)); border-color: rgba(155,92,255,.45); }
.cl-item.off { opacity: .55; }
.cl-th { position: relative; flex: none; width: 104px; aspect-ratio: 1.54; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(90% 90% at 30% 20%, rgba(155,92,255,.35), transparent 70%), var(--surface2); border: 1px solid var(--line); }
.cl-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cl-th b { font: 700 18px 'Inter Tight', sans-serif; color: var(--muted); }
.cl-badge { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(8,5,14,.72); backdrop-filter: blur(4px); }
.cl-item.cur .cl-badge, .cl-item.done .cl-badge { background: var(--brand); color: #120A20; }
.cl-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cl-kick { font: 500 10px 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-item.cur .cl-kick { color: var(--brand); }
.cl-txt b { font-weight: 600; font-size: 14px; line-height: 1.25; color: var(--ink); }
.cl-meta { font-size: 12px; color: var(--muted); }
.lesson-side .cl-item { padding: 6px; }
.lesson-side .cl-th { width: 92px; }
@media (min-width: 761px) { .app .cl-th { width: 132px; } .app .cl-txt b { font-size: 15.5px; } }

/* ── Embudo: checkout en la página, ofertas y Gracias ── */
.fn { max-width: 760px; margin: 0 auto; padding: 22px 16px 48px; display: flex; flex-direction: column; gap: 18px; }
.fn-wide { max-width: 1080px; }
.fn-top { display: flex; justify-content: center; padding: 6px 0 4px; }
.fn-foot { text-align: center; margin-top: 8px; }
.fn-co { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 28px; align-items: start; }
@media (max-width: 860px) { .fn-co { grid-template-columns: 1fr; } }
.fn-sum h1 { font: 800 clamp(28px, 4vw, 44px)/1.02 'Inter Tight', sans-serif; letter-spacing: -.05em; margin: 10px 0 18px; }
.fn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fn-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; color: var(--ink2, var(--ink)); }
.fn-list li svg { flex: none; margin-top: 3px; color: var(--brand); }
.fn-total { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.fn-total b { font: 800 30px 'Inter Tight', sans-serif; letter-spacing: -.04em; }
.fn-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 40px 80px -50px rgba(155,92,255,.6); }
.fn-card h2 { font: 700 20px 'Inter Tight', sans-serif; letter-spacing: -.03em; margin: 0; }
.fn-pay { display: flex; flex-direction: column; gap: 12px; }
.fn-pay [data-el] { min-height: 10px; }
.fn-note { margin: 0; }
.fn-steps { display: flex; justify-content: center; gap: 8px; font: 500 10.5px 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.fn-steps span { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); }
.fn-steps span.on { color: var(--brand); border-color: rgba(155,92,255,.45); background: rgba(155,92,255,.08); }
.fn-offer { display: flex; flex-direction: column; gap: 16px; text-align: center; align-items: center; }
.fn-offer > .fn-card, .fn-offer > .player { width: 100%; text-align: left; }
.fn-h1 { font: 800 clamp(28px, 5vw, 46px)/1.03 'Inter Tight', sans-serif; letter-spacing: -.05em; margin: 0; max-width: 680px; }
.fn-video { border-radius: 18px; }
.fn-deal-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fn-deal-h b { font: 700 19px 'Inter Tight', sans-serif; letter-spacing: -.03em; }
.fn-price { font: 800 30px 'Inter Tight', sans-serif; letter-spacing: -.04em; color: var(--brand); }
.fn-price small { font: 500 12px Inter, sans-serif; letter-spacing: 0; color: var(--muted); }
.fn-yes { white-space: normal; line-height: 1.25; padding-block: 16px; font-size: 15px; }
.fn-no { background: none; border: 0; color: var(--muted); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; width: 100%; }
.fn-no:hover { color: var(--ink); }
.fn-thanks .fn-card { align-items: flex-start; }
.fn-rule { font-size: 17px; margin: 4px 0; }
.fn-log { white-space: pre-wrap; font: 12px/1.5 'JetBrains Mono', monospace; background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0; }
.fn-yes { font: 700 16px/1.25 'Inter Tight', sans-serif !important; text-transform: none !important; letter-spacing: -.01em !important; }
.fn-offer .kick::before { display: none; }
.fn-vsl-empty { width: 100%; aspect-ratio: 16/9; border-radius: 18px; border: 1.5px dashed rgba(155,92,255,.45); background: radial-gradient(70% 80% at 50% 30%, rgba(155,92,255,.18), transparent 70%), var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; color: var(--muted); }
.fn-vsl-empty svg { color: var(--brand); }
.fn-vsl-empty b { color: var(--ink); font: 700 18px 'Inter Tight', sans-serif; }
.fn-vsl-empty span { font-size: 13px; max-width: 360px; }
/* Embudo en el celular: precio arriba, pago primero, videos verticales */
.fn-mbar { display: none; }
.fn-vsl-empty { aspect-ratio: 9/16; width: min(100%, 340px); max-height: calc(100svh - 160px); }
.fn-offer > .fn-video { width: min(100%, calc((100svh - 170px) * var(--ar, .5625))); }
.fn-vert { border-radius: 22px; }
a.fn-no { display: block; text-align: center; }
@media (max-width: 860px) {
  .fn { padding-top: 12px; gap: 14px; }
  .fn-mbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
  .fn-mbar span { display: flex; flex-direction: column; line-height: 1.25; }
  .fn-mbar small { font-size: 12px; color: var(--muted); }
  .fn-mprice { font: 800 26px 'Inter Tight', sans-serif; letter-spacing: -.04em; color: var(--brand); white-space: nowrap; }
  .fn-mprice small { font: 500 12px Inter, sans-serif; color: var(--muted); }
  .fn-co { display: flex; flex-direction: column; gap: 18px; }
  .fn-paycard { order: -1; padding: 16px; }
  .fn-sum h1 { font-size: 26px; margin: 6px 0 12px; }
  .fn-sum .fn-total { display: none; }
  .fn-h1 { font-size: 27px; }
  .fn-offer > .fn-video, .fn-vsl-empty { width: min(100%, calc((100svh - 150px) * var(--ar, .5625))); }
  .fn-deal { padding: 18px; }
}
.fn-express { display: flex; flex-direction: column; gap: 12px; }
.fn-wallets { display: flex; flex-direction: column; gap: 10px; }
.fn-wallet { height: 52px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: #000; color: #fff; display: grid; place-items: center; cursor: pointer; font: 600 16px Inter, sans-serif; transition: transform .15s, filter .15s; }
.fn-wallet:hover { filter: brightness(1.15); }
.fn-wallet:active { transform: scale(.98); }
.fn-wallet img { height: 24px; width: auto; }
.fn-wallet { height: 54px; padding: 6px 0; overflow: hidden; }
.fn-wallet img { height: 100%; max-height: 42px; width: auto; object-fit: contain; }

/* ── Ofertas: "Lo que agregas" con capturas reales y skills corriendo ── */
.fn-sub { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ink2, var(--ink)); max-width: 520px; }
.fn-yesbox { display: flex; flex-direction: column; gap: 4px; }
.fn-fine { margin: 10px 0 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted); text-align: center; }
.fn-deal-end { width: 100%; max-width: 760px; margin: 8px auto 0; }
.fx { width: 100%; max-width: 760px; margin: 20px auto 0; display: flex; flex-direction: column; gap: 18px; }
.fx-h2 { margin: 0 0 4px; font: 800 30px/1.05 'Inter Tight', sans-serif; letter-spacing: -.045em; }
.fx-aiv { --fx: #FBC251; } .fx-ads { --fx: #51A3FB; } .fx-web { --fx: #FF8929; }
.fx-item { display: grid; gap: 16px; padding: 12px 12px 22px; border-radius: 26px; background: var(--surface); }
.fx-vis { border-radius: 18px; overflow: hidden; background: #0B0910; }
.fx-txt { padding: 0 6px; }
.fx-course { display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px Inter, sans-serif; color: var(--fx); }
.fx-course img { border-radius: 6px; display: block; }
.fx-txt h3 { margin: 8px 0 6px; font: 700 23px/1.12 'Inter Tight', sans-serif; letter-spacing: -.035em; color: var(--ink); }
.fx-txt p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink2, var(--ink)); }
.fx-strip { height: 196px; overflow: hidden; }
.fx-track { display: flex; height: 100%; width: max-content; animation: fxScroll 46s linear infinite; }
.fx-track img { height: 100%; width: auto; display: block; }
.fx-item:nth-child(odd) .fx-track { animation-duration: 54s; }
@keyframes fxScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .fx-track { animation: none; } }
.fx-shot img { width: 100%; height: auto; display: block; }
.fx-term { background: #0D0B12; }
.fx-term-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #17131F; }
.fx-term-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.fx-term-bar span { margin-left: 8px; font: 500 11.5px Inter, sans-serif; color: #8A8496; }
.fx-term-body { margin: 0; padding: 16px 16px 18px; white-space: pre; overflow-x: auto; font: 500 12.5px/1.75 'JetBrains Mono', monospace; color: #ECE7F5; background: none; border: 0; scrollbar-width: none; }
.fx-term-body::-webkit-scrollbar { display: none; }
.fx-term-body b { font-weight: 600; }
.fx-c { color: var(--fx); } .fx-ok { color: #4ADE80; } .fx-dim { color: #8A8496; }
@media (min-width: 861px) {
  .fx-item { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 28px; padding: 14px 30px 14px 14px; }
  .fx-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); padding: 14px 14px 14px 30px; }
  .fx-flip .fx-vis { order: 2; }
  .fx-strip { height: 250px; }
  .fx-h2 { font-size: 40px; }
}
@media (max-width: 860px) {
  .fx-term-body { font-size: 11px; padding: 14px; }
  .fx-h2 { font-size: 28px; }
}
.fn-offer .fn-h1 + .fn-sub { margin-top: -6px; }
.fx-term-body code, .fx-term-body span, .fx-term-body b { background: none !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; font: inherit; color: inherit; }
.fx-term-body .fx-c { color: var(--fx) !important; } .fx-term-body .fx-ok { color: #4ADE80 !important; } .fx-term-body .fx-dim { color: #8A8496 !important; }
.fx-term-body b { font-weight: 600; }

/* ── Mockups de resultados (lo que aprendes a hacer) ── */
.mk-stage { position: relative; min-height: 270px; padding: 22px 16px; display: flex; align-items: center; justify-content: center; gap: 14px; background: color-mix(in srgb, var(--fx) 7%, #0B0910); }
.mk-phone { position: relative; flex: none; width: 122px; aspect-ratio: 9 / 18.5; border-radius: 22px; background: #16111D; border: 3px solid #2A2333; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; }
.mk-glow { background: radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--fx) 42%, transparent), #16111D 62%); }
.mk-cap { position: relative; margin: 0 0 22px; font: 800 14.5px/1.02 'Inter Tight', sans-serif; letter-spacing: -.02em; text-transform: uppercase; text-align: center; color: #fff; }
.mk-cap em { font-style: normal; color: var(--fx); }
.mk-cap-s { font-size: 11.5px; margin-bottom: 16px; }
.mk-live { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 99px; background: var(--fx); color: #17120A; font: 700 10px Inter, sans-serif; }
.mk-play { position: absolute; top: 40%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(255,255,255,.16); }
.mk-play::after { content: ''; position: absolute; left: 15px; top: 12px; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.mk-prog { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); }
.mk-prog i { display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--fx); }
/* Clon: guion → voz → video */
.mk-editor { width: 158px; padding: 13px; border-radius: 16px; background: #1A1522; display: flex; flex-direction: column; gap: 9px; }
.mk-editor small { font: 600 10.5px Inter, sans-serif; color: #8A8496; }
.mk-editor p { margin: 0; font: 500 11.5px/1.42 Inter, sans-serif; color: #ECE7F5; }
.mk-wave { display: flex; align-items: center; gap: 2px; height: 30px; }
.mk-wave i { flex: 1; border-radius: 2px; background: var(--fx); opacity: .9; }
.mk-gen { padding: 8px 10px; border-radius: 10px; background: var(--fx); color: #17120A; font: 700 11px Inter, sans-serif; text-align: center; }
/* Tres estilos */
.mk-styles { gap: 10px; align-items: flex-start; }
.mk-styles figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.mk-styles .mk-phone { width: 96px; border-radius: 18px; }
.mk-styles figcaption { font: 600 12.5px Inter, sans-serif; color: #D8D1E6; }
.mk-ugc { background: #1D1727; justify-content: flex-end; gap: 5px; }
.mk-bub { align-self: flex-start; max-width: 92%; padding: 5px 8px; border-radius: 11px 11px 11px 3px; background: #2D2538; color: #EEE8F7; font: 500 9px/1.25 Inter, sans-serif; }
.mk-bub-r { align-self: flex-end; border-radius: 11px 11px 3px 11px; background: var(--fx); color: #17120A; font-weight: 600; }
.mk-ugc .mk-cap { margin: 6px 0 4px; }
.mk-ad { background: #0E0B12; }
.mk-orb { position: absolute; top: 18%; left: 50%; width: 66px; height: 66px; margin-left: -33px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #FFF5DA, var(--fx) 46%, color-mix(in srgb, var(--fx) 35%, #000) 100%); box-shadow: 0 18px 34px -12px var(--fx); }
.mk-adtxt { position: relative; margin: 0 0 4px; font: 800 13px/1 'Inter Tight', sans-serif; letter-spacing: -.035em; color: #fff; }
.mk-vslp { background: #1A1422; }
.mk-vslt { position: absolute; top: 14px; left: 10px; right: 10px; margin: 0; font: 800 13.5px/1.02 'Inter Tight', sans-serif; letter-spacing: -.035em; color: #fff; }
.mk-vslp .mk-play { top: 58%; }
/* Anuncio de Meta */
.mk-meta { padding-top: 46px; }
.mk-post { width: min(258px, 86%); border-radius: 14px; overflow: hidden; background: #fff; color: #050505; font-family: Inter, sans-serif; }
.mk-post-h { display: flex; align-items: center; gap: 8px; padding: 10px 11px 7px; }
.mk-post-h img { border-radius: 50%; background: #0B1220; }
.mk-post-h b { display: block; font-size: 12.5px; }
.mk-post-h small { display: block; font-size: 10.5px; color: #65676B; }
.mk-post-t { margin: 0; padding: 0 11px 9px; font-size: 11.5px; line-height: 1.38; }
.mk-post-img { aspect-ratio: 1.55; display: grid; place-items: center; background: #0B1220; }
.mk-post-img span { font: 800 25px/.95 'Inter Tight', sans-serif; letter-spacing: -.045em; color: #fff; text-align: center; }
.mk-post-img span::first-line { color: var(--fx); }
.mk-post-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; background: #F0F2F5; }
.mk-post-f small { display: block; font-size: 10px; color: #65676B; }
.mk-post-f b { display: block; font-size: 11.5px; }
.mk-post-f i { font-style: normal; padding: 6px 11px; border-radius: 6px; background: #E4E6EB; font: 600 11px Inter, sans-serif; }
.mk-ok { position: absolute; top: 14px; right: 14px; padding: 5px 10px; border-radius: 99px; background: #10291B; color: #4ADE80; font: 600 11px Inter, sans-serif; }
/* Landings */
.mk-sites { height: 290px; display: block; padding: 0; overflow: hidden; }
.mk-site { position: absolute; width: 64%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; box-shadow: 0 22px 40px -20px rgba(0,0,0,.9); }
.mk-s1 { top: 18px; left: 4%; } .mk-s2 { top: 62px; left: 19%; } .mk-s3 { top: 106px; left: 34%; }
.mk-bar { display: flex; gap: 4px; padding: 6px 8px; background: rgba(0,0,0,.18); }
.mk-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); }
.mk-s3 .mk-bar { background: #E3E8F0; } .mk-s3 .mk-bar i { background: #B8C2D0; }
.mk-s1 { background: #1F3B2C; } .mk-s2 { background: #0A0A0A; } .mk-s3 { background: #F4F7FB; }
.mk-s1-b, .mk-s2-b, .mk-s3-b { padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mk-s1-b small { font: 500 9.5px Inter, sans-serif; color: #CFE3D3; }
.mk-s1-b b { font: italic 400 44px/.9 'Instrument Serif', serif; color: #F3EBDD; }
.mk-s1-b span { margin-top: 4px; padding: 5px 11px; border-radius: 99px; background: #F3EBDD; color: #1F3B2C; font: 600 9.5px Inter, sans-serif; }
.mk-s2-b b { font: 900 25px/.88 'Inter Tight', sans-serif; letter-spacing: -.05em; color: #fff; }
.mk-s2-b span { font: 700 10.5px Inter, sans-serif; color: #FF4D3A; }
.mk-s3-b small { font: 700 10px Inter, sans-serif; color: #2F6BFF; }
.mk-s3-b b { font: 800 21px/1.02 'Inter Tight', sans-serif; letter-spacing: -.04em; color: #0D1B2A; }
.mk-s3-c { display: flex; gap: 6px; margin-top: 4px; }
.mk-s3-c i { font-style: normal; padding: 6px 8px; border-radius: 7px; background: #fff; color: #0D1B2A; font: 500 9.5px Inter, sans-serif; box-shadow: 0 2px 8px rgba(13,27,42,.08); }
.mk-s3-c em { font-style: normal; padding: 6px 10px; border-radius: 7px; background: #2F6BFF; color: #fff; font: 600 9.5px Inter, sans-serif; }
/* Auditor */
.mk-audit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 18px; align-items: center; }
.mk-score { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(var(--fx) 0 86%, rgba(255,255,255,.09) 0); }
.mk-score::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #120E17; }
.mk-score b, .mk-score small { position: relative; }
.mk-score b { font: 800 32px/1 'Inter Tight', sans-serif; letter-spacing: -.04em; color: #fff; }
.mk-score small { font: 500 10.5px Inter, sans-serif; color: #8A8496; }
.mk-dims { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mk-dims li { display: grid; grid-template-columns: minmax(0, 1fr) 58px 22px; align-items: center; gap: 8px; font: 500 11.5px Inter, sans-serif; color: #ECE7F5; }
.mk-dims i { height: 5px; border-radius: 5px; background: rgba(255,255,255,.09); overflow: hidden; }
.mk-dims em { display: block; height: 100%; border-radius: inherit; background: var(--fx); }
.mk-dims b { font: 700 11.5px Inter, sans-serif; text-align: right; color: #fff; }
.mk-fix { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: 11px; background: #1A1522; font: 500 12px/1.4 Inter, sans-serif; color: #ECE7F5; }
@media (min-width: 861px) {
  .mk-stage { min-height: 310px; }
  .mk-phone { width: 140px; } .mk-styles .mk-phone { width: 108px; }
  .mk-editor { width: 190px; }
  .mk-sites { height: 330px; }
}
@media (max-width: 380px) { .mk-editor { width: 140px; } .mk-phone { width: 112px; } .mk-styles .mk-phone { width: 88px; } }
.mk-vslp .mk-play { top: auto; bottom: 30px; margin-top: 0; width: 34px; height: 34px; margin-left: -17px; }
.mk-vslp .mk-play::after { left: 13px; top: 10px; border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }
.mk-vslp .mk-play { top: auto !important; bottom: 30px !important; }
.mk-sites { height: 340px; }
.mk-site { width: 66%; }
.mk-s1 { top: 12px; left: 3%; } .mk-s2 { top: 82px; left: 18%; } .mk-s3 { top: 152px; left: 33%; }
.mk-s2-b { padding-top: 10px; }
@media (min-width: 861px) { .mk-sites { height: 360px; } .mk-site { width: 60%; } .mk-s2 { top: 86px; left: 20%; } .mk-s3 { top: 160px; left: 37%; } }

/* ── Mockups v3: clones con foto, webs de diseñador ── */
.mk-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mk-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,6,12,0) 45%, rgba(8,6,12,.82) 100%); }
.mk-photo > *:not(img) { position: relative; z-index: 2; }
.mk-photo > .mk-live, .mk-photo > .mk-tag, .mk-photo > .mk-prog, .mk-photo > .mk-play { position: absolute; }
.mk-tag { top: 9px; left: 9px; z-index: 2; padding: 3px 8px; border-radius: 99px; background: rgba(10,8,14,.62); color: #fff; font: 600 9.5px Inter, sans-serif; }
/* Un clon, cualquier escenario */
.mk-clones { display: block; height: 340px; padding: 0; overflow: hidden; }
.mk-clones .mk-phone { position: absolute; top: 34px; left: 50%; width: 104px; border-width: 3px; }
.mk-clones .mk-f0 { width: 138px; top: 22px; margin-left: -69px; z-index: 4; box-shadow: 0 30px 50px -22px rgba(0,0,0,.95), 0 0 0 1px color-mix(in srgb, var(--fx) 40%, transparent); }
.mk-clones .mk-f1 { margin-left: -158px; transform: rotate(-9deg); z-index: 2; }
.mk-clones .mk-f3 { margin-left: 54px; transform: rotate(9deg); z-index: 2; }
.mk-clones .mk-f2 { top: 14px; margin-left: -52px; transform: scale(.86); z-index: 1; opacity: .7; }
.mk-clones .mk-f1, .mk-clones .mk-f3 { opacity: .92; }
.mk-chip { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 5; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 7px 13px; border-radius: 99px; background: #17131F; color: #ECE7F5; font: 600 11.5px Inter, sans-serif; }
.mk-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--fx); }
.mk-ugc.mk-photo { justify-content: flex-end; }
.mk-vslp.mk-photo .mk-vslt { position: absolute; z-index: 2; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.mk-vslp.mk-photo::after { background: linear-gradient(180deg, rgba(8,6,12,.7) 0%, rgba(8,6,12,0) 40%, rgba(8,6,12,.6) 100%); }
/* Webs de diseñador */
.mk-br { border-radius: 12px; overflow: hidden; background: #111; box-shadow: 0 26px 46px -22px rgba(0,0,0,.95); }
.mk-br .mk-bar { display: flex; align-items: center; gap: 4px; padding: 6px 9px; background: #1E1A24; }
.mk-br .mk-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.28); }
.mk-br .mk-bar span { margin-left: 6px; font: 500 9.5px Inter, sans-serif; color: rgba(255,255,255,.62); }
.mk-br img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.mk-web { display: block; height: 330px; padding: 0; overflow: hidden; }
.mk-web .mk-br { position: absolute; width: 74%; }
.mk-b1 { top: 16px; left: 3%; transform: rotate(-4deg); z-index: 1; }
.mk-b2 { top: 74px; right: 2%; transform: rotate(3.5deg); z-index: 2; }
.mk-b3 { top: 140px; left: 11%; transform: rotate(-1deg); z-index: 3; }
.mk-audit { display: block; padding: 16px 16px 18px; }
.mk-b-audit { width: 100%; }
.mk-panel { position: relative; margin: -46px 0 0 auto; width: min(250px, 84%); padding: 12px; border-radius: 16px; background: #120E17; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; box-shadow: 0 24px 40px -18px rgba(0,0,0,.9); }
.mk-panel .mk-score { width: 70px; height: 70px; }
.mk-panel .mk-score::before { inset: 6px; }
.mk-panel .mk-score b { font-size: 23px; }
.mk-panel .mk-score small { font-size: 9px; }
.mk-panel .mk-dims { gap: 5px; }
.mk-panel .mk-dims li { grid-template-columns: minmax(0, 1fr) 44px 20px; font-size: 10.5px; gap: 6px; }
.mk-panel .mk-fix { font-size: 11px; padding: 8px 10px; }
@media (min-width: 861px) {
  .mk-clones { height: 380px; }
  .mk-clones .mk-f0 { width: 156px; margin-left: -78px; }
  .mk-clones .mk-phone { width: 118px; }
  .mk-clones .mk-f1 { margin-left: -178px; } .mk-clones .mk-f3 { margin-left: 60px; }
  .mk-web { height: 380px; }
}
.mk-demo { aspect-ratio: 16 / 9; padding: 18px 18px 54px; background: #F4F7FB; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mk-demo small { font: 700 10px Inter, sans-serif; color: #2F6BFF; }
.mk-demo b { font: 800 26px/1 'Inter Tight', sans-serif; letter-spacing: -.045em; color: #0D1B2A; }
.mk-demo p { margin: 0; max-width: 220px; font: 500 11px/1.4 Inter, sans-serif; color: #475569; }

/* Vista completa del embudo (admin) */
.fp { padding: 20px 0 30px; }
.fp-h { padding: 0 24px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 24px; }
.fp-h h1 { margin: 0; font: 800 34px/1 'Inter Tight', sans-serif; letter-spacing: -.045em; }
.fp-h p { margin: 0; max-width: 620px; color: var(--ink2, var(--ink)); font-size: 15px; }
.fp-row { display: flex; gap: 22px; overflow-x: auto; padding: 22px 24px 10px; scroll-snap-type: x mandatory; }
.fp-item { margin: 0; flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.fp-item figcaption { display: flex; flex-direction: column; gap: 2px; }
.fp-item figcaption b { font: 700 16px 'Inter Tight', sans-serif; }
.fp-item figcaption span { font-size: 13px; color: var(--muted); }
.fp-phone { width: 390px; height: 780px; border-radius: 44px; padding: 10px; background: #0A080D; box-shadow: 0 0 0 2px #2A2333, 0 40px 80px -40px rgba(155,92,255,.5); }
.fp-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 34px; background: #0E0B12; }
.fp { padding-left: 0; padding-right: 0; }
.fp-row { padding: 22px 28px 14px !important; scroll-padding-left: 28px; }
.fp-h { padding: 0 28px !important; }

/* ── Mockups v4 ── */
.mk-cmd { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 99px; background: #15111B; font: 500 10.5px 'JetBrains Mono', monospace; color: #ECE7F5; white-space: nowrap; }
.mk-cmd b { color: var(--fx); }
/* Clon + tarjeta de generación */
.mk-gencard { position: absolute; left: 12px; bottom: 14px; z-index: 6; width: 168px; padding: 11px 12px; border-radius: 16px; background: rgba(17,13,23,.94); box-shadow: 0 24px 40px -16px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 7px; }
.mk-gencard small { font: 600 9.5px Inter, sans-serif; color: #8A8496; }
.mk-gencard p { margin: 0; font: 600 11px/1.35 Inter, sans-serif; color: #F3EEFA; }
.mk-gencard .mk-wave { height: 22px; }
.mk-done { display: inline-flex; align-items: center; gap: 6px; font: 600 10.5px Inter, sans-serif; color: #4ADE80; }
.mk-done i { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74,222,128,.18); }
.mk-clones .mk-f0 { margin-left: -46px; }
.mk-clones .mk-f1 { margin-left: -150px; } .mk-clones .mk-f3 { margin-left: 74px; }
.mk-clones .mk-f2 { margin-left: -20px; }
/* Storyboard tipo editor */
.mk-edit { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
.mk-edit-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mk-time { font: 500 10.5px 'JetBrains Mono', monospace; color: #8A8496; }
.mk-edit-view { position: relative; height: 150px; border-radius: 14px; overflow: hidden; background: #000; display: flex; align-items: flex-end; justify-content: center; }
.mk-edit-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.mk-edit-view::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.65)); }
.mk-edit-view .mk-cap { position: relative; z-index: 2; margin: 0 0 12px; font-size: 17px; }
.mk-tl { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 9px; border-radius: 12px; background: #120E17; }
.mk-tl-row { display: flex; gap: 3px; height: 40px; }
.mk-clip { position: relative; overflow: hidden; border-radius: 7px; padding: 5px 6px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.mk-clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.mk-clip b, .mk-clip i { position: relative; font: 700 9.5px Inter, sans-serif; white-space: nowrap; }
.mk-clip i { font-style: normal; font-weight: 600; font-size: 8.5px; opacity: .85; }
.mk-c1 { flex: 1.1; background: #3B2A12; } .mk-c4 { flex: 1; background: #3B2A12; }
.mk-c2 { flex: 1.5; background: linear-gradient(135deg, #1B1033, #6B3FD6 60%, #FBC251); }
.mk-c3 { flex: 1.7; background: linear-gradient(135deg, #0F2533, #2A7FA8 55%, #9BE2FF); }
.mk-tl-audio { height: 22px; padding: 0 2px; }
.mk-tl-audio .mk-wave { width: 100%; height: 100%; }
.mk-tl-audio .mk-wave i { opacity: .45; }
.mk-head { position: absolute; top: 4px; bottom: 4px; left: 31%; width: 2px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.6); animation: mkHead 7s linear infinite; }
@keyframes mkHead { from { left: 4%; } to { left: 96%; } }
/* Muro 3D de webs premiadas */
.mk-wall { display: block; height: 350px; padding: 0; overflow: hidden; }
.mk-plane { position: absolute; inset: -30% -25%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: perspective(1100px) rotateX(24deg) rotateY(-10deg) rotateZ(12deg); }
.mk-col { overflow: visible; }
.mk-track { display: flex; flex-direction: column; gap: 14px; animation: mkUp 36s linear infinite; }
.mk-col1 .mk-track { animation-direction: reverse; animation-duration: 42s; }
.mk-col2 .mk-track { animation-duration: 30s; }
@keyframes mkUp { to { transform: translateY(-50%); } }
.mk-tile { position: relative; margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 30px -16px rgba(0,0,0,.9); }
.mk-tile img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.mk-tile figcaption { position: absolute; left: 7px; bottom: 7px; padding: 2px 7px; border-radius: 99px; background: rgba(10,8,14,.72); color: #fff; font: 600 8.5px Inter, sans-serif; }
.mk-wall::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px 20px color-mix(in srgb, var(--fx) 6%, #0B0910); }
.mk-wall .mk-chip { z-index: 3; }
@media (prefers-reduced-motion: reduce) { .mk-track, .mk-head { animation: none; } }
/* Dashboard de Meta */
.mk-dash { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
.mk-dash-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mk-dash-h > b { font: 700 13px 'Inter Tight', sans-serif; color: #fff; }
.mk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mk-kpis div { padding: 8px 9px; border-radius: 11px; background: #111827; display: flex; flex-direction: column; gap: 2px; }
.mk-kpis small { font: 500 9px Inter, sans-serif; color: #93A3B8; }
.mk-kpis b { font: 800 15px 'Inter Tight', sans-serif; letter-spacing: -.03em; color: #fff; }
.mk-kpis div:last-child b { color: #4ADE80; }
.mk-rows { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 12px; background: #0D1320; }
.mk-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px; border-radius: 9px; background: #121A2A; }
.mk-row.is-off { opacity: .55; }
.mk-tog { width: 24px; height: 14px; border-radius: 99px; background: #334155; position: relative; }
.mk-tog::after { content: ''; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.mk-tog.on { background: var(--fx); } .mk-tog.on::after { left: 12px; }
.mk-thumb { width: 26px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #0B1220, color-mix(in srgb, var(--fx) 70%, #000)); }
.mk-row:nth-child(2) .mk-thumb { background: linear-gradient(135deg, #2A1B3D, #9B5CFF); }
.mk-row:nth-child(3) .mk-thumb { background: linear-gradient(135deg, #3B2A12, #FBC251); }
.mk-row:nth-child(4) .mk-thumb { background: #2B3342; }
.mk-name { display: flex; flex-direction: column; min-width: 0; }
.mk-name b { font: 600 11px Inter, sans-serif; color: #F1F5F9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-name small { font: 500 9.5px Inter, sans-serif; color: #93A3B8; }
.mk-dec { padding: 4px 8px; border-radius: 99px; font: 700 9.5px Inter, sans-serif; white-space: nowrap; }
.mk-up { background: #0F2E1D; color: #4ADE80; } .mk-keep { background: #1E293B; color: #CBD5E1; }
.mk-dup { background: #0F2340; color: #7CB8FF; } .mk-off { background: #3A1414; color: #FF7A7A; }
.mk-note { align-self: flex-end; font: 500 9.5px Inter, sans-serif; color: #64748B; }
@media (min-width: 861px) {
  .mk-wall { height: 380px; }
  .mk-edit-view { height: 180px; }
  .mk-kpis b { font-size: 17px; }
}
.mk-clones .mk-f0 { margin-left: -16px; }
.mk-clones .mk-f1 { margin-left: -150px; } .mk-clones .mk-f3 { margin-left: 96px; } .mk-clones .mk-f2 { margin-left: 6px; }
.mk-gencard { width: 156px; left: 10px; bottom: 12px; }
@media (min-width: 861px) { .mk-clones .mk-f0 { margin-left: -40px; } .mk-clones .mk-f1 { margin-left: -190px; } .mk-clones .mk-f3 { margin-left: 92px; } .mk-gencard { left: 22px; width: 180px; } }

/* ── Mockups v5: Reel UGC, comercial de producto, auditor MAREA, Gracias con contraseña ── */
.mk-styles .mk-phone { width: 102px; }
/* Reel */
.mk-reel { justify-content: flex-end; padding: 8px; }
.mk-reel::after { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 48%, rgba(0,0,0,.85) 100%) !important; }
.mk-reel-top { position: absolute !important; top: 8px; left: 9px; z-index: 3; font: 700 10px Inter, sans-serif; color: #fff; }
.mk-rail { position: absolute !important; right: 5px; bottom: 58px; z-index: 3; display: flex; flex-direction: column; gap: 7px; align-items: center; }
.mk-rail span { display: flex; flex-direction: column; align-items: center; gap: 1px; font: 600 6.5px Inter, sans-serif; color: #fff; }
.mk-rail svg { width: 14px; height: 14px; fill: #fff; }
.mk-rail span:nth-child(2) svg, .mk-rail span:nth-child(3) svg { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; }
.mk-word { position: absolute !important; top: 38%; left: 0; right: 0; z-index: 3; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mk-word span { font: 900 12px/1 'Inter Tight', sans-serif; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.mk-word em { font: 900 13px/1 'Inter Tight', sans-serif; font-style: normal; color: #17120A; background: var(--fx); padding: 2px 5px; border-radius: 4px; transform: rotate(-3deg); }
.mk-reel-b { z-index: 3; display: flex; flex-direction: column; gap: 3px; padding-right: 18px; }
.mk-reel-b b { display: flex; align-items: center; gap: 4px; font: 700 7.5px Inter, sans-serif; color: #fff; }
.mk-reel-b b i { width: 11px; height: 11px; border-radius: 50%; background: var(--fx); flex: none; }
.mk-reel-b small { font: 500 7px/1.25 Inter, sans-serif; color: rgba(255,255,255,.85); }
.mk-cta { margin-top: 3px; padding: 4px 6px; border-radius: 5px; background: rgba(255,255,255,.18); font: 700 7.5px Inter, sans-serif; color: #fff; }
/* Comercial de producto */
.mk-prod { background: radial-gradient(120% 70% at 50% 0%, #2B2110 0%, #0B0806 60%); align-items: center; justify-content: flex-end; padding-bottom: 12px; }
.mk-rec { position: absolute; top: 8px; left: 8px; display: flex; align-items: center; gap: 4px; font: 600 7px 'JetBrains Mono', monospace; color: rgba(255,255,255,.8); }
.mk-rec i { width: 5px; height: 5px; border-radius: 50%; background: #FF3B30; }
.mk-beam { position: absolute; top: -10%; left: 50%; width: 120%; height: 85%; transform: translateX(-50%); background: radial-gradient(50% 100% at 50% 0%, color-mix(in srgb, var(--fx) 30%, transparent), transparent 70%); }
.mk-bottle { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 1; }
.mk-cap-top { display: block; width: 22px; height: 15px; border-radius: 3px 3px 1px 1px; background: linear-gradient(90deg, #6B4E12, #F7D98B 40%, #B8872A 70%, #5C420F); }
.mk-neck { display: block; width: 12px; height: 6px; background: linear-gradient(90deg, #6B4E12, #E9C46A, #6B4E12); }
.mk-glass { position: relative; display: grid; place-items: center; width: 52px; height: 66px; border-radius: 10px 10px 12px 12px; background: linear-gradient(100deg, rgba(255,255,255,.25) 0%, rgba(251,194,81,.35) 18%, rgba(140,80,10,.85) 55%, rgba(60,30,5,.95) 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), inset 6px 0 10px rgba(255,255,255,.18), 0 16px 26px -10px color-mix(in srgb, var(--fx) 60%, transparent); }
.mk-glass::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: rgba(255,255,255,.55); }
.mk-glass em { font: italic 400 12px 'Instrument Serif', serif; letter-spacing: .12em; color: rgba(255,240,210,.95); }
.mk-pedestal { position: absolute; left: 50%; top: calc(22% + 92px); transform: translateX(-50%); width: 76px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, #3A2C14, #120D08); box-shadow: 0 0 22px color-mix(in srgb, var(--fx) 25%, transparent); }
.mk-prod .mk-adtxt { position: relative; z-index: 2; text-align: center; font-size: 11px; }
/* VSL */
.mk-vsl-bar { position: absolute !important; left: 8px; right: 8px; bottom: 8px; z-index: 3; display: flex; flex-direction: column; gap: 3px; }
.mk-vsl-bar i { display: block; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--fx) 0 26%, rgba(255,255,255,.25) 26%); }
.mk-vsl-bar small { font: 600 6.5px Inter, sans-serif; color: rgba(255,255,255,.85); }
/* Auditor: página MAREA */
.mk-marea { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0B1E3A; padding: 12px 14px; color: #F3E9D6; }
.mk-marea nav { position: relative; z-index: 2; display: flex; justify-content: space-between; font: 600 8px Inter, sans-serif; }
.mk-marea nav b { letter-spacing: .2em; }
.mk-marea nav span { opacity: .75; }
.mk-sun { position: absolute; right: 12%; top: 22%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: #FF6B2C; }
.mk-marea h4 { position: relative; z-index: 1; margin: 18px 0 0; font: 900 64px/.8 'Inter Tight', sans-serif; letter-spacing: -.06em; color: #F3E9D6; mix-blend-mode: normal; }
.mk-marea p { position: relative; z-index: 1; margin: 6px 0 0; font: italic 400 14px 'Instrument Serif', serif; }
.mk-marea-cta { position: absolute; left: 14px; bottom: 12px; padding: 5px 11px; border-radius: 99px; background: #FF6B2C; color: #0B1E3A; font: 700 9px Inter, sans-serif; }
.mk-97 { background: conic-gradient(#4ADE80 0 97%, rgba(255,255,255,.09) 0) !important; }
.mk-audit .mk-dims em { background: #4ADE80; }
.mk-fix b { color: #4ADE80; }
/* Gracias: crear contraseña */
.fn-pw, .fn-bought { width: 100%; max-width: 480px; text-align: left; }
.fn-pw h2 { font: 800 22px/1.1 'Inter Tight', sans-serif; letter-spacing: -.03em; margin: 0; }
@media (min-width: 861px) { .mk-styles .mk-phone { width: 118px; } .mk-marea h4 { font-size: 92px; } }
.mk-rail { bottom: 84px; }
.mk-reel-b { padding-right: 4px; }
.fn-pw .lbl input { width: 100%; font: 500 16px Inter, sans-serif; }
.fn-pw .btn { white-space: normal; font: 700 16px/1.2 'Inter Tight', sans-serif !important; text-transform: none !important; letter-spacing: -.01em !important; }
.fn-pw .lbl { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.fn-pw .lbl input { display: block; width: 100% !important; max-width: none !important; box-sizing: border-box; }
.mk-word { top: 26%; }
.mk-rail { bottom: 60px; }
.mk-reel-b { max-width: 74%; padding-right: 0; }
/* Cursos con clases en camino */
.soon { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.soon-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft, rgba(155,92,255,.14)); color: var(--brand); flex: none; }
.soon b { font: 700 18px 'Inter Tight', sans-serif; letter-spacing: -.02em; }
.soon p { margin: 4px 0 0; }

/* ── Landings de cursos sueltos ── */
.lp { --lp: #9B5CFF; min-height: 100vh; background: #09070C; color: #F4F0FA; overflow-x: hidden; }
.lp a { color: inherit; }
.lp-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: rgba(9,7,12,.9); border-bottom: 1px solid rgba(255,255,255,.06); }
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.lp-brand img { border-radius: 9px; }
.lp-brand b { font: 800 18px 'Inter Tight', sans-serif; letter-spacing: -.03em; }
.lp-nav nav { display: none; gap: 22px; font: 500 14px Inter, sans-serif; color: #B9B2C6; }
.lp-nav nav a { text-decoration: none; } .lp-nav nav a:hover { color: #fff; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 11px 18px; border-radius: 999px; background: var(--lp); color: #0B0910 !important; font: 700 14.5px 'Inter Tight', sans-serif; text-decoration: none; letter-spacing: -.01em; transition: transform .15s, filter .15s; white-space: nowrap; }
.lp-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.lp-btn-big { padding: 17px 28px; font-size: 17px; white-space: normal; }
.lp-hero { display: grid; gap: 28px; padding: 44px 20px 30px; max-width: 1200px; margin: 0 auto; }
.lp-hero h1 { margin: 0; font: 800 clamp(40px, 9vw, 84px)/.95 'Inter Tight', sans-serif; letter-spacing: -.055em; }
.lp-hero h1 em { font: italic 400 1.04em/1 'Instrument Serif', serif; letter-spacing: -.02em; color: var(--lp); }
.lp-sub { margin: 18px 0 0; max-width: 560px; font-size: 18px; line-height: 1.5; color: #CFC8DC; }
.lp-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 26px; }
.lp-fine { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 500 13px Inter, sans-serif; color: #A9A1B8; }
.lp-fine svg { color: var(--lp); }
.lp-hero-v { border-radius: 26px; overflow: hidden; background: color-mix(in srgb, var(--lp) 8%, #0B0910); box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 40px 90px -50px var(--lp); }
.lp-hero-v .mk-stage { min-height: 340px; }
.lp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; max-width: 1200px; margin: 10px auto 0; background: rgba(255,255,255,.06); border-block: 1px solid rgba(255,255,255,.06); }
.lp-stats div { display: flex; flex-direction: column; gap: 4px; padding: 22px 20px; background: #09070C; }
.lp-stats b { font: 800 40px/1 'Inter Tight', sans-serif; letter-spacing: -.05em; color: var(--lp); }
.lp-stats span { font: 500 13.5px/1.35 Inter, sans-serif; color: #B9B2C6; }
.lp-feats { padding: 50px 20px 0; max-width: 1200px; margin: 0 auto; }
.lp-feats .fx { max-width: none; }
.lp-feats .fx-h2, .lp h2 { font: 800 clamp(30px, 6vw, 52px)/1 'Inter Tight', sans-serif; letter-spacing: -.05em; margin: 0 0 18px; }
.lp-steps { max-width: 1200px; margin: 0 auto; padding: 70px 20px 0; }
.lp-steps ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-steps li { counter-increment: s; position: relative; padding: 22px 22px 22px 74px; border-radius: 22px; background: #141019; }
.lp-steps li::before { content: counter(s); position: absolute; left: 22px; top: 20px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--lp); color: #0B0910; font: 800 16px 'Inter Tight', sans-serif; }
.lp-steps b { font: 700 19px 'Inter Tight', sans-serif; letter-spacing: -.02em; }
.lp-steps p { margin: 6px 0 0; color: #B9B2C6; font-size: 15px; line-height: 1.45; }
.lp-price { display: grid; gap: 22px; max-width: 1200px; margin: 0 auto; padding: 80px 20px 0; align-items: start; }
.lp-price ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lp-price li { display: flex; gap: 12px; font-size: 16.5px; line-height: 1.45; color: #E9E4F2; }
.lp-price li svg { flex: none; margin-top: 3px; color: var(--lp); }
.lp-price-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 30px 24px; border-radius: 28px; background: #141019; box-shadow: 0 0 0 1px color-mix(in srgb, var(--lp) 40%, transparent), 0 40px 80px -46px var(--lp); }
.lp-price-card img { border-radius: 14px; }
.lp-price-name { font: 700 18px 'Inter Tight', sans-serif; }
.lp-price-n { font: 800 72px/1 'Inter Tight', sans-serif; letter-spacing: -.06em; }
.lp-price-n small { font: 500 16px Inter, sans-serif; letter-spacing: 0; color: #A9A1B8; }
.lp-price-s { color: #B9B2C6; font-size: 14px; margin-bottom: 10px; }
.lp-price-card .lp-btn { width: 100%; }
.lp-price-card .lp-fine { justify-content: center; margin-top: 4px; }
.lp-faq { max-width: 820px; margin: 0 auto; padding: 80px 20px 0; }
.lp-faq details { border-bottom: 1px solid rgba(255,255,255,.08); }
.lp-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font: 600 17.5px 'Inter Tight', sans-serif; letter-spacing: -.01em; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary svg { flex: none; color: var(--lp); transition: transform .2s; }
.lp-faq details[open] summary svg { transform: rotate(180deg); }
.lp-faq p { margin: 0 0 20px; color: #CFC8DC; font-size: 16px; line-height: 1.55; }
.lp-end { max-width: 1200px; margin: 90px auto 0; padding: 60px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; border-radius: 32px; background: radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--lp) 22%, transparent), transparent 70%), #110D16; }
.lp-end h2 { max-width: 760px; margin: 0; }
.lp-foot { max-width: 1200px; margin: 0 auto; padding: 36px 20px 50px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 500 13px Inter, sans-serif; color: #8A8496; }
.lp-foot nav { display: flex; gap: 16px; }
@media (min-width: 900px) {
  .lp-nav { padding: 14px 40px; }
  .lp-nav nav { display: flex; }
  .lp-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 80px 40px 56px; }
  .lp-hero-v .mk-stage { min-height: 440px; }
  .lp-stats { grid-template-columns: repeat(4, 1fr); }
  .lp-stats div { padding: 30px 40px; }
  .lp-stats b { font-size: 54px; }
  .lp-feats, .lp-steps, .lp-faq { padding-left: 40px; padding-right: 40px; }
  .lp-steps ol { grid-template-columns: repeat(3, 1fr); }
  .lp-price { grid-template-columns: minmax(0, 1.2fr) minmax(0, 420px); gap: 60px; padding: 100px 40px 0; }
  .lp-end { padding: 90px 40px; margin-top: 110px; }
  .lp-foot { padding: 40px; }
}
body:has(.lp) .bare-toggle { display: none; }
@media (min-width: 900px) { .lp-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .lp-hero h1 { font-size: clamp(48px, 5.6vw, 76px); } }

/* ---------- Admin → Ventas: origen de cada venta, embudo y tabla ---------- */
.og { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font: 600 12px/1.3 'Inter Tight', sans-serif; white-space: nowrap; background: var(--surface2); color: var(--ink2); }
.og::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.og-entrada { background: var(--brand-soft); color: var(--brand); }
.og-upsell { background: rgba(74,222,128,.1); color: var(--ok); }
.og-downsell { background: rgba(250,204,21,.1); color: #d6a800; }
.og-suelto { background: rgba(81,163,251,.12); color: #51a3fb; }
.sv-prod a.sv-prow { color: inherit; text-decoration: none; grid-template-columns: minmax(150px, auto) 1fr auto; padding: 2px 0; border-radius: 8px; }
.sv-prod a.sv-prow:hover .sv-pbar i { filter: brightness(1.2); }
.fu-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.fu-top div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: var(--surface2); }
.fu-top b { font: 800 22px/1.1 'Inter Tight', sans-serif; letter-spacing: -.03em; }
.fu-top span { font-size: 12px; color: var(--muted); }
.fu-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.fu-step { display: grid; grid-template-columns: minmax(190px, 1.2fr) 1fr minmax(110px, auto); gap: 10px; align-items: center; font-size: 14px; }
.fu-n { display: flex; align-items: center; gap: 6px; min-width: 0; }
.fu-bar { height: 8px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.fu-bar i { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.fu-v { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.fu-v small { font-size: 11.5px; }
.sv-filt { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; }
.sv-filt input, .sv-filt select { height: 36px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; min-width: 0; }
.sv-filt input[name=q] { flex: 1 1 200px; }
.sv-table { display: flex; flex-direction: column; }
.sv-tr { display: grid; grid-template-columns: 112px 1.2fr 1.3fr 1.5fr 104px 84px; gap: 12px; align-items: center; padding: 11px 6px; border-bottom: 1px solid var(--line); font-size: 14px; }
.sv-tr > b { text-align: right; }
.sv-tr small { font-size: 11.5px; line-height: 1.35; }
.sv-tr .mono { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-th { font: 500 10.5px 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.sv-th span:last-child { text-align: right; }
@media (max-width: 900px) {
  .fu-step { grid-template-columns: 1fr auto; } .fu-bar { grid-column: 1 / -1; order: 3; }
  .sv-th { display: none; }
  .sv-tr { grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 2px; }
  .sv-tr > span:nth-child(1) { grid-column: 1 / -1; order: -1; }
  .sv-tr > span:nth-child(3), .sv-tr > span:nth-child(4) { grid-column: 1 / -1; }
  .fu-top b { font-size: 18px; }
}

/* ---------- Admin → Alumno: cómo compró, embudo y accesos ---------- */
.stat.sm { font-size: 19px; line-height: 1.25; letter-spacing: -.02em; }
.pf-how { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 8px; }
.pf-g { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pf-g small { font-size: 12px; }
.pf-g.off .og { opacity: .55; text-decoration: line-through; }
.pf-grant { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface2); }
.pf-grant input[name=note] { height: 36px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; }
.pf-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-pick label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line2); border-radius: 99px; font-size: 13px; cursor: pointer; }
.pf-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pf-orders { display: flex; flex-direction: column; margin-top: 6px; }
.pf-order { position: relative; display: flex; gap: 12px; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.pf-order:last-child { border-bottom: 0; }
.pf-order .grow { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pf-order.off { opacity: .6; }
.pf-dot { flex: none; width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.pf-what { font-size: 14px; }
.pf-pay { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-journey { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pf-journey:last-child { border-bottom: 0; }
.pf-steps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pf-st { padding: 4px 10px; border-radius: 99px; font: 600 12px 'Inter Tight', sans-serif; background: var(--surface2); color: var(--muted); }
.pf-st.yes { background: rgba(74,222,128,.12); color: var(--ok); }
.pf-st + .pf-st::before { content: '→'; margin: 0 6px 0 -2px; color: var(--dim); font-weight: 400; }
.pf-st.no { text-decoration: none; }
.st-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.fu-n small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-size: 12px; }
.sv-tr .og, .pf-order .og { white-space: normal; }
.sv-filt input, .sv-filt select { width: auto; margin: 0; }
.sv-filt select { flex: 0 1 190px; }
.sv-filt .btn { flex: none; }
.fu-n { flex-wrap: nowrap; }
.fu-n .og { flex: none; }
@media (max-width: 900px) { .sv-filt select, .sv-filt input[name=q] { flex: 1 1 100%; } }
.card .stat.sm { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-gact { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pf-nt { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.pf-nt input, .pf-pick input { width: auto; height: auto; margin: 0; }
.card .stat.sm { white-space: normal; font-size: 18px; }

/* ---------- Admin → Anuncios: Meta Ads completo ---------- */
.tag.bad { color: var(--danger); background: var(--danger-bg); }
.tag.warn { color: var(--warn); background: rgba(250,204,21,.1); }
.ad-acc a { color: var(--ink2); }
.ad-pick { display: flex; flex-direction: column; gap: 10px; }
.ad-accs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ad-accs label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; cursor: pointer; }
.ad-accs label:has(input:checked), .ad-accs label.on { border-color: var(--brand); background: var(--brand-soft); }
.ad-accs input { width: auto; height: auto; margin: 3px 0 0; }
.ad-accs span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ad-accs small { font-size: 11.5px; }
.ad-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-top: 14px; }
.ad-hk { display: grid; grid-template-columns: repeat(4, auto); gap: 22px; }
.ad-hk div { display: flex; flex-direction: column; }
.ad-hk b { font-size: 22px; letter-spacing: -.03em; }
.ad-hk span { font-size: 12px; color: var(--muted); }
.ad-hk .pos { color: var(--ok); } .ad-hk .neg { color: var(--danger); }
.ad-kpis { grid-template-columns: repeat(6, 1fr); }
.ad-kpis .stat { font-size: 22px; }
.ad-fun { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.ad-fs { display: grid; grid-template-columns: 130px 1fr minmax(150px, auto); gap: 10px; align-items: center; font-size: 13.5px; }
.ad-fb { height: 10px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.ad-fb i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.ad-fs.real .ad-fb i { background: var(--ok); }
.ad-fs.real .ad-fl { font-weight: 700; color: var(--ok); }
.ad-fv { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.ad-fv small { font-size: 11px; }
.ad-al { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.ad-a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface2); border-left: 3px solid var(--line2); font-size: 13.5px; }
.ad-a.bad { border-left-color: var(--danger); } .ad-a.warn { border-left-color: var(--warn); } .ad-a.ok { border-left-color: var(--ok); } .ad-a.info { border-left-color: #51a3fb; }
.ad-orig { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 6px; font-size: 13.5px; }
.ad-k { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: #7C4DFF; vertical-align: middle; } .ad-k.v { background: #22c55e; }
.ad-tbl { display: flex; flex-direction: column; margin-top: 6px; }
.ad-tr { display: grid; grid-template-columns: minmax(220px, 2.4fr) repeat(7, minmax(64px, 1fr)); gap: 10px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ad-tr > span:not(.ad-nm) { text-align: right; font-variant-numeric: tabular-nums; }
.ad-th { font: 500 10.5px 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ad-nm { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ad-nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-nm small { font-size: 11.5px; }
.ad-nm .tag { padding: 1px 7px; font-size: 10px; }
.ad-det > summary { cursor: pointer; list-style: none; }
.ad-det > summary::-webkit-details-marker { display: none; }
.ad-det > summary .ad-nm b::before { content: '▸ '; color: var(--muted); }
.ad-det[open] > summary .ad-nm b::before { content: '▾ '; }
.ad-det[open] > summary { background: var(--surface2); border-radius: 10px 10px 0 0; }
.ad-kid { padding-left: 26px; background: color-mix(in srgb, var(--surface2) 50%, transparent); }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 10px; }
.ad-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.ad-pic { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: var(--surface2); }
.ad-pic img { width: 100%; height: 100%; object-fit: cover; }
.ad-pic .tag { position: absolute; top: 8px; left: 8px; backdrop-filter: blur(6px); }
.ad-cb { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; }
.ad-cn { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-copy { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; }
.ad-cm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ad-cm span { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 8px; background: var(--surface2); }
.ad-cm b { font-size: 13.5px; } .ad-cm small { font-size: 10.5px; color: var(--muted); }
.ad-sl { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.ad-slr { display: grid; grid-template-columns: minmax(110px, 160px) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.ad-sln { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-slv { white-space: nowrap; font-weight: 600; } .ad-slv small { font-weight: 400; font-size: 11.5px; }
@media (max-width: 1100px) { .ad-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .ad-hk { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ad-kpis { grid-template-columns: repeat(2, 1fr); }
  .ad-fs { grid-template-columns: 1fr auto; } .ad-fb { grid-column: 1 / -1; order: 3; }
  .ad-tbl { overflow-x: auto; } .ad-tr { min-width: 760px; }
  .ad-slr { grid-template-columns: 1fr auto; } .ad-slr .sv-pbar { grid-column: 1 / -1; order: 3; }
}
.ad-tr.ad-th > span:first-child { text-align: left; }
.ad-kpis { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 1500px) { .ad-kpis { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 900px) { .ad-kpis { grid-template-columns: repeat(2, 1fr); } }
.ad-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* Checkout dentro de Instagram/Facebook: botón para abrir en Safari/Chrome y pagar con Apple Pay / Google Pay */
.fn-iab { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.fn-iab[hidden] { display: none; }
.fn-iab-go { text-decoration: none; padding: 0 16px; text-align: center; font-size: 15.5px; }
.fn-iab p { margin: 0; line-height: 1.45; text-align: center; }
/* En el checkout y las ofertas el botón de tema no flota sobre el botón de pagar: se queda arriba y se va con el scroll */
body:has(.fn) .bare-toggle { position: absolute; }
.ad-tok { display: flex; gap: 8px; margin: 10px 0 6px; flex-wrap: wrap; }
.ad-tok input { flex: 1 1 260px; height: 44px; margin: 0; }
/* Oferta abierta desde el correo: fecha límite real */
.fn-deadline { margin: 0 auto 14px; padding: 9px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--ink); font-size: 14px; text-align: center; max-width: 520px; }
.fu-mail { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface2); font-size: 13.5px; margin-bottom: 8px; }
.fu-mail span { color: var(--muted); }
/* Botón "Sí, agregar…" de las ofertas: el texto en dos líneas va centrado y parejo */
.fn-yes { text-align: center; justify-content: center; text-wrap: balance; }

/* ── Botón principal v2 (igual que la landing): morado → fucsia vivo, letra blanca, brillo morado-rosa.
   No toca los botones secundarios ni los cursos con color propio ([data-course]). ── */
.btn:not(.btn-ghost):not(.btn-dark):not(.btn-danger):not([data-course] *) {
  background: radial-gradient(120% 140% at 50% -30%, rgba(255,255,255,.3), transparent 55%), linear-gradient(120deg, #7B2FF7 0%, #A93BFF 48%, #E23CCF 100%) !important;
  color: #fff !important; border: 1px solid rgba(255,205,255,.42) !important; border-radius: 12px !important;
  font-family: Archivo, 'Inter Tight', sans-serif !important; font-weight: 600 !important; letter-spacing: -.012em !important; text-transform: none !important;
  font-size: 14.5px; text-shadow: 0 1px 2px rgba(70,0,100,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 0 1px rgba(205,90,255,.3), 0 12px 32px -12px rgba(214,60,230,.9), 0 0 26px -8px rgba(185,80,255,.6) !important; }
.btn:not(.btn-ghost):not(.btn-dark):not(.btn-danger):not([data-course] *):hover {
  filter: brightness(1.07) saturate(1.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 1px rgba(230,110,255,.5), 0 18px 44px -12px rgba(226,60,207,1), 0 0 36px -6px rgba(185,80,255,.8) !important; }
.btn:not(.btn-ghost):not(.btn-dark):not(.btn-danger):not([data-course] *):disabled { filter: none !important; opacity: .78; cursor: default; }
.btn-sm:not(.btn-ghost):not(.btn-dark):not(.btn-danger):not([data-course] *) { font-size: 13px; border-radius: 10px !important; }
.btn-ghost, .btn-dark, .btn-danger { border-radius: 12px !important; font-family: Archivo, 'Inter Tight', sans-serif !important; font-weight: 600 !important; letter-spacing: -.012em !important; text-transform: none !important; font-size: 14px; }
.btn-sm.btn-ghost, .btn-sm.btn-dark, .btn-sm.btn-danger { font-size: 13px; border-radius: 10px !important; }
/* Checkout, ofertas y gracias: botón grande */
.btn-lg { padding: 17px 24px !important; font-size: 17px !important; line-height: 1.2 !important; white-space: normal; text-align: center; }
.fn-yes, .fn-pw .btn { font-family: Archivo, 'Inter Tight', sans-serif !important; font-weight: 700 !important; font-size: 17px !important; }

/* Landings de cursos sueltos: misma forma y brillo, en el color de cada curso */
.lp-btn { border-radius: 12px; font-family: Archivo, 'Inter Tight', sans-serif; font-weight: 700;
  background: radial-gradient(120% 140% at 50% -30%, rgba(255,255,255,.35), transparent 55%), var(--lp);
  border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 12px 32px -12px color-mix(in srgb, var(--lp) 90%, transparent), 0 0 26px -8px color-mix(in srgb, var(--lp) 70%, transparent); }
.lp-btn:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 18px 44px -12px var(--lp), 0 0 36px -6px color-mix(in srgb, var(--lp) 85%, transparent); }

/* Content Maxxing: admin tables and long small buttons never push the page sideways on phones */
@media (max-width: 640px) {
  .btn-sm { white-space: normal; text-align: center; }
  .table-wrap { overflow-x: auto; max-width: 100%; }
  table.tbl { display: block; overflow-x: auto; max-width: 100%; }
}

/* Order bumps del checkout: tarjetas "Agrega a tu pedido" con mini mock-up del curso, en los colores de su logo */
.fn-bumps { display: flex; flex-direction: column; gap: 10px; }
.fn-bumps-h { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 10.5px 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: #F6CF6A; }
.fn-bumps-dot { width: 7px; height: 7px; border-radius: 50%; background: #F6CF6A; box-shadow: 0 0 0 0 rgba(246,207,106,.6); animation: bpPulse 1.8s ease-out infinite; }
@keyframes bpPulse { 70% { box-shadow: 0 0 0 7px rgba(246,207,106,0) } 100% { box-shadow: 0 0 0 0 rgba(246,207,106,0) } }
.fn-bump { --c1: #9b5cff; --c2: #5b2bd0; --glow: rgba(155,92,255,.45); position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); border-radius: 18px; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 10%, #120d1c), #0f0b17 60%); border: 1px solid color-mix(in srgb, var(--c1) 28%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05); transition: border-color .2s, box-shadow .2s, transform .15s; }
.fn-bump.bp-aivideomaxxing { --c1: #f5b83a; --c2: #a8641a; --glow: rgba(245,184,58,.42); }
.fn-bump.bp-adsmaxxing { --c1: #2aa8ff; --c2: #0b4fb8; --glow: rgba(42,168,255,.42); }
.fn-bump.bp-webmaxxing { --c1: #ff7a2e; --c2: #e0306a; --glow: rgba(255,122,46,.42); }
.fn-bump:hover { border-color: color-mix(in srgb, var(--c1) 60%, transparent); }
.fn-bump:active { transform: scale(.99); }
.fn-bump input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fn-bump:has(input:checked) { border-color: var(--c1); box-shadow: 0 0 0 1px var(--c1), 0 16px 40px -18px var(--glow), inset 0 1px 0 rgba(255,255,255,.06);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 20%, #120d1c), #0f0b17 70%); }
.fn-bump:has(input:focus-visible) { outline: 2px solid var(--c1); outline-offset: 2px; }

/* Mini mock-up (columna izquierda) */
.bp-art { position: relative; overflow: hidden; background: radial-gradient(120% 70% at 30% 10%, color-mix(in srgb, var(--c1) 70%, #fff 0%), transparent 60%), linear-gradient(160deg, var(--c1), var(--c2) 55%, #140b1f);
  border-right: 1px solid color-mix(in srgb, var(--c1) 35%, transparent); min-height: 158px; }
.bp-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,6,16,.65)); pointer-events: none; }
.bp-logo { position: absolute; z-index: 2; left: 50%; bottom: 6px; transform: translateX(-50%); width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.55)); }
.ba { position: absolute; inset: 0; display: block; }
/* AIvideomaxxing: teléfono con el clon grabando */
.ba-phone { position: absolute; z-index: 1; left: 50%; top: 14px; width: 56px; height: 100px; transform: translateX(-50%) rotate(-4deg); border-radius: 11px; overflow: hidden;
  border: 2px solid rgba(255,255,255,.85); box-shadow: 0 10px 22px rgba(0,0,0,.45); background: #222; }
.ba-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-rec { position: absolute; top: 4px; left: 4px; display: flex; align-items: center; gap: 3px; padding: 1px 4px; border-radius: 4px; background: rgba(0,0,0,.55); font: 700 6.5px 'JetBrains Mono', monospace; color: #fff; letter-spacing: .05em; }
.ba-rec i { width: 4px; height: 4px; border-radius: 50%; background: #ff3b47; animation: bpBlink 1s steps(2) infinite; }
@keyframes bpBlink { 50% { opacity: .2 } }
.ba-cap { position: absolute; left: 3px; right: 3px; bottom: 6px; text-align: center; font: 800 7px/1.05 'Inter Tight', sans-serif; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8); text-transform: uppercase; }
.ba-cap em { font-style: normal; color: #f5b83a; display: block; }
.ba-ghost { position: absolute; top: 24px; width: 40px; height: 74px; border-radius: 9px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); }
.ba-g1 { left: 2px; transform: rotate(-12deg); } .ba-g2 { right: 2px; transform: rotate(10deg); }
/* Adsmaxxing: panel con ROAS, barras y "Escalar" */
.ba-dash { position: absolute; z-index: 1; left: 9px; right: 9px; top: 14px; padding: 8px 8px 7px; border-radius: 10px; background: rgba(6,16,32,.82); border: 1px solid rgba(120,200,255,.35);
  box-shadow: 0 10px 22px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 1px; }
.ba-dash small { font: 600 6.5px 'JetBrains Mono', monospace; letter-spacing: .12em; color: #8fcfff; }
.ba-dash b { font: 900 19px/1 'Inter Tight', sans-serif; color: #fff; letter-spacing: -.04em; }
.ba-bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin: 5px 0 5px; }
.ba-bars i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #7fd3ff, #2aa8ff); }
.ba-bars i:last-child { background: linear-gradient(180deg, #7CFFB2, #22c55e); }
.ba-up { align-self: flex-start; padding: 2px 5px; border-radius: 99px; background: rgba(34,197,94,.2); color: #7CFFB2; font: 800 7px 'Inter Tight', sans-serif; }
/* Webmaxxing: navegador con una web premiada y calificación */
.ba-win { position: absolute; z-index: 1; left: 9px; right: 9px; top: 14px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 10px 22px rgba(0,0,0,.45); display: flex; flex-direction: column; padding-bottom: 6px; }
.ba-dots { display: flex; gap: 2px; padding: 4px 5px; background: #ececf1; }
.ba-dots i { width: 4px; height: 4px; border-radius: 50%; background: #ff5f57; } .ba-dots i:nth-child(2) { background: #febc2e; } .ba-dots i:nth-child(3) { background: #28c840; }
.ba-win img { width: 100%; height: 40px; object-fit: cover; display: block; }
.ba-l1, .ba-l2 { height: 4px; margin: 5px 6px 0; border-radius: 2px; background: #1b1424; } .ba-l2 { width: 55%; background: #c9c3d3; }
.ba-cta { width: 34px; height: 9px; margin: 5px 6px 0; border-radius: 99px; background: linear-gradient(90deg, #ff7a2e, #e0306a); }
.ba-score { position: absolute; z-index: 2; right: 5px; top: 66px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #0f0b17; border: 2px solid #7CFFB2; color: #7CFFB2; font: 800 9.5px 'Inter Tight', sans-serif; box-shadow: 0 4px 10px rgba(0,0,0,.5); }

/* Texto */
.bp-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 12px 13px; min-width: 0; }
.bp-name { font: 700 10px 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--c1); }
.bp-h { font: 800 15.5px/1.18 'Inter Tight', sans-serif; letter-spacing: -.02em; color: #fff; }
.bp-s { font-size: 12.5px; line-height: 1.38; color: rgba(255,255,255,.66); }
.bp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.bp-px { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.bp-px s { font-size: 12px; color: rgba(255,255,255,.42); }
.bp-px b { font: 900 21px 'Inter Tight', sans-serif; letter-spacing: -.04em; color: #fff; }
.bp-px small { font-size: 10px; color: rgba(255,255,255,.5); }
/* Botón Agregar: mismo estilo que el botón de pago (degradado morado, letra blanca) */
.bp-add { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 9px; border-radius: 99px; color: #fff; font: 700 13px 'Inter Tight', sans-serif; white-space: nowrap;
  background: linear-gradient(90deg, #6b2ee6, #9b5cff 55%, #c13fb8); box-shadow: 0 6px 16px -6px rgba(155,92,255,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.bp-box { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.85); color: transparent; transition: background .15s, color .15s; }
.bp-on { display: none; }
.fn-bump:has(input:checked) .bp-box { background: #fff; color: #6b2ee6; }
.fn-bump:has(input:checked) .bp-on { display: inline; } .fn-bump:has(input:checked) .bp-off { display: none; }
.fn-bump:has(input:checked) .bp-add { background: linear-gradient(90deg, #22a35a, #2fcf75); box-shadow: 0 6px 16px -6px rgba(47,207,117,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.fn-bumps-note { margin: 0; font-size: 12px; color: var(--dim); }
@media (min-width: 861px) { .fn-bump { grid-template-columns: 108px minmax(0, 1fr); } .bp-art { min-height: 168px; } }
@media (max-width: 360px) { .fn-bump { grid-template-columns: 84px minmax(0, 1fr); } .bp-h { font-size: 14.5px; } .bp-add { padding: 7px 10px 7px 8px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .fn-bumps-dot, .ba-rec i { animation: none; } }

