/* ==========================================================================
   CLICK BOOM — WEB V3 / site.css
   Sistema visual: editorial cálido (identidad V2) + capa "sistema" en grafito.
   Un solo acento (naranja). Sin dependencias. Todo el motion respeta
   prefers-reduced-motion y tiene red de seguridad (el contenido nunca queda
   invisible si falla el JS).
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("/assets/v3/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/v3/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #faf8f4;
  --paper-2: #f3eee6;
  --paper-3: #ebe4d8;
  --card: #fffdf9;
  --ink: #111010;
  --ink-2: #1b1918;
  --ink-3: #262322;
  --graphite: #141312;
  --graphite-2: #1d1b1a;
  --graphite-line: rgba(250, 248, 244, 0.1);
  --muted: #5e5853;
  --muted-2: #6b645e; /* V3.2: antes #8a837c (3,0–3,7:1). Ahora ≥ 4,6:1 sobre todos los fondos claros (WCAG AA) */
  --line: rgba(17, 16, 16, 0.11);
  --line-2: rgba(17, 16, 16, 0.18);
  --accent: #e2590f;
  --accent-text: #b5450a;
  --accent-btn: #c04a0b;
  --accent-btn-hover: #a33f08;
  --accent-soft: rgba(226, 89, 15, 0.1);
  --accent-glow: rgba(226, 89, 15, 0.35);
  --on-dark: #f5f1ea;
  --on-dark-muted: rgba(245, 241, 234, 0.62);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 0 rgba(17, 16, 16, 0.04), 0 18px 50px -24px rgba(17, 16, 16, 0.28);
  --shadow-lg: 0 2px 0 rgba(17, 16, 16, 0.03), 0 40px 90px -40px rgba(17, 16, 16, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 1;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 500;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 780px; }
.wrap--mid { max-width: 980px; }

/* -------------------------------------------------------------- tipografía */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.032em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.display { font-size: clamp(2.7rem, 7.2vw, 5.6rem); letter-spacing: -0.045em; line-height: 0.98; font-weight: 620; }
.h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); letter-spacing: -0.04em; line-height: 1.02; }
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.15; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 44rem; }
.lead strong { color: var(--ink); font-weight: 560; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.fine { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.accent { color: var(--accent-text); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent-text); font-weight: 500;
}
.eyebrow::before { content: ""; width: 1.4rem; height: 1px; background: currentColor; }
.label {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-2);
}
.stack > * + * { margin-top: var(--gap, 1.25rem); }
.mt-s { margin-top: 0.75rem; } .mt { margin-top: 1.5rem; } .mt-l { margin-top: 2.5rem; } .mt-xl { margin-top: 4rem; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }

/* ----------------------------------------------------------------- botones */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3.1rem; padding: 0.8rem 1.35rem; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-weight: 560; font-size: 1rem; line-height: 1.2; text-decoration: none; letter-spacing: -0.01em;
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { --bg: var(--accent-btn); --fg: #fff; --bd: var(--accent-btn); box-shadow: 0 10px 30px -14px var(--accent-glow); }
.btn--primary:hover { --bg: var(--accent-btn-hover); --bd: var(--accent-btn-hover); box-shadow: 0 16px 36px -14px var(--accent-glow); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn--ghost:hover { --bd: var(--ink); }
.btn--invert { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn--ghost-invert { --bg: transparent; --fg: var(--on-dark); --bd: rgba(245, 241, 234, 0.3); }
.btn--ghost-invert:hover { --bd: var(--on-dark); }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 560; text-decoration: none;
  color: var(--accent-text); border-bottom: 1px solid transparent; transition: border-color 0.2s, gap 0.2s;
}
.link-arrow:hover { border-color: currentColor; gap: 0.55rem; }

.reassure { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem 1.25rem; font-size: 0.9rem; color: var(--muted); }
.reassure li { display: inline-flex; align-items: center; gap: 0.4rem; }
.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.reassure .ic { color: var(--accent); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(250, 248, 244, 0.82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.4rem; }
.logo {
  display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; letter-spacing: -0.02em;
  text-decoration: none; font-size: 1.02rem; white-space: nowrap;
}
.logo-dot { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--accent); margin-top: 0.35rem; }
.nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.55rem 0.8rem; border-radius: 999px;
  background: none; border: 0; cursor: pointer; text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink);
  transition: background 0.2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: rgba(17, 16, 16, 0.05); }
