/* Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V4
 * Sinsonte home, Nov 2026 relaunch ("Tus reuniones no caducan"), trimmed second pass.
 * Loaded by the home (landing/index.html, es/index.html, pt/index.html) and its two
 * satellite pages: agents.html, es/agentes.html, pt/agentes.html (Para agentes) and
 * faq.html, es/preguntas.html, pt/perguntas.html (full FAQ).
 * Colours and type come from css/tokens.css (the measured brand system); the few
 * values that system does not carry are lifted into the block below, never inlined.
 *
 * Rules this file keeps:
 * - Grana (--color-grana) appears only on the primary CTA and the recording dot.
 * - Ámbar marks citations (▶ mm:ss) and nothing else; it never carries light text.
 * - Body text uses --color-ink / --color-muted-strong only (--color-muted fails
 *   AA on Papel at body size: 3.6:1).
 * - Motion is transform/opacity only and lives behind prefers-reduced-motion.
 * - CSP is style-src 'self': no inline styles anywhere in the markup. */

:root {
  --home-max: 80rem;
  --home-display: clamp(3.1rem, 10.2vw, 10rem);
  --home-display-2: clamp(2.2rem, 5.4vw, 4.75rem);
  --home-display-3: clamp(1.75rem, 3.6vw, 2.75rem);
  --home-numeral: clamp(2.4rem, 4.6vw, 3.75rem);
  --home-bar-h: 4rem;
  --home-cell-pad: clamp(1.1rem, 2.2vw, 1.75rem);
  --color-on-ink-btn: var(--color-bg);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: calc(var(--home-bar-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-xs); }
::selection { background: var(--color-ambar-wash); color: var(--color-ink); }

.skip {
  position: absolute; left: var(--space-sm); top: -4rem; z-index: 50;
  background: var(--color-ink); color: var(--color-bg);
  padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-sm);
  font-family: var(--font-display); text-decoration: none;
}
.skip:focus { top: var(--space-sm); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.anchor { display: block; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--space-gutter), var(--home-max)); margin-inline: auto; }

