/* VOICE: un instrumento preciso y tranquilo; nada compite con los números.
   IDEA: la esfera de un reloj de cocina bien hecho: un anillo, cifras grandes, un botón.
   PICTURE: el propio temporizador funcionando arriba de todo, con el color de su herramienta.
   COLOUR: papel cálido, tinta casi negra, un color de señal por herramienta (rojo tomate por defecto).
   TYPE: fuente del sistema; cifras tabulares redondeadas para que no "bailen".
   LAYOUT: temporizador + columna lateral (favoritos, recientes, atajos); contenido explicativo debajo. */

:root {
  color-scheme: light dark;
  --bg: #f6f5f1; --surface: #ffffff; --surface-2: #efede7; --surface-3: #e2dfd7;
  --ink: #16171b; --ink-2: #5a5c64; --ink-3: #8b8d94; --line: #e0ddd5;
  --brand: #e4472b; --accent: var(--brand); --tc: var(--brand); --accent-base: var(--brand);
  --ok: #1f9d55; --warn: #e0a106; --danger: #d43c2c; --gold: #b98307;
  --r-lg: 24px; --r: 16px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 10px 30px rgba(20, 20, 30, .06);
  --shadow-lg: 0 24px 60px rgba(20, 20, 30, .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --digits: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #111215; --surface: #1a1b20; --surface-2: #24262c; --surface-3: #30323a;
    --ink: #eceae4; --ink-2: #a6a8b0; --ink-3: #777a83; --line: #2e3037;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  }
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #111215; --surface: #1a1b20; --surface-2: #24262c; --surface-3: #30323a;
  --ink: #eceae4; --ink-2: #a6a8b0; --ink-3: #777a83; --line: #2e3037;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
}
:root[data-theme=light] { color-scheme: light; }

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
:lang(ja) { word-break: auto-phrase; line-break: strict; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) .band h2 { letter-spacing: 0; line-height: 1.3; }
:lang(ja) body, :lang(ja) .prose { line-height: 1.75; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: max(16px, 4vw); }
@media (min-width: 1320px) { .wrap { padding-inline: 40px; } }
.narrow { max-width: 820px; }
.muted { color: var(--ink-2); }

/* ---------------- Botones y controles ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: transparent; }
.btn-alert { background: var(--danger); color: #fff; border-color: var(--danger); animation: pulse 1s infinite; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: inherit; transition: background .15s; }
.btn-icon:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-icon.sm { width: 34px; height: 34px; border-radius: 10px; }
.btn-icon.sm .ic { width: 18px; height: 18px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--ink-2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.btn-play { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; min-width: 190px; padding: 0 32px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-size: 19px; font-weight: 700; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent); transition: transform .1s, background .2s, box-shadow .2s; }
.btn-play:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-play:active { transform: scale(.98); }
.btn-play .ic { width: 24px; height: 24px; }
.btn-play.is-stop { background: var(--danger); animation: pulse 1.1s infinite; }
.btn-play.sm { min-height: 44px; min-width: 0; padding: 0 16px; font-size: 15px; box-shadow: none; }
.btn-play.sm .ic { width: 18px; height: 18px; }
.btn-round { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); font-size: 16px; transition: background .15s, transform .1s; }
.btn-round:hover { background: var(--surface-3); }
.btn-round:active { transform: scale(.96); }
.btn-round.sm { width: 44px; height: 44px; font-size: 14px; }
.btn-round.sm .ic { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.is-static { cursor: default; border-color: transparent; background: color-mix(in srgb, var(--tc) 12%, var(--surface)); }
.chip .ic { width: 16px; height: 16px; color: var(--tc); }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.chip-check input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip-check input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); }

/* Formularios */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span:first-child, .field-num > span:first-child, .step-field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 13px; }
.field input:not([type=checkbox]):not([type=radio]):not([type=range]), .field select, .field textarea, .kt-add input, .task-add input[type=text], .copy-area {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-size: 16px; }
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus, .kt-add input:focus, .task-add input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field-help { color: var(--ink-2); font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.field-help .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--ink-3); }
.field-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.field-row > .field { flex: 1 1 200px; }
.num-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.num-wrap { position: relative; display: block; }
.num-wrap input { padding-right: 42px !important; }
.num-wrap em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--ink-3); font-size: 14px; pointer-events: none; }
input[type=range] { width: 100%; accent-color: var(--accent); min-height: 32px; }
.dur-fields { display: flex; gap: 8px; }
.dur-fields label { position: relative; flex: 1; }
.dur-fields input { width: 100%; min-height: 48px; padding: 8px 40px 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font: 600 20px/1 var(--digits); font-variant-numeric: tabular-nums; }
.dur-fields span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 14px; pointer-events: none; }
.dur-fields input:focus { outline: none; border-color: var(--accent); }
.switch { display: flex; align-items: center; gap: 12px; min-height: 40px; cursor: pointer; font-size: 15px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .sw { position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--surface-3); transition: background .2s; flex: none; }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + .sw { background: var(--accent); }
.switch input:checked + .sw::after { transform: translateX(18px); }
.switch input:focus-visible + .sw { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.toggles { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 2px; border-radius: 14px; background: var(--surface-2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.stepper button { width: 44px; border: 0; background: var(--surface-2); display: grid; place-items: center; }
.stepper button .ic { width: 18px; height: 18px; }
.stepper input { width: 100%; min-height: 46px; border: 0; text-align: center; background: transparent; font: 600 19px/1 var(--digits); font-variant-numeric: tabular-nums; }
.stepper input:focus { outline: none; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.step-field { display: grid; gap: 6px; }
.step-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 16px 0; }

/* ---------------- Cabecera ---------------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.hdr { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-btn, .nav-link { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink-2); }
.nav-btn:hover, .nav-link:hover, .nav-btn[aria-expanded=true] { background: var(--surface-2); color: var(--ink); }
.nav-btn .ic { width: 16px; height: 16px; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary .ic { width: 18px; height: 18px; }
.lang-menu > summary:hover, .lang-menu[open] > summary { background: var(--surface-2); color: var(--ink); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 220px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.lang-list a:hover { background: var(--surface-2); }
.lang-list a[aria-current] { font-weight: 700; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.lang-list small { color: var(--ink-3); font-size: 12px; font-weight: 700; }
.foot-langs a[aria-current] { color: var(--ink); font-weight: 700; }
.acct-btn { gap: 8px; margin-left: 4px; }
.acct-btn .ic { width: 18px; height: 18px; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 800; }
.acct-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.pro-pill { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--gold); color: #fff; letter-spacing: .02em; }
.menu-toggle { display: none; }
.megamenu { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - 64px); overflow: auto; }
.mm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 24px; padding-block: 20px; }
.mm-title { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin: 4px 12px 6px; }
.mm-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.mm-item:hover, .mm-item.is-here { background: var(--surface-2); }
.mm-item .ic { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: color-mix(in srgb, var(--tc, var(--brand)) 14%, var(--surface)); color: var(--tc, var(--brand)); }
.mm-item b { display: block; font-size: 15px; }
.mm-item small { display: block; color: var(--ink-2); font-size: 13px; }
.mm-extra { border-top: 1px solid var(--line); padding-top: 8px; display: none; }
.acct-menu { position: absolute; z-index: 60; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; }
.acct-menu .am-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-menu .am-head b, .acct-menu .am-head small { display: block; overflow: hidden; text-overflow: ellipsis; }
.acct-menu .am-head small { color: var(--ink-2); }
.am-plan { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--gold); }
.acct-menu a, .acct-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; background: none; border-radius: 10px; text-decoration: none; font-size: 15px; text-align: left; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--surface-2); }
.acct-menu .ic { width: 18px; height: 18px; color: var(--ink-2); }
@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .acct-name { display: none; }
  .acct-btn span:not(.avatar):not(.pro-pill) { display: none; }
  .acct-btn { padding: 0 10px; }
  .mm-extra { display: block; }
}

/* ---------------- Sección de herramienta ---------------- */
.tool-sec { padding: 28px 0 40px; background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 10%, var(--bg)) 0, var(--bg) 560px); }
.tool-head { margin-bottom: 20px; max-width: 780px; }
.tool-head h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.025em; }
.tool-head.is-hero h1 { font-size: clamp(30px, 4vw, 46px); }
.tool-head .lede { margin-top: 8px; color: var(--ink-2); font-size: 17px; max-width: 64ch; }
.tool-head.is-center { text-align: center; margin-inline: auto; }
.tool-head.is-center .lede { margin-inline: auto; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
@media (max-width: 1020px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } }
.tool-root { display: grid; gap: 16px; }
.stage { --accent: var(--tc); position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(16px, 3vw, 32px); border-radius: var(--r-lg); background: var(--surface); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); box-shadow: var(--shadow); min-height: 440px; transition: background .35s; }
.stage-skel { min-height: 520px; }
.stage-bar { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.stage-title { font-weight: 700; font-size: 17px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-label { flex: 1; min-height: 44px; padding: 8px 4px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 17px; font-weight: 700; }
.stage-label::placeholder { color: var(--ink-3); font-weight: 600; }
.stage-label:focus { outline: none; border-bottom-color: var(--accent); }
.stage-actions { display: flex; gap: 2px; margin-left: auto; }
.stage-actions .btn-icon { color: var(--ink-2); }
.stage-actions .btn-icon:hover { color: var(--ink); }
.digits { font-family: var(--digits); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.035em; line-height: 1; font-size: clamp(72px, 13vw, 168px); background: none; border: 0; padding: 0; color: inherit; text-align: center; white-space: nowrap; }
.digits.len-l { font-size: clamp(56px, 9.5vw, 128px); }
.digits.len-xl { font-size: clamp(44px, 7.5vw, 100px); }
.display-sub { color: var(--ink-2); font-size: 16px; text-align: center; min-height: 1.5em; }
.big-display { display: grid; justify-items: center; gap: 10px; padding: 24px 0 8px; flex: 1; align-content: center; }
.controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; }
.stage-chips { justify-content: center; }
.bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; }
.panel { display: grid; gap: 16px; }
.card { background: var(--surface); border-radius: var(--r-lg); padding: clamp(16px, 2.4vw, 24px); box-shadow: var(--shadow); display: grid; gap: 14px; }
.card-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-h h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-right: auto; }
.card-h h2 .ic { color: var(--accent); width: 20px; height: 20px; }
.card-acts { display: flex; gap: 6px; }
.opts { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.opts summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; font-weight: 700; cursor: pointer; }
.opts summary::-webkit-details-marker { display: none; }
.opts summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; }
.opts[open] summary::after { transform: rotate(-135deg); }
.opts summary .ic { color: var(--accent); }
.opts-grid { display: grid; gap: 18px; padding: 4px 22px 22px; }
.card .opts-grid { padding: 0; }