.nav-link[aria-current="page"] { color: var(--accent-text); }
.chev { width: 0.45rem; height: 0.45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(-135deg) translateY(-1px); }
.nav-item { position: relative; }
.menu {
  position: absolute; top: calc(100% + 0.6rem); left: 50%; transform: translate(-50%, 6px);
  width: min(640px, 90vw); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 0.75rem; opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.menu--narrow { width: 320px; }
.nav-item.is-open .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; }
.menu-link { display: block; padding: 0.85rem 0.95rem; border-radius: var(--r); text-decoration: none; transition: background 0.2s; }
.menu-link:hover { background: var(--paper-2); }
.menu-link strong { display: block; font-weight: 580; font-size: 0.98rem; letter-spacing: -0.01em; }
.menu-link span { display: block; font-size: 0.86rem; color: var(--muted); margin-top: 0.1rem; }
.menu-link .menu-tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.09em; color: var(--accent-text); margin: 0 0 0.25rem; }
.menu-all { display: block; margin-top: 0.4rem; padding: 0.8rem 0.95rem; border-top: 1px solid var(--line); font-size: 0.9rem; font-weight: 560; text-decoration: none; color: var(--accent-text); }
.header-cta { flex: none; }
.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; position: relative; margin-left: auto; }
.nav-toggle span { position: absolute; left: 50%; width: 1rem; height: 1.5px; background: var(--ink); transition: transform 0.25s var(--ease); }
.nav-toggle span:first-child { top: calc(50% - 3px); transform: translateX(-50%); }
.nav-toggle span:last-child { top: calc(50% + 3px); transform: translateX(-50%); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateX(-50%) translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateX(-50%) translateY(-3px) rotate(-45deg); }
.nav-mobile { border-top: 1px solid var(--line); background: var(--paper); max-height: calc(100vh - 4.4rem); max-height: calc(100dvh - 4.4rem); overflow-y: auto; }
.nav-mobile .wrap { padding-block: 1rem 1.5rem; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; }
.nav-mobile a:not(.btn) { padding: 0.7rem 0; text-decoration: none; font-size: 1.12rem; font-weight: 520; border-bottom: 1px solid var(--line); }
.nav-mobile-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.09em; color: var(--muted-2); margin-top: 1.25rem; }
.nav-mobile .btn { margin-top: 1.5rem; }

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-block; }
}

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.5rem; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--accent-text); }
.crumbs-sep { opacity: 0.5; }

/* ---------------------------------------------------------------- secciones */
.band { padding-block: clamp(4.5rem, 10vw, 8rem); position: relative; }
.band--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.band--tint { background: var(--paper-2); }
.band--line { border-top: 1px solid var(--line); }
.band--dark {
  background: var(--graphite); color: var(--on-dark);
  background-image:
    linear-gradient(var(--graphite-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--graphite-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}
.band--dark .lead, .band--dark .muted, .band--dark .fine { color: var(--on-dark-muted); }
.band--dark .eyebrow { color: #f08a52; }
.band--dark .link-arrow { color: #f08a52; }
.sec-head { max-width: 48rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.sec-head .lead { margin-top: 1.1rem; }
.sec-head .eyebrow { margin-bottom: 1.1rem; }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.split--form { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
@media (max-width: 900px) { .split, .split--wide, .split--form { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------- hero */
.hero { padding-block: clamp(2.75rem, 6.5vw, 5rem) clamp(2.25rem, 4.5vw, 3rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(226, 89, 15, 0.09), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 56px;
  -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%);
  opacity: 0.8;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.hero .display { margin-top: 1.25rem; }
.hero .display em { font-style: normal; color: var(--accent-text); }
.hero-side { padding-bottom: 0.4rem; }
.hero-side .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.hero-side .btn-row { margin-top: 1.75rem; }
.hero-ticker {
  margin-top: clamp(2rem, 4vw, 3rem); display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.42rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 253, 249, 0.7); font-size: 0.86rem; color: var(--muted);
  text-decoration: none; transition: border-color 0.2s, color 0.2s, background 0.2s;
}
a.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--accent); flex: none; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; align-items: start; } }

.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); position: relative; }
.page-hero .h1 { margin-top: 1.1rem; max-width: 20ch; }
.page-hero .lead { margin-top: 1.4rem; }
.page-hero .btn-row { margin-top: 2rem; }
.page-hero .reassure { margin-top: 1.25rem; }

/* ================================================================ MACHINE
   ANTES → SISTEMA → DESPUÉS. Todo el contenido está en el HTML: el JS solo
   cambia de escena y dispara la secuencia (.is-run). Sin JS se ve completo.
   ======================================================================== */
.machine {
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r-lg) + 6px);
  box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.machine-tabs {
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line);
  scroll-snap-type: x mandatory; background: rgba(243, 238, 230, 0.55);
}
.machine-tabs::-webkit-scrollbar { display: none; }
.machine-tab {
  flex: 1 0 auto; min-width: 11.5rem; display: flex; align-items: center; gap: 0.6rem; text-align: left;
  padding: 1rem 1.15rem; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: 0.9rem; font-weight: 520; color: var(--muted); position: relative; scroll-snap-align: start;
  transition: color 0.2s, background 0.2s;
}
.machine-tab:last-child { border-right: 0; }
.machine-tab:hover { color: var(--ink); background: rgba(255, 253, 249, 0.6); }
.machine-tab[aria-selected="true"] { color: var(--ink); background: var(--card); }
.machine-tab-n { font-family: var(--mono); font-size: 0.7rem; color: var(--muted-2); }
.machine-tab[aria-selected="true"] .machine-tab-n { color: var(--accent-text); }
.machine-tab-bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); }
.machine-tab[aria-selected="true"] .machine-tab-bar { width: 100%; }
.machine.is-playing .machine-tab[aria-selected="true"] .machine-tab-bar { width: 0; animation: tabbar var(--dur, 11s) linear forwards; }
@keyframes tabbar { to { width: 100%; } }