.kicker {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--color-muted-strong);
}
.display {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 0.98;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}
.h2 { font-size: var(--home-display-2); }
.lead { font-size: var(--text-lg); line-height: 1.55; color: var(--color-muted-strong); max-width: 38rem; text-wrap: pretty; }
.prose { max-width: var(--measure); color: var(--color-muted-strong); text-wrap: pretty; }
.prose strong { color: var(--color-ink); font-weight: 600; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  min-height: 2.875rem; padding: 0 var(--space-md);
  border: var(--rule-hair) solid transparent; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-size: var(--text-md); letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn--primary { background: var(--color-grana); color: var(--color-on-grana); }
.btn--primary:hover { background: var(--color-grana-pressed); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; border-color: var(--color-rule-strong); color: var(--color-ink); }
.btn--ghost:hover { border-color: var(--color-ink); }
.btn--sm { min-height: 2.5rem; padding: 0 var(--space-sm); font-size: var(--text-base); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.arrow::after { content: "\2192"; font-family: var(--font-text); }

/* ── Citation chip (Ámbar) ────────────────────────────────────────────── */
.cite {
  display: inline-flex; align-items: center; gap: 0.3em;
  padding: 0.05em 0.5em 0.05em 0.42em;
  border-radius: var(--radius-pill);
  background: var(--color-ambar);
  color: var(--color-on-ambar);
  font-family: var(--font-mono); font-size: 0.78em; line-height: 1.5;
  font-variant-numeric: tabular-nums; white-space: nowrap; vertical-align: 0.08em;
}
.cite::before {
  content: ""; width: 0.5em; height: 0.6em; background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ── Top bar ──────────────────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 30;
  background: var(--color-bg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.bar__in { display: flex; align-items: center; gap: var(--space-sm); height: var(--home-bar-h); }
.bar__mark { display: inline-flex; flex: none; color: var(--color-ink); }
.lockup { width: 104px; height: auto; }
.lockup__mark, .lockup__idot { fill: var(--color-mark); color: var(--color-mark); }
.lockup__word { fill: var(--color-ink); }
.bar__nav { display: none; gap: var(--space-md); margin-inline-start: var(--space-md); }
.bar__nav a {
  font-family: var(--font-display); font-size: var(--text-base); color: var(--color-muted-strong);
  text-decoration: none; white-space: nowrap;
}
.bar__nav a:hover { color: var(--color-ink); }
.bar__tools { display: flex; align-items: center; gap: var(--space-2xs); margin-inline-start: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  min-width: 2.5rem; height: 2.5rem; padding: 0 0.55rem;
  border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-pill);
  background: transparent; cursor: pointer;
  font-family: var(--font-display); font-size: var(--text-sm); letter-spacing: 0.04em;
}
.icon-btn:hover { border-color: var(--color-ink); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-icon--moon { display: none; }
:root[data-theme="dark"] .theme-icon--sun { display: none; }
:root[data-theme="dark"] .theme-icon--moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon--sun { display: none; }
  :root:not([data-theme="light"]) .theme-icon--moon { display: block; }
}
@media (max-width: 23.9rem) { .bar__cta { padding: 0 0.8rem; } .lockup { width: 92px; } }
@media (min-width: 62rem) { .bar__nav { display: flex; } }

/* Language menu — native popover, light-dismiss for free. */
.lang-menu[popover] {
  position: fixed; inset: auto; top: calc(var(--home-bar-h) - 0.25rem); right: var(--space-gutter);
  margin: 0; padding: var(--space-3xs);
  min-width: 12rem;
  background: var(--color-bg); color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-md);
}
.lang-menu a {
  display: flex; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-sm);
  text-decoration: none; font-family: var(--font-display);
}
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--color-panel); }
.lang-menu a[aria-current="true"] { font-weight: 500; }
.lang-menu a[aria-current="true"] span { color: var(--color-quetzal-ink); }
.lang-menu a[aria-current="true"] span::before { content: "\2713\00a0"; font-family: var(--font-text); }
.lang-menu span { color: var(--color-muted-strong); font-size: var(--text-sm); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(2.5rem, 7vw, 6rem) var(--space-3xl); }
.hero__title { font-size: var(--home-display); margin-block: var(--space-sm) clamp(1.75rem, 4vw, 3.5rem); max-width: 14ch; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero__sub {
  font-family: var(--font-serif); font-weight: 600; font-size: var(--text-2xl);
  line-height: 1.15; letter-spacing: -0.01em; margin-bottom: var(--space-md);
}
.hero__sub span { display: block; color: var(--color-muted-strong); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-lg); }
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* ── Hero demo: recording → processing → summary ──────────────────────── */
.demo {
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  padding: var(--home-cell-pad);
  min-width: 0;
}
.demo__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  padding-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule);
}
.demo__title { font-family: var(--font-display); font-size: var(--text-base); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo__state {
  display: inline-flex; align-items: center; gap: 0.45rem; flex: none;
  font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-muted-strong);
  font-variant-numeric: tabular-nums;
}
.demo__dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--color-grana); }
.demo[data-stage="tx"] .demo__dot { background: var(--color-ambar); }
.demo[data-stage="done"] .demo__dot { background: var(--color-quetzal); }
.demo figcaption { margin-top: var(--space-md); font-size: var(--text-xs); color: var(--color-muted-strong); }

/* Loop (home.js, ~8 s): rec (Canta sings, waveform moves, clock runs) → tx (one transcript
   line types itself) → done (action items with their ▶ mm:ss, then the summary card).
   The markup ships in the final state; only .is-running hides what has not happened yet,
   so no-JS and reduced-motion visitors see the whole result. */
.demo__rec { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); min-width: 0; }

