/* CODEX · Gama tomada de image.png: verde #468E83 y crema #FDEDD4, con sus rampas. */
:root {
  --teal-950: #0f2c27; --teal-900: #153a34; --teal-800: #1d4d45; --teal-700: #2a655b;
  --teal-600: #37796e; --teal-500: #468e83; --teal-400: #6ca99e; --teal-300: #9cc6bb;
  --teal-200: #c7dfd5; --teal-100: #e5efe3;
  --cream-50: #fff9ef; --cream-100: #fdedd4; --cream-200: #f6e0bf; --cream-300: #e9cfa6;

  --bg: var(--cream-50);
  --surface: #fffdf8;
  --surface-2: var(--cream-100);
  --line: #e6d6bb;
  --line-strong: #cfbd9d;
  --ink: var(--teal-950);
  --ink-2: #33564f;
  --muted: #4d6b64;
  --mark: var(--teal-500);
  --mark-soft: var(--teal-200);
  --strong: var(--teal-700);
  --on-strong: var(--cream-50);
  --liquid-a: var(--teal-500);
  --liquid-b: var(--cream-100);
  --danger: #9a3c23;
  --danger-bg: #f9dfd2;
  --shadow: 0 1px 2px rgb(15 44 39 / .06), 0 14px 34px -18px rgb(15 44 39 / .28);

  --r-s: 12px; --r-m: 20px; --r-l: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: var(--teal-950); --surface: var(--teal-900); --surface-2: var(--teal-800);
    --line: #2b5a51; --line-strong: #41766b;
    --ink: var(--cream-100); --ink-2: #dfdcc6; --muted: #b5cabd;
    --mark: #7db8ac; --mark-soft: #2f6a5f;
    --strong: var(--cream-100); --on-strong: var(--teal-950);
    --liquid-a: #245a50; --liquid-b: #173f38;
    --danger: #f3a78d; --danger-bg: #4a2a20;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 34px -18px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: var(--teal-950); --surface: var(--teal-900); --surface-2: var(--teal-800);
  --line: #2b5a51; --line-strong: #41766b;
  --ink: var(--cream-100); --ink-2: #dfdcc6; --muted: #b5cabd;
  --mark: #7db8ac; --mark-soft: #2f6a5f;
  --strong: var(--cream-100); --on-strong: var(--teal-950);
  --liquid-a: #245a50; --liquid-b: #173f38;
  --danger: #f3a78d; --danger-bg: #4a2a20;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 34px -18px rgb(0 0 0 / .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .4s, color .4s;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.012em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
main { outline: none; }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--strong); color: var(--on-strong); border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.wrap.wide { width: min(1560px, 100%); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Cabecera ---------- */
.top {
  position: fixed; inset: 14px clamp(12px, 3vw, 28px) auto; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; border-radius: 999px; text-decoration: none;
  background: var(--surface); box-shadow: var(--shadow); font: 900 18px/1 var(--serif); letter-spacing: .02em;
}
.brand svg { width: 26px; height: 26px; }
.brand-mark { fill: var(--mark); transition: d .5s; }
.tabs {
  position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow);
}
.tabs a {
  position: relative; z-index: 1; padding: 8px 15px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 14.5px; color: var(--ink-2);
  transition: color .3s;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current='page'] { color: var(--on-strong); font-weight: 600; }
.tab-blob {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--strong);
  transition: transform .55s var(--spring), width .45s var(--ease);
}
.theme-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); color: var(--ink);
  transition: transform .5s var(--spring);
}
.theme-btn:hover { transform: rotate(180deg); }
.theme-btn svg { width: 22px; height: 22px; }

/* ---------- Botones ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border: 2px solid var(--strong); border-radius: 999px; background: var(--strong); color: var(--on-strong);
  font-weight: 600; text-decoration: none; transition: transform .35s var(--spring), color .3s;
}
.btn::before {
  content: ''; position: absolute; inset: auto -12% -130% -12%; height: 130%; z-index: -1; border-radius: 45% 55% 0 0 / 30% 22% 0 0; background: var(--mark);
  transition: bottom .55s var(--ease), border-radius .55s var(--ease);
}
.btn:hover::before { bottom: -14%; border-radius: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arrow { transition: transform .35s var(--spring); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost::before { background: var(--surface-2); }
.btn.sm { min-height: 40px; padding: 7px 16px; font-size: 14.5px; }
.btn.danger { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn.danger::before { background: var(--danger-bg); }
.btn[disabled] { opacity: .55; cursor: default; }
.link-btn { padding: 8px 2px; border: 0; background: none; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mark); }

/* ---------- Telón líquido entre vistas ---------- */
#wipe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; display: block; }
.view-enter > * { animation: rise .7s var(--ease) both; }
.view-enter > *:nth-child(2) { animation-delay: .06s; }
.view-enter > *:nth-child(3) { animation-delay: .12s; }
.view-enter > *:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Inicio ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; padding: 92px 0 clamp(20px, 5vh, 56px); background: var(--liquid-a) url('image.png') center/cover; overflow: hidden; }
.hero canvas, .liquid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-card {
  position: relative; max-width: 800px; padding: clamp(24px, 4vw, 52px); border-radius: var(--r-l) 72px var(--r-l) var(--r-l); background: var(--bg);
  box-shadow: 0 40px 80px -40px rgb(15 44 39 / .6);
}
.hero-card .eyebrow { display: block; margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, min(6.4vw, 10.5vh), 82px); font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--mark); }
.hero-sub { margin: 20px 0 26px; font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.resume-note { font-size: 14px; color: var(--muted); }

.path-strip { padding: clamp(36px, 7vw, 76px) 0 0; }
.path-strip h2 { font-size: clamp(28px, 3.6vw, 44px); max-width: 22ch; }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 6px; padding: 0; margin: 22px 0 0; align-items: center; }
.steps li { display: inline-flex; align-items: center; gap: 6px; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.steps span { padding: 7px 14px; border-radius: 999px; background: var(--surface-2); font-weight: 500; font-size: 15px; }
.steps li.key span { background: var(--strong); color: var(--on-strong); }
.steps li + li::before { content: ''; width: 14px; height: 2px; background: var(--line-strong); border-radius: 2px; }
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: clamp(28px, 5vw, 44px) 0 0; }
.door {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 26px; border-radius: var(--r-m); background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; transition: transform .5s var(--ease), color .4s, border-color .4s;
}
.door::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 100%; width: 170%; aspect-ratio: 1; translate: -50% 0; border-radius: 44% 56% 52% 48%; background: var(--strong);
  transition: translate .8s var(--ease), rotate 1.2s var(--ease);
}
.door:hover, .door:focus-visible { transform: translateY(-5px); color: var(--on-strong); border-color: transparent; }
.door:hover::before, .door:focus-visible::before { translate: -50% -82%; rotate: 50deg; }
.door small { font-size: 14px; font-weight: 600; opacity: .85; }
.door h3 { font-size: 30px; }
.door p { flex: 1; font-size: 15.5px; opacity: .92; }
.door .go { font-weight: 600; display: inline-flex; gap: 8px; }
.door .go i { font-style: normal; transition: transform .35s var(--spring); }
.door:hover .go i { transform: translateX(5px); }

