/* Rotulación: Barlow Semi Condensed (SIL Open Font License), alojada en el propio sitio. Estrecha y
   rotunda, como los rótulos de furgonetas y la señalética de obra: da voz a los títulos sin pesar en el texto. */
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-semi-condensed-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-semi-condensed-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-semi-condensed-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-semi-condensed-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-semi-condensed-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-semi-condensed-800-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* AllTasks · web pública
   Sistema visual: tinta oscura de la barra lateral de la app (#17191E), rojo de marca (#DD3333),
   papel cálido, etiquetas de estado y «resguardos» de ticket como motivo propio.
   Fuentes del sistema (sin descargas externas). Movimiento solo si no se pide reducirlo. */

:root {
  --ink: #17191e;
  --ink-2: #23262d;
  --ink-3: #343842;
  --paper: #fbfaf7;
  --paper-2: #f3f1ec;
  --paper-3: #e9e6df;
  --line: #e2ded5;
  --text: #17191e;
  --muted: #565c66;
  --brand: #dd3333;
  --brand-strong: #b8222a; /* texto y enlaces sobre claro (≥ 5:1) */
  --brand-soft: #fcebe8;
  --on-dark: #f4f2ee;
  --on-dark-muted: #b9bec7;
  --blue: #1f5fd1;
  --blue-soft: #e6eefc;
  --green: #12733a;
  --green-soft: #e3f3e9;
  --amber: #9a4a05;
  --amber-soft: #fdf0d9;
  --violet: #5b3fc4;
  --violet-soft: #ece8fb;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(23 25 30 / 6%), 0 8px 24px -8px rgb(23 25 30 / 16%);
  --shadow-lg: 0 2px 4px rgb(23 25 30 / 6%), 0 24px 60px -20px rgb(23 25 30 / 30%);
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--brand-strong);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-press: 140ms;   /* pulsaciones y hover */
  --dur-menu: 180ms;    /* menús y acordeones */
  --dur-panel: 240ms;   /* paneles y contenido */
  --dur-reveal: 520ms;  /* entrada de secciones al desplazarse */
  --display: "Barlow Semi Condensed", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --header-h: 68px;
  --surface: #fff;
  --header-bg: rgb(251 250 247 / 88%);
  --header-line: rgb(226 222 213 / 70%);
  --field-border: #c9c4b8;
  --danger: #b3261e;
  --danger-soft: #fdecea;
  --danger-text: #8f1b16;
  --blue-text: #13336e;
  --amber-text: #5c2d04;
  --green-text: #0b4f27;
  color-scheme: light;
}

/* Modo oscuro: elegido con el botón de la cabecera (data-theme, misma preferencia que la app) o, si no se
   ha elegido, el del sistema. Las secciones de tinta siguen oscuras y un punto más claras que el fondo. */
:root[data-theme="dark"] {
  --ink: #1d2129; --ink-2: #262b35; --ink-3: #343a46;
  --paper: #0f1115; --paper-2: #181b21; --paper-3: #222630;
  --line: #2c313b; --text: #e8eaee; --muted: #a3aab5;
  --brand-strong: #ff7a72; --brand-soft: #3a1715;
  --on-dark: #f4f2ee; --on-dark-muted: #b9bec7;
  --blue: #7aa7ff; --blue-soft: #14233b; --green: #4ad283; --green-soft: #11281a;
  --amber: #f5b14a; --amber-soft: #33240a; --violet: #a896ff; --violet-soft: #251d45;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px -8px rgb(0 0 0 / 55%);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 30%), 0 24px 60px -20px rgb(0 0 0 / 70%);
  --surface: #171a20; --header-bg: rgb(15 17 21 / 86%); --header-line: rgb(44 49 59 / 80%); --field-border: #3b414c;
  --danger: #f05a52; --danger-soft: #3a1715; --danger-text: #fca5a0;
  --blue-text: #c9dbff; --amber-text: #fcd34d; --green-text: #8be5ae;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #1d2129; --ink-2: #262b35; --ink-3: #343a46;
    --paper: #0f1115; --paper-2: #181b21; --paper-3: #222630;
    --line: #2c313b; --text: #e8eaee; --muted: #a3aab5;
    --brand-strong: #ff7a72; --brand-soft: #3a1715;
    --on-dark: #f4f2ee; --on-dark-muted: #b9bec7;
    --blue: #7aa7ff; --blue-soft: #14233b; --green: #4ad283; --green-soft: #11281a;
    --amber: #f5b14a; --amber-soft: #33240a; --violet: #a896ff; --violet-soft: #251d45;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px -8px rgb(0 0 0 / 55%);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 30%), 0 24px 60px -20px rgb(0 0 0 / 70%);
    --surface: #171a20; --header-bg: rgb(15 17 21 / 86%); --header-line: rgb(44 49 59 / 80%); --field-border: #3b414c;
    --danger: #f05a52; --danger-soft: #3a1715; --danger-text: #fca5a0;
    --blue-text: #c9dbff; --amber-text: #fcd34d; --green-text: #8be5ae;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1, h2 { font-family: var(--display); }
h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.3vw, 3.25rem); font-weight: 800; line-height: 1.02; }
h3 { font-size: 1.2rem; font-weight: 720; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.25em; }
code, kbd { font-family: var(--mono); font-size: 0.9em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* ─── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 11px; font-weight: 650; font-size: 0.98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease), background-color 160ms, box-shadow 160ms, border-color 160ms;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1.05rem; border-radius: 13px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -8px rgb(221 51 51 / 70%); }
.btn-primary:hover { background: #c92b2b; box-shadow: 0 10px 22px -10px rgb(221 51 51 / 80%); }
@media (hover: hover) { .btn-primary:hover { transform: translateY(-1px); } }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--paper-3); }
.btn-ghost-dark { background: transparent; color: var(--on-dark); border-color: rgb(255 255 255 / 22%); }
.btn-ghost-dark:hover { background: rgb(255 255 255 / 8%); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ─── Cabecera y menús ───────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--header-line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
/* Logotipo: símbolo del kit + la palabra en la misma rotulación que el maestro (Barlow Semi Condensed 800) */
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 1.62rem; line-height: 1; letter-spacing: -0.005em; color: var(--text); text-decoration: none; }
.logo-mark { flex: none; width: 34px; height: 28px; transform: translateY(-1px); }
/* Marca de agua del símbolo en las bandas de tinta, como en la imagen social del kit (decorativa, sin clics) */
.cta-band::after, .dl-web-band::after {
  content: ""; position: absolute; right: -4%; bottom: -18%; width: min(46vw, 560px); aspect-ratio: 320 / 267; pointer-events: none;
  background: url("img/brand/simbolo-rojo.svg") center / contain no-repeat; opacity: 0.09;
}
.cta-band > .wrap, .dl-web-band > .wrap { z-index: 1; }
.desktop-nav { display: none; flex: 1; }
.primary-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-list { list-style: none; display: flex; gap: 2px; margin: 0 auto; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px; border-radius: 9px;
  color: var(--text); font-weight: 600; font-size: 0.97rem; text-decoration: none; cursor: pointer; list-style: none;
}
.nav-link::-webkit-details-marker { display: none; }
.nav-link:hover, details[open] > .nav-link { background: var(--paper-2); }
.nav-link.is-active { color: var(--brand-strong); }
.chev { transition: transform 180ms var(--ease); }
details[open] > summary .chev { transform: rotate(180deg); }
.nav-menu { position: relative; }
.nav-panel {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: -8px; width: 330px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
}
.nav-menu[open] .nav-panel { animation: drop 180ms var(--ease); }
.nav-panel a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.nav-panel a:hover, .nav-panel a[aria-current="page"] { background: var(--paper-2); }
.nav-panel strong { display: block; font-size: 0.97rem; }
.nav-panel span { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.4; margin-top: 2px; }
.nav-actions { display: flex; gap: 8px; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0;
}
.theme-toggle:hover { background: var(--paper-2); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ─── Idioma: selector de la cabecera (<details>, sin JS) y marca de enlaces a páginas solo en español ─── */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 11px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 0.84rem; letter-spacing: 0.04em;
}
.lang-btn:hover, .lang-menu[open] > .lang-btn { background: var(--paper-2); }
.lang-panel {
  list-style: none; margin: 0; padding: 6px; position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.lang-menu[open] .lang-panel { animation: drop 180ms var(--ease); }
.lang-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 9px; color: var(--text); text-decoration: none; }
.lang-panel a:hover, .lang-panel a:focus-visible { background: var(--paper-2); }
.lang-panel a[aria-current] { font-weight: 700; color: var(--brand-strong); }
.lang-panel a[aria-current]::after { content: "✓"; margin-left: auto; padding-left: 12px; }
@media (max-width: 380px) { .lang-btn svg { display: none; } .lang-btn { padding: 0 9px; } }
.lang-tag {
  display: inline-block; margin-left: 0.35em; padding: 0 0.38em; border: 1px solid currentColor; border-radius: 5px;
  font-size: 0.68em; font-weight: 700; letter-spacing: 0.04em; line-height: 1.45; vertical-align: 0.15em; opacity: 0.72; text-decoration: none;
}
.nav-panel .lang-tag { display: inline-block; margin-top: 0; color: var(--muted); font-size: 0.66rem; }
.nav-panel .lang-tag > span { display: inline; margin: 0; }