/* "Canta": the C2 mark, ring closed (= recording), arcs leaving the beak. Grana on Papel, Papel on
   Tinta (--color-mark). The arcs' opacity/scale are SVG attributes set by home.js, not styles. */
.canta { display: block; flex: none; height: 3.25rem; width: auto; color: var(--color-mark); }
.canta__ring { fill: none; stroke: currentColor; }
.canta__fill { fill: currentColor; }
.canta__arcs path { fill: none; stroke: currentColor; stroke-width: 26; stroke-linecap: round; }

/* Waveform: static bars of varied height (a finished recording); they move only while recording. */
.wave { display: flex; align-items: center; justify-content: space-between; gap: 2px; flex: 1 1 auto; min-width: 0; height: 2.75rem; }
.wave i { display: block; flex: 0 1 4px; min-width: 2px; height: 100%; border-radius: 2px; background: var(--color-muted-strong); transform: scaleY(0.3); transform-origin: center; }
.wave i:nth-child(6n+1) { transform: scaleY(0.42); }
.wave i:nth-child(6n+2) { transform: scaleY(0.78); }
.wave i:nth-child(6n+3) { transform: scaleY(0.55); }
.wave i:nth-child(6n+4) { transform: scaleY(0.95); }
.wave i:nth-child(6n+5) { transform: scaleY(0.36); }
.wave i:nth-child(7n) { transform: scaleY(0.66); }
.wave i:nth-child(11n) { transform: scaleY(0.22); }

.demo__tx {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem var(--space-2xs);
  margin-top: var(--space-sm); padding-block: var(--space-sm);
  border-block: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-base); line-height: 1.45;
}
.demo__ts { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted-strong); font-variant-numeric: tabular-nums; }
.demo__said { flex-basis: 100%; min-height: 2.9em; }
.demo__said.is-typing::after {
  content: ""; display: inline-block; width: 2px; height: 1.05em; margin-inline-start: 1px;
  background: var(--color-ink); vertical-align: -0.15em;
}
.demo__out { margin-top: var(--space-md); }
.demo__card {
  margin-top: var(--space-md); padding: var(--space-sm) var(--space-md);
  border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-sm);
  background: var(--color-bg);
}
.tag {
  display: inline-flex; padding: 0 0.5em; border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-pill); font-family: var(--font-display); font-size: var(--text-xs);
  letter-spacing: 0.03em; color: var(--color-muted-strong); white-space: nowrap; line-height: 1.7;
}

.out__label {
  font-family: var(--font-display); font-size: var(--text-xs); letter-spacing: var(--track-caps);
  text-transform: uppercase; color: var(--color-muted-strong); margin-bottom: var(--space-2xs);
}
.out__summary { font-size: var(--text-base); line-height: 1.55; }
.todo { display: grid; gap: var(--space-xs); }
.todo li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xs);
  font-size: var(--text-base); line-height: 1.45;
}
.todo li::before {
  content: ""; width: 0.95rem; height: 0.95rem; margin-top: 0.2rem;
  border: var(--rule-thick) solid var(--color-rule-strong); border-radius: var(--radius-xs);
}
.todo .tag { margin-inline-end: 0.3em; }
.who { font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .demo__tx, .demo__out .out__label, .demo .todo li, .demo__card {
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  }
  .demo.is-running[data-stage="rec"] .demo__tx,
  .demo.is-running:not([data-stage="done"]) .demo__out .out__label,
  .demo.is-running:not([data-stage="done"]) .todo li,
  .demo.is-running:not([data-stage="done"]) .demo__card { opacity: 0; transform: translateY(0.5rem); }
  .demo.is-running[data-stage="done"] .todo li:nth-child(1) { transition-delay: 0.15s; }
  .demo.is-running[data-stage="done"] .todo li:nth-child(2) { transition-delay: 0.45s; }
  .demo.is-running[data-stage="done"] .todo li:nth-child(3) { transition-delay: 0.75s; }
  .demo.is-running[data-stage="done"] .demo__card { transition-delay: 1.3s; }
  .demo.is-running[data-stage="done"] .demo__card .out__label { transition-delay: 1.3s; }
  .demo.is-running[data-stage="rec"] .demo__dot { animation: blink 1.2s steps(2, jump-none) infinite; }
  .demo.is-running[data-stage="rec"] .wave i { background: var(--color-ink); animation: wave 0.7s ease-in-out infinite alternate; }
  .demo.is-running[data-stage="rec"] .wave i:nth-child(3n+1) { animation-duration: 0.55s; animation-delay: -0.2s; }
  .demo.is-running[data-stage="rec"] .wave i:nth-child(4n+2) { animation-duration: 0.85s; animation-delay: -0.5s; }
  .demo.is-running[data-stage="rec"] .wave i:nth-child(5n+3) { animation-duration: 0.62s; animation-delay: -0.35s; }
  .demo.is-running .demo__said.is-typing::after { animation: blink 0.8s steps(2, jump-none) infinite; }
}
@keyframes blink { 50% { opacity: 0.2; } }
@keyframes wave { from { transform: scaleY(0.18); } to { transform: scaleY(1); } }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding-block: var(--space-3xl); border-top: var(--rule-hair) solid var(--color-rule); }
.section__head { display: grid; gap: var(--space-sm); align-content: start; margin-bottom: clamp(2rem, 4.5vw, 3.75rem); }
.section__head .prose { font-size: var(--text-lg); }
@media (min-width: 60rem) {
  .section__head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: var(--space-xl); }
  .section__head--split .kicker { grid-column: 1 / -1; }
}