/* Columna lateral */
.rail { position: sticky; top: 84px; display: grid; gap: 16px; }
.rail-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.rail-card:empty { display: none; }
.rail-sec { padding: 18px 18px 16px; display: grid; gap: 10px; }
.rail-sec + .rail-sec { border-top: 1px solid var(--line); }
.rail-h { display: flex; align-items: center; gap: 8px; }
.rail-h h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; margin-right: auto; }
.rail-h h2 .ic { width: 18px; height: 18px; color: var(--tc); }
.rail-empty { color: var(--ink-3); font-size: 14px; }
.rail-meta { color: var(--ink-3); font-size: 13px; }
.fav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fav-list li { display: flex; align-items: center; gap: 4px; }
.fav-apply { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--surface-2); text-align: left; font-size: 14px; font-weight: 600; overflow: hidden; }
.fav-apply:hover { background: var(--surface-3); }
.fav-apply .ic { width: 18px; height: 18px; color: var(--tc); }
.fav-apply span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keys { margin: 0; display: grid; gap: 6px; }
.keys div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.keys dt { flex: none; }
.keys dd { margin: 0; }
kbd { display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 7px; border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--surface-2); font: 600 12px/1 var(--font); color: var(--ink); }
@media (max-width: 1020px) { .rail { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } .rail-keys { display: none; } }

/* Espacios publicitarios: nunca dentro del temporizador */
.ad-slot { display: none; }
.ads-on .ad-slot, .ads-ph .ad-slot { display: grid; place-items: center; min-height: 250px; border-radius: var(--r); background: var(--surface-2); color: var(--ink-3); font-size: 12px; overflow: hidden; }
.ads-on .ad-slot span { display: none; }
.ads-ph .ad-slot { border: 1px dashed var(--line); }
.ad-content { margin: 28px 0; min-height: 120px !important; }
.is-pro .ad-slot { display: none !important; }

/* ---------------- Temporizador rápido ---------------- */
.ring-wrap { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 0 auto; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); stroke-width: 9; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 0; }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 12%; }
.ring-center .digits { font-size: clamp(56px, 11vw, 104px); cursor: text; border-radius: 12px; }
.ring-center .digits.len-l { font-size: clamp(40px, 8vw, 74px); }
.ring-center .digits.len-xl { font-size: clamp(34px, 6.6vw, 62px); }
.ring-center .digits:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.tm[data-phase=running] .digits { cursor: default; }
.tm[data-phase=running] .digits:hover { background: none; }
.digits-edit { width: 5.2em; font: 700 clamp(40px, 8vw, 72px)/1.1 var(--digits); font-variant-numeric: tabular-nums; text-align: center; border: 2px solid var(--accent); border-radius: 14px; background: var(--surface); padding: 4px 8px; }
.digits-edit:focus { outline: none; }
.ring-center .display-sub { font-size: 15px; max-width: 18em; }
.tm[data-phase=ring], .cls[data-phase=ring] { --accent: var(--danger); animation: flash 1.2s infinite; }
.tm[data-phase=over] { --accent: var(--danger); }
.tm[data-phase=over] .digits { color: var(--danger); }