/* ---------- Diagnóstico ---------- */
.run { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); min-height: 100dvh; }
.run-aside { position: sticky; top: 0; height: 100dvh; overflow: hidden; background: var(--liquid-a) url('image.png') center/cover; }
.run-card {
  position: absolute; inset: 84px 18px 18px; display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: var(--r-m); background: var(--bg); box-shadow: 0 24px 50px -30px rgb(15 44 39 / .7);
  overflow: hidden;
}
.phases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; flex: none; }
.phases li { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 0; color: var(--muted); font-weight: 500; transition: color .4s; }
.phases li::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg); z-index: 1; transition: background .5s, border-color .5s, scale .5s var(--spring); }
.phases li:not(:last-child)::after { content: ''; position: absolute; left: 6px; top: 24px; width: 2px; height: 22px; background: var(--line); }
.phases li.past::before { background: var(--mark); border-color: var(--mark); }
.phases li.past:not(:last-child)::after { background: var(--mark); }
.phases li.now { color: var(--ink); font-weight: 700; }
.phases li.now::before { background: var(--strong); border-color: var(--strong); scale: 1.25; }
.so-far { min-height: 0; flex: 1; overflow-y: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.so-far h2 { font: 600 13px/1.3 var(--sans); letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.so-far ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.so-far button { width: 100%; display: block; text-align: left; padding: 7px 9px; border: 0; border-radius: 10px; background: none; font-size: 14px; line-height: 1.3; transition: background .25s; }
.so-far button:hover { background: var(--surface-2); }
.so-far small { display: block; font-size: 12px; color: var(--muted); }
.so-far button.here { background: var(--surface-2); }

.stage { display: flex; flex-direction: column; justify-content: center; min-height: 100dvh; padding: 96px clamp(16px, 6vw, 88px) 46px; }
.stage-inner { width: min(760px, 100%); margin-inline: auto; }
.q-phase { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.q-title { font-size: clamp(29px, 4vw, 48px); outline: none; }
.q-help { margin-top: 12px; color: var(--ink-2); font-size: 16.5px; max-width: 62ch; }
.q-enter { animation: qIn .6s var(--ease) both; }
.q-enter.back { animation-name: qInBack; }
.q-leave { animation: qOut .22s ease-in both; }
.q-leave.back { animation-name: qOutBack; }
@keyframes qIn { from { opacity: 0; transform: translateX(36px); } }
@keyframes qInBack { from { opacity: 0; transform: translateX(-36px); } }
@keyframes qOut { to { opacity: 0; transform: translateX(-30px); } }
@keyframes qOutBack { to { opacity: 0; transform: translateX(30px); } }
form.q { margin: 0; }
.fields { display: grid; gap: 26px; margin-top: 26px; }
.field-label { display: block; font-weight: 600; font-size: 16.5px; margin-bottom: 10px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 9px; }
.opt {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--surface);
  cursor: pointer; transition: border-color .25s, transform .35s var(--spring), color .25s;
}
.q-enter .opt { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i) * 34ms + 90ms); }
.opt::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--strong); clip-path: circle(0 at var(--x, 24px) var(--y, 50%)); transition: clip-path .5s var(--ease);
}
.opt:hover { border-color: var(--mark); transform: translateY(-2px); }
.opt:active { transform: scale(.985); }
.opt.is-on { color: var(--on-strong); border-color: var(--strong); }
.opt.is-on::before { clip-path: circle(150% at var(--x, 24px) var(--y, 50%)); }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt:has(input:focus-visible) { outline: 3px solid var(--mark); outline-offset: 2px; }
.opt-key {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--line-strong); font-size: 12.5px; font-weight: 600; color: var(--muted); transition: all .25s;
}
.opt.is-on .opt-key { border-color: currentColor; color: inherit; }
.opt-text { flex: 1; min-width: 0; line-height: 1.28; font-weight: 500; }
.opt-text small { display: block; font-weight: 400; font-size: 13px; opacity: .85; margin-top: 2px; }
.principal-btn {
  position: relative; z-index: 1; flex: none; min-height: 32px; padding: 4px 11px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; font-size: 13px; font-weight: 600; color: inherit;
}
.principal-btn[aria-pressed='true'] { background: var(--on-strong); color: var(--strong); border-color: var(--on-strong); }
.counter { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.detail { margin-top: 12px; animation: rise .4s var(--ease) both; }
.input, textarea.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); line-height: 1.4; resize: vertical; transition: border-color .25s, box-shadow .25s;
}
.input:focus { outline: none; border-color: var(--strong); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mark) 28%, transparent); }
.input::placeholder { color: var(--muted); opacity: .85; }
.field-sub { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; cursor: pointer; font-weight: 500; }
.toggle input { width: 20px; height: 20px; accent-color: var(--strong); }
.err { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 13px; border-radius: 12px; background: var(--danger-bg); color: var(--danger); font-weight: 600; font-size: 14.5px; animation: shake .4s; }
.err::before { content: '!'; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--danger); color: var(--danger-bg); font-weight: 700; font-size: 13px; }
@keyframes shake { 25% { transform: translateX(-6px); } 60% { transform: translateX(5px); } }
.q-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.kbd-hint { font-size: 13px; color: var(--muted); }
.kbd-hint kbd { padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-strong); background: var(--surface); font: 600 12px var(--sans); }

