/* ===== Tokens =====
   Concepto: cada persona tiene una forma propia (la "huella"). La huella es el único elemento expresivo;
   todo lo demás es tranquilo. Sol = tu forma; salvia = la forma del rol; ciruela = acciones. */
:root {
  --bg: #f4f2f6;
  --surface: #ffffff;
  --surface-2: #ece8f1;
  --ink: #2b2236;
  --muted: #6e6579;
  --line: #e2dce8;
  --accent: #5a3a78;
  --accent-ink: #ffffff;
  --accent-soft: #ebe3f3;
  --sun: #f2b640;
  --sun-deep: #b97a06;
  --sun-soft: #fbedc8;
  --sun-fill: color-mix(in srgb, #f2b640 62%, transparent);
  --sage: #4f8a6c;
  --sage-soft: #dcede3;
  --rose: #b8475f;
  --rose-soft: #f6dde3;
  --good: var(--sage);
  --good-soft: var(--sage-soft);
  --warn: #9a6400;
  --warn-soft: var(--sun-soft);
  --bad: var(--rose);
  --bad-soft: var(--rose-soft);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: none;
  --font: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Young Serif', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1622;
    --surface: #241d2d;
    --surface-2: #2e2638;
    --ink: #f1ecf6;
    --muted: #aa9fb6;
    --line: #3a3046;
    --accent: #c9aaea;
    --accent-ink: #1b1622;
    --accent-soft: #3a2d4b;
    --sun: #f5c15a;
    --sun-deep: #f5c15a;
    --sun-soft: #3d3220;
    --sun-fill: color-mix(in srgb, #f5c15a 88%, transparent);
    --sage: #8cc6a7;
    --sage-soft: #1f3529;
    --rose: #ef8fa4;
    --rose-soft: #3d2029;
    --warn: #f5c15a;
    color-scheme: dark;
  }
}
/* El panel de superadmin (y quien lo fuerce) usa siempre el modo oscuro. */
:root[data-theme="dark"] {
  --bg: #1b1622;
  --surface: #241d2d;
  --surface-2: #2e2638;
  --ink: #f1ecf6;
  --muted: #aa9fb6;
  --line: #3a3046;
  --accent: #c9aaea;
  --accent-ink: #1b1622;
  --accent-soft: #3a2d4b;
  --sun: #f5c15a;
  --sun-deep: #f5c15a;
  --sun-soft: #3d3220;
  --sun-fill: color-mix(in srgb, #f5c15a 88%, transparent);
  --sage: #8cc6a7;
  --sage-soft: #1f3529;
  --rose: #ef8fa4;
  --rose-soft: #3d2029;
  --warn: #f5c15a;
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .55em; font-weight: 400; }
h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -.01em; }
h2 { font-family: var(--font-display); font-size: 1.45rem; }
h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
input, select, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .container { padding: 0 32px; } }
.main { padding-top: 40px; padding-bottom: 64px; min-height: 70vh; }
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.eyebrow { font-size: .95rem; color: var(--muted); margin-bottom: .4em; }
.h-sm { font-family: var(--font); font-size: .98rem; font-weight: 700; margin-top: 1.4em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack > * + * { margin-top: 20px; }

/* ===== Barra superior ===== */
.topbar { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand-mark .bm-ring { fill: var(--accent); }
.brand-mark .bm-n { fill: var(--sun); }
.brand-mark .bm-s { fill: var(--accent-soft); }
.brand-mark .bm-dot { fill: var(--accent); stroke: var(--accent-ink); stroke-width: 1.5; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { padding: 6px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .97rem; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.topbar-menu { display: contents; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ''; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle:hover { background: var(--surface-2); border-color: var(--muted); }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { top: 0; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .menu-bars, .menu-bars::before, .menu-bars::after { transition: none; } }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.topbar-actions form { margin: 0; }
.lang-form select:hover { border-color: var(--muted); cursor: pointer; }
.lang-form select { padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.footer { color: var(--muted); font-size: .9rem; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.footer .brand-mark { width: 18px; height: 18px; }
.footer { flex-wrap: wrap; }
.footer-legal { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: inherit; }
.legal { max-width: 780px; }
.video-card { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 14px; color: var(--ink); text-decoration: none; background: color-mix(in srgb, var(--accent) 4%, transparent); }
.video-card:hover, .video-card:focus-visible { border-color: var(--accent); }
.video-card > span:last-child { display: grid; gap: 2px; }
.video-eyebrow { font-size: .82rem; color: var(--muted); }
.video-play { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); position: relative; }
.video-play::after { content: ''; position: absolute; left: 19px; top: 15px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--bg); }
/* Suscripción */
.sub-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.sub-grid .card + .card { margin-top: 0; }
.sub-features { list-style: none; padding: 0; display: grid; gap: 12px; }
.sub-features li { padding-left: 26px; position: relative; }
.sub-features li::before { content: '✓'; position: absolute; left: 0; color: var(--sage); font-weight: 700; }
.sub-price { font-size: 1.1rem; margin: 0 0 4px; }
.sub-price strong { font-family: var(--font-display, inherit); font-size: 2.6rem; }
.sub-cta .form { margin-top: 16px; }
.sub-dash { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 24px;
  border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.sub-dash h2 { margin: 0 0 4px; }
@media (max-width: 640px) { .sub-nav { display: none; } }

/* Camino del emprendedor */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ent-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; margin-top: 24px; }
.ent-grid .card + .card { margin-top: 0; }
.ent-grid h2 { margin: 4px 0 16px; font-size: 1.3rem; }
.ent-milestones, .ent-blocks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.ent-milestones li { color: var(--muted); }
.ent-milestones li span[aria-hidden] { display: inline-block; width: 1.2em; color: var(--muted); }
.ent-milestones li.is-done { color: var(--ink); }
.ent-milestones li.is-done span[aria-hidden] { color: var(--sage); font-weight: 700; }
.ent-blocks li { border-left: 3px solid var(--line); padding-left: 12px; }
.ent-blocks strong { display: block; margin: 6px 0 4px; }
.ent-blocks p { margin: 0; color: var(--muted); font-size: .92rem; }
.tag.ent-type-miedo { background: color-mix(in srgb, #c0392b 12%, transparent); color: #c0392b; }
.tag.ent-type-creencia { background: color-mix(in srgb, #3f6fb5 12%, transparent); color: #3f6fb5; }
.tag.ent-type-patron { background: color-mix(in srgb, #8a5a2b 14%, transparent); color: #8a5a2b; }
.ent-test { display: grid; gap: 16px; }
.ent-stage-check legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; }
.ent-stage-check legend + * { clear: both; }
.ent-check { display: flex; gap: 14px; align-items: center; padding: 12px 14px; margin: 0 -14px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; transition: background .12s, border-color .12s; }
.ent-check:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.ent-check:has(input:checked) { background: color-mix(in srgb, var(--sage) 12%, transparent); border-color: color-mix(in srgb, var(--sage) 45%, transparent); }
.ent-check:has(input:checked) span { font-weight: 700; }
.ent-check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ent-check input { width: 26px; height: 26px; margin: 0; flex: none; accent-color: var(--sage); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ent-check { transition: none; } }
/* Ilustraciones de las etapas: mismo trazo, fondo y acento en todas (ent_illustration). */
.ent-ill { flex: none; width: 72px; height: 72px; }
.ent-ill .ill-bg { fill: color-mix(in srgb, var(--accent) 10%, transparent); }
.ent-ill .ill-line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ent-ill .ill-thick { stroke-width: 7; }
.ent-ill .ill-accent { fill: var(--sun); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ent-ill-lg { width: 112px; height: 112px; }
.ent-ill-sm { width: 60px; height: 60px; }
.ent-hero-head { display: flex; gap: 20px; align-items: center; }
.ent-hero-head .path-point { margin-bottom: 4px; }
.ent-stage-row { display: flex; gap: 16px; align-items: center; }
.ent-stage-row > div { flex: 1; min-width: 0; }
.ent-stage-check legend { display: flex; gap: 12px; align-items: center; }

/* Trabajar un bloqueo */
.blk-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.blk-care { border-left: 4px solid var(--sun-deep); color: var(--ink); }
.blk-work h2, .blk-check h2 { margin-top: 0; }
.blk-commit-title { margin-top: 32px !important; }
.blk-commit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.ent-blocks .btn { margin-top: 8px; }
.blk-all { margin-top: 16px; font-size: .92rem; }
.blk-all ul { padding-left: 18px; margin: 8px 0 0; display: grid; gap: 6px; }

/* Valores */
.axis-etico { --axis: var(--sage); }
.axis-emocional { --axis: #c2507a; }
.axis-pragmatico { --axis: #3f6fb5; }
.value-axis { background: color-mix(in srgb, var(--axis) 14%, transparent); color: var(--axis); }
.values-game { max-width: 560px; margin: 0 auto; }
.values-game:has([data-vg-grid]:not([hidden])) { max-width: 880px; }
.values-status { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .92rem; color: var(--muted); }
.values-status strong { color: var(--ink); }
.vg-bar { height: 6px; border-radius: 3px; background: var(--line); margin: 8px 0 20px; overflow: hidden; }
.vg-bar span { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.vg-stack { position: relative; height: 300px; }
.vg-card { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 12px; text-align: center; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-top: 8px solid var(--axis); border-radius: 22px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 12%, transparent); touch-action: pan-y; user-select: none; }
.vg-card.is-top { cursor: grab; }
.vg-card.is-top:active { cursor: grabbing; }
.vg-card.is-next { transform: scale(.95) translateY(10px); opacity: .7; }
.vg-card h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); margin: 0; }
.vg-card p { margin: 0; color: var(--muted); max-width: 32ch; }
.vg-stamp { position: absolute; top: 18px; font-size: 2rem; font-weight: 700; opacity: 0; transition: opacity .1s; }
.vg-stamp-yes { right: 22px; color: var(--sage); }
.vg-stamp-no { left: 22px; color: #c0392b; }
.vg-card.is-yes .vg-stamp-yes, .vg-card.is-no .vg-stamp-no { opacity: 1; }
.vg-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.vg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 2px solid; background: var(--surface); font: inherit; font-weight: 700; cursor: pointer; }
.vg-btn [aria-hidden] { font-size: 1.2rem; }
.vg-btn { white-space: nowrap; }
@media (max-width: 480px) {
  .vg-label { display: none; }
  .vg-btn { width: 64px; height: 64px; padding: 0; justify-content: center; }
  .vg-btn [aria-hidden] { font-size: 1.7rem; }
}
.vg-no { color: #c0392b; }
.vg-yes { color: var(--sage); }
.vg-btn:hover, .vg-btn:focus-visible { background: color-mix(in srgb, currentColor 10%, var(--surface)); }
.vg-hint { margin-top: 12px; font-size: .85rem; }
.vg-between { text-align: center; }
.vg-grid-wrap h2 { margin: 0 0 6px; }
.vg-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); margin: 16px 0 88px; }
.vg-pick { position: relative; display: grid; gap: 4px; align-content: start; text-align: left; padding: 12px 12px 12px 14px; min-height: 92px;
  border: 1px solid var(--line); border-left: 5px solid var(--axis); border-radius: 12px; background: var(--surface); color: var(--muted);
  font: inherit; font-size: .82rem; cursor: pointer; opacity: .55; transition: opacity .12s, box-shadow .12s, transform .12s; }
.vg-pick strong { color: var(--ink); font-size: 1rem; }
.vg-pick.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--axis); }
.vg-pick.is-on::after { content: '✓'; position: absolute; top: 8px; right: 10px; color: var(--axis); font-weight: 700; }
.vg-pick:not(.is-on) strong { text-decoration: line-through; }
.vg-pick:hover { transform: translateY(-1px); }
.vg-grid-bar { position: sticky; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 14%, transparent); }
.vg-grid-count { font-weight: 700; color: #c0392b; }
.vg-grid-count.is-ok { color: var(--sage); }
@media (prefers-reduced-motion: reduce) { .vg-pick { transition: none; } }
.value-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip { padding: 4px 12px; border-radius: 999px; font-size: .88rem; background: color-mix(in srgb, var(--axis, var(--accent)) 14%, transparent); color: var(--axis, var(--accent)); }
.value-final { text-align: left; display: grid; gap: 8px; padding-left: 22px; }
.value-final li::marker { color: var(--axis); font-weight: 700; }
.value-results { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-top: 12px; }
.value-results .card + .card { margin-top: 0; }
.value-result, .value-plan-card { border-top: 6px solid var(--axis); }
.value-result-head { display: flex; gap: 12px; align-items: center; }
.value-result-head h3 { margin: 0 0 4px; }
.value-rank { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--axis); color: #fff; font-weight: 700; }
.value-plan { margin: 16px 0 0; }
.value-plan dt { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.value-plan dd { margin: 2px 0 0; }
.value-plan-form { display: grid; gap: 16px; }
.value-plan-card { border-left: 0; border-right: 0; border-bottom: 0; }
.value-plan-card legend { padding: 0 6px; }
.account-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.account-grid .card + .card { margin-top: 0; }
.topbar-actions a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.legal h2 { margin-top: 32px; }
.consent { font-size: .9rem; }
.consent label, .form .consent label { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; font-weight: 400; text-align: left; }
.consent input, .form .consent input { width: auto; flex: none; margin: 3px 0 0; }
.privacy-layer { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }
.privacy-layer p { margin: 0 0 4px; }

/* ===== Botones ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 80%, var(--accent-ink)); box-shadow: 0 0 0 4px var(--accent-soft), 0 6px 16px -6px color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-1px); }
.btn-primary:active { transform: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .btn-primary:hover { transform: none; } }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: var(--surface); }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:focus-visible { border-radius: 999px; }

/* ===== Superficies y rejilla =====
   Paneles grandes con radio amplio; elementos pequeños con radio corto. Sin sombras: el borde basta. */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card + .card, section + section { margin-top: 24px; }
.card.narrow { max-width: 460px; margin: 24px auto; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.grid-2 > .card + .card, .grid-3 > .card + .card, .grid-4 > .card + .card { margin-top: 0; }
.grid-2 + section, .grid-3 + section, .stats + section { margin-top: 24px; }
.page-head { margin-bottom: 32px; }
.section-title { margin-top: 48px; }
.domain-title { margin: 32px 0 4px; font-size: 1.4rem; }
.domain-title + .muted { margin: 0 0 16px; }

/* ===== Huella ===== */
.huella { display: block; width: 100%; height: auto; overflow: visible; }
.huella-you { fill: var(--sun-fill); stroke: var(--sun-deep); stroke-width: 2.5; stroke-linejoin: round; }
.huella-role { fill: none; stroke: var(--sage); stroke-width: 2.5; stroke-dasharray: 7 5; stroke-linejoin: round; }
.huella-sm .huella-you { stroke-width: 1.5; }
.huella-sm .huella-role { stroke-width: 2.5; stroke-dasharray: none; fill: color-mix(in srgb, var(--sage) 16%, transparent); }
.huella-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.huella-edge { stroke-width: 1.5; }
.huella-spoke { stroke: var(--muted); stroke-opacity: .28; stroke-width: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .huella-spoke { stroke: var(--bg); stroke-opacity: .35; } }
:root[data-theme="dark"] .huella-spoke { stroke: var(--bg); stroke-opacity: .35; }
.huella-ring { fill: none; stroke: var(--muted); stroke-opacity: .45; stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.huella-tick { fill: var(--muted); fill-opacity: .6; }
.huella text { fill: var(--muted); font: 17px var(--font); }
.huella-animate .huella-you { transform-origin: 200px 200px; animation: huella-in 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes huella-in { from { transform: scale(.35) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .huella-animate .huella-you { animation: none; } }
.huella-hit-area { fill: transparent; }
.huella-hit:hover .huella-hit-area, .huella-hit:focus-visible .huella-hit-area { fill: color-mix(in srgb, var(--accent) 9%, transparent); }
.huella-hit:focus { outline: none; }
.huella-dot, .huella-bubble { opacity: 0; pointer-events: none; transition: opacity .12s; }
.huella-hit:hover .huella-dot, .huella-hit:hover .huella-bubble,
.huella-hit:focus-visible .huella-dot, .huella-hit:focus-visible .huella-bubble { opacity: 1; }
.huella-dot { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.huella-bubble rect { fill: var(--ink); }
.huella .huella-value { fill: var(--bg); font: 700 17px var(--font); }
@media (prefers-reduced-motion: reduce) { .huella-dot, .huella-bubble { transition: none; } }
.huella-hit[data-name] { cursor: pointer; }
.huella-hit.is-open .huella-hit-area { fill: color-mix(in srgb, var(--accent) 12%, transparent); }
.huella-hit.is-open .huella-dot, .huella-hit.is-open .huella-bubble { opacity: 1; }
.huella-pop { position: absolute; z-index: 50; width: min(320px, calc(100vw - 24px)); background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 18%, transparent); font-size: .92rem; }
.huella-pop { pointer-events: none; }
.huella-pop.is-pinned { pointer-events: auto; }
.huella-pop p { margin: 0 0 8px; }
.huella-pop-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.huella-pop-head strong { font-size: 1.05rem; }
.huella-pop-score { background: var(--ink); color: var(--bg); border-radius: 999px; padding: 1px 10px; font-weight: 700; }
.huella-pop-close { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.huella-pop-level { color: var(--muted); font-size: .85rem; }
.huella-pop-poles { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: .85rem; }
.huella-pop-poles dt { color: var(--muted); }
.huella-pop-poles dd { margin: 0; }
/* Camino de desarrollo */
.path-card { margin-bottom: 24px; }
.dash-paths { margin-bottom: 24px; }
/* Panel (DASH-01): bloques apilados con el mismo espacio entre filas. */
.dash > * + * { margin-top: 24px; }
.dash > .grid-2 > .card { margin: 0; }
.dash .sub-dash, .dash .dash-goal { margin-bottom: 0; }
.value-list { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; }
.value-list li span { display: block; font-size: .93rem; }
/* Pestañas del panel de admin (SUP-10). */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.admin-tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: inherit; font-weight: 700; font-size: .93rem; }
.admin-tabs a:hover { border-color: var(--accent); background: var(--accent-soft); }
.admin-tabs a[aria-current="page"] { background: var(--ink, currentColor); border-color: transparent; color: var(--surface); }
.sales-stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0 0 8px; }
.sales-stats .card { margin: 0; padding: 16px 18px; }
.sales-stats dt { font-size: .85rem; color: var(--muted); font-weight: 700; }
.sales-stats dd { margin: 4px 0 0; font-size: 1.6rem; font-family: var(--font-display, inherit); }
.table .num { text-align: right; white-space: nowrap; }
/* Visitas (SUP-12): barras de usuarios por día. */
.visits-chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; margin-top: 12px; }
.visits-bar { flex: 1; background: var(--accent, currentColor); border-radius: 3px 3px 0 0; min-width: 2px; opacity: .85; }
.visits-bar:hover { opacity: 1; }
.visits-axis { display: flex; justify-content: space-between; margin-top: 6px; }
/* Aviso de cookies (LEGAL-04): fijo abajo, con aceptar y rechazar al mismo nivel. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
.consent[hidden] { display: none; }
.consent-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.consent-inner p { margin: 4px 0 0; max-width: 70ch; font-size: .93rem; }
.consent-title { font-size: 1.05rem; margin: 0; }
.consent-actions { display: flex; gap: 10px; }
.link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--accent); text-decoration-thickness: 2px; }
.dash-paths .path-card { margin: 0; }
.path-point { font-family: var(--font-display, inherit); font-size: 1.6rem; margin: 0 0 12px; }
.path-track { margin: 8px 0 16px; }
.path-bar { position: relative; display: flex; gap: 3px; height: 14px; }
.path-seg { border-radius: 7px; background: var(--line); }
.path-seg.is-done { background: var(--sage); }
.path-seg.is-current { background: var(--sun-fill); box-shadow: inset 0 0 0 2px var(--sun-deep); }
.path-marker { position: absolute; top: 50%; width: 0; height: 0; }
.path-marker span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); min-width: 34px; height: 34px; padding: 0 6px;
  display: grid; place-items: center; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: .95rem;
  border: 3px solid var(--surface); }
.path-labels { display: flex; gap: 3px; list-style: none; margin: 10px 0 0; padding: 0; font-size: .78rem; color: var(--muted); }
.path-labels li { text-align: center; line-height: 1.25; }
.path-labels li.is-current { color: var(--ink); font-weight: 700; }
.path-scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 640px) { .path-labels { display: none; } }
.path-next { margin-top: 24px; }
.path-next h3 { margin-top: 20px; }
.path-practices li { margin-bottom: 6px; }
.path-science { font-size: .9rem; color: var(--muted); }
.path-stages { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.path-stage h3 { margin: 0; font-size: 1.1rem; }
.path-stage-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.path-stage.is-current { box-shadow: inset 0 0 0 2px var(--sun-deep); }
.path-stage details { margin-top: 10px; }
.path-history { padding-left: 18px; }
.path-disclaimer { margin-top: 32px; font-size: .88rem; }
.huella-legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: .92rem; color: var(--muted); margin: 8px 0 0; padding: 0; list-style: none; }
.huella-legend + .bars { margin-top: 20px; }
.huella-legend li { display: inline-flex; align-items: center; gap: 8px; }
.huella-legend i { width: 22px; height: 12px; border-radius: 999px; display: inline-block; }
.huella-legend .is-you { background: var(--sun-fill); border: 2px solid var(--sun-deep); }
.huella-legend .is-role { border: 2px solid var(--sage); background: color-mix(in srgb, var(--sage) 16%, transparent); }

/* ===== Portada ===== */
.hero { display: grid; gap: 32px; align-items: center; padding: 24px 0 56px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr .95fr; gap: 56px; padding: 40px 0 72px; } }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; max-width: 18ch; }
.hero-note { color: var(--muted); font-size: .95rem; margin: 12px 0 0; }
.hero .lead { font-size: 1.2rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.hero-figure { margin: 0; max-width: 520px; justify-self: center; width: 100%; }
.hero-figure figcaption { color: var(--muted); font-size: .95rem; max-width: 46ch; margin: 4px auto 0; text-align: center; }
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; counter-reset: paso; }
@media (min-width: 760px) { .path { grid-template-columns: repeat(4, 1fr); } }
.path li { position: relative; padding: 0 20px 28px 52px; counter-increment: paso; }
.path li::before { content: counter(paso); position: absolute; left: 0; top: -4px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--accent); color: var(--accent); font-weight: 700; }
.path li::after { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; border-left: 1.5px dashed var(--line); }
.path li:last-child::after { display: none; }
@media (min-width: 760px) {
  .path li { padding: 56px 24px 0 0; }
  .path li::before { top: 0; }
  .path li::after { left: 44px; right: 8px; top: 17px; bottom: auto; border-left: 0; border-top: 1.5px dashed var(--line); }
}
.path h3 { margin-bottom: .3em; }
.path p { color: var(--muted); margin: 0; }
.poles-intro, .shift-intro, .formula-intro { max-width: 62ch; }
/* Antes / ahora: la antítesis es el argumento de la portada. */
.shift { margin-top: 28px; }
.shift-row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.shift-head { display: none; }
.shift-before { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent); }
.shift-now { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.3; color: var(--ink); }
@media (min-width: 760px) {
  .shift-row { grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: baseline; padding: 20px 0; }
  .shift-head { display: grid; padding: 0 0 10px; font-weight: 700; color: var(--muted); }
  .shift-head span:last-child { color: var(--accent); }
}
.formula { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 32px 0 8px; align-items: start; justify-items: center; text-align: center; }
.formula-term { display: grid; gap: 4px; max-width: 22ch; }
.formula-term strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; color: var(--ink); }
.formula-term span { color: var(--muted); }
.formula-result strong { color: var(--accent); }
.formula-op { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; color: var(--sun-deep); }
@media (min-width: 760px) { .formula { grid-template-columns: 1fr auto 1fr auto 1.2fr; gap: 20px; } }
.formula-lines { list-style: none; margin: 32px auto 0; padding: 0; max-width: 62ch; display: grid; gap: 10px; text-align: center; font-size: 1.1rem; }
.formula-lines li:last-child { font-weight: 700; }
.home-close { text-align: center; }
.home-close .lead { margin-left: auto; margin-right: auto; }
.home-close .hero-actions { justify-content: center; }
.home-band { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }

/* ===== Polos de un talento ===== */
.poles { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.pole { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pole-name { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; margin-bottom: 8px; }
.pole-name strong { font-variant-numeric: tabular-nums; color: var(--sun-deep); }
.pole-track { position: relative; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--line), var(--surface-2) 50%, var(--line)); margin: 0 7px; }
.pole-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--sun); border: 2px solid var(--sun-deep); }
.pole-ends { display: flex; justify-content: space-between; gap: 16px; font-size: .88rem; color: var(--muted); margin-top: 8px; }
.pole-ends span:last-child { text-align: right; }

/* ===== Formularios ===== */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.form label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
/* El selector de fecha usa el esquema de color del tema y la misma altura que los demás campos. */
input[type=date] { min-height: 46px; color-scheme: light dark; }
input[type=date]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .7; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; border-radius: var(--radius-sm); }
textarea { resize: vertical; }
.input-sm { max-width: 90px; padding: 6px 8px !important; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.search { margin: 0 0 16px; max-width: 360px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.inline-form select { width: auto; }
.inline-form .search { margin: 0; flex: 1 1 260px; }

/* ===== Avisos y etiquetas ===== */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 24px; border-left: 4px solid currentColor; }
.alert-success { background: var(--good-soft); color: var(--good); }
.alert-error { background: var(--bad-soft); color: var(--bad); }
.alert-info { background: var(--accent-soft); color: var(--ink); border-left-color: var(--accent); }
.alert-info a { color: var(--accent); font-weight: 700; white-space: nowrap; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; background: var(--surface-2); color: var(--muted); }
.tag-alt { background: var(--accent-soft); color: var(--accent); }
.tag-good { background: var(--good-soft); color: var(--good); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pill { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--good-soft); color: var(--good); font-size: .92rem; }

/* ===== Barras ===== */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bar-head { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; margin-bottom: 5px; }
.bar-head strong { font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-lg { height: 12px; }
.bar-fill { display: block; height: 100%; background: var(--sun); border-radius: 999px; }
.bar-fill.is-high { background: var(--sun-deep); }
.bar-fill.is-low { background: color-mix(in srgb, var(--sun) 45%, var(--surface-2)); }
.readiness { display: grid; gap: 6px; margin: 12px 0; }
.readiness .bar-fill { background: var(--sage); }

/* ===== Listas ===== */
.list { list-style: none; padding: 0; margin: 0 0 12px; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.list-block li { display: block; }
.match-list { padding-left: 1.3em; margin: 0; }
.match-list li { padding: 9px 0; display: flex; justify-content: space-between; gap: 8px; }
.goal-name { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 4px; }
.cta-card { padding: 48px 28px; display: grid; gap: 4px; justify-items: start; }

/* ===== Test ===== */
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; position: sticky; top: 64px; z-index: 5; }
.progress-fill { display: block; height: 100%; width: 0; background: var(--sun); transition: width .25s; }
.progress-label { font-size: .88rem; margin: 6px 0 16px; text-align: right; }
.test-page { border: 0; padding: 0; margin: 0; min-width: 0; }
.question { margin-bottom: 16px; transition: border-color .2s; }
.question + .question { margin-top: 0; }
.question.is-missing { border-color: var(--bad); }
.question-text { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.35; margin-bottom: 1.1em; }
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-items: start; }
.likert-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; text-align: center; }
.likert-opt input { position: absolute; opacity: 0; }
.likert-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); transition: background-color .15s, border-color .15s, transform .15s; }
.likert-opt:nth-child(2) .likert-dot, .likert-opt:nth-child(4) .likert-dot { width: 36px; height: 36px; }
.likert-opt:nth-child(1) .likert-dot, .likert-opt:nth-child(5) .likert-dot { width: 42px; height: 42px; }
.likert-opt:hover .likert-dot { border-color: var(--sun-deep); }
.likert-opt input:checked + .likert-dot { background: var(--sun); border-color: var(--sun-deep); transform: scale(1.08); }
.likert-opt input:focus-visible + .likert-dot { outline: 3px solid var(--accent); outline-offset: 3px; }
.likert-label { font-size: .8rem; color: var(--muted); line-height: 1.25; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.choice:hover { border-color: var(--sun-deep); }
.choice:has(input:checked) { border-color: var(--sun-deep); background: var(--sun-soft); }
.choice input { accent-color: var(--sun-deep); width: 18px; height: 18px; flex-shrink: 0; }
.test-nav { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-top: 8px; }
.test-nav [data-next], .test-nav [data-submit] { margin-left: auto; }
.test-error { color: var(--bad); margin: 0; font-weight: 700; }

/* ===== Resultados y roles ===== */
.results-hero { display: grid; gap: 32px; align-items: start; grid-template-columns: 1fr; }
@media (min-width: 900px) { .results-hero { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.results-hero .huella-lg { max-width: 560px; margin: 0 auto; }
.highlights h2 { margin-bottom: .4em; }
.highlight { padding: 12px 0; border-bottom: 1px solid var(--line); }
.highlight:last-child { border-bottom: 0; }
.highlight strong { display: block; }
.ego { margin-top: 20px; padding: 16px 18px; background: var(--accent-soft); border-radius: var(--radius-sm); }
.ego p { margin: 0; }
.role-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.role-grid .card + .card { margin-top: 0; }
.role-card { display: flex; flex-direction: column; }
.role-card.is-top { border-color: var(--sage); box-shadow: inset 0 0 0 1px var(--sage); }
.role-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.role-card-shape { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.role-card-shape .huella-sm { width: 110px; flex-shrink: 0; }
.role-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; margin-bottom: .35em; }
.role-card h3 a { color: var(--ink); text-decoration: none; }
.role-card h3 a:hover { text-decoration: underline; }
.role-card .rank { color: var(--muted); }
.role-card .score { font-family: var(--font-display); font-size: 1.7rem; color: var(--sage); font-variant-numeric: tabular-nums; }
.reason { font-size: .93rem; margin-bottom: 6px; }
.role-card-actions { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.role-card-actions form { margin: 0; }
.fit-big { display: flex; align-items: baseline; gap: 10px; color: var(--muted); }
.fit-big span { font-family: var(--font-display); font-size: 2.6rem; color: var(--sage); }
.skill-req { list-style: none; padding: 0; margin: 0; }
.skill-req li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.skill-req .level { color: var(--sage); white-space: nowrap; }
.pips { display: inline-flex; gap: 3px; vertical-align: middle; flex-shrink: 0; }
.pips i { width: 10px; height: 10px; box-sizing: border-box; border: 1.5px solid currentColor; border-radius: 2px; }
.pips i.on { background: currentColor; }
.pips-dot i { border-radius: 50%; }
.weight { display: inline-flex; align-items: center; gap: 6px; }
.role-compare { margin-bottom: 24px; }
.role-compare-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.role-compare-lists .h-sm { margin-top: 0; }
.role-compare-lists .h-sm ~ .h-sm { margin-top: 20px; }
.compare-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.compare-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.compare-list .pips { color: var(--accent); }
.compare-values { display: inline-flex; align-items: center; gap: 10px; }

/* ===== Autoevaluación ===== */
.rate-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rate-row:last-child { border-bottom: 0; }
.rate-info { flex: 1 1 300px; }
.rate-info p { margin: 2px 0 0; font-size: .93rem; }
.traffic { display: flex; gap: 6px; }
.traffic-opt { cursor: pointer; }
.traffic-opt input { position: absolute; opacity: 0; }
.traffic-opt span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; }
.traffic-weak input:checked + span { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.traffic-improvable input:checked + span { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.traffic-strong input:checked + span { background: var(--good-soft); color: var(--good); border-color: var(--good); }
.traffic-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ===== Plan ===== */
.stats { margin-bottom: 24px; align-items: start; }
.stat-details summary { display: flex; flex-direction: column; gap: 4px; cursor: pointer; list-style: none; }
.stat-details summary::-webkit-details-marker { display: none; }
.stat-details summary .stat-label { display: flex; align-items: center; gap: 8px; }
.stat-details summary .stat-label::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.stat-details[open] summary .stat-label::after { transform: translateY(2px) rotate(-135deg); }
.stat-details summary:hover .stat-label { color: var(--ink); }
.stat-list { margin: 16px 0 0; padding: 14px 0 0 1.3em; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: .95rem; }
.plan-item { scroll-margin-top: 90px; }
.plan-item:target { background: var(--sun-soft); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) { .stat-details summary .stat-label::after { transition: none; } }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-family: var(--font-display); font-size: 2.2rem; color: var(--sage); }
.stat-label { color: var(--muted); font-size: .93rem; }
.plan-list { padding-left: 1.3em; margin: 0; }
.plan-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.plan-item:last-child { border-bottom: 0; }
.plan-item-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-item p { margin: 4px 0; }
.plan-levels { font-size: .9rem; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.plan-actions form { margin: 0; }
.plan-item-done .plan-item-head strong { color: var(--muted); }
.tag-doing { background: var(--sun-soft); color: var(--warn); }
.tag-done { background: var(--good-soft); color: var(--good); }
.progress-summary { color: var(--muted); margin: -8px 0 24px; }
.small { font-size: .9rem; }
.back-link { margin: 0 0 12px; font-size: .95rem; }
/* Guía de una habilidad: lectura a la izquierda, avance a la derecha. */
.skill-layout { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .skill-layout { grid-template-columns: minmax(0, 1fr) 320px; } .skill-side { position: sticky; top: 88px; } }
.guide.prose { margin: 0; max-width: none; }
.guide.prose > p:first-child { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5; }
.skill-side { display: grid; gap: 16px; }
.skill-side h2 { font-size: 1.2rem; }
.status-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 0 16px; padding: 0; font-size: .85rem; text-align: center; }
.status-steps li { padding: 6px 4px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.status-steps li.is-current { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.levels dt { font-size: .85rem; color: var(--muted); }
.levels dd { margin: 0; font-weight: 700; }
.status-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.status-actions form { margin: 0; }
.result-card { scroll-margin-top: 90px; }
.before-after { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.before-after > div:not(.before-after-arrow) { display: grid; gap: 2px; flex: 1; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.before-after .is-after { background: var(--good-soft); }
.before-after-arrow { font-size: 1.4rem; color: var(--muted); }
.check-form .question { margin-bottom: 16px; }
.resources { margin: 6px 0 0; padding-left: 1.2em; font-size: .93rem; }
.ai-card { border-style: dashed; border-color: var(--accent); }

/* ===== Panel de superadmin ===== */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.person { display: grid; gap: 8px 24px; align-items: center; grid-template-columns: 84px 1fr; padding: 18px 22px; }
.person + .person { margin-top: 0; }
@media (min-width: 900px) { .person { grid-template-columns: 96px minmax(0, 1.1fr) minmax(0, 1.4fr) auto; } }
.person-shape .huella-sm { width: 100%; }
.person-empty { display: block; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--line); }
.person-who h2 { font-size: 1.25rem; margin: 0 0 2px; }
.person-who h2 a { color: var(--ink); text-decoration: none; }
.person-who h2 a:hover { text-decoration: underline; }
.person-who p { margin: 0; overflow-wrap: anywhere; }
.person-since { font-size: .88rem; }
.person-facts { margin: 0; display: grid; gap: 8px; grid-column: 1 / -1; }
@media (min-width: 900px) { .person-facts { grid-column: auto; } }
.person-facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; }
.person-facts dt { color: var(--muted); font-size: .9rem; }
.person-facts dd { margin: 0; }
.person-link { grid-column: 1 / -1; justify-self: start; }
/* Acceso gratis temporal en la ficha de superadmin (spec SUP-08). */
.access-card { margin-bottom: 28px; }
.access-form { display: grid; gap: 12px; align-items: end; margin: 14px 0 10px; }
@media (min-width: 760px) { .access-form { grid-template-columns: 200px 1fr auto; } }
.access-form label { margin: 0; }
@media (min-width: 900px) { .person-link { grid-column: auto; } }
.readiness-mini { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.readiness-mini .bar { width: 72px; height: 6px; }
.readiness-mini .bar-fill, .path-card .bar-fill { background: var(--sage); }
.path-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 20px; }
.path-steps h3 { margin-bottom: .2em; }

/* ===== Informe ===== */
.prose { max-width: 720px; margin: 0 auto; font-size: 1.05rem; line-height: 1.7; }
.prose h2 { font-size: 1.45rem; margin-top: 1.7em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose h3 { margin-top: 1.3em; }
.prose blockquote { margin: 0 0 1.2em; padding: 12px 16px; border-left: 3px solid var(--sun); background: var(--sun-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose code { font-size: .9em; padding: 1px 5px; border-radius: 4px; background: var(--surface-2); }

/* ===== Admin ===== */
.admin { display: grid; grid-template-columns: 210px 1fr; gap: 32px; }
.admin-side { display: flex; flex-direction: column; gap: 2px; }
.admin-side a { padding: 7px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .95rem; }
.admin-side a:hover, .admin-side a[aria-current] { background: var(--surface); color: var(--ink); }
.admin-side-title { font-size: .85rem; color: var(--muted); font-weight: 700; margin: 16px 12px 4px; }
.admin-main { min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-head h1 { margin: 0; font-size: 1.8rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { font-size: .85rem; color: var(--muted); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { white-space: nowrap; }
.score-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; font-size: .88rem; }
.score-grid label { display: grid; gap: 4px; }
.tr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 8px 0; }
.tr-base p { margin: 2px 0 0; font-size: .93rem; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; flex-wrap: wrap; }
  .admin-side-title { width: 100%; margin: 8px 0 0; }
  .tr-row { grid-template-columns: 1fr; }
  .likert-label { font-size: .7rem; }
  .likert-dot { width: 24px; height: 24px; }
  .likert-opt:nth-child(2) .likert-dot, .likert-opt:nth-child(4) .likert-dot { width: 28px; height: 28px; }
  .likert-opt:nth-child(1) .likert-dot, .likert-opt:nth-child(5) .likert-dot { width: 32px; height: 32px; }
  .card { padding: 20px; }
  .topbar-inner { min-height: 56px; gap: 6px 12px; }
  .menu-toggle { display: inline-flex; }
  .topbar-menu { display: none; }
  .no-js .topbar-menu { display: flex; flex-direction: column; width: 100%; padding-bottom: 10px; }
  .no-js .menu-toggle { display: none; }
  .topbar.menu-open .topbar-menu { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 4px 0 12px; }
  .topbar-menu .nav { flex-direction: column; gap: 2px; }
  .topbar-menu .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .topbar-menu .topbar-actions { margin-left: 0; flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .topbar-menu .topbar-actions .btn { width: 100%; justify-content: center; }
  .topbar-menu .sub-nav { display: inline-flex; }
  .progress { top: 56px; }
  .main { padding-top: 28px; }
}

@media print {
  .topbar, .footer, .no-print { display: none; }
  body { background: #fff; }
  .card { border: 0; }
}

/* ---- Coach con IA (spec 18) ---- */
.coach-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.coach-link h2 { margin: 0 0 .25rem; }
.coach-link p { margin: 0; }
.coach-panel { align-items: flex-start; }
.coach-panel-main { flex: 1 1 320px; min-width: 0; }
.coach-panel-list { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.coach-panel-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .9rem; }
.coach-panel-item > div { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1 1 220px; }
.coach-panel-btns { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
/* Compromisos del coach: franja lateral, sin marco de tarjeta, distinta del resto del panel. */
.coach-panel { border: 0; border-left: 6px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius-sm); padding: 22px 26px; }
.coach-panel h2 { font-size: 1.15rem; }
.coach-due { border-left-color: var(--rose); background: var(--rose-soft); }
/* Objetivo: diana al fondo, como meta a alcanzar. */
.dash-goal:not(.cta-card) { position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--sun) 55%, var(--line)); background: radial-gradient(circle at calc(100% - 90px) 50%, var(--sun) 0 14px, transparent 14px 34px, color-mix(in srgb, var(--sun) 45%, transparent) 34px 48px, transparent 48px 70px, color-mix(in srgb, var(--sun) 25%, transparent) 70px 84px, transparent 84px), linear-gradient(120deg, var(--surface) 35%, var(--sun-soft)); }
.dash-goal:not(.cta-card) > * { position: relative; max-width: 620px; }
@media (max-width: 760px) { .dash-goal:not(.cta-card) { background: linear-gradient(160deg, var(--surface) 30%, var(--sun-soft)); } }
.coach-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.25rem; align-items: start; }
@media (max-width: 800px) { .coach-layout { grid-template-columns: 1fr; } .coach-side { order: -1; } .coach-log { max-height: none; overflow: visible; } }
.coach-msg { scroll-margin-top: 72px; }
.coach-chat { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.coach-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; max-height: 60vh; overflow-y: auto; }
.coach-msg { max-width: 88%; padding: .7rem .95rem; border-radius: var(--radius); border: 1px solid var(--line); }
.coach-bot { background: var(--surface); align-self: flex-start; }
.coach-me { background: var(--accent-soft); align-self: flex-end; }
.coach-who { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.coach-text p:first-child { margin-top: 0; }
.coach-text p:last-child { margin-bottom: 0; }
.coach-event { align-self: center; font-size: .9rem; color: var(--sage); background: var(--sage-soft); padding: .35rem .8rem; border-radius: 999px; text-align: center; }
.coach-quick { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.coach-form textarea { width: 100%; resize: vertical; }
.coach-form-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .5rem; }
.coach-note { font-size: .85rem; margin: 0; }
.coach-commits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.coach-commits li { display: flex; flex-direction: column; gap: .15rem; }