/* ---------------- Pomodoro ---------------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); }
.tabs button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.tabs button[aria-selected=true] { background: var(--accent); color: #fff; }
.pomo .digits { font-size: clamp(84px, 14vw, 168px); }
.cycle { display: flex; justify-content: center; gap: 8px; }
.cycle i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); }
.cycle i.on { background: var(--accent); }
.today-line { color: var(--ink-2); font-size: 14px; }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.task { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border-radius: 12px; background: var(--surface-2); border-left: 4px solid transparent; }
.task.cur { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); }
.task-check { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px solid var(--ink-3); background: transparent; display: grid; place-items: center; color: transparent; }
.task-check .ic { width: 16px; height: 16px; }
.task.done .task-check { background: var(--ok); border-color: var(--ok); color: #fff; }
.task-title { flex: 1; min-height: 36px; border: 0; background: none; text-align: left; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task.done .task-title { text-decoration: line-through; color: var(--ink-3); }
.task-count { font: 600 14px/1 var(--digits); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.task-empty { color: var(--ink-3); font-size: 14px; padding: 8px 0; }
.task-add { display: flex; gap: 8px; flex-wrap: wrap; }
.task-add input[type=text] { flex: 1 1 220px; }
.est { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.est .ic { width: 18px; height: 18px; color: var(--accent); }
.est input { width: 3.2em; border: 0; background: transparent; min-height: 42px; font-size: 16px; text-align: center; }
.eta { font-size: 14px; color: var(--ink-2); font-weight: 600; }

/* ---------------- Intervalos ---------------- */
.stage.fill { background: var(--accent); color: #fff; }
.stage.fill .stage-actions .btn-icon, .stage.fill .display-sub, .stage.fill .stage-label::placeholder { color: rgba(255, 255, 255, .82); }
.stage.fill .btn-round { background: rgba(255, 255, 255, .18); color: #fff; }
.stage.fill .btn-round:hover { background: rgba(255, 255, 255, .3); }
.stage.fill .btn-play { background: #fff; color: var(--accent); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.stage.fill .btn-play:hover { background: rgba(255, 255, 255, .9); }
.stage.fill .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.stage.fill .btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.stage.fill .stage-label:focus { border-bottom-color: #fff; }
.hiit-main { display: grid; justify-items: center; gap: 10px; text-align: center; flex: 1; align-content: center; padding: 8px 0; }
.phase-label { font-size: clamp(22px, 3.6vw, 36px); font-weight: 800; letter-spacing: .01em; }
.hiit .digits { font-size: clamp(96px, 16vw, 196px); }
.hiit-ex { font-size: 18px; font-weight: 600; opacity: .9; min-height: 1.4em; }
.hiit-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 16px; opacity: .92; }
.hiit-meta b { font-family: var(--digits); font-variant-numeric: tabular-nums; font-size: 22px; }
.hiit-meta span:empty { display: none; }
.hiit-next { font-size: 15px; opacity: .85; }
.timeline { position: relative; height: 12px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .2); }
.tl-segs { display: flex; height: 100%; gap: 2px; }
.tl-segs i { display: block; height: 100%; background: rgba(255, 255, 255, .35); }
.tl-segs i.k-work { background: rgba(255, 255, 255, .78); }
.tl-segs i.k-prep, .tl-segs i.k-cool { background: rgba(255, 255, 255, .5); }
.tl-pos { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; border-radius: 2px; background: #111; box-shadow: 0 0 0 2px #fff; left: 0; }
.hiit[data-phase=running] .digits { text-shadow: 0 2px 30px rgba(0, 0, 0, .12); }

/* ---------------- Ajedrez ---------------- */
.chess { padding: 12px; gap: 12px; min-height: 0; display: grid; grid-template-rows: 1fr auto 1fr; height: min(78vh, 760px); background: var(--surface); }
.clock { display: grid; place-content: center; justify-items: center; gap: 8px; border: 0; border-radius: 20px; background: var(--surface-2); color: var(--ink-2); padding: 16px; user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: background .12s, color .12s; -webkit-tap-highlight-color: transparent; }
.clock .c-time { font: 700 clamp(64px, 13vw, 150px)/1 var(--digits); font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.clock.len-l .c-time { font-size: clamp(52px, 10vw, 120px); }
.clock .c-name { font-weight: 700; font-size: 16px; }
.clock .c-info { display: flex; gap: 16px; font-size: 14px; opacity: .8; }
.clock.is-active { background: var(--ink); color: var(--bg); }
.clock.is-low.is-active { background: var(--danger); color: #fff; }
.clock.is-low:not(.is-active) .c-time { color: var(--danger); }
.clock.is-flag { background: var(--danger); color: #fff; animation: flash 1s 3; }
.chess[data-flip="1"] .c0 { transform: rotate(180deg); }
.chess-mid { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.chess-mid .btn-round.is-main { background: var(--ink); color: var(--bg); }
.chess-mid .btn-round:disabled { opacity: .4; cursor: default; }
.chess-mid .stage-actions { margin-left: 0; }
.chess-tc { font-weight: 700; font-size: 14px; color: var(--ink-2); padding: 0 6px; font-variant-numeric: tabular-nums; }
.chess-over { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(4px); border-radius: inherit; padding: 24px; }
.co-title { font-size: clamp(24px, 4vw, 36px); font-weight: 800; }
.co-sub { color: var(--ink-2); }
.co-btns { margin-top: 8px; }
.chess-help { color: var(--ink-2); font-size: 14px; }
.adj { display: grid; gap: 12px; }
.adj-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.adj-row b { min-width: 7em; }
.adj-t { font: 700 22px/1 var(--digits); font-variant-numeric: tabular-nums; min-width: 4.2em; }
.adj-res { margin-top: 16px; display: grid; gap: 10px; }
@media (min-width: 900px) {
  .chess { grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr; height: min(64vh, 560px); }
  .chess[data-flip="1"] .c0 { transform: none; }
  .chess-mid { flex-direction: column; flex-wrap: nowrap; }
  .chess-mid .stage-actions { flex-direction: column; }
}

/* ---------------- Cocina ---------------- */
.kitchen { min-height: 0; }
.kt-add { display: flex; gap: 8px; flex-wrap: wrap; }
.kt-add .kt-name { flex: 2 1 200px; }
.kt-add .kt-dur { flex: 1 1 140px; }
.kt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.kt { --accent: var(--tc); display: grid; gap: 8px; padding: 14px; border-radius: 20px; background: var(--surface); border: 2px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.kt-top { display: flex; align-items: center; gap: 4px; }
.kt-label { flex: 1; min-height: 38px; border: 0; background: transparent; font-weight: 700; font-size: 16px; padding: 4px; border-radius: 8px; }
.kt-label:focus { outline: none; background: var(--surface-2); }
.kt-body { position: relative; width: min(100%, 190px); aspect-ratio: 1; margin: 0 auto; }
.kt-body .ring-bg, .kt-body .ring-fg { stroke-width: 12; }
.kt-digits { position: absolute; inset: 0; display: grid; place-items: center; font: 700 clamp(30px, 4vw, 40px)/1 var(--digits); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.kt-sub { text-align: center; color: var(--ink-2); font-size: 13px; min-height: 1.3em; }
.kt-ctrl { display: flex; justify-content: center; gap: 8px; }
.kt-ctrl .btn-play { flex: 1; }
.kt[data-phase=ring] { --accent: var(--danger); animation: flash 1.1s infinite; }
.kt[data-phase=done] .kt-sub { color: var(--danger); font-weight: 600; }
.kt-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 40px 16px; color: var(--ink-3); text-align: center; }
.kt-empty .ic { width: 48px; height: 48px; color: var(--accent); opacity: .6; }

/* ---------------- Clase ---------------- */
.cls { --disk: var(--ok); }
.cls-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 4vw, 48px); flex: 1; }
.disk { width: 100%; max-width: 420px; margin: 0 auto; }
.disk-bg { fill: color-mix(in srgb, var(--ink) 6%, var(--surface)); stroke: var(--line); stroke-width: 2; }
.disk-fg { fill: var(--disk); transition: fill .6s; }
.disk-tick { stroke: var(--ink-3); stroke-width: 3; stroke-linecap: round; }
.disk-hub { fill: var(--surface); stroke: var(--ink-3); stroke-width: 3; }
.cls-side { display: grid; gap: 10px; justify-items: start; }
.cls-side .digits { font-size: clamp(64px, 10vw, 140px); text-align: left; }
.cls-side .display-sub { text-align: left; }
.cls-now { font-size: clamp(22px, 3vw, 34px); font-weight: 800; }
.cls-next { color: var(--ink-2); font-weight: 600; }
.cls.no-digits .cls-side .digits { display: none; }
.ag-list { list-style: none; counter-reset: ag; margin: 0; padding: 0; display: grid; gap: 8px; }
.ag-item { counter-increment: ag; display: grid; grid-template-columns: 28px minmax(0, 1fr) 110px 34px; align-items: center; gap: 8px; }
.ag-item::before { content: counter(ag); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 13px; }
.ag-item.cur::before { background: var(--accent); color: #fff; }
.ag-item.done::before { background: var(--ok); color: #fff; }
.ag-item input { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 15px; }
.ag-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.ag-total { color: var(--ink-2); font-size: 14px; font-weight: 600; }
@media (max-width: 640px) { .cls-main { grid-template-columns: 1fr; } .cls-side { justify-items: center; text-align: center; } .cls-side .digits, .cls-side .display-sub { text-align: center; } .disk { max-width: 280px; } }

/* ---------------- Examen ---------------- */
.exam .digits { font-size: clamp(84px, 14vw, 176px); }
.exam-banner { align-self: center; padding: 10px 18px; border-radius: 99px; background: var(--warn); color: #241a00; font-weight: 800; font-size: 18px; animation: pop .4s; }
.exam-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: center; }
.exam-info div { padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 6%, var(--surface-2)); }
.exam-info small { display: block; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.exam-info b { font: 700 24px/1.3 var(--digits); font-variant-numeric: tabular-nums; }
.exam-note { text-align: center; font-size: 18px; font-weight: 600; color: var(--ink-2); white-space: pre-line; }
.exam-note:empty { display: none; }
.exam.is-low .digits { color: var(--danger); }
.exam[data-phase=done] .digits { color: var(--danger); }

/* ---------------- Presentaciones ---------------- */
.talk[data-status=idle] { background: var(--surface); color: var(--ink); }
.talk[data-status=idle] .btn-play { background: var(--ink); color: var(--bg); }
.talk[data-status=idle] .btn-round { background: var(--surface-2); color: var(--ink); }
.talk[data-status=idle] .btn-ghost { color: var(--ink); border-color: var(--line); }
.talk[data-status=idle] .stage-actions .btn-icon, .talk[data-status=idle] .display-sub { color: var(--ink-2); }
.talk[data-status=over] { animation: flash-solid 1s infinite; }
.talk-main { display: grid; justify-items: center; gap: 8px; flex: 1; align-content: center; text-align: center; }
.talk-status { font-size: clamp(24px, 4vw, 40px); font-weight: 800; }
.talk .digits { font-size: clamp(96px, 16vw, 196px); }
.talk.no-digits .digits { visibility: hidden; height: .3em; }
.talk-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: 14px; opacity: .9; }
.talk-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 2px solid rgba(255, 255, 255, .7); }
.talk-legend .lg-g::before { background: #1f9d55; }
.talk-legend .lg-y::before { background: #e0a106; }
.talk-legend .lg-r::before { background: #d43c2c; }

/* ---------------- Cuenta regresiva ---------------- */
.cd { justify-content: center; overflow: hidden; }
.cd-title { font-size: clamp(20px, 3vw, 28px); text-align: center; white-space: normal; }
.cd .stage-bar .cd-title { text-align: left; }
.cd-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2vw, 18px); }
.cd-tile { display: grid; justify-items: center; gap: 6px; padding: clamp(14px, 3vw, 28px) 8px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cd-tile b { font: 700 clamp(44px, 9vw, 112px)/1 var(--digits); font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.cd-tile span { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.cd-human { text-align: center; font-weight: 700; font-size: 18px; color: var(--accent); }
.cd[data-past="1"] .cd-tile b { color: var(--ink-3); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: fall 3.2s cubic-bezier(.3, .6, .4, 1) forwards; }

/* ---------------- Cronómetro ---------------- */
.sw .digits { font-size: clamp(64px, 12.5vw, 160px); }
.sw .digits.len-l { font-size: clamp(52px, 10vw, 130px); }
.laps { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.laps th { text-align: left; font-size: 13px; color: var(--ink-2); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.laps td { padding: 10px; border-bottom: 1px solid var(--line); font: 600 17px/1.2 var(--digits); }
.laps td:first-child { color: var(--ink-3); width: 3em; }
.laps tr.best td { color: var(--ok); }
.laps tr.worst td { color: var(--danger); }
.laps em { font: 700 11px/1 var(--font); font-style: normal; padding: 3px 6px; border-radius: 99px; background: currentColor; }
.laps em { color: inherit; background: color-mix(in srgb, currentColor 14%, transparent); }
.laps-empty { color: var(--ink-3); font-size: 14px; }

/* ---------------- Respiración ---------------- */
.br { --accent: #178a7c; background: linear-gradient(160deg, color-mix(in srgb, #178a7c 14%, var(--surface)), color-mix(in srgb, #2f6fd6 10%, var(--surface))); }
.br-main { flex: 1; display: grid; place-items: center; padding: 12px 0; }
.br-orb { position: relative; width: min(78vw, 380px); aspect-ratio: 1; display: grid; place-items: center; }
.br-circle { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 55%, #fff), var(--accent) 70%); box-shadow: 0 20px 60px color-mix(in srgb, var(--accent) 35%, transparent); transform: scale(.55); will-change: transform; }
.br-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.br-txt { position: relative; text-align: center; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .2); }
.br-phase { font-size: clamp(22px, 4vw, 32px); font-weight: 800; }
.br-count { font: 700 clamp(30px, 6vw, 48px)/1.1 var(--digits); font-variant-numeric: tabular-nums; }
.br[data-k=idle] .br-txt, .br[data-k=med] .br-txt { color: #fff; }
.br-meta { display: flex; justify-content: center; gap: 18px; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.br-meta span:empty { display: none; }

/* ---------------- Contenido ---------------- */
.content { padding: clamp(32px, 5vw, 64px) 0; }
.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 1020px) { .prose-grid { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 72ch; font-size: 17px; hyphens: auto; overflow-wrap: break-word; }
.prose > * + * { margin-top: 16px; }
.prose h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.02em; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 40px; letter-spacing: -.015em; }
.prose h3 { font-size: 19px; margin-top: 28px; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose .lede { color: var(--ink-2); font-size: 18px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); margin: 0 !important; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tc); color: #fff; font-weight: 800; font-size: 14px; }
.feat { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.feat li { display: flex; gap: 12px; align-items: flex-start; margin: 0 !important; }
.feat .ic { color: var(--tc); margin-top: 2px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 18px; color: var(--ink-2); }
.related { position: sticky; top: 84px; }
.related h2 { font-size: 16px; margin-bottom: 12px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.related a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; text-decoration: none; }
.related a:hover { background: var(--surface); }
.related .ic { width: 38px; height: 38px; padding: 8px; border-radius: 11px; background: color-mix(in srgb, var(--tc) 14%, var(--surface)); color: var(--tc); }
.related b { display: block; font-size: 15px; }
.related small { color: var(--ink-2); font-size: 13px; }
@media (max-width: 1020px) { .related { position: static; } .related ul { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.legal .legal-note { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 16%, var(--surface)); font-size: 14px; color: var(--ink); }

/* ---------------- Portada ---------------- */
.band { padding: clamp(40px, 6vw, 80px) 0; }
.band h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; max-width: 26ch; }
.band-lede { margin-top: 10px; color: var(--ink-2); font-size: 17px; max-width: 64ch; }
.tool-cards { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tool-card { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; transition: transform .15s, box-shadow .15s; border-top: 4px solid var(--tc); }
.tool-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 16px 40px rgba(20, 20, 30, .1); }
.tc-ic .ic { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: color-mix(in srgb, var(--tc) 14%, var(--surface)); color: var(--tc); margin-bottom: 6px; }
.tool-card b { font-size: 17px; }
.tool-card > span:last-child { color: var(--ink-2); font-size: 14px; }
.tool-card.is-dash { background: color-mix(in srgb, var(--gold) 8%, var(--surface)); }
.dur-links { margin-top: 28px; display: grid; gap: 10px; }
.dur-links p { font-weight: 700; }
.why-band { background: var(--surface); }
.why-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px 32px; }
.why-item { display: grid; gap: 8px; align-content: start; }
.why-ic .ic { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); }
.why-item h3 { font-size: 18px; }
.why-item p { color: var(--ink-2); }
.pro-band { background: var(--ink); color: var(--bg); }
.pro-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.pro-inner p { margin-top: 10px; max-width: 60ch; color: color-mix(in srgb, var(--bg) 80%, var(--ink)); font-size: 17px; }
.pro-band .btn-primary { --accent: var(--gold); }

/* ---------------- Planes ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin-top: 12px; }
@media (max-width: 960px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.plan h2 { font-size: 22px; }
.plan-price { font: 800 40px/1 var(--digits); letter-spacing: -.02em; }
.plan-note { color: var(--ink-2); font-size: 15px; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan-list li { display: flex; gap: 10px; font-size: 15px; }
.plan-list .ic { width: 20px; height: 20px; color: var(--ok); margin-top: 1px; }
.plan.is-pro { --accent: var(--gold); position: relative; box-shadow: 0 0 0 2px var(--gold), var(--shadow-lg); }
.plan-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--gold) 16%, var(--surface)); color: var(--gold); font-weight: 800; font-size: 13px; }
.plan-badge .ic { width: 16px; height: 16px; }
.bill-opts { display: grid; gap: 8px; }
.bill { position: relative; cursor: pointer; }
.bill input { position: absolute; opacity: 0; inset: 0; }
.bill > span { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); }
.bill b { font-size: 15px; }
.bill em { font-style: normal; font: 800 18px/1.2 var(--digits); grid-row: span 2; align-self: center; }
.bill small { color: var(--ink-2); font-size: 13px; }
.bill input:checked + span { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, var(--surface)); }
.bill input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--gold) 50%, transparent); }
.plan-fine { color: var(--ink-3); font-size: 13px; text-align: center; }
.compare-wrap { margin-top: 48px; display: grid; gap: 16px; }
.compare-wrap h2 { font-size: 24px; text-align: center; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); min-width: 560px; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; font-size: 15px; }
.compare th[scope=row] { text-align: left; font-weight: 600; }
.compare thead th { font-size: 14px; color: var(--ink-2); }
.compare thead th:last-child { color: var(--gold); }
.compare .ic { margin: 0 auto; width: 20px; height: 20px; }
.compare .ic.yes { color: var(--ok); }
.compare .ic.no { color: var(--ink-3); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------------- Panel ---------------- */
.app-sec { min-height: 70vh; }
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.dcard { grid-column: span 12; background: var(--surface); border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 26px); box-shadow: var(--shadow); display: grid; gap: 14px; align-content: start; }
.dcard > h2, .dcard .card-h h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.dcard h2 .ic { width: 20px; height: 20px; color: var(--brand); }
.d-hero { grid-column: span 7; }
.d-hero h2 { font-size: clamp(24px, 3vw, 32px) !important; }
.d-hero p { color: var(--ink-2); font-size: 17px; }
.d-today { grid-column: span 5; }
.d-pitch { grid-column: span 6; border: 2px solid var(--gold); }
.d-pitch h2 { font-size: 22px !important; }
.d-pitch p { color: var(--ink-2); }
.d-pitch .btn-primary { --accent: var(--gold); justify-self: start; }
.d-favs { grid-column: span 6; }
.d-hello { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.d-hello h2 { font-size: clamp(22px, 3vw, 30px) !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.d-big { font: 800 clamp(36px, 5vw, 52px)/1 var(--digits); letter-spacing: -.02em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.d-big small { font: 600 15px/1 var(--font); color: var(--ink-2); letter-spacing: 0; }
.d-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; background: none; box-shadow: none; padding: 0; }
.kpi { display: grid; gap: 4px; align-content: start; padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.kpi > b { font: 800 clamp(30px, 3.6vw, 40px)/1.05 var(--digits); letter-spacing: -.02em; }
.kpi > span:not(.kpi-ic) { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.kpi small { color: var(--ink-3); font-size: 13px; }
.kpi-ic .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); margin-bottom: 6px; }
.kpi-goal { grid-template-columns: 96px 1fr; align-items: center; gap: 14px; }
.kpi-goal svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.kpi-goal b { display: block; font: 800 30px/1 var(--digits); }
.kpi-goal b small { font: 600 14px/1 var(--font); color: var(--ink-3); }
.kpi-goal span { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.kg-bg { fill: none; stroke: var(--surface-2); stroke-width: 12; }
.kg-fg { fill: none; stroke: var(--ok); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 100; }
@media (max-width: 900px) { .d-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .d-hero, .d-today, .d-pitch, .d-favs { grid-column: span 12; } .kpi-goal { grid-column: span 2; } }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 16px); grid-auto-columns: 16px; gap: 4px; padding-bottom: 4px; }
.heat i, .hm-legend i { display: block; width: 16px; height: 16px; border-radius: 4px; background: var(--surface-2); }
.hm-legend i { width: 12px; height: 12px; }
.heat .hm-x { background: transparent; }
.hm-1 { background: color-mix(in srgb, var(--ok) 28%, var(--surface-2)) !important; }
.hm-2 { background: color-mix(in srgb, var(--ok) 50%, var(--surface-2)) !important; }
.hm-3 { background: color-mix(in srgb, var(--ok) 75%, var(--surface-2)) !important; }
.hm-4 { background: var(--ok) !important; }
.hm-legend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); }
.hm-legend span { margin: 0 4px; }
.bars { position: relative; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: 6px; height: 200px; padding-top: 18px; }
.bars::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(22px + (100% - 58px) * var(--gf, 0)); border-top: 2px dashed var(--ok); opacity: .6; }
.bcol { display: grid; grid-template-rows: 18px 1fr 22px; height: 100%; justify-items: center; }
.bval { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; align-self: end; }
.bbar { align-self: end; width: 100%; max-width: 30px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, var(--brand) 55%, var(--surface-2)); }
.bbar.hit { background: var(--ok); }
.blab { font-size: 12px; color: var(--ink-3); align-self: center; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 14px; }
.hb-l { display: flex; align-items: center; gap: 8px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hb-l .ic { width: 18px; height: 18px; color: var(--ink-2); }
.hb-t { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: inherit; }
.hb-v { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) { .hbars li { grid-template-columns: 1fr auto; } .hb-t { grid-column: 1 / -1; grid-row: 2; } }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ach { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--surface-2); opacity: .75; }
.ach.got { opacity: 1; background: color-mix(in srgb, var(--gold) 12%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent); }
.ach-ic .ic { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--surface-3); color: var(--ink-3); }
.ach.got .ach-ic .ic { background: var(--gold); color: #fff; }
.ach b { display: block; font-size: 15px; }
.ach small { display: block; color: var(--ink-2); font-size: 13px; }
.ach em { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); margin-top: 4px; font-variant-numeric: tabular-nums; }
.ach.got em { color: var(--gold); font-weight: 700; }
.ach-bar { display: block; height: 6px; margin-top: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.ach-bar i { display: block; height: 100%; background: var(--gold); }
.ach.locked { filter: grayscale(1); }
.d-ach { grid-column: span 12; }
@media (min-width: 901px) { .dash.is-pro .d-heat { grid-column: span 5; } .dash.is-pro .d-bars { grid-column: span 7; } .dash.is-pro .d-tools, .dash.is-pro .d-favs { grid-column: span 6; } }
.d-fav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.d-fav-list li { display: flex; align-items: center; gap: 6px; }
.d-fav-list a { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--surface-2); text-decoration: none; }
.d-fav-list a .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: color-mix(in srgb, var(--tc) 14%, var(--surface)); color: var(--tc); }
.d-fav-list b, .d-fav-list small { display: block; }
.d-fav-list small { color: var(--ink-2); font-size: 13px; }
.hist { width: 100%; border-collapse: collapse; font-size: 14px; }
.hist th { text-align: left; color: var(--ink-2); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.hist td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hist .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.h-tool { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.h-tool .ic { width: 16px; height: 16px; color: var(--tc); }
.hist-filter { min-height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; }
.dash-loading { padding: 40px; text-align: center; color: var(--ink-3); }
@media (max-width: 600px) {
  .stack thead { display: none; }
  .stack tr { display: grid; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .stack td { display: flow-root; border: 0; padding: 3px 0; padding-inline-start: 7.5em; text-align: start !important; }
  .stack td::before { content: attr(data-l); float: inline-start; width: 7em; margin-inline-start: -7.5em; color: var(--ink-3); font-size: 13px; }
  .stack td:empty { display: none; }
}

/* ---------------- Pie ---------------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand p { margin-top: 12px; color: var(--ink-2); max-width: 36ch; }
.foot-h { font-weight: 700; font-size: 14px; margin: 0 0 10px; }
.foot-h + ul + .foot-h, ul + .foot-h { margin-top: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer ul a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.site-footer ul a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }

/* ---------------- Ventanas, avisos ---------------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(10, 10, 14, .48); animation: fade .15s; }
.modal-backdrop.out { opacity: 0; transition: opacity .18s; }
.modal { width: min(100%, 460px); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: pop .18s; }
.modal.wide { width: min(100%, 680px); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 8px 22px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h2 { font-size: 20px; flex: 1; }
.modal-body { padding: 8px 22px 20px; display: grid; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line); }
.copy-area { font: 14px/1.4 ui-monospace, Menlo, Consolas, monospace; }
.toast-root { position: fixed; z-index: 90; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(calc(100% - 24px), 480px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 16px; border-radius: 16px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); animation: up .25s; font-size: 15px; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .25s; }
.toast .ic { width: 20px; height: 20px; }
.toast-msg { flex: 1; }
.toast.warn { background: #7a2a1e; color: #fff; }
.toast.gold { background: var(--gold); color: #fff; }
.toast-act { background: rgba(255, 255, 255, .16); color: inherit; border: 0; }
.toast-x { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: inherit; opacity: .7; }
.toast-x .ic { width: 16px; height: 16px; }
.consent { position: fixed; z-index: 85; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; display: grid; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-size: 14px; }
.consent .btn-row { justify-content: flex-end; }

/* Cuenta */
.auth { display: grid; gap: 14px; }
.auth .seg { justify-self: center; }
.auth[data-mode=signin] .only-signup, .auth[data-mode=signup] .only-signin { display: none !important; }
.auth-reason { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); font-size: 14px; }
.auth-reason .ic { width: 20px; height: 20px; color: var(--brand); }
.auth-err { color: var(--danger); font-size: 14px; font-weight: 600; }
.auth-fine { font-size: 13px; color: var(--ink-3); text-align: center; }
.auth-perks { padding: 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; display: grid; gap: 8px; }
.auth-perks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.auth-perks li { display: flex; gap: 8px; align-items: center; }
.auth-perks .ic { width: 18px; height: 18px; color: var(--gold); }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px !important; }
.pw-wrap .btn-icon { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.demo-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); }
.demo-note .ic { width: 18px; height: 18px; color: var(--warn); }
.auth-done { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 16px 0; }
.auth-done .ic { width: 44px; height: 44px; color: var(--brand); }
.acct-email { display: flex; gap: 8px; align-items: center; color: var(--ink-2); }
.acct-email .ic { width: 18px; height: 18px; }
.acct-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.acct-plan span { color: var(--ink-2); font-size: 14px; }
.acct-plan b { margin-right: auto; }
.danger-zone summary { cursor: pointer; color: var(--ink-2); font-size: 14px; padding: 6px 0; }
.danger-zone[open] { display: grid; gap: 8px; }

/* ---------------- Pantalla completa / modo enfoque ---------------- */
body.is-focus { overflow: hidden; }
body.is-focus .site-header, body.is-focus .tool-head, body.is-focus .rail, body.is-focus .panel, body.is-focus .content, body.is-focus .site-footer, body.is-focus .band, body.is-focus .skip { display: none !important; }
body.is-focus .tool-sec { padding: 0; background: none; }
body.is-focus .tool-grid { display: block; }
body.is-focus .wrap { padding: 0; max-width: none; }
body.is-focus .stage { position: fixed; inset: 0; z-index: 40; border-radius: 0; min-height: 0; height: 100%; padding: max(20px, env(safe-area-inset-top)) max(20px, 3vw) max(20px, env(safe-area-inset-bottom)); justify-content: center; overflow: auto; }
body.is-focus .stage-chips { display: none; }
body.is-focus .ring-wrap { width: min(86vw, 74vh); }
body.is-focus .ring-center .digits { font-size: min(19vw, 19vh); }
body.is-focus .ring-center .digits.len-l { font-size: min(13vw, 13vh); }
body.is-focus .digits { font-size: min(24vw, 34vh); }
body.is-focus .digits.len-l { font-size: min(17vw, 26vh); }
body.is-focus .chess { grid-template-rows: 1fr auto 1fr; height: 100%; padding: 12px; }
body.is-focus .clock .c-time { font-size: min(22vw, 28vh); }
body.is-focus .cd-tile b { font-size: min(14vw, 24vh); }
body.is-focus .cls-side .digits { font-size: min(14vw, 26vh); }
body.is-focus .disk { max-width: min(70vh, 46vw); }
body.is-focus .kt-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
body.is-focus .br-orb { width: min(70vh, 80vw); }
@media (min-width: 900px) { body.is-focus .chess { grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr; } }

/* ---------------- Animaciones ---------------- */
@keyframes pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--danger) 0%, transparent), 0 0 0 0 color-mix(in srgb, var(--danger) 40%, transparent); transform: scale(1.02); } }
@keyframes flash { 50% { background: color-mix(in srgb, var(--danger) 16%, var(--surface)); } }
@keyframes flash-solid { 50% { background: #8f1f14; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }
@keyframes fall { to { top: 105%; transform: translateX(40px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------------- Móvil ---------------- */
@media (max-width: 600px) {
  .tool-sec { padding-top: 18px; }
  .tool-head { margin-bottom: 14px; }
  .tool-head .lede { font-size: 15px; }
  .stage { padding: 16px; min-height: 0; border-radius: 20px; }
  .btn-play { min-width: 150px; min-height: 60px; padding: 0 24px; }
  .btn-round { width: 52px; height: 52px; }
  .controls { gap: 10px; }
  .exam-info { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .exam-info b { font-size: 18px; }
  .cd-tile span { font-size: 12px; }
  .stage-bar { flex-wrap: wrap; }
  .tabs button { padding: 0 10px; font-size: 13px; }
  .ag-item { grid-template-columns: 26px minmax(0, 1fr) 90px 34px; }
  .hiit .controls .btn-play, .talk .controls .btn-play { min-width: 0; padding: 0 22px; }
  .hiit .controls { gap: 8px; }
  .prose { font-size: 16px; }
}

/* ---------------- Guías ---------------- */
.nav-link.is-here { color: var(--ink); background: var(--surface-2); }
.guide-hero { padding-bottom: 28px; }
.guide-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; letter-spacing: -.025em; max-width: 24ch; }
.guide-hero .lede { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 62ch; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.g-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--ink-2); font-size: 14px; }
.g-meta span, .guide-card small { display: inline-flex; align-items: center; gap: 6px; }
.g-meta .ic, .guide-card small .ic { width: 16px; height: 16px; }
.guide-cards { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.guide-card { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; border-top: 4px solid var(--tc); transition: transform .15s, box-shadow .15s; max-width: 520px; }
.guide-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 16px 40px rgba(20, 20, 30, .1); }
.guide-card .tc-ic .ic { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: color-mix(in srgb, var(--tc) 14%, var(--surface)); color: var(--tc); }
.guide-card b { font-size: 20px; line-height: 1.25; }
.guide-card > span:not(.tc-ic) { color: var(--ink-2); }
.guide-card small { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.pains { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.pain { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 18px; background: var(--bg); text-decoration: none; border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.pain:hover { border-color: var(--brand); transform: translateY(-1px); }
.pain b { font-size: 17px; }
.pain > span:last-child { color: var(--ink-2); font-size: 15px; }
.guide-content { padding-top: 24px; }
.prose.guide { max-width: 74ch; }
.prose.guide h2 { scroll-margin-top: 84px; }
.toc { padding: 18px 20px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.toc-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.toc ol { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 4px; font-size: 16px; }
.toc li + li { margin-top: 0 !important; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }
.quick-start { padding: 20px 22px; border-radius: var(--r); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); }
.qs-h { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--ink) !important; }
.qs-h .ic { color: var(--brand); }
.quick-start ol { margin: 10px 0 0; }
.quick-start .cta-row { margin-top: 14px; }
.qs-after { margin-top: 10px; font-size: 15px; color: var(--ink-2) !important; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-row .btn { text-decoration: none; white-space: normal; text-align: left; min-height: 46px; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: color-mix(in srgb, #3b62c4 8%, var(--surface)); border-left: 4px solid #3b62c4; }
.callout > .ic { flex: none; width: 22px; height: 22px; margin-top: 2px; color: #3b62c4; }
.callout > div > * + * { margin-top: 8px; }
.callout.is-story { background: color-mix(in srgb, #2a8c55 8%, var(--surface)); border-left-color: #2a8c55; }
.callout.is-story > .ic { color: #2a8c55; }
.callout-h { font-weight: 800; color: var(--ink) !important; }
.g-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); font-size: 15px; min-width: 560px; }
.g-table th, .g-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.g-table thead th { font-size: 13px; color: var(--ink-2); background: var(--surface-2); }
.g-table tbody th { font-weight: 700; }
.g-table tr:last-child > * { border-bottom: 0; }
.prose .scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px; }
.method { padding: 18px 20px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); border-left: 4px solid var(--tc); }
.method + .method { margin-top: 14px; }
.method-h { display: flex; gap: 12px; align-items: flex-start; }
.method-h .ic { width: 38px; height: 38px; padding: 8px; border-radius: 11px; background: color-mix(in srgb, var(--tc) 14%, var(--surface)); color: var(--tc); }
.method h3 { margin: 2px 0 0 !important; font-size: 19px; }
.method-for { margin-top: 2px !important; font-size: 14px; color: var(--ink-2) !important; }
.method > p { margin-top: 10px; }
.method-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--tc) 12%, var(--surface)); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.method-go:hover { background: color-mix(in srgb, var(--tc) 22%, var(--surface)); }
.method-go .ic { width: 16px; height: 16px; color: var(--tc); }
.refs { margin-top: 40px; padding: 14px 18px; border-radius: var(--r); background: var(--surface-2); font-size: 14px; }
.refs summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
.refs ul { margin-top: 10px; display: grid; gap: 6px; }
.refs li { color: var(--ink-2) !important; overflow-wrap: anywhere; }
.guide-promo { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line)); }
.guide-promo > .ic { flex: none; width: 26px; height: 26px; color: var(--brand); margin-top: 2px; }
.guide-promo .gp-title { font-weight: 800; color: var(--ink) !important; }
.guide-promo p + p { margin-top: 4px; }
.guide-promo .btn { margin-top: 12px; text-decoration: none; }
.prose a:not(.btn):not(.method-go) { color: inherit; text-decoration-color: color-mix(in srgb, var(--brand) 60%, transparent); text-underline-offset: 3px; }
.prose a:not(.btn):not(.method-go):hover { color: var(--brand); }
@media (max-width: 600px) {
  .guide-hero h1 { font-size: 29px; }
  .guide-hero .lede { font-size: 16px; }
  .method, .quick-start, .toc { padding: 16px; }
  .cta-row .btn { width: 100%; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .g-table { min-width: 0; }
  .g-table thead { display: none; }
  .g-table, .g-table tbody, .g-table tr, .g-table th, .g-table td { display: block; }
  .g-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .g-table tr:last-child { border-bottom: 0; }
  .g-table th, .g-table td { padding: 0; border: 0; }
  .g-table tbody th { margin-bottom: 8px; font-size: 16px; }
  .g-table td + td { margin-top: 6px; }
  .g-table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
  .g-table.is-wide tbody th::before { content: attr(data-label) " "; }
  .g-table.is-wide td { display: inline-block; margin: 6px 16px 0 0; vertical-align: top; }
  .g-table.is-wide td:nth-child(4) { display: block; margin-right: 0; }
}

/* ---------------- Marca TimerPlaza ---------------- */
:root { --logo-face: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --logo-face: var(--ink); } }
:root[data-theme="dark"] { --logo-face: var(--ink); }
.logo-mark { width: 30px; height: 30px; color: var(--ink); flex: none; }
.logo-name { white-space: nowrap; }
.logo-accent { color: var(--brand); }
.brand-line { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px 6px 8px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); max-width: 100%; }
.brand-line .logo-mark { width: 22px; height: 22px; }
.brand-line b { color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
@media (max-width: 600px) { .brand-line { display: none; } }

/* ---------------- Pago con PayPal ---------------- */
.pay { display: grid; gap: 14px; }
.pay-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); }
.pay-sum b { font-size: 17px; }
.pay-amt { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pay-once { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 14px; margin: -4px 0 0; }
.pay-once .ic { width: 16px; height: 16px; color: var(--ok, #2a8c55); }
.pay-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; color: var(--ink); }
.pay-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.pay-ref code { font-size: 20px; font-weight: 800; letter-spacing: .06em; padding: 6px 12px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); user-select: all; }
.pay-who { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: var(--r); background: color-mix(in srgb, #3b62c4 8%, var(--surface)); font-size: 14px; color: var(--ink-2); }
.pay-who .ic { flex: none; width: 18px; height: 18px; color: #3b62c4; margin-top: 1px; }
.pay .field-help { margin: -6px 0 0; }
.pay-demo { padding: 12px 14px; border-radius: var(--r); border: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); display: grid; gap: 8px; justify-items: start; }
.pay-pending { display: flex; gap: 10px; align-items: center; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r); background: color-mix(in srgb, #b98307 12%, var(--surface)); border: 1px solid color-mix(in srgb, #b98307 35%, var(--line)); color: var(--ink); }
.pay-pending .ic { flex: none; width: 20px; height: 20px; color: #b98307; }
.operator-note { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; margin: 28px auto 0; padding: 16px 18px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); color: var(--ink-2); font-size: 15px; }
.operator-note .ic { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }
.operator-note p { margin: 0; }
.operator-note strong { color: var(--ink); }

.nav-sister { margin-left: 4px; border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.nav-sister .ext { font-size: 12px; opacity: .6; margin-left: 2px; }
.nav-sister:hover .ext { opacity: 1; }
@media (max-width: 1180px) { .nav-sister { padding: 0 9px; font-size: 14px; } }