/* ── Cards (agents page: "Con la IA que ya pagas") ─────────────────────── */
.cell {
  border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-md);
  padding: var(--home-cell-pad);
  display: flex; flex-direction: column; gap: var(--space-sm);
  min-width: 0;
}
.cell p { color: var(--color-muted-strong); font-size: var(--text-base); text-wrap: pretty; }
.cell--ink { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-bg); }
.cell--ink p { color: var(--color-rule-strong); }
.ai-card { max-width: 42rem; }
.ai-card__title { font-family: var(--font-serif); font-weight: 600; font-size: var(--text-2xl); line-height: 1.12; letter-spacing: -0.01em; }
.ais { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.ais li {
  font-family: var(--font-display); font-size: var(--text-sm); padding: 0.2rem 0.7rem;
  border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-pill); white-space: nowrap;
}
.cell--ink .ais li { border-color: var(--color-muted-strong); }
.ways__label {
  margin-top: var(--space-xs);
  font-family: var(--font-display); font-size: var(--text-xs); letter-spacing: var(--track-caps); text-transform: uppercase;
}
.ways { display: grid; gap: var(--space-3xs); font-size: var(--text-sm); }
.ways li { display: flex; gap: var(--space-2xs); }
.ways li::before { content: "\2014"; color: var(--color-muted); }
.cell--ink .ways li { color: var(--color-bg); }

/* Carry-over chip (last pipeline step) */
.carry {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs);
  justify-self: start; margin-top: var(--space-2xs);
  padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); background: var(--color-panel);
  font-size: var(--text-base);
}
.pipe__step p.carry { color: var(--color-ink); }
.carry .meta { font-family: var(--font-display); font-size: var(--text-xs); color: var(--color-muted-strong); letter-spacing: 0.03em; }

.split { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-2xl); align-items: start; }
  .split > .story__aside { position: sticky; top: calc(var(--home-bar-h) + var(--space-xl)); }
}