/* ---------- Resultado ---------- */
.result { width: min(980px, 100%); margin-inline: auto; padding: 88px clamp(16px, 4vw, 40px) 90px; }
.result-head { position: relative; overflow: hidden; min-height: 280px; display: flex; align-items: flex-end; padding: clamp(14px, 2vw, 20px); border-radius: var(--r-l); background: var(--liquid-a) url('image.png') center/cover; }
.result-title { position: relative; max-width: 660px; padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 32px); border-radius: var(--r-m); background: var(--bg); }
.result-title h1 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 900; }
.result-title p { margin-top: 10px; color: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.card { min-width: 0; padding: 22px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.card h2 { font-size: 21px; margin-bottom: 10px; }
.card .lead { font-size: 18.5px; font-weight: 600; line-height: 1.32; }
.card p + p { margin-top: 8px; }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card li { position: relative; padding-left: 18px; }
.card li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 45% 55% 60% 40%; background: var(--mark); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
.card.solid { background: var(--strong); color: var(--on-strong); border-color: var(--strong); }
.card.solid li::before { background: currentColor; }
.note { margin-top: 12px; color: var(--muted); font-size: 14px; }
.contact { margin-top: 32px; }
.contact > h2 { font-size: clamp(25px, 3vw, 34px); }
.contact > p { margin-top: 8px; color: var(--ink-2); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.choice button { position: relative; text-align: left; padding: 22px; border-radius: var(--r-m); border: 1.5px solid var(--line-strong); background: var(--surface); transition: transform .4s var(--spring), border-color .25s; }
.choice button:hover { transform: translateY(-3px); border-color: var(--mark); }
.choice button[aria-pressed='true'] { border-color: var(--strong); box-shadow: inset 0 0 0 1.5px var(--strong); }
.choice b { display: block; font: 700 20px/1.2 var(--serif); margin-bottom: 6px; }
.choice span { font-size: 15px; color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; animation: rise .5s var(--ease) both; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .opts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.thanks { margin-top: 18px; padding: 22px; border-radius: var(--r-m); background: var(--surface-2); animation: rise .6s var(--ease) both; }
.thanks h3 { font-size: 23px; margin-bottom: 8px; }
.tail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Panel ---------- */
.page { padding: 92px 0 90px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.page-head h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 900; }
.page-head p { margin-top: 8px; color: var(--ink-2); max-width: 62ch; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; padding: 10px; border-radius: 18px; background: var(--surface-2); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg); }
.seg button { min-height: 36px; padding: 5px 13px; border: 0; border-radius: 999px; background: none; font-size: 14px; font-weight: 500; transition: background .25s, color .25s; }
.seg button[aria-pressed='true'] { background: var(--strong); color: var(--on-strong); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 7px 5px 13px; border-radius: 999px; background: var(--strong); color: var(--on-strong); font-size: 14px; font-weight: 500; border: 0; animation: rise .35s var(--ease) both; }
.chip i { display: grid; place-items: center; width: 22px; height: 22px; font-style: normal; border-radius: 50%; background: color-mix(in srgb, var(--on-strong) 18%, transparent); }
.filters .count { margin-left: auto; padding-right: 8px; font-size: 14px; color: var(--ink-2); }
.tgl { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; cursor: pointer; padding: 0 6px; }
.tgl input { width: 18px; height: 18px; accent-color: var(--strong); }
.notice { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line-strong); font-size: 14.5px; color: var(--ink-2); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.kpi { padding: 18px 20px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.kpi span { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.kpi b { display: block; font: 900 clamp(36px, 4.4vw, 52px)/1.05 var(--serif); margin-top: 4px; font-variant-numeric: tabular-nums lining-nums; }
.kpi small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.charts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.chart { min-width: 0; padding: 20px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.chart h2 { font-size: 21px; }
.chart > p { font-size: 14px; color: var(--muted); margin: 2px 0 12px; }
.c-5 { grid-column: span 5; } .c-7 { grid-column: span 7; } .c-12 { grid-column: span 12; } .c-8 { grid-column: span 8; } .c-4 { grid-column: span 4; }
.bars { display: grid; gap: 2px; }
.bar {
  display: grid; grid-template-columns: minmax(96px, 40%) minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; min-height: 32px; padding: 2px 6px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 14px; color: var(--ink);
  transition: background .2s;
}
button.bar:hover, .bar.on { background: var(--surface-2); }
.bar-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bar-name b { font-weight: 600; color: var(--muted); margin-right: 4px; }
.bar-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar-fill { height: 14px; width: calc(var(--v) * (100% - 60px)); min-width: 3px; border-radius: 0 4px 4px 0; background: var(--mark); animation: grow .9s var(--ease) both; animation-delay: calc(var(--i) * 35ms); transform-origin: left; }
.bars.dim .bar:not(.on) .bar-fill { background: var(--mark-soft); }
@keyframes grow { from { width: 0; } }
.bar-val { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-val small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 15px; }
.table-card { margin-top: 12px; padding: 20px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.table-card h2 { font-size: 21px; }
.table-scroll { overflow-x: auto; margin: 10px -6px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 780px; }
th { text-align: left; padding: 8px 10px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr { transition: background .2s; cursor: pointer; animation: fade .5s both; animation-delay: calc(var(--i) * 18ms); }
tbody tr:hover { background: var(--surface-2); }
td button { padding: 0; border: 0; background: none; font-weight: 600; text-align: left; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.tag.solid { background: var(--strong); color: var(--on-strong); }
.tag.out { background: none; border: 1px solid var(--line-strong); }
.more { margin-top: 12px; text-align: center; }

/* ---------- Ficha y diálogos ---------- */
dialog { color: inherit; }
dialog::backdrop { background: rgb(15 44 39 / .55); backdrop-filter: blur(3px); animation: fade .3s both; }
#sheet {
  position: fixed; inset: 0 0 0 auto; width: min(640px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); overflow-y: auto;
  border-radius: var(--r-l) 0 0 var(--r-l);
}
#sheet[open] { animation: sheetIn .55s var(--ease) both; }
@keyframes sheetIn { from { transform: translateX(70px); opacity: 0; } }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 20px 24px 14px; background: var(--bg); }
.sheet-head h2 { font-size: 27px; }
.close-btn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-2); font-size: 22px; line-height: 1; transition: transform .4s var(--spring); }
.close-btn:hover { transform: rotate(90deg); }
.sheet-body { padding: 0 24px 34px; display: grid; gap: 10px; }
.sheet-body section { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.sheet-body h3 { font: 600 13.5px/1.3 var(--sans); letter-spacing: .03em; color: var(--muted); margin-bottom: 7px; }
.sheet-body ul { margin: 0; padding-left: 18px; }
dl.answers { margin: 0; display: grid; gap: 10px; }
dl.answers dt { font-size: 13.5px; color: var(--muted); }
dl.answers dd { margin: 1px 0 0; font-weight: 500; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 10px; }
#modal {
  width: min(480px, calc(100vw - 32px)); padding: 26px; border: 0; border-radius: var(--r-m); background: var(--bg); box-shadow: 0 30px 70px -30px rgb(0 0 0 / .55);
}
#modal[open] { animation: popIn .45s var(--spring) both; }
@keyframes popIn { from { transform: scale(.9); opacity: 0; } }
#modal h2 { font-size: 25px; }
#modal p { margin-top: 8px; color: var(--ink-2); }
#modal ul { margin: 10px 0 0; padding-left: 20px; font-size: 15px; max-height: 200px; overflow-y: auto; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }

#tip { position: fixed; z-index: 70; max-width: 260px; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 13.5px; line-height: 1.35; pointer-events: none; }
#toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; translate: -50% 0; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
#toast div { padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14.5px; font-weight: 500; animation: rise .4s var(--spring) both; max-width: calc(100vw - 32px); }

/* ---------- Recorridos ---------- */
.scen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.scen button { min-height: 42px; padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 500; font-size: 14.5px; transition: all .3s; }
.scen button:hover { border-color: var(--mark); transform: translateY(-2px); }
.scen button[aria-pressed='true'] { background: var(--strong); color: var(--on-strong); border-color: var(--strong); font-weight: 600; }
.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; margin-top: 14px; align-items: start; }
.flow-box { position: relative; min-width: 0; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.flow-scroll { overflow-x: auto; }
.flow-svg { display: block; width: 100%; min-width: 1100px; height: auto; font-family: var(--sans); }
.link { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; transition: stroke .35s, stroke-width .35s, opacity .35s; }
.flow-svg.drawn .link { animation: draw 1.1s var(--ease) both; stroke-dasharray: 1; }
.link.opt { stroke-dasharray: 2 6; }
.flow-svg .link.opt { animation: none; }
.link.on { stroke: var(--strong); stroke-width: 3.5; }
.link.past { stroke: var(--mark); stroke-width: 3; }
.link.dead { stroke: var(--mark-soft); stroke-dasharray: 3 7; }
.flow-svg.tracing .link:not(.on):not(.past):not(.dead) { opacity: .45; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.node { cursor: pointer; outline: none; }
.node rect { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1.5; transition: fill .3s, stroke .3s, transform .35s var(--spring); transform-box: fill-box; transform-origin: center; }
.node text { fill: var(--ink); font-size: 19px; font-weight: 500; pointer-events: none; transition: fill .3s; }
.node .code { font-weight: 700; fill: var(--muted); }
.node:hover rect, .node:focus-visible rect { stroke: var(--mark); stroke-width: 2.5; transform: scale(1.04); }
.node.sel rect { stroke: var(--strong); stroke-width: 2.5; }
.node.hit rect { fill: var(--strong); stroke: var(--strong); }
.node.hit text { fill: var(--on-strong); font-weight: 600; }
.node.gone rect { stroke-dasharray: 4 4; fill: none; }
.node.gone text { fill: var(--muted); }
.flow-svg.drawn .node { animation: fade .6s both; animation-delay: calc(var(--i) * 40ms); }
.traveller { fill: var(--strong); stroke: var(--surface); stroke-width: 3; }
.flow-hint { padding: 6px 14px 12px; font-size: 13.5px; color: var(--muted); }
.side { min-width: 0; padding: 20px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); max-height: 640px; overflow-y: auto; }
.side h2 { font-size: 23px; }
.side > p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.side-q { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
.side-q li { position: relative; padding: 0 0 12px 22px; font-size: 14.5px; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.side-q li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--mark); }
.side-q li::after { content: ''; position: absolute; left: 6px; top: 16px; bottom: -6px; width: 2px; background: var(--line); }
.side-q li:last-child::after { display: none; }
.side-q b { font-weight: 600; display: block; line-height: 1.3; }
.side-q small { display: block; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.side h3 { margin-top: 14px; font: 600 13.5px/1.3 var(--sans); letter-spacing: .03em; color: var(--muted); }
.side-notes { margin: 6px 0 0; padding-left: 18px; font-size: 14.5px; }
.side-notes li + li { margin-top: 5px; }
.side .btn { margin-top: 14px; }

/* ---------- Pruebas ---------- */
.score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 22px; }
.score b { font: 900 clamp(52px, 8vw, 88px)/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.score span { color: var(--ink-2); }
.tests { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tests li { display: flex; gap: 12px; padding: 13px 15px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 28ms); }
.tests .ic { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--strong); color: var(--on-strong); font-weight: 700; font-size: 13px; }
.tests .fail .ic { background: var(--danger); color: var(--danger-bg); }
.tests .fail { border-color: var(--danger); }
.tests .pend .ic { background: none; border: 1.5px dashed var(--line-strong); color: var(--muted); }
.tests b { display: block; font-weight: 600; line-height: 1.3; }
.tests small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; overflow-wrap: anywhere; }
.section-title { margin-top: 30px; font-size: 25px; }

/* ---------- Adaptación ---------- */
@media (max-width: 1320px) {
  .flow-grid { grid-template-columns: minmax(0, 1fr); }
  .side { max-height: none; }
}
@media (max-width: 1020px) {
  .c-5, .c-7, .c-8, .c-4 { grid-column: span 12; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tests { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .run { grid-template-columns: minmax(0, 1fr); }
  .run-aside { display: none; }
  .mobile-phase { display: flex !important; }
  .stage { padding-top: 78px; padding-bottom: 96px; justify-content: flex-start; }
  .doors, .rules { grid-template-columns: minmax(0, 1fr); }
  .door { min-height: 190px; }
  .span-2, .span-3, .span-4 { grid-column: span 6; }
  .hero-card { border-radius: var(--r-m) 48px var(--r-m) var(--r-m); }
}
.mobile-phase { display: none; gap: 5px; margin-bottom: 18px; }
.mobile-phase i { flex: 1; height: 6px; border-radius: 6px; background: var(--line); transition: background .4s; }
.mobile-phase i.past, .mobile-phase i.now { background: var(--mark); }
@media (max-width: 720px) {
  .top { inset: 10px 12px auto; }
  .tabs { position: fixed; left: 8px; right: 8px; bottom: 8px; justify-content: space-between; }
  .tabs a { flex: 1 1 auto; min-width: 0; padding: 11px 1px; font-size: clamp(9.5px, 3.1vw, 12.5px); text-align: center; }
  .tabs { left: 4px; right: 4px; padding: 4px; gap: 0; }
  .flow-svg, .flow-svg.vertical { min-width: 0; }
  .hero { padding-bottom: 84px; }
  .kbd-hint { display: none; }
  .choice, .form-grid { grid-template-columns: minmax(0, 1fr); }
  #sheet { border-radius: 0; }
  .filters .count { margin-left: 0; width: 100%; padding-left: 6px; }
  .bar { grid-template-columns: minmax(84px, 38%) minmax(0, 1fr); }
  #toast { bottom: 76px; }
  .page, .result { padding-bottom: 100px; }
  .rules { padding-bottom: 100px; }
  .seg button { padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Segunda pasada de interfaz ---------- */
html { scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
::selection { background: var(--mark); color: var(--cream-50); }

/* Cabecera legible sobre el contenido al hacer scroll */
.top::before {
  content: ''; position: fixed; inset: 0 0 auto; height: 88px; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(var(--bg) 42%, transparent); transition: opacity .3s;
}
body.scrolled .top::before { opacity: 1; }

/* Aparición al hacer scroll */
.reveal.wait { opacity: 0; translate: 0 28px; }
.reveal { opacity: 1; translate: 0 0; transition: opacity .8s var(--ease) var(--d, 0ms), translate .8s var(--ease) var(--d, 0ms), transform .5s var(--ease), color .4s, border-color .4s; }
.reveal.in { opacity: 1; translate: 0 0; }

/* Cinta del recorrido */
.path-strip .eyebrow { display: block; margin-bottom: 8px; }
.ribbon { display: block; width: 100%; height: auto; margin-top: 22px; overflow: visible; }
.ribbon-line { fill: none; stroke: var(--mark); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal.in .ribbon-line { animation: ribbonDraw 1.8s var(--ease) .15s forwards; }
@keyframes ribbonDraw { to { stroke-dashoffset: 0; } }
.ribbon-dot { fill: var(--cream-50); }
.ribbon-stop { opacity: 0; }
.reveal.in .ribbon-stop { opacity: 1; animation: fade .5s both; animation-delay: calc(var(--i) * 170ms + .25s); }
.ribbon-stop circle { fill: var(--bg); stroke: var(--mark); stroke-width: 3; }
.ribbon-stop.key circle { fill: var(--strong); stroke: var(--strong); }
.ribbon-stop .n { font: 700 15px var(--sans); fill: var(--ink); }
.ribbon-stop.key .n { fill: var(--on-strong); }
.ribbon-stop .t { font: 500 16px var(--sans); fill: var(--ink-2); }
.ribbon-stop.key .t { font-weight: 700; fill: var(--ink); }
.path-strip .steps { display: none; }

/* Banda final */
.band { --band: var(--teal-700); --on-band: var(--cream-100); position: relative; margin-top: clamp(50px, 8vw, 90px); padding: 30px 0 clamp(70px, 9vw, 100px); background: var(--band); color: var(--on-band); }
:root[data-theme='dark'] .band { --band: var(--teal-800); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .band { --band: var(--teal-800); } }
.band-wave { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(36px, 6vw, 90px); display: block; }
.band-wave path { fill: var(--band); }
.band-in > h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 900; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 38px; margin: 34px 0 36px; }
.rules b { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 58% 42% 55% 45% / 46% 60% 40% 54%; background: var(--on-band); color: var(--band); font: 900 20px var(--serif); }
.rules h3 { font-size: 23px; margin-bottom: 8px; }
.rules p { font-size: 16px; opacity: .92; }
.btn.on-band { background: var(--on-band); color: var(--teal-950); border-color: var(--on-band); }
.btn.on-band::before { background: var(--cream-300); }

/* Páginas internas */
.page { position: relative; isolation: isolate; padding-top: 84px; }
.page::before {
  content: ''; position: absolute; z-index: -1; top: -90px; right: -130px; width: min(560px, 70vw); aspect-ratio: 1.15; background: var(--mark-soft); opacity: .38;
  border-radius: 58% 42% 63% 37% / 46% 61% 39% 54%; animation: morph 16s ease-in-out infinite alternate;
}
@keyframes morph { to { border-radius: 40% 60% 38% 62% / 62% 42% 58% 38%; rotate: 16deg; } }
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.page-head h1 { font-size: clamp(32px, 4.2vw, 52px); }
.page-head p { font-size: 16.5px; }
.head-actions { justify-content: flex-end; }

/* Cifras */
.kpi { position: relative; overflow: hidden; }
.kpi.lead { background: var(--strong); border-color: var(--strong); color: var(--on-strong); }
.kpi.lead span, .kpi.lead small { color: inherit; opacity: .9; }
.meter { display: block; height: 6px; margin-top: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: calc(var(--v) * 100%); min-width: 3px; border-radius: 6px; background: var(--mark); animation: grow 1s var(--ease) .25s both; }
.notice { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.chart, .table-card, .kpi { transition: border-color .3s, box-shadow .3s; }
.chart:hover, .table-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }

/* Mapa */
.wrap.wide .page-head p { max-width: 80ch; }
.scen { margin-top: 16px; }
.scen button { display: inline-flex; align-items: center; gap: 8px; }
.scen svg { width: 11px; height: 11px; fill: var(--mark); transition: fill .3s; }
.scen button[aria-pressed='true'] svg { fill: currentColor; }
.link.hl { stroke: var(--mark); stroke-width: 3.5; }
.side { position: sticky; top: 84px; }
.side::-webkit-scrollbar { width: 6px; }

/* Resultado y contacto */
.result { position: relative; }
.choice button { position: relative; overflow: hidden; isolation: isolate; transition: transform .4s var(--spring), border-color .25s, color .3s; }
.choice button::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--strong); clip-path: circle(0 at 10% 90%); transition: clip-path .6s var(--ease); }
.choice button[aria-pressed='true'] { color: var(--on-strong); border-color: var(--strong); box-shadow: none; }
.choice button[aria-pressed='true']::before { clip-path: circle(150% at 10% 90%); }
.choice button[aria-pressed='true'] span { color: inherit; opacity: .9; }

/* Pruebas */
.score-bar { height: 10px; margin-top: 14px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.score-bar i { display: block; height: 100%; width: calc(var(--v, 0) * 100%); border-radius: 10px; background: var(--mark); transition: width .35s var(--ease); }
.tests li { transition: border-color .25s; }
.tests li:hover { border-color: var(--line-strong); }

@media (max-width: 860px) {
  .rules { grid-template-columns: minmax(0, 1fr); }
  .ribbon { display: none; }
  .path-strip .steps { display: flex; }
  .page-head { grid-template-columns: minmax(0, 1fr); }
  .head-actions { justify-content: flex-start; }
  .side { position: static; }
}
@media (max-width: 720px) {
  .band { padding-bottom: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: 0 0; }
  .ribbon-line { stroke-dashoffset: 0; }
  .ribbon-stop { opacity: 1; }
}

.restart { flex: none; align-self: flex-start; padding: 2px 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }

/* ---------- Resultado por recorridos (mapa «Más dinero · Más tiempo») ---------- */
.res-item { margin-top: 34px; animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.res-head h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; margin-top: 4px; }
.combo { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.combo .tag { white-space: normal; padding: 4px 11px; font-size: 13.5px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card .ctx { color: var(--muted); font-size: 14.5px; margin-bottom: 8px; }
.card.money { border-style: dashed; border-color: var(--line-strong); }
.card.money .lead { font-size: 17.5px; }
.funnel { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 6px; margin: 14px 0 0; padding: 0; }
.funnel li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 500; }
.funnel li + li::before { content: '→'; margin-left: -4px; color: var(--muted); }
.sheet-body ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; }

/* Mapa en árbol: más nodos, texto más contenido */
.flow-svg.tree { min-width: 1540px; }
.flow-svg.tree .node text { font-size: 16px; }
.flow-svg.tree .node.leaf text { font-size: 15px; }
.flow-svg.tree .link.out { opacity: .35; }
.flow-svg.tree.tracing .link.out:not(.on):not(.past) { opacity: .15; }
.flow-svg.tree .link.out.on, .flow-svg.tree .link.out.past, .flow-svg.tree .link.out.hl { opacity: 1; }
.flow-svg.tree.vertical { min-width: 0; }
.flow-svg.tree.vertical .node text { font-size: 15px; }
.flow-svg.tree.vertical .node.leaf text { font-size: 13.5px; }
@media (max-width: 720px) { .flow-svg.tree { min-width: 0; } }

/* ---------- Revisión de interfaz: distribución, desbordes y movimiento ---------- */
/* Inicio */
.doors.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .doors.two { grid-template-columns: minmax(0, 1fr); } }

/* Preguntas: con pocas opciones, una lista; se lee de arriba abajo sin huecos */
.stage { position: relative; }
.q-progress { position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--line); overflow: hidden; }
.q-progress i { display: block; height: 100%; width: 100%; background: var(--mark); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform .7s var(--ease); border-radius: 0 5px 5px 0; }
.q-phase { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.q-phase b { font-weight: 700; color: var(--ink-2); }
.q-count { font-weight: 500; font-variant-numeric: tabular-nums; }
.q-title { text-wrap: balance; overflow-wrap: anywhere; }
.opts.few { grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 620px; }
.opts.few .opt { min-height: 60px; padding: 13px 18px; font-size: 17px; }
.opt-text { overflow-wrap: anywhere; }
.opt .opt-key { transition: transform .35s var(--spring), border-color .25s, color .25s; }
.opt:hover .opt-key { transform: scale(1.12); }
.opt.is-on { transform: none; }
.opt.is-on .opt-text { font-weight: 600; }
form.q:has(.opts.few) .q-nav, form.q:has(.opts.few) #qErr { max-width: 620px; }

/* Resultado */
.result { width: min(1040px, 100%); }
.res-nav { position: sticky; top: 74px; z-index: 5; display: flex; gap: 8px; margin-top: 14px; padding: 8px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none; }
.res-nav::-webkit-scrollbar { display: none; }
.res-nav button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 5px 14px 5px 6px; border: 0; border-radius: 999px; background: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: background .25s, transform .35s var(--spring); }
.res-nav button:hover { background: var(--surface-2); transform: translateY(-1px); }
.res-nav b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--strong); color: var(--on-strong); font-size: 13px; }
.res-item { margin-top: 44px; animation: none; scroll-margin-top: 140px; }
.res-head { display: flex; align-items: flex-start; gap: 16px; }
.res-num { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50% 46% 54% 48%; background: var(--strong); color: var(--on-strong); font: 900 24px/1 var(--serif); margin-top: 4px; }
.res-head h2 { font-size: clamp(25px, 3.4vw, 38px); font-weight: 900; margin-top: 2px; text-wrap: balance; overflow-wrap: anywhere; }
.combo { align-items: center; }
.combo-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.combo .tag { white-space: normal; padding: 4px 11px; font-size: 13.5px; line-height: 1.3; }
.res-item .cards { margin-top: 18px; }
.res-item .card { animation: none; overflow-wrap: anywhere; }
.res-item .card h3 { display: flex; align-items: center; gap: 9px; }
.card .dot { flex: none; width: 10px; height: 10px; border-radius: 45% 55% 60% 40%; background: var(--mark); }
.card.solid .dot { background: currentColor; }
.card .lead { text-wrap: pretty; }
.money-row { display: flex; align-items: center; gap: clamp(16px, 3vw, 30px); }
.money-row > div { min-width: 0; }
.fig { flex: none; font: 900 clamp(34px, 5vw, 56px)/1 var(--serif); color: var(--strong); white-space: nowrap; font-variant-numeric: lining-nums; }
:root[data-theme='dark'] .fig { color: var(--mark); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .fig { color: var(--mark); } }
.card.flat { background: none; border-style: dashed; }
.funnel { counter-reset: none; gap: 10px 8px; margin-top: 0; }
.funnel li { padding: 6px 14px 6px 6px; gap: 9px; background: var(--surface-2); }
.funnel li i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); font: 700 12.5px/1 var(--sans); font-style: normal; color: var(--ink-2); }
.funnel li + li::before { content: none; }
.funnel li:last-child { background: var(--strong); color: var(--on-strong); }
.funnel li:last-child i { background: color-mix(in srgb, var(--on-strong) 22%, transparent); color: inherit; }
.reveal.in .funnel li { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 90ms + .2s); }
@media (max-width: 720px) {
  .money-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .res-num { width: 42px; height: 42px; font-size: 20px; }
  .res-nav { border-radius: 20px; top: 66px; }
}

/* Panel: cada tarjeta ocupa lo que necesita, sin estirarse con la vecina */
.charts { align-items: start; }
.bar { grid-template-columns: minmax(120px, 44%) minmax(0, 1fr); min-height: 34px; }
.bar-name { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.22; padding-block: 3px; }
.chart .more { margin-top: 10px; }
.table-card td { overflow-wrap: anywhere; }

/* Mapa de recorridos */
.scen { align-items: center; }
.scen-label { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.flow-box { padding: 10px 6px 0; }
.flow-svg.tree { min-width: 960px; }
.flow-svg.tree .node text { font-size: 15px; }
.flow-svg.tree .node.leaf text { font-size: 14px; }
.flow-svg.tree .node.leaf rect { fill: var(--surface); }
.flow-svg.tree .node.goal rect { fill: var(--surface-2); stroke: var(--mark); }
.flow-svg.tree .node.lit rect { stroke: var(--mark); stroke-width: 2.5; }
.flow-svg.tree .node.sel rect { fill: var(--surface-2); }
.flow-svg.tree .node.hit rect { fill: var(--strong); stroke: var(--strong); }
.flow-svg.tree .link { stroke-width: 1.8; }
.flow-svg.tree .link.hl, .flow-svg.tree .link.on { stroke-width: 3.2; }
.flow-svg.tree .link.out { opacity: .28; }
.flow-svg.tree.drawn .node { animation: nodeIn .55s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 80ms); }
@keyframes nodeIn { from { opacity: 0; transform: translateX(-14px); } }
.flow-svg.tree.vertical { min-width: 0; }
.flow-svg.tree.vertical .node text { font-size: 15px; }
.flow-svg.tree.vertical .node.leaf text { font-size: 13.5px; }
.side { overflow-wrap: anywhere; scroll-margin-top: 90px; }
.side-small { font-size: 14.5px; margin-top: 4px; }
.side > * { animation: rise .4s var(--ease) both; }
@media (max-width: 1320px) { .side { position: static; max-height: none; } }
@media (max-width: 720px) { .flow-svg.tree { min-width: 0; } .flow-box { padding: 6px 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .q-progress i { transition: none; }
  .flow-svg.tree.drawn .node, .side > *, .reveal.in .funnel li { animation: none; }
}

/* Ajustes tras la revisión en pantalla */
html, body { overflow-x: clip; }
.page.wrap { padding-inline: clamp(16px, 4vw, 40px); }
.chart-col { display: grid; gap: 12px; min-width: 0; align-content: start; }
.scen button { white-space: normal; text-align: left; max-width: 100%; }
@media (max-width: 1020px) { .chart-col.c-7, .chart-col.c-5 { grid-column: 1 / -1; } }

/* ---------- Portada: franja breve ---------- */
.band-lead { margin-top: 16px; max-width: 58ch; font-size: clamp(16px, 1.5vw, 19px); opacity: .94; }
.band-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.band-link { font-weight: 600; text-underline-offset: 4px; }

/* ---------- Reserva de reunión ---------- */
.book { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 18px; margin-top: 18px; animation: rise .5s var(--ease) both; }
.cal, .slots { padding: 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.cal-head b { font: 700 19px/1.2 var(--serif); }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: none; font-size: 18px; transition: background .25s, border-color .25s; }
.cal-nav:hover:not([disabled]) { background: var(--surface-2); border-color: var(--mark); }
.cal-nav[disabled] { opacity: .35; cursor: default; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-week span { text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); padding-bottom: 4px; }
.cal-day { display: grid; place-items: center; aspect-ratio: 1; min-height: 40px; border-radius: 50%; border: 1.5px solid transparent; background: none; font-weight: 600; font-variant-numeric: tabular-nums; }
button.cal-day { background: var(--surface-2); border-color: var(--line); transition: transform .3s var(--spring), background .25s, color .25s, border-color .25s; }
button.cal-day:hover { border-color: var(--mark); transform: scale(1.06); }
button.cal-day[aria-pressed='true'] { background: var(--strong); color: var(--on-strong); border-color: var(--strong); }
.cal-day.off { color: var(--muted); opacity: .5; font-weight: 400; }
.slots h3 { font-size: 21px; }
.slots h3::first-letter { text-transform: uppercase; }
.slots-hint { margin-top: 8px; color: var(--ink-2); }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 14px; }
.slot { min-height: 46px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 600; font-variant-numeric: tabular-nums; transition: transform .3s var(--spring), background .25s, color .25s, border-color .25s; }
.slot:hover { border-color: var(--mark); transform: translateY(-2px); }
.slot[aria-pressed='true'] { background: var(--strong); color: var(--on-strong); border-color: var(--strong); }
.book-pick { padding: 12px 16px; border-radius: var(--r-s); background: var(--surface-2); }
.book-pick b { display: inline-block; }
.book-pick b::first-letter { text-transform: uppercase; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks .form-actions { margin-top: 14px; }
.meet-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.meet-list li { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-s); background: var(--surface-2); }
.meet-list b::first-letter { text-transform: uppercase; }
.meet-list span { color: var(--ink-2); overflow-wrap: anywhere; }
.meet-list small { color: var(--muted); }
.meet-list .link-btn { justify-self: start; padding: 4px 0; }
@media (max-width: 760px) {
  .book { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .book, button.cal-day, .slot { animation: none; transition: none; }
}

/* ================= Versión visual: iconos, resumen, reserva en dos pasos ================= */

/* ---------- Preguntas con icono ---------- */
.opts.tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; max-width: 760px; }
.opts.tiles .opt { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 10px; min-height: 124px; padding: 16px; border-radius: var(--r-m); font-size: 17px; }
.opts.tiles .opt-key { position: absolute; top: 12px; right: 12px; }
.opt-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--surface-2); color: var(--strong); transition: transform .4s var(--spring), background .25s, color .25s; }
.opt-ico svg { width: 26px; height: 26px; }
.opt.is-on .opt-ico { background: var(--strong); color: var(--on-strong); }
.strip-kind svg { width: 1.05em; height: 1.05em; vertical-align: -.15em; margin-right: .25em; }
.opt:hover .opt-ico { transform: translateY(-2px); }
.opts.tiles .opt-text { flex: none; width: 100%; font-weight: 600; }
@media (max-width: 520px) {
  .opts.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .opts.tiles .opt { min-height: 104px; padding: 13px; font-size: 15.5px; }
  .opt-ico { width: 44px; height: 44px; border-radius: 13px; }
  .opt-ico svg { width: 22px; height: 22px; }
}