.mobile-nav > summary { list-style: none; }
.mobile-nav > summary::-webkit-details-marker { display: none; }
.burger { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); }
.bars { display: grid; gap: 4px; }
.bars i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 200ms var(--ease), opacity 200ms; }
.mobile-nav[open] .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-nav[open] .bars i:nth-child(2) { opacity: 0; }
.mobile-nav[open] .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-panel {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); overflow-y: auto; padding: 12px 16px 32px;
  border-top: 1px solid var(--line); animation: drop 200ms var(--ease);
}
/* Con el menú abierto, la cabecera pierde el desenfoque: un backdrop-filter convierte la cabecera en el bloque de
   referencia de los elementos «fixed», y el panel quedaba encerrado en sus 68 px (sin alto y con el texto por encima
   de la página). Con fondo opaco no hace falta el desenfoque. */
.site-header:has(.mobile-nav[open]) { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
.mobile-panel .primary-nav { flex-direction: column; align-items: stretch; }
.mobile-panel .nav-list { flex-direction: column; margin: 0; width: 100%; }
.mobile-panel .nav-link { width: 100%; justify-content: space-between; min-height: 52px; font-size: 1.08rem; }
.mobile-panel .nav-panel { position: static; width: auto; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 8px; animation: none; }
.mobile-panel .nav-actions { flex-direction: column; margin-top: 12px; }
.mobile-panel .nav-actions .btn { min-height: 52px; }
/* Cabecera completa solo cuando cabe entera (seis apartados + accesos); por debajo, menú compacto */
@media (min-width: 1180px) {
  .desktop-nav { display: block; }
  .mobile-nav { display: none; }
}

/* ─── Migas ──────────────────────────────────────────────── */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; margin: 0; font-size: 0.9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--paper-3); }
.crumbs a { color: var(--muted); }

/* ─── Portada ────────────────────────────────────────────── */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(40px, 6vw, 72px); position: relative; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgb(221 51 51 / 10%), transparent); pointer-events: none;
}
.hero-grid { display: grid; gap: 40px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 56px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-strong); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); color: var(--muted); max-width: 40em; }
.hero h1 .accent { color: var(--brand); }
.hero h1 { font-size: clamp(2.7rem, 1.5rem + 4.2vw, 4.7rem); }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; } }
.hero-note { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }

/* Ilustración animada del flujo */
.flow-demo {
  position: relative; background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-lg); min-height: 440px; overflow: hidden; isolation: isolate;
}
.flow-demo::after {
  content: ""; position: absolute; inset: auto -30% -40% auto; width: 80%; height: 80%; z-index: -1;
  background: radial-gradient(closest-side, rgb(221 51 51 / 28%), transparent);
}
.flow-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 0.8rem; color: var(--on-dark-muted); }
.flow-top .label { display: inline-flex; gap: 6px; align-items: center; }
.flow-top .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.flow-pause { background: rgb(255 255 255 / 10%); color: var(--on-dark); border: 0; border-radius: 8px; min-height: 32px; padding: 0 10px; font: inherit; font-size: 0.78rem; cursor: pointer; }
.flow-pause:hover { background: rgb(255 255 255 / 18%); }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flow-step {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; background: var(--ink-2);
  border: 1px solid rgb(255 255 255 / 7%); border-radius: 14px; padding: 12px 14px;
}
.flow-step .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgb(255 255 255 / 8%); color: #fff; }
.flow-step .ico svg { width: 18px; height: 18px; }
.flow-step strong { display: block; font-size: 0.95rem; color: #fff; }
.flow-step span { display: block; font-size: 0.84rem; color: var(--on-dark-muted); line-height: 1.45; }
.flow-step .chip { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: 0.74rem; padding: 2px 7px; border-radius: 6px; background: rgb(255 255 255 / 9%); color: #fff; }
.flow-step .chip.red { background: rgb(221 51 51 / 30%); }
.flow-step .chip.green { background: rgb(47 191 102 / 25%); }
.flow-step .chip.blue { background: rgb(96 165 250 / 25%); }
.flow-caption { margin: 12px 2px 0; font-size: 0.78rem; color: var(--on-dark-muted); }
/* Resguardo: la demostración es un ticket de tinta con perforaciones entre pasos. Un riel rojo avanza por
   el ticket y cada estado (Nuevo, Agendado, Resuelto) cae como un sello de goma. Ciclo de 13 s (el desenlace,
   «Resuelto», se queda más tiempo que el resto), se puede
   pausar; sin JS o con movimiento reducido se ve completo y quieto. */
.flow-demo { padding: 20px 22px 18px 40px; }
.flow-rail { position: absolute; left: 20px; top: 62px; bottom: 46px; width: 3px; border-radius: 3px; background: rgb(255 255 255 / 10%); }
.flow-rail i { position: absolute; inset: 0; border-radius: inherit; background: var(--brand); transform-origin: top; box-shadow: 0 0 12px rgb(221 51 51 / 60%); }
.flow-steps { gap: 0; }
.flow-step { background: transparent; border: 0; border-radius: 0; padding: 14px 2px; position: relative; }
.flow-step + .flow-step { border-top: 1.5px dashed rgb(255 255 255 / 16%); }
.flow-step + .flow-step::before, .flow-step + .flow-step::after {
  content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper);
}
.flow-step + .flow-step::before { left: -49px; }
.flow-step + .flow-step::after { right: -31px; }
.flow-step .ico { transition: background-color 200ms; }
.flow-step .stamp {
  margin-top: 8px; font-family: var(--mono); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem;
  padding: 3px 8px; border-radius: 5px; border: 2px solid currentColor; background: transparent !important; transform: rotate(-4deg);
}
.flow-step .stamp.red { color: #ff8a82; }
.flow-step .stamp.blue { color: #8fb8ff; }
.flow-step .stamp.green { color: #6fe3a0; }
@media (prefers-reduced-motion: no-preference) {
  .js .flow-demo .flow-step:nth-child(1) > div { animation: tk-step-1 13s linear infinite; }
  .js .flow-demo .flow-step:nth-child(1) > .ico { animation: tk-step-1 13s linear infinite, tk-ico-1 13s linear infinite; }
  .js .flow-demo .flow-step:nth-child(2) > div { animation: tk-step-2 13s linear infinite; }
  .js .flow-demo .flow-step:nth-child(2) > .ico { animation: tk-step-2 13s linear infinite, tk-ico-2 13s linear infinite; }
  .js .flow-demo .flow-step:nth-child(3) > div { animation: tk-step-3 13s linear infinite; }
  .js .flow-demo .flow-step:nth-child(3) > .ico { animation: tk-step-3 13s linear infinite, tk-ico-3 13s linear infinite; }
  .js .flow-demo .flow-step:nth-child(4) > div { animation: tk-step-4 13s linear infinite; }
  .js .flow-demo .flow-step:nth-child(4) > .ico { animation: tk-step-4 13s linear infinite, tk-ico-4 13s linear infinite; }
  .js .flow-demo .flow-step:nth-child(5) > div { animation: tk-step-5 13s linear infinite; }
  .js .flow-demo .flow-step:nth-child(5) > .ico { animation: tk-step-5 13s linear infinite, tk-ico-5 13s linear infinite; }
  .js .flow-demo .flow-step:nth-child(6) > div { animation: tk-step-6 13s linear infinite; }
  .js .flow-demo .flow-step:nth-child(6) > .ico { animation: tk-step-6 13s linear infinite, tk-ico-6 13s linear infinite; }
  .js .flow-demo .stamp-1 { animation: tk-stamp-1 13s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
  .js .flow-demo .stamp-2 { animation: tk-stamp-2 13s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
  .js .flow-demo .stamp-3 { animation: tk-stamp-3 13s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
  .js .flow-demo .flow-rail i { animation: tk-rail 13s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
  .flow-demo.is-paused .flow-step > *, .flow-demo.is-paused .stamp, .flow-demo.is-paused .flow-rail i { animation-play-state: paused; }
}
@keyframes tk-step-1 { 0% { opacity: 0.45; } 1.85%, 13.38% { opacity: 1; } 15.69%, 95.38% { opacity: 0.78; } 100% { opacity: 0.45; } }
@keyframes tk-ico-1 { 0% { background: rgb(255 255 255 / 8%); } 1.85%, 13.38% { background: var(--brand); } 15.69%, 100% { background: rgb(255 255 255 / 8%); } }
@keyframes tk-step-2 { 0%, 13.38% { opacity: 0.45; } 15.69%, 27.23% { opacity: 1; } 29.54%, 95.38% { opacity: 0.78; } 100% { opacity: 0.45; } }
@keyframes tk-ico-2 { 0%, 13.38% { background: rgb(255 255 255 / 8%); } 15.69%, 27.23% { background: var(--brand); } 29.54%, 100% { background: rgb(255 255 255 / 8%); } }
@keyframes tk-step-3 { 0%, 27.23% { opacity: 0.45; } 29.54%, 41.08% { opacity: 1; } 43.38%, 95.38% { opacity: 0.78; } 100% { opacity: 0.45; } }
@keyframes tk-ico-3 { 0%, 27.23% { background: rgb(255 255 255 / 8%); } 29.54%, 41.08% { background: var(--brand); } 43.38%, 100% { background: rgb(255 255 255 / 8%); } }
@keyframes tk-step-4 { 0%, 41.08% { opacity: 0.45; } 43.38%, 54.92% { opacity: 1; } 57.23%, 95.38% { opacity: 0.78; } 100% { opacity: 0.45; } }
@keyframes tk-ico-4 { 0%, 41.08% { background: rgb(255 255 255 / 8%); } 43.38%, 54.92% { background: var(--brand); } 57.23%, 100% { background: rgb(255 255 255 / 8%); } }
@keyframes tk-step-5 { 0%, 54.92% { opacity: 0.45; } 57.23%, 68.77% { opacity: 1; } 71.08%, 95.38% { opacity: 0.78; } 100% { opacity: 0.45; } }
@keyframes tk-ico-5 { 0%, 54.92% { background: rgb(255 255 255 / 8%); } 57.23%, 68.77% { background: var(--brand); } 71.08%, 100% { background: rgb(255 255 255 / 8%); } }
@keyframes tk-step-6 { 0%, 68.77% { opacity: 0.45; } 71.08%, 95.38% { opacity: 1; } 100% { opacity: 0.45; } }
@keyframes tk-ico-6 { 0%, 68.77% { background: rgb(255 255 255 / 8%); } 71.08%, 95.38% { background: var(--brand); } 100% { background: rgb(255 255 255 / 8%); } }
@keyframes tk-stamp-1 { 0%, 15.38% { opacity: 0; transform: scale(1.6) rotate(-16deg); } 17.08% { opacity: 1; transform: scale(0.94) rotate(-3deg); } 18.31%, 95.38% { opacity: 1; transform: scale(1) rotate(-4deg); } 100% { opacity: 0; transform: scale(1) rotate(-4deg); } }
@keyframes tk-stamp-2 { 0%, 43.08% { opacity: 0; transform: scale(1.6) rotate(-16deg); } 44.77% { opacity: 1; transform: scale(0.94) rotate(-3deg); } 46.00%, 95.38% { opacity: 1; transform: scale(1) rotate(-4deg); } 100% { opacity: 0; transform: scale(1) rotate(-4deg); } }
@keyframes tk-stamp-3 { 0%, 70.77% { opacity: 0; transform: scale(1.6) rotate(-16deg); } 72.46% { opacity: 1; transform: scale(0.94) rotate(-3deg); } 73.69%, 95.38% { opacity: 1; transform: scale(1) rotate(-4deg); } 100% { opacity: 0; transform: scale(1) rotate(-4deg); } }
@keyframes tk-rail { 0.00% { transform: scaleY(0.020); } 2.31% { transform: scaleY(0.167); } 13.38% { transform: scaleY(0.167); } 16.15% { transform: scaleY(0.333); } 27.23% { transform: scaleY(0.333); } 30.00% { transform: scaleY(0.500); } 41.08% { transform: scaleY(0.500); } 43.85% { transform: scaleY(0.667); } 54.92% { transform: scaleY(0.667); } 57.69% { transform: scaleY(0.833); } 68.77% { transform: scaleY(0.833); } 71.54% { transform: scaleY(1.000); } 95.38% { transform: scaleY(1); } 100% { transform: scaleY(0.02); } }

/* ─── Secciones ──────────────────────────────────────────── */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark .lead, .section-dark p { color: var(--on-dark-muted); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.problems { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.problem { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.problem h3 { display: flex; gap: 10px; align-items: baseline; }
.problem h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--brand); transform: translateY(-1px); }
.problem p { color: var(--muted); margin: 0; }
.problem .answer { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--text); font-size: 0.96rem; }

/* Flujo «producto en acción» con capturas */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: clamp(36px, 6vw, 72px); }
.step { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) {
  .step { grid-template-columns: 0.85fr 1.15fr; gap: 48px; }
  /* Pasos alternos: la captura cambia de lado pero conserva la columna ancha */
  .step:nth-child(even) { grid-template-columns: 1.15fr 0.85fr; }
  .step:nth-child(even) > .step-text { order: 2; }
  /* Paso sin captura: una sola columna de lectura, sin medio paso vacío al lado */
  .step:not(:has(> .shot)) { grid-template-columns: minmax(0, 42rem); }
  .step:not(:has(> .shot)) > .step-text { order: 0; }
}
.step-text { counter-increment: step; }
.step-text::before {
  content: counter(step, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 800; font-size: 3.6rem; line-height: 1;
  color: var(--brand); margin-bottom: 10px; letter-spacing: -0.01em;
}
.step-text h3 { font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); font-weight: 700; letter-spacing: 0; }
.step-text p { color: var(--muted); }
.step-text .who { font-size: 0.9rem; color: var(--text); }

/* Capturas
   .shot-frame: el hueco (borde, sombra y sitio reservado desde el primer pintado).
   .shot-print: la imagen; al aparecer «se imprime» dentro del hueco (ver «Aparición de capturas»).
   .shot-zoom: botón «Ampliar captura» que añade site.js encima de la imagen. */
.shot { margin: 0; }
.shot-frame {
  position: relative; border-radius: 14px; border: 1px solid var(--line); background: var(--paper-2);
  box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate;
}
.shot-print { position: relative; }
.shot img { width: 100%; }
.shot figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 10px; }
.section-dark .shot-frame { border-color: rgb(255 255 255 / 10%); background: var(--ink-2); }
.section-dark .shot figcaption { color: var(--on-dark-muted); }
/* Móvil: marco de teléfono de tinta (bisel fino) en vez de una imagen suelta */
.shot-phone .shot-frame {
  width: min(100%, 300px); margin-inline: auto; border-radius: 34px; border: 7px solid var(--ink);
  background: var(--ink); box-shadow: 0 0 0 1px rgb(255 255 255 / 6%) inset, var(--shadow-lg);
}
.shot-phone .shot-print { border-radius: 27px; overflow: hidden; }
.shot-phone figcaption { text-align: center; }
@media (min-width: 900px) { .shot-phone .shot-frame { width: min(100%, 340px); } }

.shot-zoom {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px;
  border: 0; margin: 0; background: transparent; cursor: zoom-in; border-radius: inherit; font: inherit; color: inherit;
}
.shot-zoom:focus-visible { box-shadow: inset 0 0 0 3px var(--brand-strong); }
.shot-zoom-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px;
  background: rgb(23 25 30 / 82%); color: #fff; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.01em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 6px 16px -6px rgb(0 0 0 / 45%);
  opacity: 0; transform: translateY(4px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.shot-zoom-pill svg { width: 15px; height: 15px; }
.shot-zoom { border-radius: 13px; } /* radio interior del marco (14 px − 1 px de borde) */
.shot-phone .shot-zoom { padding: 16px; justify-content: center; border-radius: 27px; }
/* Puntero fino: la imagen sube 2 px (el marco no se mueve, así el puntero no pierde el objetivo) y la
   etiqueta aparece tras un respiro; al salir desaparece sin espera. En táctil la etiqueta se ve siempre. */
@media (hover: hover) and (pointer: fine) {
  .shot-print img { transition: transform 220ms var(--ease-out); }
  .shot-frame:hover .shot-print img { transform: translateY(-2px) scale(1.006); }
  .shot-frame:hover .shot-zoom-pill { opacity: 1; transform: none; transition-delay: 120ms; }
}
.shot-zoom:focus-visible .shot-zoom-pill { opacity: 1; transform: none; }
@media (hover: none), (pointer: coarse) {
  .shot-zoom { padding: 8px; }
  .shot-zoom-pill { opacity: 1; transform: none; min-height: 30px; padding: 0 10px; font-size: 0.78rem; gap: 5px; }
}
.shot-zoom:active ~ .shot-print img, .shot-frame:has(.shot-zoom:active) .shot-print img { transform: scale(0.985); transition-duration: 120ms; }
/* Capturas con versión oscura: solo se ve (y se descarga) la del modo actual */
img.shot-dark { display: none; }
:root[data-theme="dark"] img.shot-light { display: none; }
:root[data-theme="dark"] img.shot-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.shot-light { display: none; }
  :root:not([data-theme="light"]) img.shot-dark { display: block; }
}

/* Funciones agrupadas */
.feature-groups { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.feature-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; transition: transform 200ms var(--ease), box-shadow 200ms; }
@media (hover: hover) { .feature-group:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }
.feature-group .kicker { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.feature-group ul { margin: 12px 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature-group li { padding-left: 26px; position: relative; color: var(--muted); }
.feature-group li strong { color: var(--text); }
.feature-group li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.k-red { color: var(--brand-strong); } .k-blue { color: var(--blue); } .k-green { color: var(--green); } .k-violet { color: var(--violet); } .k-amber { color: var(--amber); }

/* Espacios de trabajo */
.workspaces { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .workspaces { grid-template-columns: 1fr 1fr; gap: 56px; } }
.ws-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ws-points li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.ws-points .n { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgb(255 255 255 / 8%); color: #fff; font-weight: 700; font-family: var(--mono); font-size: 0.85rem; }
.ws-points strong { display: block; color: #fff; }
.ws-points span { color: var(--on-dark-muted); font-size: 0.97rem; }
.ws-stack { position: relative; min-height: 320px; }
.ws-card {
  position: absolute; width: min(100%, 360px); background: var(--ink-2); border: 1px solid rgb(255 255 255 / 10%); border-radius: 18px; padding: 18px;
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 60%);
}
.ws-card:nth-child(1) { top: 0; left: 0; }
.ws-card:nth-child(2) { top: 96px; left: 8%; }
.ws-card:nth-child(3) { top: 192px; left: 16%; border-color: rgb(221 51 51 / 55%); }
.ws-card .ws-name { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.ws-card .ws-badge { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; color: #fff; }
.ws-card .ws-meta { font-size: 0.82rem; color: var(--on-dark-muted); margin-top: 6px; }
.ws-card .ws-plan { float: right; font-size: 0.72rem; font-family: var(--mono); padding: 2px 7px; border-radius: 6px; background: rgb(255 255 255 / 10%); color: #fff; }
@media (max-width: 520px) { .ws-stack { min-height: 300px; } .ws-card { width: 88%; } }

/* Casos de uso (ejemplos ficticios) */
.cases { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.case { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px 22px; }
.case::before, .case::after { content: ""; position: absolute; top: 54px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.case::before { left: -10px; clip-path: inset(0 0 0 50%); }
.case::after { right: -10px; clip-path: inset(0 50% 0 0); }
.section-alt .case::before, .section-alt .case::after { background: var(--paper-2); }
.case .example { display: inline-block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber); background: var(--amber-soft); padding: 3px 8px; border-radius: 6px; margin-bottom: 18px; }
.case p { color: var(--muted); font-size: 0.98rem; }
.case ol { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: 0.95rem; display: grid; gap: 6px; }

/* Precios */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); align-items: stretch; }
.plan.plan-custom { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.plan.plan-custom h3 { color: #fff; }
.plan.plan-custom .seats, .plan.plan-custom .tax, .plan.plan-custom li { color: var(--on-dark-muted); }
.plan.plan-custom .btn-ghost { color: #fff; border-color: rgb(255 255 255 / 30%); }
.plan.plan-custom .btn-ghost:hover { background: rgb(255 255 255 / 10%); }
.price .amount.amount-text { font-size: 2.1rem; line-height: 1.15; }
.plan-mail { margin: 12px 0 0; font-size: 0.9rem; text-align: center; overflow-wrap: anywhere; }
.plan-custom .plan-mail a { color: #fff; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan .seats { color: var(--muted); margin: 0 0 16px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; margin-bottom: 4px; }
.price .amount { white-space: nowrap; }
.price .amount { font-family: var(--display); font-size: 3.4rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1; }
.price .per { color: var(--muted); font-size: 0.95rem; }
.plan .tax { font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; min-height: 1.3em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: 0.96rem; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 0.5em; width: 11px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan li.no { color: var(--muted); }
.plan li.no::before { border: 0; width: 11px; height: 2px; background: var(--muted); transform: none; top: 0.75em; }
.plan .btn { margin-top: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: 0.96rem; }
.compare caption { text-align: left; font-weight: 700; padding-bottom: 12px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--paper-2); font-size: 0.9rem; }
.compare tbody th { font-weight: 600; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-scroll:focus-visible { box-shadow: var(--focus); }
.notes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.note h3 { font-size: 1.02rem; display: flex; gap: 10px; align-items: baseline; }
.note h3::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 3px; background: var(--blue); transform: translateY(-1px); }
.note p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Tarjetas de enlace */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--text); text-decoration: none; transition: transform 180ms var(--ease), box-shadow 180ms, border-color 180ms; }
@media (hover: hover) { .card a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--paper-3); } }
.card a:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow), var(--focus); border-color: var(--paper-3); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 14px; }
.card .more { margin-top: auto; color: var(--brand-strong); font-weight: 650; font-size: 0.93rem; }
.card .tag { align-self: flex-start; font-family: var(--mono); font-size: 0.74rem; padding: 3px 8px; border-radius: 6px; background: var(--paper-2); color: var(--muted); margin-bottom: 12px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item > summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative; border-radius: var(--radius); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary h3 { margin: 0; font-size: 1.06rem; }
.faq-item > summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 180ms var(--ease); }
.faq-item[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item > summary:hover { background: var(--paper); }
.faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }

/* Qué resuelve: filas «el problema → con AllTasks». Al llegar, la flecha se dibuja de izquierda a derecha. */
.fixes-head { display: none; }
.fixes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fix { display: grid; gap: 10px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.fix-before h3 { font-family: var(--display); font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); font-weight: 700; margin: 0 0 6px; letter-spacing: 0; }
.fix-before p { margin: 0; color: var(--muted); }
.fix-arrow { display: block; width: 28px; height: 2px; background: var(--brand); position: relative; margin: 6px 0; }
.fix-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; width: 9px; height: 9px; border-top: 2px solid var(--brand); border-right: 2px solid var(--brand); transform: rotate(45deg); }
.fix-after { margin: 0; font-size: 1.08rem; color: var(--text); font-weight: 550; }
@media (min-width: 900px) {
  .fixes-head { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 32px; padding: 0 0 10px; font-size: 0.8rem; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
  .fixes-head span:last-child { grid-column: 3; color: var(--brand-strong); }
  .fix { grid-template-columns: 1fr 44px 1fr; padding: 28px 0; }
  .fix-arrow { margin-top: 18px; width: 40px; }
  .fix-after { padding-top: 6px; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-pending .fix-arrow { transform: scaleX(0); transform-origin: left center; }
  .reveal-pending.is-visible .fix-arrow { transform: none; transition: transform 420ms var(--ease-out) calc(var(--reveal-delay, 0ms) + 180ms); }
}

/* CTA */
.cta-band { background: var(--ink); color: var(--on-dark); padding: clamp(48px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: -60% auto auto -10%; width: 60vw; height: 60vw; background: radial-gradient(closest-side, rgb(221 51 51 / 25%), transparent); }
.cta-inner { position: relative; display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: #fff; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); line-height: 0.98; }
.cta-band p { color: var(--on-dark-muted); margin: 0; max-width: 40em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Páginas interiores */
.page-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
.page-hero-inner.has-aside { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .page-hero-inner.has-aside { grid-template-columns: 1fr 1fr; gap: 56px; } }
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
/* Texto y captura lado a lado solo cuando la captura puede pasar de ~560 px; en tableta, apiladas */
@media (min-width: 1100px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; } }
@media (min-width: 700px) and (max-width: 1099px) { .split > :not(.shot):not(:has(.shot)) { max-width: 42rem; } }
.split p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 3px; top: 0.5em; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.callout { background: var(--blue-soft); border-radius: var(--radius); padding: 18px 20px; color: var(--blue-text); }
.callout.warn { background: var(--amber-soft); color: var(--amber-text); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: inherit; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pill-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 0.9rem; }

/* Guías */
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 1000px) { .guide-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; } }
.guide-meta { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin: 0 0 32px; }
.guide-meta div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.guide-meta dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.guide-meta dd { margin: 4px 0 0; font-size: 0.97rem; }
.guide-steps { list-style: none; counter-reset: gs; padding: 0; margin: 0; display: grid; gap: 22px; }
.guide-steps > li { counter-increment: gs; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
.prose, .faq-a, .step-text, .note, .topic { overflow-wrap: break-word; }
.guide-steps > li::before { content: counter(gs); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 750; }
.guide-steps h3 { margin: 6px 0 6px; font-size: 1.08rem; }
.guide-steps p { margin-bottom: 0.6em; }
/* La captura del paso ocupa todo el ancho en móvil (sin la sangría del número) y la columna de texto en
   pantallas mayores, donde ya hay sitio para leerla */
.guide-steps > li > .shot { grid-column: 1 / -1; margin-top: 16px; }
@media (min-width: 700px) { .guide-steps > li > .shot { grid-column: 2; } }
.guide-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.guide-aside .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: 0.95rem; }
.guide-aside h2 { font-size: 0.95rem; margin-bottom: 10px; }
.guide-aside ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.reviewed { font-size: 0.9rem; color: var(--muted); }
.page-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 0.9rem; color: var(--muted); }
.page-meta span + span::before { content: "·"; margin-right: 18px; color: var(--paper-3); }

/* Formularios */
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 650; font-size: 0.96rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface); border: 1px solid var(--field-border); border-radius: 10px; min-height: 48px; padding: 10px 12px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--brand-strong); }
.field [aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }
.field .err { color: var(--danger-text); font-size: 0.9rem; font-weight: 600; }
.field .help { color: var(--muted); font-size: 0.88rem; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 0.95rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--green-soft); color: var(--green-text); }
.form-status.error { background: var(--danger-soft); color: var(--danger-text); }
.form-status.info { background: var(--amber-soft); color: var(--amber-text); }
.topics { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.topic { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.topic h3 { font-size: 1.02rem; }
.topic p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Pie */
.site-footer { background: #111317; color: var(--on-dark-muted); padding: 56px 0 28px; font-size: 0.95rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a.btn-primary { color: #fff; } /* la regla de enlaces del pie no debe bajar el contraste del botón */
.site-footer a:hover { text-decoration: underline; }
.site-footer .logo { color: #fff; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.foot-brand { grid-column: 1 / -1; max-width: 520px; }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.6fr repeat(5, 1fr); } .foot-brand { grid-column: auto; } }
.foot-brand p { margin: 14px 0 18px; }
.foot-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer ul a { display: inline-block; padding-block: 3px; }
.guide-aside li a { padding-block: 3px; }
.foot-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 10%); font-size: 0.86rem; }
.foot-legal ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.foot-legal p { margin: 6px 0; }
.foot-legal p a { text-decoration: underline; }
.foot-langs { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-langs svg { display: block; color: var(--on-dark-muted); }
.foot-legal .foot-langs ul { margin: 0; gap: 4px 16px; }
.foot-langs a[aria-current] { font-weight: 700; color: #fff; }
.foot-legal-note { color: var(--on-dark-muted); }

/* 404 */
.notfound { padding: clamp(60px, 10vw, 120px) 0; text-align: center; }
.notfound .code { font-family: var(--mono); font-size: 0.95rem; color: var(--brand-strong); background: var(--brand-soft); padding: 4px 10px; border-radius: 8px; }
.notfound .hero-actions { justify-content: center; }

/* Sesión: mientras se comprueba si hay sesión en la portada */
html.at-checking body > * { visibility: hidden; }
html.at-checking body::before {
  content: "Abriendo tu espacio de trabajo…"; position: fixed; inset: 0; display: grid; place-items: center;
  font: 600 1.05rem var(--font); color: var(--muted); background: var(--paper);
}

/* Aparición de secciones al desplazarse: site.js solo marca como pendientes las que están FUERA de pantalla
   cuando ya las observa, así nada visible se oculta ni parpadea y, sin JS (o si tarda), todo se ve. Una vez. */
@media screen and (prefers-reduced-motion: no-preference) {
  .reveal-pending { opacity: 0; transform: translateY(16px); }
  .reveal-pending.is-visible { opacity: 1; transform: none; transition: opacity var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms), transform var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms); }
}

/* Aparición de capturas: «impresión de resguardo». El hueco ya está pintado (sin saltos); la imagen entra
   de arriba abajo con una línea de cabezal en rojo de marca que acompaña al borde y se apaga al final.
   Una vez por captura y solo para las que estaban fuera de pantalla (site.js marca .shot-pending).
   Movimiento reducido: solo un fundido breve, sin desplazamiento ni recorte. */
@media screen and (prefers-reduced-motion: no-preference) {
  .shot-pending .shot-print { clip-path: inset(0 0 100% 0); }
  .shot-pending:not(.is-done) .shot-zoom { visibility: hidden; opacity: 0; }
  .shot-pending .shot-zoom { transition: opacity 140ms ease; }
  .shot-pending.is-printed .shot-print { clip-path: none; animation: shot-print 760ms cubic-bezier(0.33, 1, 0.68, 1) backwards; }
  .shot-pending.is-printed .shot-print::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to top, rgb(221 51 51 / 85%) 0, rgb(221 51 51 / 85%) 2px, rgb(221 51 51 / 16%) 2px, transparent 26px);
    animation: shot-head 760ms cubic-bezier(0.33, 1, 0.68, 1) both;
  }
}
@keyframes shot-print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes shot-head {
  from { transform: translateY(-100%); opacity: 1; }
  82% { opacity: 1; }
  to { transform: translateY(0); opacity: 0; }
}

/* Visor de capturas (<dialog>): fondo de tinta, la captura crece desde su miniatura (site.js, FLIP) */
.viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--on-dark); overflow: hidden;
}
.viewer::backdrop { background: transparent; }
.viewer-shade { position: absolute; inset: 0; background: rgb(12 13 16 / 88%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.viewer-ui { position: relative; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px max(16px, env(safe-area-inset-left)) 8px;
  padding-top: max(12px, env(safe-area-inset-top));
}
.viewer-count { font-family: var(--mono); font-size: 0.82rem; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.viewer-spacer { flex: 1; }
.viewer-btn {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; cursor: pointer;
  background: rgb(255 255 255 / 9%); color: #fff; border: 1px solid rgb(255 255 255 / 12%); font: inherit; font-size: 0.9rem; font-weight: 600; white-space: nowrap;
  transition: background-color 140ms ease, transform 140ms var(--ease-out);
}
.viewer-btn:hover { background: rgb(255 255 255 / 16%); }
.viewer-btn:active { transform: scale(0.96); }
.viewer-btn svg { width: 20px; height: 20px; }
.viewer-btn[hidden] { display: none; }
.viewer-stage { position: relative; overflow: auto; overscroll-behavior: contain; display: grid; place-items: center; padding: 8px max(16px, env(safe-area-inset-left)); }
.viewer-img {
  display: block; max-width: none; border-radius: 12px; /* ancho y alto: site.js (ajustada o tamaño real) */
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 70%); cursor: zoom-in; transform-origin: 0 0; background: var(--paper-2);
}
.viewer.is-phone .viewer-img { border-radius: 26px; }
/* Tamaño real: la captura se puede recorrer con el dedo o la rueda; un toque vuelve a ajustarla */
.viewer.is-actual .viewer-stage { place-items: start; }
.viewer.is-actual .viewer-img { cursor: zoom-out; }
.viewer-caption { margin: 0; padding: 10px max(16px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-bottom)); font-size: 0.9rem; color: var(--on-dark-muted); text-align: center; text-wrap: balance; }
.viewer-ui > .viewer-bar, .viewer-ui > .viewer-caption { transition: opacity 160ms ease; }
.viewer.is-morphing .viewer-bar, .viewer.is-morphing .viewer-caption { opacity: 0; transition-duration: 100ms; }
/* Al abrir, ocultas desde el primer fotograma (sin destello); al cerrar, se apagan en 100 ms */
.viewer.is-opening .viewer-bar, .viewer.is-opening .viewer-caption { transition: none; }
.viewer.is-morphing .viewer-btn:focus-visible { box-shadow: none; }
/* Tras cerrar el visor, la miniatura no repite el hover mientras el puntero no se mueva */
.shot.is-returning .shot-frame:hover .shot-print img { transform: none; }
.shot.is-returning .shot-frame:hover .shot-zoom:not(:focus-visible) .shot-zoom-pill { opacity: 0; transform: translateY(4px); transition-delay: 0ms; }
html.viewer-open { overflow: hidden; }

/* FAQ: la respuesta aparece con un fundido breve al abrir (sin JS). No se anima la altura: con
   ::details-content la respuesta quedaba vacía para lectores de pantalla durante la transición; así el
   texto está disponible desde el primer instante y solo cambia la opacidad. */
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] > .faq-a { animation: faq-in var(--dur-menu) var(--ease-out) both; }
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Portada: dos formas difusas que se mueven muy despacio (solo escritorio, sin «reducir movimiento»; solo
   transform, sin animar el desenfoque; el navegador las detiene con la pestaña oculta) */
.hero::after {
  content: ""; position: absolute; left: -12%; bottom: -30%; width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  background: radial-gradient(closest-side, rgb(31 95 209 / 7%), transparent); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .hero::before { animation: hero-drift-a 28s ease-in-out infinite alternate; }
  .hero::after { animation: hero-drift-b 34s ease-in-out infinite alternate; }
}
@keyframes hero-drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-4vw, 3vh, 0) scale(1.06); } }
@keyframes hero-drift-b { from { transform: translate3d(0, 0, 0) scale(1.04); } to { transform: translate3d(3vw, -4vh, 0) scale(0.96); } }
/* ─── Movimiento: entrada de la cabecera de cada página y respuesta al puntero ─────────────
   Entrada: el título, el texto y los botones suben 14 px en cascada al cargar (una vez, solo lo de arriba).
   Puntero: solo en elementos con los que se interactúa y solo con ratón (en táctil un toque no es «hover»).
   Todo con transform/opacity/color; «reducir movimiento» lo anula (regla de abajo). */