/* ── Pipeline (scroll-driven) ─────────────────────────────────────────── */
.pipe { position: relative; display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); padding-inline-start: clamp(1.75rem, 4vw, 3rem); counter-reset: step; }
.pipe::before, .pipe::after {
  content: ""; position: absolute; inset-block: 0.6rem; inset-inline-start: 0.45rem; width: 2px;
  background: var(--color-rule-strong);
}
.pipe::after { background: var(--color-quetzal); transform-origin: top; transform: scaleY(1); }
.pipe__step { position: relative; display: grid; gap: var(--space-2xs); max-width: 46rem; }
.pipe__step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; inset-inline-start: calc(-1 * clamp(1.75rem, 4vw, 3rem) - 0.05rem); top: 0.35rem;
  width: 1rem; height: 1rem; border-radius: 50%; background: var(--color-bg);
  border: var(--rule-thick) solid var(--color-quetzal); color: transparent; font-size: 0; z-index: 1;
}
.pipe__step h3 {
  font-family: var(--font-serif); font-weight: 600; font-size: var(--text-2xl); line-height: 1.1; letter-spacing: -0.01em;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem var(--space-sm);
}
.pipe__step h3 small { font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-muted-strong); font-weight: 500; letter-spacing: 0.01em; }
.pipe__step p { color: var(--color-muted-strong); max-width: var(--measure); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pipe { view-timeline: --pipe block; }
    .pipe::after { animation: rail linear both; animation-timeline: --pipe; animation-range: entry 60% exit 40%; }
  }
}
@keyframes rail { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ── Secondary text links ("Metodología →", "Todas las preguntas →") ─── */
.more {
  font-family: var(--font-display); color: var(--color-ink);
  text-underline-offset: 0.25em; text-decoration-thickness: 1px; white-space: nowrap;
}
.more:hover { text-decoration-thickness: 2px; }
h2.kicker { font-weight: inherit; }

/* ── Imports, as one line ─────────────────────────────────────────────── */
.section--thin { padding-block: var(--space-xl); }
.line { display: grid; gap: var(--space-xs); }
.line__text { font-size: var(--text-lg); line-height: 1.5; color: var(--color-muted-strong); max-width: 52rem; text-wrap: pretty; }
.line__text b { color: var(--color-ink); font-weight: 600; }
@media (min-width: 60rem) {
  .line { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-2xl); align-items: baseline; }
}

/* ── Proof strip, right under the hero (dark in both themes) ──────────── */
.proof { background: var(--dark-bg); color: var(--dark-ink); border-block: var(--rule-hair) solid var(--dark-rule); padding-block: var(--space-xl); }
.proof__label { color: var(--dark-muted-strong); margin-bottom: var(--space-sm); }
.proof__stats { display: grid; grid-template-columns: minmax(0, 1fr); border-top: var(--rule-hair) solid var(--dark-rule-strong); }
.proof__stats li { border-bottom: var(--rule-hair) solid var(--dark-rule-strong); min-width: 0; }
.proof__stat {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: var(--space-md); row-gap: 0.1rem;
  align-items: baseline; padding-block: var(--space-sm); color: inherit; text-decoration: none;
}
.proof__n {
  grid-row: span 2; font-family: var(--font-serif); font-weight: 600; font-size: var(--home-numeral);
  line-height: 1; letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap;
}
.proof__n small { font-size: 0.45em; letter-spacing: 0; }
.proof__n sup { font-size: 0.4em; color: var(--dark-muted-strong); margin-inline-start: 0.1em; }
.proof__what { font-size: var(--text-base); color: var(--dark-ink); text-wrap: pretty; }
.proof__vs { font-size: var(--text-sm); color: var(--dark-muted-strong); }
.proof__stat:hover .proof__what { text-decoration: underline; text-underline-offset: 0.2em; }
.proof__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-md); }
.proof__foot p { font-size: var(--text-sm); color: var(--dark-muted-strong); max-width: 52rem; }
.proof__note { display: block; }
.proof .more { color: var(--dark-ink); }
@media (min-width: 52rem) {
  .proof__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof__stats li { border-bottom: 0; border-inline-start: var(--rule-hair) solid var(--dark-rule-strong); padding-inline: var(--space-lg); }
  .proof__stats li:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .proof__stat { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-md) 0; }
  .proof__n { grid-row: auto; margin-bottom: var(--space-2xs); }
}