.machine-stage { padding: clamp(1.1rem, 2.5vw, 1.75rem); }
.scene {
  display: grid; grid-template-columns: minmax(0, 1fr) 2.75rem minmax(0, 1.08fr) 2.75rem minmax(0, 1fr);
  align-items: stretch;
}
.scene-col { border-radius: var(--r-lg); padding: clamp(1.1rem, 2vw, 1.5rem); position: relative; min-width: 0; }
.scene-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--muted-2); display: flex; align-items: center; gap: 0.5rem; }
.scene-title { font-size: 1.14rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-top: 0.6rem; }

.scene-before { background: var(--paper-2); border: 1px dashed rgba(17, 16, 16, 0.2); }
.scene-steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.scene-steps li {
  display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; line-height: 1.4; color: var(--ink-3);
  background: rgba(255, 253, 249, 0.75); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.55rem 0.7rem;
}
.scene-steps .ic { color: var(--muted-2); margin-top: 0.18rem; }
.scene-note { margin-top: 0.9rem; font-size: 0.86rem; color: var(--muted); line-height: 1.45; }

.scene-system {
  background: var(--graphite); color: var(--on-dark); border: 1px solid #000;
  background-image: radial-gradient(circle at 1px 1px, rgba(245, 241, 234, 0.09) 1px, transparent 0);
  background-size: 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 50px -30px rgba(0, 0, 0, 0.6);
}
.scene-system .scene-label { color: rgba(245, 241, 234, 0.55); }
.live-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70% { box-shadow: 0 0 0 8px rgba(226, 89, 15, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 89, 15, 0); } }
.scene-io { margin-top: 0.9rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; font-weight: 520; }
.scene-io span { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245, 241, 234, 0.5); border: 1px solid rgba(245, 241, 234, 0.2); border-radius: 999px; padding: 0.15rem 0.5rem; }
.scene-io--out { margin-top: 0.4rem; }
.scene-io--out span { border-color: rgba(226, 89, 15, 0.6); color: #f3a57a; }
.scene-nodes { list-style: none; margin: 0.9rem 0 0.9rem 0.45rem; padding: 0 0 0 1.35rem; position: relative; display: grid; gap: 0.95rem; }
.scene-nodes::before { content: ""; position: absolute; left: 0; top: 0.4rem; bottom: 0.4rem; width: 1px; background: rgba(245, 241, 234, 0.18); }
.scene-nodes::after {
  content: ""; position: absolute; left: -2px; top: 0.4rem; width: 5px; height: 2.2rem; border-radius: 4px;
  background: linear-gradient(transparent, var(--accent)); opacity: 0;
}
.scene-nodes li { position: relative; font-size: 0.93rem; line-height: 1.35; color: var(--on-dark); }
.node-dot {
  position: absolute; left: calc(-1.35rem - 4px); top: 0.32rem; width: 9px; height: 9px; border-radius: 50%;
  background: var(--graphite); border: 1.5px solid rgba(245, 241, 234, 0.45);
}

.scene-flow { position: relative; display: flex; align-items: center; justify-content: center; }
.scene-flow i { position: relative; width: 100%; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px); }
.scene-flow i::after {
  content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px;
  border-top: 1.5px solid var(--muted-2); border-right: 1.5px solid var(--muted-2); transform: rotate(45deg);
}
.scene-flow i::before {
  content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft); opacity: 0;
}