@media screen and (prefers-reduced-motion: no-preference) {
  .hero-grid > div:first-child > *, .page-hero-inner > div:first-child > *, .page-hero > .wrap:not(.page-hero-inner) > *, .dl-hero-grid > div:first-child > * {
    animation: rise-in 560ms var(--ease-out) backwards;
  }
  .hero-grid > div:first-child > :nth-child(2), .page-hero-inner > div:first-child > :nth-child(2), .page-hero > .wrap:not(.page-hero-inner) > :nth-child(2), .dl-hero-grid > div:first-child > :nth-child(2) { animation-delay: 70ms; }
  .hero-grid > div:first-child > :nth-child(3), .page-hero-inner > div:first-child > :nth-child(3), .page-hero > .wrap:not(.page-hero-inner) > :nth-child(3), .dl-hero-grid > div:first-child > :nth-child(3) { animation-delay: 140ms; }
  .hero-grid > div:first-child > :nth-child(n+4), .page-hero-inner > div:first-child > :nth-child(n+4), .page-hero > .wrap:not(.page-hero-inner) > :nth-child(n+4), .dl-hero-grid > div:first-child > :nth-child(n+4) { animation-delay: 200ms; }
  .hero .flow-demo, .page-hero-inner > :nth-child(2) { animation: rise-in 720ms var(--ease-out) 160ms backwards; }
}
@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