/* ── Gratis vs Sinsonte Cloud ─────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); align-items: start; }
.plan {
  display: flex; flex-direction: column; gap: var(--space-md); min-width: 0;
  padding: var(--home-cell-pad);
  border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-md);
}
/* Cloud is the primary card: ink border, panel ground, the filled badge. Free stays
   honest and quiet: hairline border, its promise in the display face. */
.plan--cloud { background: var(--color-panel); border: var(--rule-thick) solid var(--color-ink); }
.plan__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2xs) var(--space-sm);
  padding-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule);
}
.plan__head h3 { font-family: var(--font-serif); font-weight: 600; font-size: var(--text-2xl); line-height: 1.1; letter-spacing: -0.01em; }
.plan--cloud .plan__head h3 { font-size: var(--text-3xl); }
.plan__tag { font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-muted-strong); }
.plan--cloud .plan__tag { padding: 0 0.7em; border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-bg); }
.plan__promise { font-family: var(--font-serif); font-weight: 600; font-size: var(--text-lg); line-height: 1.3; }
.plan--cloud .plan__promise {
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm);
  letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--color-muted-strong);
}
.plan__list { display: grid; gap: var(--space-sm); align-items: start; }
.plan__list li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-xs); font-size: var(--text-md); line-height: 1.4; }
.plan__list li::before {
  content: ""; grid-row: span 2; width: 0.5rem; height: 0.5rem; margin-top: 0.55em;
  border-radius: 50%; background: var(--color-quetzal);
}
.plan__list--adds li::before {
  content: "+"; width: 1ch; height: auto; margin-top: 0; border-radius: 0; background: none;
  font-family: var(--font-display); font-weight: 500; line-height: 1.4; color: var(--color-quetzal-ink);
}
.plan__who { grid-column: 2; display: block; margin-top: 0.15rem; font-size: var(--text-sm); line-height: 1.4; color: var(--color-muted-strong); }
.plan__cta { align-self: flex-start; margin-top: auto; }
@media (min-width: 52rem) { .plans { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
@media (min-width: 75rem) { .plan__list--adds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--space-lg); } }

/* Trust row: only claims the privacy page already makes. */
.trust {
  display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); margin-top: var(--space-lg);
  font-size: var(--text-sm); color: var(--color-muted-strong);
}
.trust li { display: inline-flex; align-items: baseline; gap: 0.55em; }
.trust li::before { content: ""; flex: none; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--color-quetzal); transform: translateY(-0.1em); }
.trust a { color: var(--color-ink); text-underline-offset: 0.2em; }

/* ── Para agentes teaser ──────────────────────────────────────────────── */
.teaser { display: grid; gap: var(--space-sm); justify-items: start; }
.teaser__title { font-size: var(--home-display-3); max-width: 26ch; }

/* ── Agents ───────────────────────────────────────────────────────────── */
.agents { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.agents__points { display: grid; gap: var(--space-md); }
.agents__points li { display: grid; gap: var(--space-3xs); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.agents__points b { font-family: var(--font-display); font-weight: 500; font-size: var(--text-md); }
.agents__points span { color: var(--color-muted-strong); font-size: var(--text-base); }
.llms { margin: 0; border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-md); overflow: hidden; min-width: 0; }
.llms figcaption {
  display: flex; justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap;
  padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule);
  font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-muted-strong);
}
.llms pre {
  margin: 0; padding: var(--space-sm); background: var(--color-panel);
  font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere; color: var(--color-ink);
}
.agents__links { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-lg); }
@media (min-width: 60rem) { .agents { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--space-2xl); } }

/* ── Waitlist ─────────────────────────────────────────────────────────── */
.notify { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
.notify__title { font-size: var(--home-display-2); margin-block: var(--space-sm); }
.choice-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xs); }
.choice-pair .choice { align-items: center; }
.choice-pair .choice input { margin-top: 0; }
.form { display: grid; gap: var(--space-md); }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); min-width: 0; }
.form legend { font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-muted-strong); margin-bottom: var(--space-2xs); padding: 0; }
.choice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xs); align-items: start;
  padding: var(--space-sm); border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-md); cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--color-ink); background: var(--color-panel); }