/* ---------- Resumen del resultado ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.strip-card { display: grid; align-content: start; gap: 6px; text-align: left; padding: 18px 20px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--surface); animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 70ms); transition: transform .4s var(--spring), border-color .25s; }
.strip-card:hover { transform: translateY(-3px); border-color: var(--mark); }
.strip-kind { font-size: 13px; font-weight: 600; color: var(--muted); }
.strip-card b { font: 700 19px/1.2 var(--serif); }
.strip-card em { font: 900 clamp(30px, 4vw, 42px)/1 var(--serif); font-style: normal; color: var(--strong); font-variant-numeric: lining-nums; margin-top: 4px; }
.strip-card small { font-size: 13px; color: var(--muted); }
:root[data-theme='dark'] .strip-card em { color: var(--mark); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .strip-card em { color: var(--mark); } }

/* Antes y después */
.ba { display: grid; gap: 8px; margin-top: 14px; max-width: 520px; }
.ba-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 14px; }
.ba-row span { color: var(--muted); font-weight: 500; }
.ba-row i { height: 14px; border-radius: 999px; background: var(--line-strong); width: calc(var(--v) * 100%); min-width: 10px; transform-origin: left; animation: grow .9s var(--ease) both .2s; }
.ba-row.now i { background: var(--mark); }
.ba-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
@keyframes grow { from { transform: scaleX(0); } }