/* Cabecera: al desplazarse gana una sombra suave (site.js añade .is-scrolled) */
.site-header { transition: box-shadow 200ms ease, background-color 200ms ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgb(23 25 30 / 35%); }

/* Transiciones de color en lo que antes cambiaba de golpe */
a { transition: text-decoration-color var(--dur-press) ease, text-decoration-thickness var(--dur-press) ease, color var(--dur-press) ease; }
.nav-link, .nav-panel a, .theme-toggle, .faq-item > summary, .flow-pause, .viewer-btn { transition: background-color var(--dur-press) ease, color var(--dur-press) ease, border-color var(--dur-press) ease, transform var(--dur-press) var(--ease-out); }
.site-footer a { transition: color var(--dur-press) ease, transform 180ms var(--ease-out); }
.logo-mark, .theme-toggle svg, .card .more, .nav-panel strong { transition: transform 200ms var(--ease-out); }
.theme-toggle:active, .flow-pause:active { transform: scale(0.94); }
.nav-link:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  /* Botones: suben 1 px con la sombra (el principal ya lo hacía); al pulsar, bajan */
  .btn-ghost:hover, .btn-ghost-dark:hover { transform: translateY(-1px); }
  .btn-ghost:hover { box-shadow: 0 8px 18px -12px rgb(23 25 30 / 35%); }
  /* Logotipo: el símbolo se inclina un poco */
  .logo:hover .logo-mark { transform: translateY(-1px) rotate(-6deg); }
  /* Menús: la opción se desplaza 2 px hacia dentro */
  .nav-panel a:hover strong { transform: translateX(2px); }
  /* Tema: el icono gira un poco */
  .theme-toggle:hover svg { transform: rotate(-14deg); }
  /* Tarjetas de enlace: «Ver más» avanza junto con la tarjeta */
  .card a:hover .more { transform: translateX(4px); }
  /* Pie: el enlace se aclara y avanza 2 px */
  .site-footer ul a:hover { color: #fff; transform: translateX(2px); }
  /* Preguntas frecuentes: la flecha se mueve hacia donde se abrirá */
  .faq-item:not([open]) > summary:hover::after { transform: translateY(-50%) rotate(45deg); }
}
.card .more { display: inline-block; align-self: flex-start; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 420px) {
  body { font-size: 1rem; }
  .btn-lg { width: 100%; }
  .hero-actions { flex-direction: column; }
  .flow-demo { padding: 16px; }
}