.choice input { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--color-ink); }
.choice b { display: block; font-family: var(--font-display); font-weight: 500; }
.choice span span { display: block; font-size: var(--text-sm); color: var(--color-muted-strong); }
.field { display: grid; gap: var(--space-3xs); }
.field label { font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-muted-strong); }
.field__row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.field input[type="email"] {
  flex: 1 1 14rem; min-width: 0; min-height: 2.875rem; padding: 0 var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-pill);
  background: var(--color-bg); font-size: var(--text-md);
}
.field input[type="email"]:focus-visible { outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--color-accent-ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__msg {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xs); align-items: baseline;
  font-size: var(--text-base); padding: var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-md);
}
.form__msg::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--color-quetzal); transform: translateY(-0.1em); }
.form__msg--err::before { background: var(--color-muted-strong); }
.form__msg a { font-weight: 600; }
.form__note { font-size: var(--text-sm); color: var(--color-muted-strong); }
@media (min-width: 60rem) { .notify { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--space-2xl); } }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { border-top: var(--rule-hair) solid var(--color-ink); max-width: 56rem; }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md);
  padding-block: var(--space-md); cursor: pointer; list-style: none;
  font-family: var(--font-serif); font-weight: 600; font-size: var(--text-xl); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-muted-strong); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: var(--space-md); color: var(--color-muted-strong); max-width: var(--measure); }

.faq__more { margin-top: var(--space-lg); }

/* ── Satellite pages (agentes, preguntas) ─────────────────────────────── */
.subhero { padding-block: clamp(2.5rem, 7vw, 6rem) var(--space-2xl); }
.subhero__title { font-size: var(--home-display-2); margin-block: var(--space-sm) var(--space-md); max-width: 20ch; }
.cta-band { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-md); }
.cta-band__title { font-size: var(--home-display-3); margin-bottom: var(--space-2xs); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-2xl) var(--space-xl); }
.foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-md); }
.foot__brand { grid-column: 1 / -1; display: grid; gap: var(--space-xs); }
.foot__brand p { color: var(--color-muted-strong); font-size: var(--text-sm); max-width: 28rem; }
.foot h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--color-muted-strong); margin-bottom: var(--space-xs); }
.foot ul { display: grid; gap: var(--space-2xs); }
.foot a { text-decoration: none; white-space: nowrap; font-size: var(--text-base); }
.foot a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.foot__legal { margin-top: var(--space-xl); font-size: var(--text-sm); color: var(--color-muted-strong); }
@media (min-width: 52rem) {
  .foot__grid { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); }
  .foot__brand { grid-column: auto; }
}

/* ── How it works: sticky story ───────────────────────────────────────
   Wide screens: the head and a small stage stick on the left while the three steps
   scroll on the right; the step crossing the middle is active (home.js) and the stage
   shows its panel. No JS / reduced motion: no dimming, the stage shows the result. */