/* ---------- Reserva en dos pasos ---------- */
.contact { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-l); background: var(--surface-2); scroll-margin-top: 90px; }
.contact .thanks { background: var(--surface); }
.book-auto { display: grid; gap: 22px; margin-top: 22px; }
.book-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.book-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50% 46% 54% 48%; background: var(--strong); color: var(--on-strong); font: 900 18px/1 var(--serif); }
.book-step h3 { font-size: 22px; line-height: 38px; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 6px; }
.quick-slot { position: relative; display: grid; gap: 2px; text-align: left; padding: 14px 16px; border-radius: var(--r-m); border: 1.5px solid var(--line-strong); background: var(--surface); transition: transform .4s var(--spring), border-color .25s, background .25s, color .25s; }
.quick-slot:hover { transform: translateY(-3px); border-color: var(--mark); }
.quick-slot b { font: 900 28px/1.05 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.quick-slot span { font-size: 14px; color: var(--ink-2); }
.quick-slot span::first-letter { text-transform: uppercase; }
.quick-slot small { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mark); }
.quick-slot[aria-pressed='true'] { background: var(--strong); color: var(--on-strong); border-color: var(--strong); }
.quick-slot[aria-pressed='true'] span, .quick-slot[aria-pressed='true'] small { color: inherit; opacity: .9; }
.book-step .book { margin-top: 10px; }
.book-step .form-grid { margin-top: 10px; animation: none; }
.btn.big { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.more-fields { padding: 4px 0; }
.more-fields summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mark); width: fit-content; }
.more-fields .form-grid { margin-top: 12px; }
.alt { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.book-pill { position: fixed; z-index: 30; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 24px); padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-strong); box-shadow: var(--shadow); animation: rise .5s var(--ease) both; }
.book-pill[hidden] { display: none; }
.book-pill span { font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result { padding-bottom: 130px; }
@media (max-width: 760px) {
  .book-step { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .book-step > .book-n { display: none; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-pill { bottom: 74px; padding-left: 16px; }
  .book-pill span { display: none; }
  .btn.big { width: 100%; }
}

/* ---------- Panel: reuniones ---------- */
.kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kpis.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.meet-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.meet-top p { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }
.meet-top .seg { background: var(--surface-2); }
.meet-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.meet-grid .chart { background: var(--surface-2); border: 0; }
.meet-list { margin: 0; gap: 12px; }
.meet-list li.meet { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: var(--r-m); background: var(--surface-2); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.meet.off { opacity: .6; }
.meet-when { display: grid; justify-items: center; align-content: center; gap: 0; width: 76px; padding: 10px 6px; border-radius: var(--r-s); background: var(--strong); color: var(--on-strong); }
.meet-list .meet-when b { font: 900 30px/1 var(--serif); }
.meet-list .meet-when span { color: inherit; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.meet-list .meet-when small { color: inherit; font-size: 15px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.meet-body { display: grid; gap: 6px; min-width: 0; }
.meet-body h3 { font-size: 21px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.meet-body h3 small { font: 500 15px var(--sans); color: var(--ink-2); }
.meet-contact { color: var(--ink-2); font-size: 14.5px; overflow-wrap: anywhere; }
.meet-contact::first-letter { text-transform: uppercase; }
.meet-note { font-style: italic; color: var(--ink-2); }
.meet-probs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.meet-probs .tag { background: var(--surface); white-space: normal; }
.meet-probs .combo-label { font-size: 13px; font-weight: 600; color: var(--muted); width: 100%; }
.meet-diag summary { cursor: pointer; font-weight: 600; width: fit-content; }
.meet-item { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-s); background: var(--surface); display: grid; gap: 6px; }
.meet-item h4 { font-size: 17px; }
.meet-item .tag { white-space: normal; }
@media (max-width: 980px) { .meet-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .meet-list li.meet { grid-template-columns: minmax(0, 1fr); } .meet-when { width: auto; grid-auto-flow: column; justify-content: start; gap: 8px; align-items: baseline; } }
@media (prefers-reduced-motion: reduce) {
  .strip-card, .ba-row i, .book-pill, .meet-list li.meet, .quick-slot, .opt-ico { animation: none; transition: none; }
}
.meet-when { align-self: start; }
.contact { scroll-margin-top: 150px; }

/* ---------- Reserva: calendario siempre visible ---------- */
button.cal-day { position: relative; display: grid; grid-template-rows: 1fr auto; place-items: center; gap: 0; padding: 4px 0 3px; border-radius: 14px; aspect-ratio: auto; min-height: 48px; }
button.cal-day small { font-size: 10.5px; font-weight: 700; line-height: 1; color: var(--mark); }
button.cal-day[aria-pressed='true'] small { color: var(--on-strong); opacity: .8; }
.cal-day.off { border-radius: 14px; min-height: 48px; aspect-ratio: auto; }
.book-or { margin-top: 16px; font-size: 14px; color: var(--muted); }
.book-or + .book { margin-top: 10px; }
.slot-group { margin-top: 14px; }
.slot-group-name { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.slot-group .slot-list { margin-top: 8px; }
.book-pick { margin-top: 12px; }
@media (max-width: 720px) {
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  button.cal-day, .cal-day.off { min-height: 42px; }
}

/* ---------- Revisión de diseño (dic. 2026) ---------- */
/* Tarjetas con icono: icono arriba y texto debajo, a la misma altura en todas. */
.opts.tiles .opt { justify-content: flex-start; }
.opts.tiles .opt-text { margin-top: auto; }
/* Los atajos de teclado solo tienen sentido con teclado y ratón. */
@media (hover: none), (max-width: 720px) {
  .opt-key, .kbd-hint { display: none !important; }
}

/* Cabecera del resultado: limpia, con la prioridad dicha en una frase. */
.result-head.plain { display: grid; gap: 10px; min-height: 0; padding: 34px 0 8px; border-radius: 0; background: none; overflow: visible; }
.result-head.plain h1 { font-size: clamp(34px, 5vw, 54px); }
.result-ctx { color: var(--ink-2); font-size: 17px; }
.result-priority { margin-top: 14px; padding: 22px 26px; border-radius: var(--r-m); background: var(--strong); color: var(--on-strong); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.result-priority > div:first-child { display: grid; gap: 6px; flex: 1 1 320px; }
.result-fig { display: grid; justify-items: end; text-align: right; }
.result-fig b { font: 900 clamp(34px, 4vw, 48px)/1 var(--serif); }
.result-fig small { font-size: 13px; opacity: .85; }
@media (max-width: 720px) { .result-fig { justify-items: start; text-align: left; } }
.result-priority span { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .8; }
.result-priority p { font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--serif); }
.result-priority small { font-size: 14px; opacity: .85; }
/* Durante las preguntas, en móvil, la barra inferior de pestañas estorba. */
@media (max-width: 720px) { body.in-run .tabs { display: none; } }

/* Primer paso: el consejo más accionable, dentro del bloque de prioridad. */
.result-step { flex: 1 1 100%; display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--on-strong) 22%, transparent); }
.result-step span { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .8; }
.result-priority .result-step p { font: 500 17px/1.55 var(--sans); max-width: 75ch; }