/* ─── Descargar ─────────────────────────────────────────────────────────────
   Cuatro tarjetas; site.js marca la del dispositivo (.is-recommended) y la pone primera. Sin JS, las cuatro iguales. */
.dl-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); position: relative; overflow-x: clip; }
.dl-hero::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgb(221 51 51 / 10%), transparent);
}
.dl-hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .dl-hero-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; } }
.dl-now { margin: 6px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.96rem; max-width: 34em; }
/* Dispositivos: portátil de tinta con la captura de escritorio y un móvil superpuesto con Mi jornada */
.devices { max-width: 720px; margin-inline: auto; width: 100%; }
.devices-stage { position: relative; padding-bottom: 6%; }
.device-laptop { position: relative; width: 92%; }
.device-laptop .device-screen { border: 10px solid var(--ink); border-bottom-width: 14px; border-radius: 18px 18px 6px 6px; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 1px rgb(255 255 255 / 7%), var(--shadow-lg); }
.device-base { height: 14px; margin: 0 -6%; border-radius: 0 0 16px 16px; background: linear-gradient(var(--ink-3), var(--ink)); box-shadow: 0 18px 30px -16px rgb(0 0 0 / 45%); position: relative; }
.device-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 5px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: rgb(255 255 255 / 10%); }
.device-phone { position: absolute; right: 2%; bottom: 0; width: 27%; min-width: 96px; }
.device-phone .device-screen { border: 6px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 1px rgb(255 255 255 / 8%) inset, 0 30px 60px -20px rgb(0 0 0 / 55%); }
.device-phone .device-screen img { border-radius: 20px; }
.devices-caption { margin: 12px 0 0; font-size: 0.82rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  /* El móvil es opaco en todo momento (no deja ver el portátil): emerge con un recorte mientras sube */
  .device-phone { animation: device-emerge 900ms cubic-bezier(0.16, 1, 0.3, 1) 220ms backwards, device-rise-phone 900ms cubic-bezier(0.16, 1, 0.3, 1) 220ms both; }
  .device-laptop { animation: device-fade 300ms ease-out both, device-rise-laptop 900ms cubic-bezier(0.16, 1, 0.3, 1) both; }
}
@keyframes device-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes device-emerge { from { clip-path: inset(100% -60px -80px -60px); } to { clip-path: inset(-60px -60px -80px -60px); } }
@keyframes device-rise-phone { from { transform: translate3d(0, 32px, 0); } to { transform: none; } }
@keyframes device-rise-laptop { from { transform: translate3d(0, 14px, 0); } to { transform: none; } }