.story__aside { min-width: 0; }
.story__stage { display: none; }
@media (min-width: 60rem) {
  .story__stage {
    display: grid; align-items: center; min-height: 10.5rem;
    padding: var(--home-cell-pad); border: var(--rule-hair) solid var(--color-rule-strong);
    border-radius: var(--radius-md); background: var(--color-panel);
  }
  .story__panel { grid-area: 1 / 1; min-width: 0; opacity: 0; transform: translateY(0.5rem); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
  .story:not([data-active]) .story__panel[data-story-panel="3"],
  .story[data-active="1"] .story__panel[data-story-panel="1"],
  .story[data-active="2"] .story__panel[data-story-panel="2"],
  .story[data-active="3"] .story__panel[data-story-panel="3"] { opacity: 1; transform: none; }
  .story.is-live .pipe { padding-block: 8vh 24vh; gap: 24vh; }
  .story.is-live[data-active] .pipe__step { opacity: 0.4; transition: opacity var(--dur-slow) var(--ease-out); }
  .story.is-live[data-active] .pipe__step.is-active { opacity: 1; }
}
.story.is-live .pipe__step::before { transition: background-color var(--dur-slow) var(--ease-out); }
.story.is-live .pipe__step.is-active::before { background: var(--color-quetzal); }
.story__rec {
  display: flex; align-items: center; gap: 0.45rem; margin-bottom: var(--space-sm);
  font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-muted-strong); font-variant-numeric: tabular-nums;
}
.wave--story { height: 3.5rem; }
.lines { display: grid; gap: var(--space-sm); }
.lines li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem var(--space-2xs); font-size: var(--text-base); }
.lines li > span:last-child { flex-basis: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .story.is-onscreen[data-active="1"] .story__rec .demo__dot { animation: blink 1.2s steps(2, jump-none) infinite; }
  .story.is-onscreen[data-active="1"] .wave--story i { background: var(--color-ink); animation: wave 0.7s ease-in-out infinite alternate; }
  .story.is-onscreen[data-active="1"] .wave--story i:nth-child(3n+1) { animation-duration: 0.55s; animation-delay: -0.2s; }
  .story.is-onscreen[data-active="1"] .wave--story i:nth-child(4n+2) { animation-duration: 0.85s; animation-delay: -0.5s; }
  .story.is-onscreen[data-active="1"] .wave--story i:nth-child(5n+3) { animation-duration: 0.62s; animation-delay: -0.35s; }
}

/* ── Language marquee (foot of the proof strip) ──────────────────────────
   Four identical tracks (three aria-hidden) slide by one track width: seamless at
   any viewport. Paused off screen by home.js; static under reduced motion. */
.langs {
  margin-top: var(--space-lg); padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--dark-rule-strong); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, currentColor 6%, currentColor 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, currentColor 6%, currentColor 94%, transparent);
}
.langs__rail { display: flex; width: max-content; }
.langs__track { display: flex; flex: none; }
.langs__track li {
  font-family: var(--font-serif); font-weight: 600; font-size: var(--home-display-3);
  line-height: 1.25; letter-spacing: -0.01em; white-space: nowrap; color: var(--dark-ink);
}
.langs__track li::after { content: "\00b7"; margin-inline: 0.55em; color: var(--dark-muted-strong); }
@media (prefers-reduced-motion: no-preference) {
  .langs__rail { animation: marquee 36s linear infinite; }
  .langs.is-paused .langs__rail { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-25%); } }

/* ── Scroll reveals: opacity + 12px ──────────────────────────────────────
   Scroll-driven where supported; elsewhere home.js adds .reveal-io to <html> and
   .is-in per element (500 ms ease-out). Uses `translate`, not `transform`, so the
   hover lift below still composes with it. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
  .reveal-io .reveal { transition: opacity 500ms var(--ease-out), translate 500ms var(--ease-out), transform var(--dur-base) var(--ease-out); }
  .reveal-io .reveal:not(.is-in) { opacity: 0; translate: 0 12px; }
}
@keyframes reveal { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: none; } }

/* ── Hover micro-interactions ────────────────────────────────────────── */
.cite { transition: box-shadow var(--dur-base) var(--ease-out); }
.cite:hover, .todo li:hover .cite, .carry:hover .cite, .out__summary:hover .cite {
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-ambar);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .plan { transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
  .reveal-io .plan.reveal { transition: opacity 500ms var(--ease-out), translate 500ms var(--ease-out), transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
  .plan:hover { transform: translateY(-2px); }
  .plan--free:hover { border-color: var(--color-ink); }
  .proof__n { transition: transform var(--dur-base) var(--ease-out); }
  .proof__stat:hover .proof__n { transform: translateY(-2px); }
}

/* ── Reduced motion: nothing moves ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