.scene-after { background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.scene-results { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.scene-results li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; line-height: 1.4; font-weight: 500; }
.scene-results .ic { width: 1.3rem; height: 1.3rem; padding: 0.22rem; border-radius: 50%; background: var(--accent); color: #fff; stroke-width: 2.2; flex: none; margin-top: 0.02rem; }
.scene-human { margin-top: 1rem; padding: 0.7rem 0.85rem; border-left: 2px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 0.86rem; line-height: 1.45; color: var(--ink-3); }
.scene-after .link-arrow { margin-top: 1rem; font-size: 0.92rem; }
.machine-foot { padding: 0 clamp(1.1rem, 2.5vw, 1.75rem) 1.1rem; font-size: 0.8rem; color: var(--muted-2); }

/* secuencia: solo si hay JS y no hay reduced-motion */
.js .machine[data-anim] .scene-steps li,
.js .machine[data-anim] .scene-results li,
.js .machine[data-anim] .scene-human,
.js .machine[data-anim] .scene-after .link-arrow { opacity: 0; transform: translateY(6px); }
.js .machine[data-anim] .scene-nodes li { opacity: 0.35; }
.js .machine[data-anim] .scene.is-run .scene-steps li { animation: rise 0.45s var(--ease) forwards; animation-delay: calc(0.15s + var(--i) * 0.28s); }
.js .machine[data-anim] .scene.is-run .scene-flow--in i::before { animation: travel 0.7s var(--ease) forwards; animation-delay: 1.35s; }
.js .machine[data-anim] .scene.is-run .scene-nodes li { animation: nodeon 0.4s var(--ease) forwards; animation-delay: calc(2s + var(--i) * 0.45s); }
.js .machine[data-anim] .scene.is-run .scene-nodes li .node-dot { animation: dotfill 0.4s var(--ease) forwards; animation-delay: calc(2s + var(--i) * 0.45s); }
.js .machine[data-anim] .scene.is-run .scene-nodes::after { animation: rail 1.9s linear forwards; animation-delay: 1.95s; }
.js .machine[data-anim] .scene.is-run .scene-flow--out i::before { animation: travel 0.7s var(--ease) forwards; animation-delay: 3.95s; }
.js .machine[data-anim] .scene.is-run .scene-results li { animation: rise 0.45s var(--ease) forwards; animation-delay: calc(4.55s + var(--i) * 0.3s); }
.js .machine[data-anim] .scene.is-run .scene-human { animation: rise 0.5s var(--ease) forwards; animation-delay: 5.6s; }
.js .machine[data-anim] .scene.is-run .scene-after .link-arrow { animation: rise 0.5s var(--ease) forwards; animation-delay: 5.9s; }
.js .machine[data-anim] .scene.is-run .scene-after { animation: glow 1.4s var(--ease) forwards; animation-delay: 4.4s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes nodeon { to { opacity: 1; } }
@keyframes dotfill { to { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(226, 89, 15, 0.22); } }
@keyframes rail { 0% { opacity: 1; top: 0.2rem; } 92% { opacity: 1; } 100% { opacity: 0; top: calc(100% - 2.4rem); } }
@keyframes travel { 0% { opacity: 1; left: 0; } 85% { opacity: 1; } 100% { opacity: 0; left: calc(100% - 7px); } }
@keyframes glow { 0% { box-shadow: var(--shadow); } 40% { box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-lg); } 100% { box-shadow: var(--shadow); } }

.machine--single { box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .scene { grid-template-columns: 1fr; }
  .scene-flow { height: 2.4rem; }
  .scene-flow i { width: 1px; height: 100%; background: repeating-linear-gradient(180deg, var(--line-2) 0 4px, transparent 4px 8px); }
  .scene-flow i::after { right: auto; left: -4px; top: auto; bottom: 0; transform: rotate(135deg); }
  .scene-flow i::before { left: -3px; top: 0; }
  @keyframes travel { 0% { opacity: 1; top: 0; left: -3px; } 85% { opacity: 1; } 100% { opacity: 0; top: calc(100% - 7px); left: -3px; } }
  .machine-tab { min-width: 13.5rem; }
}

/* mobile: las tres columnas se apilan en la misma celda y se muestran por fase
   (ANTES → SISTEMA → DESPUÉS), sincronizadas con la secuencia. Solo con JS. */
.machine-phases { display: none; }
@media (max-width: 900px) {
  .machine[data-mphase] .machine-phases {
    display: flex; gap: 0.35rem; padding: 0.9rem clamp(1.1rem, 2.5vw, 1.75rem) 0;
  }
  .machine-phase {
    flex: 1; border: 0; background: transparent; padding: 0; cursor: pointer; text-align: left;
    font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.09em; color: var(--muted-2);
  }
  .machine-phase i { display: block; height: 3px; border-radius: 3px; background: var(--line-2); margin-bottom: 0.4rem; overflow: hidden; position: relative; }
  .machine-phase i::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--accent); }
  .machine-phase.is-done i::after { width: 100%; }
  .machine-phase.is-on { color: var(--ink); }
  .machine-phase.is-on i::after { width: 100%; transition: width 0.4s var(--ease); }
  .machine[data-mphase] .scene { grid-template-columns: 1fr; }
  .machine[data-mphase] .scene-flow { display: none; }
  .machine[data-mphase] .scene-col { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(12px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s; }
  .machine[data-mphase] .scene[data-phase="before"] .scene-before,
  .machine[data-mphase] .scene[data-phase="system"] .scene-system,
  .machine[data-mphase] .scene[data-phase="after"] .scene-after { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}

/* ================================================================ SÍNTOMAS */
.symptoms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; }
@media (max-width: 1080px) { .symptoms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .symptoms { grid-template-columns: 1fr 1fr; gap: 0.6rem; } .symptom { min-height: 0; padding: 0.85rem; gap: 0.5rem; border-radius: var(--r); } .symptom-q { font-size: 0.93rem; } .symptom-a { font-size: 0.82rem; } }
.symptom {
  text-align: left; display: flex; flex-direction: column; gap: 0.75rem; min-height: 11.5rem;
  padding: 1.15rem 1.15rem 1.1rem; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  cursor: pointer; position: relative; transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s, background 0.2s;
}
.symptom:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.symptom-top { display: flex; justify-content: space-between; align-items: center; }
.symptom-n { font-family: var(--mono); font-size: 0.7rem; color: var(--muted-2); letter-spacing: 0.08em; }
.symptom-box {
  width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.symptom-box .ic { width: 0.85rem; height: 0.85rem; color: #fff; stroke-width: 2.4; opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.25s var(--ease); }
.symptom-q { font-size: 1.08rem; font-weight: 580; letter-spacing: -0.015em; line-height: 1.3; }
.symptom-a {
  font-size: 0.9rem; line-height: 1.45; color: var(--muted); margin-top: auto;
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease), opacity 0.3s; opacity: 0;
}
.symptom-a > span { overflow: hidden; }
.symptom-a b { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.09em; color: var(--accent-text); font-weight: 500; margin-bottom: 0.25rem; }
.symptom[aria-pressed="true"] { border-color: var(--accent); background: #fffaf5; box-shadow: 0 0 0 3px var(--accent-soft); }
.symptom[aria-pressed="true"] .symptom-box { background: var(--accent); border-color: var(--accent); }
.symptom[aria-pressed="true"] .symptom-box .ic { opacity: 1; transform: none; }
.symptom[aria-pressed="true"] .symptom-a { grid-template-rows: 1fr; opacity: 1; }
.no-js .symptom-a, .symptom.no-toggle .symptom-a { grid-template-rows: 1fr; opacity: 1; }

.tally {
  position: sticky; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 20; margin-top: 1.5rem;
  display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; justify-content: space-between;
  padding: 0.9rem 0.9rem 0.9rem 1.35rem; border-radius: 999px; background: var(--ink); color: var(--on-dark);
  box-shadow: 0 24px 60px -24px rgba(17, 16, 16, 0.55);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.tally p { font-size: 0.98rem; line-height: 1.35; }
.tally strong { color: #f3a57a; font-weight: 600; }
.tally .btn { flex: none; }

@media (max-width: 640px) { .tally { border-radius: var(--r-lg); padding: 1rem; } .tally .btn { width: 100%; } }

/* ================================================================ DEMO PEDIDOS */
.demo { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
.demo-tag {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: #f3a57a; border: 1px solid rgba(226, 89, 15, 0.45); border-radius: 999px; padding: 0.35rem 0.8rem;
  background: rgba(226, 89, 15, 0.08);
}
.phone {
  width: 100%; max-width: 330px; margin-inline: auto; border-radius: 42px; padding: 10px; background: #0b0a0a;
  box-shadow: 0 0 0 1px rgba(245, 241, 234, 0.12), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.phone-screen { border-radius: 33px; background: #f7f4ef; color: var(--ink); overflow: hidden; height: 600px; display: flex; flex-direction: column; position: relative; }
.phone-notch { height: 26px; display: flex; justify-content: center; align-items: center; }
.phone-notch i { width: 86px; height: 20px; border-radius: 999px; background: #0b0a0a; }
.app-bar { padding: 0.35rem 1rem 0.8rem; border-bottom: 1px solid var(--line); background: #fff; }
.app-bar small { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--muted-2); display: block; }
.app-bar strong { font-size: 1rem; letter-spacing: -0.01em; }
.app-body { flex: 1; overflow: hidden; padding: 0.8rem; display: flex; flex-direction: column; gap: 0.55rem; position: relative; }
.app-view { display: flex; flex-direction: column; gap: 0.55rem; animation: rise 0.35s var(--ease) both; }
.menu-item { display: flex; gap: 0.7rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.6rem; }
.menu-thumb { width: 44px; height: 44px; border-radius: 10px; flex: none; background: linear-gradient(135deg, #f3d9c6, #e9b28e); display: grid; place-items: center; font-weight: 700; color: #8a3a0c; font-size: 0.9rem; }
.menu-item > div:not(.qty) { flex: 1; min-width: 0; }
.menu-item p { font-size: 0.86rem; font-weight: 560; line-height: 1.2; }
.menu-item span { font-size: 0.78rem; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 0.35rem; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-weight: 600; line-height: 1; }
.qty button.plus { background: var(--ink); color: #fff; border-color: var(--ink); }
.qty b { min-width: 1ch; text-align: center; font-size: 0.85rem; }
.app-cta { margin: 0 0.8rem 0.8rem; }
.app-cta .btn { width: 100%; min-height: 2.8rem; font-size: 0.92rem; }
.app-cta .btn[disabled] { opacity: 0.4; pointer-events: none; }
.track { list-style: none; margin: 0.3rem 0 0; padding: 0 0 0 1.1rem; position: relative; display: grid; gap: 0.95rem; }
.track::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.track li { position: relative; font-size: 0.86rem; color: var(--muted-2); }
.track li::before { content: ""; position: absolute; left: calc(-1.1rem + 0px); top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #f7f4ef; border: 1.5px solid var(--line-2); }
.track li.done { color: var(--ink); }
.track li.done::before { background: var(--accent); border-color: var(--accent); }
.track li.now { color: var(--ink); font-weight: 600; }
.track li.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.order-card-mini { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.75rem; font-size: 0.84rem; }
.order-card-mini b { font-size: 0.95rem; }

.panel {
  background: var(--graphite-2); border: 1px solid rgba(245, 241, 234, 0.12); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.8);
}
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid rgba(245, 241, 234, 0.1); }
.panel-bar strong { font-size: 0.95rem; }
.panel-bar small { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; color: var(--on-dark-muted); }
.pill-live { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; color: #f3a57a; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; padding: 0.9rem; min-height: 15rem; }
.board-col { background: rgba(245, 241, 234, 0.04); border: 1px solid rgba(245, 241, 234, 0.07); border-radius: var(--r); padding: 0.6rem; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.board-col > p { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--on-dark-muted); display: flex; justify-content: space-between; }
.ocard { background: #fff; color: var(--ink); border-radius: 12px; padding: 0.65rem; font-size: 0.8rem; line-height: 1.35; animation: rise 0.35s var(--ease) both; }
.ocard.is-new { box-shadow: 0 0 0 2px var(--accent), 0 0 30px -4px var(--accent-glow); }
.ocard b { font-size: 0.86rem; display: block; }
.ocard .st { display: inline-block; margin-top: 0.35rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; padding: 0.12rem 0.45rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.ocard button { margin-top: 0.5rem; width: 100%; border: 0; border-radius: 8px; padding: 0.45rem; background: var(--ink); color: #fff; font-size: 0.76rem; font-weight: 560; cursor: pointer; }
.ocard button:hover { background: var(--accent-btn); }
.empty { font-size: 0.76rem; color: rgba(245, 241, 234, 0.55); padding: 0.4rem 0.2rem; }
.log { border-top: 1px solid rgba(245, 241, 234, 0.1); padding: 0.8rem 1.1rem 1rem; font-family: var(--mono); font-size: 0.72rem; line-height: 1.6; color: var(--on-dark-muted); max-height: 9.5rem; overflow: hidden; }
.log p { display: flex; gap: 0.75rem; animation: rise 0.3s var(--ease) both; }
.log time { color: rgba(245, 241, 234, 0.55); flex: none; }
.log em { font-style: normal; color: #f3a57a; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.demo-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.demo-points div { border-top: 1px solid rgba(245, 241, 234, 0.18); padding-top: 1rem; }
.demo-points b { display: block; font-size: 1.02rem; font-weight: 580; margin-bottom: 0.3rem; }
.demo-points p { font-size: 0.92rem; color: var(--on-dark-muted); }
@media (max-width: 720px) {
  .board { grid-template-columns: 1fr; min-height: 0; }
  .demo-points { grid-template-columns: 1fr; }
  .phone-screen { height: 540px; }
}

/* ================================================================ TARJETAS */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .cards, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex; flex-direction: column; gap: 0.75rem; position: relative;
}
.card .label { margin-bottom: 0.1rem; }
.card h3 { font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1.2; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card--link { text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.2s; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card--link .link-arrow { margin-top: auto; padding-top: 0.5rem; }
.card--dark { background: var(--graphite-2); border-color: rgba(245, 241, 234, 0.12); color: var(--on-dark); }
.card--dark p { color: var(--on-dark-muted); }

.sol-card { min-height: 17rem; overflow: hidden; }
.sol-card .sol-q { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; color: var(--ink); }
.sol-card .sol-a { font-size: 0.95rem; }
.mini {
  display: flex; align-items: center; gap: 0; margin-bottom: 0.5rem; height: 2.2rem;
}
.mini i { width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 1.5px solid var(--muted-2); background: var(--card); flex: none; }
.mini i.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.mini b { height: 1px; flex: 1; max-width: 2.6rem; background: repeating-linear-gradient(90deg, var(--line-2) 0 3px, transparent 3px 6px); position: relative; overflow: hidden; }
.mini b::after { content: ""; position: absolute; top: -1px; left: -30%; width: 30%; height: 3px; background: var(--accent); border-radius: 3px; animation: minirun 2.6s ease-in-out infinite; }
.mini b:nth-of-type(2)::after { animation-delay: 0.5s; }
.mini b:nth-of-type(3)::after { animation-delay: 1s; }
@keyframes minirun { 0% { left: -30%; } 60%, 100% { left: 110%; } }
.sol-card--product { background: var(--graphite); color: var(--on-dark); border-color: #000; }
.sol-card--product .sol-q { color: var(--on-dark); }
.sol-card--product p { color: var(--on-dark-muted); }
.sol-card--product .label { color: #f3a57a; }
.sol-card--product .link-arrow { color: #f3a57a; }

.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 800px) { .ways { grid-template-columns: 1fr; } }
.way { border-radius: var(--r-lg); padding: clamp(1.5rem, 3.5vw, 2.5rem); border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 1rem; }
.way--dark { background: var(--graphite); border-color: #000; color: var(--on-dark); }
.way h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.03em; }
.way p { color: var(--muted); }
.way--dark p { color: var(--on-dark-muted); }
.way ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.96rem; }
.way li { display: flex; gap: 0.55rem; align-items: flex-start; }
.way li .ic { color: var(--accent); margin-top: 0.3rem; }
.way .btn, .way .link-arrow { align-self: flex-start; margin-top: auto; }

/* pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--line-2); }
.steps li { padding: 1.4rem 1.1rem 0 0; position: relative; }
.steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.steps li:first-child::before { background: var(--accent); border-color: var(--accent); }
.steps .label { display: block; margin-bottom: 0.5rem; color: var(--accent-text); }
.steps h3 { font-size: 1.08rem; letter-spacing: -0.015em; line-height: 1.25; }
.steps p { margin-top: 0.45rem; font-size: 0.92rem; color: var(--muted); }
.band--dark .steps { border-color: rgba(245, 241, 234, 0.25); }
.band--dark .steps li::before { background: var(--graphite); border-color: var(--on-dark); }
.band--dark .steps li:first-child::before { background: var(--accent); border-color: var(--accent); }
.band--dark .steps p { color: var(--on-dark-muted); }
.band--dark .steps .label { color: #f3a57a; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-2); padding-left: 1.4rem; gap: 1.6rem; }
  .steps li { padding: 0; }
  .steps li::before { top: 0.35rem; left: calc(-1.4rem - 5px); }
  .band--dark .steps { border-left-color: rgba(245, 241, 234, 0.25); }
}

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 980px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.principle { padding-top: 1rem; border-top: 2px solid var(--ink); }
.principle b { display: block; font-size: 1.05rem; letter-spacing: -0.015em; margin-bottom: 0.35rem; }
.principle p { font-size: 0.93rem; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checklist li { display: flex; gap: 0.6rem; align-items: flex-start; }
.checklist .ic { color: var(--accent); margin-top: 0.32rem; }
.xlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.xlist li { padding-left: 1.6rem; position: relative; }
.xlist li::before { content: ""; position: absolute; left: 0.1rem; top: 0.72rem; width: 0.8rem; height: 1.5px; background: var(--muted-2); }
.xlist b { font-weight: 600; }

.callout { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--card); }
.callout--accent { border-color: rgba(226, 89, 15, 0.45); background: #fff8f2; }
.callout h3 { font-size: 1.15rem; letter-spacing: -0.015em; margin-bottom: 0.4rem; }

/* prospecto (Prospector) */
.pcard { background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: 1.25rem; box-shadow: var(--shadow-lg); border: 1px solid var(--line); max-width: 420px; }
.pcard-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.pcard-head b { font-size: 1.15rem; letter-spacing: -0.02em; }
.pcard-head small { display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; color: var(--muted-2); margin-top: 0.2rem; }
.match { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 0.3rem 0.65rem; white-space: nowrap; }
.pcard ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.35rem; font-size: 0.9rem; }
.pcard li { display: flex; gap: 0.5rem; align-items: center; }
.pcard li .ic { color: var(--accent); }
.pcard-ctx { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px dashed var(--line-2); font-size: 0.88rem; color: var(--ink-3); }
.pcard-ctx p + p { margin-top: 0.3rem; }
.pcard-foot { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.9rem; }
.pcard-foot span { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; border: 1px solid var(--line-2); border-radius: 999px; padding: 0.2rem 0.55rem; color: var(--muted); }
.caption { font-size: 0.8rem; color: var(--muted-2); margin-top: 0.8rem; }
.band--dark .caption { color: rgba(245, 241, 234, 0.55); }

.price-panel { background: var(--card); color: var(--ink); border-radius: var(--r-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); overflow: hidden; }
.price-top { padding: 1.5rem 1.5rem 1.25rem; border-bottom: 1px solid var(--line); }
.price-amount { display: flex; align-items: baseline; gap: 0.4rem; margin-top: 0.5rem; }
.price-amount b { font-size: 3rem; letter-spacing: -0.04em; line-height: 1; }
.price-amount span { color: var(--muted); font-family: var(--mono); font-size: 0.8rem; }
.band--dark .price-panel .muted, .band--dark .price-panel .fine { color: var(--muted); }
.band--dark .price-panel .fine a { color: var(--accent-text); }
.price-body { padding: 1.25rem 1.5rem 1.5rem; display: grid; gap: 1rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; font-size: 1.08rem; font-weight: 560; letter-spacing: -0.015em; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.7rem; height: 0.7rem; margin-top: -0.35rem;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 2.5rem 1.35rem 0; color: var(--muted); }
.faq-a p + p { margin-top: 0.6rem; }
.band--dark .faq, .band--dark .faq-item { border-color: rgba(245, 241, 234, 0.2); }
.band--dark .faq-a { color: var(--on-dark-muted); }

/* CTA final */
.cta-final { text-align: left; }
.cta-final .h1 { max-width: 18ch; }
.cta-final .lead { margin-top: 1.25rem; }
.cta-final .btn-row { margin-top: 2rem; }
.band--dark .reassure { color: var(--on-dark-muted); }

/* ================================================================ FORMULARIOS */
.form { display: grid; gap: 1.1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 560; font-size: 0.95rem; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.field label small { font-weight: 400; color: var(--muted-2); }
.field .hint { font-size: 0.85rem; color: var(--muted); margin: -0.2rem 0 0.45rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 0.8rem 0.95rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 6.5rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .err { display: block; color: #b42318; font-size: 0.85rem; margin-top: 0.35rem; min-height: 0; }
.field.has-error input, .field.has-error textarea { border-color: #b42318; }
.chips-field { border: 0; margin: 0; padding: 0; }
.chips-field legend { font-weight: 560; font-size: 0.95rem; margin-bottom: 0.5rem; padding: 0; }
.chips-field .chip-set { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.85rem; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 0.88rem; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.chip-check input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-status { font-size: 0.95rem; min-height: 1.4rem; }
.form-status.is-ok { color: #1a7f45; font-weight: 560; }
.form-status.is-err { color: #b42318; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3.5vw, 2.25rem); box-shadow: var(--shadow); }
.form-done { text-align: left; }
.form-done .h3 { margin-top: 0.6rem; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: n; }
.next-steps li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.9rem; align-items: start; }
.next-steps li::before { counter-increment: n; content: counter(n, decimal-leading-zero); font-family: var(--mono); font-size: 0.78rem; color: var(--accent-text); border: 1px solid rgba(226, 89, 15, 0.4); border-radius: 50%; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; }
.next-steps b { display: block; font-weight: 580; }
.next-steps p { font-size: 0.93rem; color: var(--muted); margin-top: 0.15rem; }

/* diagrama simple (carga de datos) */
.flow-simple { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.flow-simple .col p.label { margin-bottom: 0.6rem; }
.flow-simple ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.flow-simple li { padding: 0.55rem 0.8rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 0.93rem; background: #fff; }
.flow-simple .arrow { font-size: 1.4rem; color: var(--muted-2); }
.flow-simple .core { text-align: center; }
.flow-simple .core i { display: block; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--accent); margin: 0 auto 0.55rem; box-shadow: 0 0 0 6px var(--accent-soft); animation: livepulse 2.4s infinite; }
.flow-simple .core span { font-weight: 600; font-size: 0.95rem; }
@media (max-width: 760px) {
  .flow-simple { grid-template-columns: 1fr; text-align: left; }
  .flow-simple .arrow { transform: rotate(90deg); justify-self: center; }
}

/* prosa (legales, carga de datos) */
.prose { font-size: 1.04rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 2.75rem 0 0.9rem; letter-spacing: -0.025em; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 0.4rem; letter-spacing: -0.015em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; color: var(--ink-3); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }
.prose a { color: var(--accent-text); }
.prose > :first-child { margin-top: 0; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.08s; } .js .reveal-d2 { transition-delay: 0.16s; } .js .reveal-d3 { transition-delay: 0.24s; }

/* footer */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: clamp(3.5rem, 7vw, 5rem) calc(2rem + env(safe-area-inset-bottom, 0px)); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr; } }
.foot-brand p { color: var(--on-dark-muted); margin: 0.9rem 0 1.4rem; font-size: 1.05rem; }
.logo--invert { color: var(--on-dark); }
.foot-col { display: flex; flex-direction: column; gap: 0.55rem; }
.foot-col a { text-decoration: none; color: var(--on-dark-muted); font-size: 0.94rem; }
.foot-col a:hover { color: var(--on-dark); }
.foot-h { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.09em; color: rgba(245, 241, 234, 0.55); margin-top: 0.4rem; }
.foot-col .foot-h + a { margin-top: 0.1rem; }
.foot-col a + .foot-h { margin-top: 1.1rem; }
.foot-base { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(245, 241, 234, 0.12); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: rgba(245, 241, 234, 0.55); }
.foot-base a { color: inherit; text-decoration: none; }

/* preview badge (solo fuera de producción) */
.preview-badge { position: fixed; right: 0.75rem; top: calc(4.9rem + env(safe-area-inset-top, 0px)); z-index: 90; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; background: var(--ink); color: #f3a57a; padding: 0.35rem 0.6rem; border-radius: 999px; pointer-events: none; opacity: 0.9; }

/* 404 */
.nf { min-height: 60vh; display: flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; animation-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mini b::after { display: none; }
}

/* ================================================================ V3.1 — ritmo y conversión */
.tally-main { font-size: 1rem; line-height: 1.35; }
.tally-main strong { color: #f3a57a; font-weight: 600; }
.tally-sub { font-size: 0.88rem; color: var(--on-dark-muted); margin-top: 0.2rem; }
.tally[data-count]:not([data-count="0"]) { box-shadow: 0 0 0 2px var(--accent), 0 24px 60px -24px rgba(17, 16, 16, 0.55); }
.tally.is-bump { animation: bump 0.35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.02); } }
.symptom { min-height: 9.5rem; }

.demo-head { max-width: 40rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.demo-head .demo-tag { margin-top: 0.9rem; }
.bridge { margin-top: clamp(3rem, 7vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid rgba(245, 241, 234, 0.18); max-width: 52rem; }
.bridge-small { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #f3a57a; }
.bridge-big { margin-top: 0.8rem; font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; color: var(--on-dark); text-wrap: balance; }

.sec-head--big { max-width: 58rem; }
.sec-head--big .h1 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); }
.sol-card--more { background: transparent; border-style: dashed; border-color: var(--line-2); }
.sol-card--more .link-arrow { margin-top: auto; padding-top: 0.5rem; }

.ways--compact .way { gap: 0.7rem; padding: clamp(1.4rem, 3vw, 2rem); }
.ways--compact .way h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.steps--compact li { padding-top: 1.1rem; }
.steps--compact h3 { font-size: 1rem; }
.limits { max-width: 52rem; color: var(--muted); font-size: 0.98rem; }
.limits b { color: var(--ink); font-weight: 600; }
.limits .link-arrow { margin-left: 0.35rem; white-space: nowrap; }

.band--product { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band--close { background: var(--paper); padding-block: clamp(5rem, 11vw, 8.5rem); position: relative; overflow: hidden; }
.band--close::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50rem 26rem at 90% 110%, rgba(226, 89, 15, 0.12), transparent 60%); }
.band--close .cta-final { position: relative; }
.band--close .h1 { max-width: 16ch; font-size: clamp(2.4rem, 6vw, 4.6rem); }
@media (max-width: 640px) {
  .sol-card { min-height: 0; gap: 0.45rem; padding: 1.1rem 1.15rem; }
  .sol-card .mini { display: none; }
  .sol-card .sol-q { font-size: 1.12rem; }
  .sol-card .sol-a { font-size: 0.9rem; }
  .sol-card .link-arrow { padding-top: 0.2rem; }
  .cards { gap: 0.7rem; }
}
@media (max-width: 560px) {
  .symptoms { align-items: start; }
  .tally-sub { display: none; }
  .tally { padding: 0.8rem; gap: 0.6rem; }
  .tally-main { font-size: 0.95rem; }
}

/* V3.2: honeypot antispam (Formspree _gotcha). Fuera de pantalla y fuera del árbol de accesibilidad. */
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* V3.2: texto de ayuda dentro del teléfono de la demo (fondo claro) cuando la demo está en una banda oscura. Antes 1,01:1. */
.band--dark .phone .fine { color: var(--muted); }