.dl-h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); margin-bottom: 20px; }
/* Plataformas: un único panel con una fila por sistema y su estado real */
.dl-grid { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.dl-card { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 18px 20px; }
.dl-card + .dl-card { border-top: 1px solid var(--line); }
.dl-card.is-recommended { order: -1; background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0; }
.dl-card.is-recommended:only-child { border-radius: calc(var(--radius-lg) - 1px); }
.dl-card.is-recommended + .dl-card { border-top: 0; }
.dl-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--paper-2); color: var(--text); }
.dl-card.is-recommended .dl-icon { background: var(--brand); color: #fff; }
.dl-name h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 700; margin: 0; letter-spacing: 0; }
.dl-system { margin: 0; color: var(--muted); font-size: 0.92rem; }
.dl-for { position: absolute; top: 12px; right: 14px; margin: 0; background: var(--brand); color: #fff; font-size: 0.74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.dl-actions { grid-column: 1 / -1; display: grid; gap: 6px; }
.dl-state { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px; border-radius: 999px; border: 1.5px dashed var(--field-border); color: var(--muted); font-size: 0.86rem; font-weight: 650; }
.dl-state-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
@media (prefers-reduced-motion: no-preference) { .dl-state-dot { animation: dl-pulse 2.4s ease-in-out infinite; } }
@keyframes dl-pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--amber-soft); } 50% { box-shadow: 0 0 0 6px var(--amber-soft); } }
@media (min-width: 720px) {
  .dl-card { grid-template-columns: 52px minmax(0, 1fr) auto; padding: 18px 24px; }
  .dl-actions { grid-column: 3; grid-row: 1; justify-items: end; min-width: 220px; }
  .dl-card.is-recommended { padding-top: 26px; padding-bottom: 26px; }
}
.dl-btn { justify-content: center; gap: 8px; }
.dl-detail { font-size: 0.8rem; color: var(--muted); margin: 0 0 6px; }
.dl-version { margin: 14px 0 0; font-size: 0.85rem; color: var(--muted); }
.dl-adds { margin-top: 28px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.dl-add { padding: 4px 0; }
.dl-add h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.dl-add-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); }
.dl-add-ico svg { width: 20px; height: 20px; }
.dl-add .checks { color: var(--muted); font-size: 0.97rem; }
/* El navegador: la forma de empezar hoy */
.dl-web-band { background: var(--ink); color: var(--on-dark); padding: clamp(40px, 6vw, 72px) 0; position: relative; overflow: hidden; }
.dl-web-band::before { content: ""; position: absolute; left: -10%; bottom: -60%; width: 60vw; height: 60vw; background: radial-gradient(closest-side, rgb(221 51 51 / 22%), transparent); pointer-events: none; }
.dl-web-inner { position: relative; display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .dl-web-inner { grid-template-columns: 1fr auto; } }
.dl-web-band h2 { color: #fff; margin-bottom: 8px; }
.dl-web-band p { color: var(--on-dark-muted); max-width: 40em; margin: 0 0 16px; }
.dl-browsers { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.dl-browsers li { font-family: var(--mono); font-size: 0.82rem; padding: 4px 10px; border-radius: 8px; background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 12%); color: #fff; }
.dl-faq { max-width: 820px; }

@media print {
  .site-header, .site-footer, .cta-band, .skip { display: none; }
}
.ws-caption { position: absolute; bottom: 0; left: 0; margin: 0; }

/* Portátiles de 13-14" (p. ej. MacBook Pro 14": ~1512×830 útiles en el navegador). Con los tamaños de
   pantalla grande la portada llenaba toda la altura y obligaba a alejar el zoom: aquí se reducen los
   titulares y los márgenes verticales. No afecta a móviles ni a pantallas altas. */
@media (min-width: 980px) and (max-height: 940px) {
  h1 { font-size: clamp(2.3rem, 1.3rem + 2.4vw, 3.5rem); }
  .hero h1 { font-size: clamp(2.4rem, 1.3rem + 2.5vw, 3.6rem); }
  .page-hero h1 { font-size: clamp(2rem, 1.2rem + 1.8vw, 2.8rem); }
  h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); }
  .hero { padding-top: 28px; padding-bottom: 40px; }
  .page-hero { padding-top: 24px; padding-bottom: 28px; }
  .lead { font-size: 1.12rem; }
  .hero-actions { margin-top: 22px; }
  .flow-demo { padding-top: 16px; padding-bottom: 14px; }
  .flow-step { padding-top: 10px; padding-bottom: 10px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .section-tight { padding-top: 44px; padding-bottom: 44px; }
  .section-head { margin-bottom: 28px; }
  .cta-band { padding-top: 56px; padding-bottom: 56px; }
}

/* ─── Comparador «De WhatsApp a AllTasks» ─────────────────────────────────────
   Los tres casos ocupan la misma celda de la rejilla: el alto es el del más alto y no cambia al pasar de
   uno a otro (CLS 0). Solo se animan opacity y transform. */
.cmp { display: grid; gap: 20px; }
.cmp-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cmp-tabs button {
  font: inherit; font-size: 0.95rem; font-weight: 650; cursor: pointer; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: background var(--dur-press) var(--ease), border-color var(--dur-press) var(--ease), transform var(--dur-press) var(--ease);
}
.cmp-tabs button:hover { border-color: var(--brand); }
.cmp-tabs button:active { transform: scale(0.97); }
.cmp-tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
/* En el móvil, una sola fila que se desplaza en horizontal (sin barra visible) */
@media (max-width: 640px) {
  .cmp-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; }
  .cmp-tabs::-webkit-scrollbar { display: none; }
  .cmp-tabs button { flex: none; }
}
.cmp-stage { display: grid; }
.cmp-panel { grid-area: 1 / 1; display: grid; gap: 16px; align-items: center; }
.js .cmp-panel[hidden] { display: grid; visibility: hidden; opacity: 0; pointer-events: none; }
.cmp-panel.is-active { opacity: 1; }
@media (min-width: 820px) { .cmp-panel { grid-template-columns: 1fr auto 1fr; } }
.cmp-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; }
.cmp-before { background: var(--paper-2); }
.cmp-label { font-weight: 750; font-size: 0.95rem; margin: 0 0 12px; }
.cmp-label span { color: var(--muted); font-weight: 500; }
.cmp-foot { margin: auto 0 0; padding-top: 12px; font-size: 0.9rem; color: var(--muted); }
.cmp-arrow { font-size: 1.6rem; color: var(--brand); text-align: center; font-weight: 800; }
@media (max-width: 819px) { .cmp-arrow { transform: rotate(90deg); line-height: 1; } }
.cmp-chat { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cmp-msg { justify-self: start; max-width: 88%; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 8px 12px; display: flex; gap: 10px; align-items: flex-end; font-size: 0.95rem; }
.cmp-msg time { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.cmp-media { display: inline-flex; align-items: center; gap: 8px; }
.cmp-media svg { width: 28px; height: 28px; flex: none; padding: 6px; border-radius: 50%; background: var(--paper-3); color: var(--muted); }
.cmp-media span { display: grid; line-height: 1.25; }
.cmp-media small { color: var(--danger); font-size: 0.78rem; }
.cmp-ticket { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.cmp-ticket header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.cmp-ref { font-family: var(--mono); font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.cmp-badge { font-size: 0.78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.cmp-danger { background: var(--danger-soft); color: var(--danger-text); }
.cmp-amber { background: var(--amber-soft); color: var(--amber-text); }
.cmp-blue { background: var(--blue-soft); color: var(--blue-text); }
.cmp-ticket h3 { margin: 0 0 10px; font-size: 1.05rem; line-height: 1.25; }
.cmp-ticket dl { margin: 0; display: grid; gap: 6px; font-size: 0.92rem; }
.cmp-ticket dl div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; }
.cmp-ticket dt { color: var(--muted); }
.cmp-ticket dd { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; }
.cmp-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .cmp-panel { transition: opacity var(--dur-panel) var(--ease-out), visibility 0s linear var(--dur-panel); }
  .js .cmp-panel.is-active { transition: opacity var(--dur-panel) var(--ease-out); }
  .js .cmp-panel .cmp-ticket { transition: transform var(--dur-panel) var(--ease-out); transform: translateY(8px) scale(0.98); }
  .js .cmp-panel.is-active .cmp-ticket { transform: none; }
  .js .cmp-panel .cmp-msg { transition: opacity var(--dur-panel) var(--ease-out), transform var(--dur-panel) var(--ease-out); opacity: 0; transform: translateY(6px); }
  .js .cmp-panel.is-active .cmp-msg { opacity: 1; transform: none; }
  .js .cmp-panel.is-active .cmp-msg:nth-child(2) { transition-delay: 40ms; }
  .js .cmp-panel.is-active .cmp-msg:nth-child(3) { transition-delay: 80ms; }
  .js .cmp-panel.is-active .cmp-msg:nth-child(4) { transition-delay: 120ms; }
}

/* ─── Calculadora de ahorro ─────────────────────────────────────────────────── */
.calc { margin-top: 28px; display: grid; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
@media (min-width: 860px) { .calc { grid-template-columns: 1fr 1fr; align-items: start; } }
.calc h3 { margin-bottom: 14px; }
.calc-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-top: 40px; }
.calc label { display: flex; justify-content: space-between; gap: 12px; font-weight: 650; margin-top: 12px; }
.calc output { font-variant-numeric: tabular-nums; color: var(--brand-strong); font-weight: 800; min-width: 3.5ch; text-align: right; white-space: nowrap; }
.calc input[type="range"] { width: 100%; margin: 10px 0 4px; accent-color: var(--brand); height: 28px; }
.calc-note { font-size: 0.86rem; color: var(--muted); margin: 10px 0 0; }
.calc-result { display: grid; gap: 10px; }
.calc-row, .calc-save { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--paper-2); }
.calc-row small { grid-column: 2; text-align: right; color: var(--muted); font-size: 0.78rem; }
.calc-row strong, .calc-save strong { font-variant-numeric: tabular-nums; font-size: 1.25rem; }
.calc-ours { background: var(--brand-soft); }
.calc-save { background: var(--green-soft); color: var(--green-text); }
.calc-save strong { font-family: var(--display); font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); }
.calc-result .btn { justify-self: start; }

/* ─── Llamada final por sector ──────────────────────────────────────────────── */
.sector-cta > .wrap { position: relative; }
.sector-cta p { color: var(--on-dark-muted); max-width: 60ch; }
.sector-pills { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.sector-pill {
  font: inherit; font-size: 0.95rem; font-weight: 650; cursor: pointer; padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 22%); background: transparent; color: var(--on-dark);
  transition: background var(--dur-press) var(--ease), border-color var(--dur-press) var(--ease), transform var(--dur-press) var(--ease);
}
.sector-pill:hover { background: rgb(255 255 255 / 8%); }
.sector-pill:active { transform: scale(0.97); }
.sector-pill[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.sector-cta .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Botones pequeños y de icono ─────────────────────────────────────────── */
.btn-sm { padding: 7px 14px; font-size: 0.9rem; min-height: 36px; }
.btn-icon { font: inherit; cursor: pointer; width: 36px; height: 36px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: inline-grid; place-items: center; }
.btn-icon:hover { color: var(--text); border-color: var(--field-border); }

/* ─── Generador de partes de trabajo ──────────────────────────────────────── */
.parte { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .parte { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.parte-form { display: grid; gap: 18px; }
.parte-form fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px 18px; margin: 0; display: grid; gap: 12px; background: var(--surface); }
@media (min-width: 560px) { .parte-form fieldset { grid-template-columns: 1fr 1fr; } }
.parte-form legend { font-weight: 750; padding: 0 6px; }
.pf { display: grid; gap: 5px; font-size: 0.92rem; min-width: 0; }
.pf > span { font-weight: 650; }
.pf b { color: var(--danger); font-weight: 700; }
.pf-full { grid-column: 1 / -1; }
.pf input, .pf select, .pf textarea, .parte-mat input {
  font: inherit; font-size: 16px; /* 16 px: iOS no hace zoom al enfocar */ width: 100%; min-width: 0;
  padding: 10px 12px; border: 1px solid var(--field-border); border-radius: 10px; background: var(--paper); color: var(--text);
}
.pf textarea { resize: vertical; min-height: 84px; }
.pf input:focus, .pf select:focus, .pf textarea:focus, .parte-mat input:focus { outline: none; box-shadow: var(--focus); }
.parte-mats { display: grid; gap: 8px; margin-bottom: 4px; }
.parte-mat { display: grid; grid-template-columns: minmax(0, 1fr) 76px 36px; gap: 8px; align-items: center; }
.parte-firma { width: 100%; height: 150px; border: 1px dashed var(--field-border); border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; }
.parte-form > .btn { justify-self: start; }
.parte-status:empty { display: none; }
.parte-status { color: var(--danger-text); background: var(--danger-soft); padding: 10px 14px; border-radius: 10px; margin: 0; }
.parte-preview-wrap { position: sticky; top: calc(var(--header-h) + 16px); }
/* Hoja tipo A4: siempre clara, como el PDF */
.parte-preview { background: #fff; color: #17191e; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-lg); padding: 24px; font-size: 0.82rem; line-height: 1.45; min-height: 420px; overflow-wrap: anywhere; }
.parte-preview header { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #ddd8ce; padding-bottom: 10px; margin-bottom: 12px; }
.parte-preview header div { display: grid; }
.parte-preview header span { color: #565c66; }
.parte-preview .pv-title { text-align: right; }
.parte-preview .pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0 0 8px; }
.parte-preview dt, .parte-preview h4 { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #565c66; margin: 0; }
.parte-preview h4 { margin-top: 12px; }
.parte-preview dd { margin: 0; }
.parte-preview p { margin: 2px 0 0; }
.parte-preview table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.parte-preview th, .parte-preview td { text-align: left; border-bottom: 1px solid #eee9e0; padding: 3px 0; }
.parte-preview th:last-child, .parte-preview td:last-child { text-align: right; width: 60px; }
.parte-preview .pv-sign { margin-top: 16px; }
.parte-preview .pv-sign div { display: grid; gap: 4px; width: 220px; max-width: 100%; }
.parte-preview .pv-sign span { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; color: #565c66; }
.parte-preview .pv-sign img { border: 1px solid #ddd8ce; border-radius: 4px; width: 100%; height: auto; }
.parte-preview .pv-sign i { border: 1px solid #ddd8ce; border-radius: 4px; height: 60px; display: grid; place-items: center; color: #565c66; }
.parte-banner { position: fixed; z-index: 40; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(100% - 32px, 720px); display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; background: var(--ink); color: var(--on-dark); padding: 14px 16px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.parte-banner[hidden] { display: none; }
.parte-banner p { margin: 0; flex: 1 1 320px; font-size: 0.95rem; }
.parte-banner .btn-icon { background: transparent; color: var(--on-dark-muted); border-color: rgb(255 255 255 / 22%); }
@media (prefers-reduced-motion: no-preference) {
  .parte-banner:not([hidden]) { animation: banner-in var(--dur-panel) var(--ease-out); }
  @keyframes banner-in { from { opacity: 0; transform: translate(-50%, 12px); } }
}

/* ─── Artículos ───────────────────────────────────────────────────────────── */
.article-body section { scroll-margin-top: calc(var(--header-h) + 16px); }
.guide-aside nav.box ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.article-cta { margin: 28px 0; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--brand-soft); border: 1px solid var(--line); }
.article-cta-t { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.1; margin-bottom: 6px; }
.article-cta .btn { margin: 4px 8px 0 0; }

.toc-mobile { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin-bottom: 24px; background: var(--surface); }
.toc-mobile summary { cursor: pointer; font-weight: 700; }
.toc-mobile ol { margin: 10px 0 4px; padding-left: 1.2em; display: grid; gap: 6px; }
@media (min-width: 1000px) { .toc-mobile { display: none; } }
@media (max-width: 999px) { .guide-aside nav.box { display: none; } }
