/* ═══════════════════════════════════════════════════════════════════════
   optiMind landing — «El turno de noche»
   Tinta cálida + marfil operativo + un solo naranja de decisión (#C2562A).
   Manrope variable 400–800 como única voz. Sin dependencias.
   ═══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 800;
}

:root {
  color-scheme: dark;
  --ink: #17120e;
  --ink-soft: #201915;
  --ink-raised: #2b221c;
  --paper: #f5f1ec;
  --paper-deep: #e8dfd6;
  --paper-muted: #cbbfb4;
  --ink-muted: #a99c91;
  --paper-ink-muted: #665b52;
  --accent: #c2562a;
  --accent-text: #cc6236;
  --accent-hover: #9f3e1b;
  --accent-pale: #f1d3c4;
  --accent-ink: #7b2b0f;
  --success: #3b9b6d;
  --success-soft: #8fd6b2;
  --line: rgba(245, 241, 236, 0.14);
  --line-strong: rgba(245, 241, 236, 0.26);
  --paper-line: rgba(23, 18, 14, 0.14);
  --paper-line-strong: rgba(23, 18, 14, 0.3);
  --shadow-board: 0 32px 90px rgba(0, 0, 0, 0.36), 0 8px 24px rgba(0, 0, 0, 0.22);
  --shadow-paper: 0 28px 70px rgba(23, 18, 14, 0.16), 0 7px 20px rgba(23, 18, 14, 0.09);
  --max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --space-section: clamp(96px, 11vw, 168px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
  --display-size: clamp(3.3rem, 8.6vw, 7.4rem);
  --headline-size: clamp(2.15rem, 4.6vw, 3.9rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--accent) var(--ink-soft);
  scrollbar-width: thin;
}

section[id],
main[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--paper);
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Grano de película sobre toda la página: materia, no decoración. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: var(--ink-soft);
}

body::-webkit-scrollbar-thumb {
  border: 2px solid var(--ink-soft);
  border-radius: 20px;
  background: var(--accent);
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  caret-color: var(--accent);
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
dt,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-72px);
  transition: transform 200ms var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.section-shell {
  width: min(var(--max-width), 100% - 64px);
  margin-inline: auto;
}

/* ── Tipografía editorial ──────────────────────────────────────────── */

.display {
  font-size: var(--display-size);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.headline {
  font-size: var(--headline-size);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-lede {
  max-width: 56ch;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--paper-muted);
}

.paper-section .section-lede {
  color: var(--paper-ink-muted);
}

.accent-word {
  position: relative;
  font-style: normal;
  color: var(--accent-text);
}

.accent-word::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: -0.06em;
  height: 0.075em;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.js .accent-word::after {
  animation: word-sweep 700ms var(--ease) 500ms forwards;
}

html:not(.js) .accent-word::after {
  transform: scaleX(1);
}

@keyframes word-sweep {
  to {
    transform: scaleX(1);
  }
}

/* ── Botones ───────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease),
    border-color 180ms var(--ease), box-shadow 180ms var(--ease), color 180ms var(--ease);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(194, 86, 42, 0.28);
}

.button-secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--paper);
}

.button-ink {
  background: var(--ink);
  color: var(--paper);
}

@media (hover: hover) {
  .button-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(159, 62, 27, 0.34);
  }

  .button-secondary:hover {
    border-color: var(--paper);
    transform: translateY(-2px);
  }

  .button-ink:hover {
    background: var(--ink-soft);
    transform: translateY(-2px);
  }
}

.button:active {
  transform: translateY(1px);
}

/* ── Header ────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: transparent;
  transition: background-color 180ms var(--ease), box-shadow 180ms var(--ease),
    border-color 180ms var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(23, 18, 14, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

html:not(.js) .site-header {
  position: static;
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(var(--max-width), 100% - 64px);
  margin-inline: auto;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-words {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-by {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.site-nav a {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--paper-muted);
  text-decoration: none;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

@media (hover: hover) {
  .site-nav a:hover {
    color: var(--paper);
    background: rgba(245, 241, 236, 0.06);
  }
}

.site-nav a[aria-current="true"] {
  color: var(--paper);
  background: rgba(245, 241, 236, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.login-link {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--paper-muted);
  text-decoration: none;
  padding: 12px 6px;
  transition: color 180ms var(--ease);
}

@media (hover: hover) {
  .login-link:hover {
    color: var(--paper);
  }
}

.header-cta {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.94rem;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span[aria-hidden] {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.menu-toggle > span[aria-hidden]:first-of-type {
  top: 17px;
}

.menu-toggle > span[aria-hidden]:last-of-type {
  bottom: 17px;
}

.menu-toggle[aria-expanded="true"] > span[aria-hidden]:first-of-type {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] > span[aria-hidden]:last-of-type {
  transform: translateY(-5px) rotate(-45deg);
}

/* ── Hero — el turno de noche ──────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: clamp(48px, 7vh, 96px) clamp(72px, 9vw, 128px);
  background:
    radial-gradient(58% 44% at 78% 6%, rgba(194, 86, 42, 0.15), transparent 68%),
    radial-gradient(42% 34% at 6% 88%, rgba(194, 86, 42, 0.07), transparent 70%),
    var(--ink);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 26px;
  justify-items: start;
}

.hero-kicker {
  margin-bottom: -10px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.hero-lede {
  max-width: 52ch;
  font-size: clamp(1.06rem, 1.4vw, 1.2rem);
  line-height: 1.62;
  color: var(--paper-muted);
}

.hero-lede strong {
  color: var(--paper);
}

.hero-audience {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--paper);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--ink-muted);
  max-width: 44ch;
  line-height: 1.55;
}

/* El teléfono: la primera evidencia. */

.hero-phone {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-soft), var(--ink-raised));
  box-shadow: var(--shadow-board);
  overflow: hidden;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(23, 18, 14, 0.5);
}

.phone-identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.phone-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  padding: 5px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--line);
}

.phone-identity strong {
  display: block;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
}

.phone-identity small {
  display: block;
  font-size: 0.78rem;
  color: var(--success-soft);
  font-weight: 600;
}

.demo-chip {
  flex: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.phone-scroll {
  display: grid;
  gap: 12px;
  padding: 22px 20px 18px;
  min-height: 240px;
  align-content: start;
}

.chat-day {
  justify-self: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(245, 241, 236, 0.07);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.bubble {
  position: relative;
  max-width: 86%;
  padding: 11px 14px 8px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.5;
}

.bubble p {
  margin: 0;
}

.bubble-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.75;
}

.bubble .check {
  width: 15px;
  height: 10px;
  fill: none;
  stroke: #6fb5d8;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bubble.customer {
  justify-self: start;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-bottom-left-radius: 3px;
}

.bubble.agent {
  justify-self: end;
  background: #33241a;
  border: 1px solid rgba(194, 86, 42, 0.34);
  border-bottom-right-radius: 3px;
}

.bubble.agent.summary {
  background: #2a2418;
}

.js [data-hero-reply].is-pending {
  opacity: 0;
  transform: translateY(10px);
}

[data-hero-reply] {
  opacity: 1;
  transform: none;
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

.bubble.typing {
  justify-self: end;
  display: inline-flex;
  gap: 5px;
  padding: 14px 16px;
  background: #33241a;
  border: 1px solid rgba(194, 86, 42, 0.34);
  border-bottom-right-radius: 3px;
}

.bubble.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paper-muted);
  animation: typing-dot 1.1s ease-in-out infinite;
}

.bubble.typing span:nth-child(2) {
  animation-delay: 0.16s;
}

.bubble.typing span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes typing-dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.phone-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: rgba(23, 18, 14, 0.5);
}

.phone-foot p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.chat-pause {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

@media (hover: hover) {
  .chat-pause:hover {
    border-color: var(--paper);
    background: rgba(245, 241, 236, 0.05);
  }
}

.chat-pause svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-pause .play-icon,
.chat-pause[aria-pressed="true"] .pause-icon {
  display: none;
}

.chat-pause[aria-pressed="true"] .play-icon {
  display: block;
  fill: currentColor;
}

html:not(.js) .chat-pause {
  display: none;
}

/* ── Cinta de módulos ──────────────────────────────────────────────── */

.module-belt {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink-soft);
  padding-block: 18px;
}

.belt-track {
  display: flex;
  width: max-content;
  animation: belt-run 42s linear infinite;
}

.module-belt:hover .belt-track,
.module-belt:focus-within .belt-track {
  animation-play-state: paused;
}

.belt-run {
  display: flex;
  align-items: center;
  flex: none;
}

.belt-run li {
  position: relative;
  padding: 0 34px;
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--paper-muted);
  white-space: nowrap;
}

.belt-run li::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  opacity: 0.8;
}

@keyframes belt-run {
  to {
    transform: translateX(-50%);
  }
}

/* ── Secciones de papel ────────────────────────────────────────────── */

.paper-section {
  background: var(--paper);
  color: var(--ink);
}

/* ── El problema ───────────────────────────────────────────────────── */

.problem {
  padding-block: var(--space-section);
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
}

.problem-clock {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 6px;
  user-select: none;
}

.clock-figure {
  font-size: clamp(6.4rem, 15.5vw, 13.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.clock-caption {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-ink);
}

.problem-body {
  display: grid;
  gap: 26px;
}

.problem-ledger {
  display: grid;
  margin-top: 10px;
}

.problem-ledger > div {
  padding-block: 22px;
  border-top: 1px solid var(--paper-line);
  display: grid;
  gap: 6px;
}

.problem-ledger > div:last-child {
  border-bottom: 1px solid var(--paper-line);
}

.problem-ledger dt {
  font-size: clamp(1.14rem, 1.7vw, 1.34rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.problem-ledger dd {
  color: var(--paper-ink-muted);
  font-size: 0.99rem;
  line-height: 1.6;
  max-width: 58ch;
}

/* ── La venta completa (scrollytelling) ────────────────────────────── */

.sale {
  padding-block: var(--space-section) clamp(64px, 8vw, 128px);
  background:
    radial-gradient(40% 30% at 90% 10%, rgba(194, 86, 42, 0.08), transparent 70%),
    var(--ink);
}

.sale-heading {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(48px, 6vw, 92px);
}

.sale-heading .section-lede {
  max-width: 62ch;
}

.sale-stage {
  position: relative;
}

.sale-sticky {
  display: grid;
  grid-template-columns: 44px minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(20px, 3vw, 48px);
  width: min(var(--max-width), 100% - 64px);
  margin-inline: auto;
  align-items: start;
}

.sale-rail {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  height: calc(100vh - var(--header-h) - 120px);
  display: flex;
  justify-content: center;
}

.rail-line {
  position: relative;
  width: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.rail-progress {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-text), var(--accent));
  transform-origin: top center;
  transform: scaleY(var(--sale-progress, 0.12));
  transition: transform 500ms var(--ease);
}

.sale-steps {
  display: grid;
  counter-reset: sale;
}

.sale-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-content: center;
  min-height: 72vh;
  padding-block: 32px;
  opacity: 0.38;
  transition: opacity 420ms var(--ease);
}

.sale-step.is-active {
  opacity: 1;
}

.step-count {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1.04rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--paper-muted);
  transition: background-color 320ms var(--ease), color 320ms var(--ease),
    border-color 320ms var(--ease);
}

.sale-step.is-active .step-count {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.step-copy {
  display: grid;
  gap: 10px;
}

.step-copy h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  font-weight: 750;
  letter-spacing: -0.028em;
  line-height: 1.08;
}

.step-copy p {
  color: var(--paper-muted);
  line-height: 1.62;
  max-width: 46ch;
}

.sale-screen {
  position: sticky;
  /* Centrado sobre la altura REAL de los tableros (~360-420px), no la teórica. */
  top: max(calc(var(--header-h) + 28px), calc(50vh - 225px));
  display: grid;
}

/* El numeral fantasma: el acto vigente, a escala de escenario, ligado al
   progreso del scroll. Decorativo puro; muere con prefers-reduced-motion. */
.sale-ghost {
  position: absolute;
  top: calc(100% - 5rem);
  right: -4%;
  z-index: 0;
  font-size: clamp(13rem, 24vh, 19rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  transform: scale(calc(0.82 + var(--sale-progress, 0.16) * 0.36));
  transform-origin: top right;
  transition: transform 500ms var(--ease);
}

.sale-panel {
  position: relative;
  z-index: 1;
}

.sale-panel {
  grid-area: 1 / 1;
  align-self: start;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-soft), var(--ink-raised));
  box-shadow: var(--shadow-board);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.985);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease),
    visibility 0s linear 420ms;
}

.sale-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.panel-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(23, 18, 14, 0.5);
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--paper-muted);
}

.status-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(59, 155, 109, 0.16);
  border: 1px solid rgba(143, 214, 178, 0.3);
  color: var(--success-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.mini-chat {
  display: grid;
  gap: 10px;
  align-content: start;
}

.sale-panel .mini-chat {
  padding: 0;
}

.sale-panel > div:not(.panel-chrome) {
  display: grid;
  gap: 14px;
  padding: 20px;
}

@media (min-width: 1121px) {
  .sale-panel > div:not(.panel-chrome) {
    gap: 17px;
    padding: 26px;
  }

  .sale-panel .panel-chrome {
    padding: 16px 26px;
    font-size: 0.92rem;
  }

  .sale-panel .bubble,
  .sale-panel .rule-row,
  .sale-panel .ship-row {
    font-size: 0.98rem;
  }
}

.panel-tag {
  padding: 10px 14px;
  border-left: 1px solid var(--accent);
  background: rgba(194, 86, 42, 0.09);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e79571;
  line-height: 1.5;
}

.manual-sheet {
  gap: 12px;
}

.manual-sheet h4 {
  font-size: 1.22rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.rule-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.rule-row span {
  color: var(--ink-muted);
}

.rule-row strong {
  font-weight: 700;
}

.rule-row.is-armed {
  border-color: rgba(194, 86, 42, 0.5);
  background: rgba(194, 86, 42, 0.08);
}

.rule-row.is-armed strong {
  color: #e79571;
}

.catalog-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(23, 18, 14, 0.4);
}

.catalog-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(194, 86, 42, 0.22), rgba(194, 86, 42, 0.05)),
    url("assets/colageno.jpg") center / cover no-repeat;
  border: 1px solid rgba(194, 86, 42, 0.35);
}

.catalog-row strong {
  display: block;
  font-size: 0.99rem;
  letter-spacing: -0.01em;
}

.catalog-row small {
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.catalog-facts {
  text-align: right;
}

.catalog-facts strong {
  font-size: 1.18rem;
  font-variant-numeric: tabular-nums;
}

.catalog-facts small {
  color: var(--success-soft);
  font-weight: 700;
}

.voucher-sheet {
  gap: 14px;
}

.voucher-shot {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, rgba(20, 16, 12, 0.85), rgba(20, 16, 12, 0.5) 55%, rgba(20, 16, 12, 0.25)),
    url("assets/voucher-yape.jpg") center 42% / cover no-repeat;
}

.voucher-shot span {
  font-weight: 700;
  font-size: 0.92rem;
}

.voucher-shot small {
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.voucher-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.voucher-fields > div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 2px;
}

.voucher-fields dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.voucher-fields dd {
  font-size: 0.94rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.voucher-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(143, 214, 178, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(59, 155, 109, 0.1);
}

.state-wait {
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.state-ok {
  color: var(--success-soft);
  font-weight: 750;
  font-size: 0.94rem;
}

.shipping-sheet {
  gap: 10px;
}

.ship-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.ship-row span {
  color: var(--ink-muted);
}

.conversion-sheet {
  gap: 14px;
}

.conversion-row {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(143, 214, 178, 0.3);
  border-radius: var(--radius-md);
  background: rgba(59, 155, 109, 0.1);
}

.conversion-row strong {
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  color: var(--success-soft);
}

.conversion-row small {
  color: var(--ink-muted);
}

/* ── Evidencia ─────────────────────────────────────────────────────── */

.evidence {
  padding-block: var(--space-section);
  border-top: 1px solid var(--line);
}

.evidence .headline {
  max-width: 18ch;
}

.evidence-ledger {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
}

.evidence-ledger li {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 0.38fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(26px, 3.5vw, 44px);
  border-top: 1px solid var(--line);
}

.evidence-ledger li:last-child {
  border-bottom: 1px solid var(--line);
}

.evidence-ledger li:nth-child(even) {
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
}

.evidence-ledger li:nth-child(even) .evidence-figure {
  order: 2;
  text-align: right;
}

.evidence-figure {
  font-size: clamp(3.6rem, 8.6vw, 7.8rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
  white-space: nowrap;
}

.evidence-zero .evidence-figure {
  color: var(--accent-text);
}

.evidence-ledger p {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  color: var(--paper-muted);
  max-width: 44ch;
}

.evidence-ledger p strong {
  color: var(--paper);
}

/* ── Tour de producto ──────────────────────────────────────────────── */

.product-tour {
  padding-block: var(--space-section);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.split-heading .section-lede {
  justify-self: end;
}

.tour-shell {
  display: grid;
  gap: 26px;
}

.tour-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tour-tab {
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  background: transparent;
  color: var(--paper-ink-muted);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease),
    border-color 180ms var(--ease), transform 180ms var(--ease);
}

@media (hover: hover) {
  .tour-tab:hover {
    border-color: var(--paper-line-strong);
    color: var(--ink);
    transform: translateY(-2px);
  }
}

.tour-tab.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.tour-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.tour-panel:focus-visible {
  outline-offset: 8px;
}

.product-window {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-soft), var(--ink-raised));
  color: var(--paper);
  box-shadow: 0 22px 58px rgba(23, 18, 14, 0.28), 0 6px 18px rgba(23, 18, 14, 0.16);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(23, 18, 14, 0.5);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--paper-muted);
}

/* Control dibujado de la demostración: parte de la escenografía, no un
   botón real de la página. */
.window-action {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--paper-muted);
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.68;
}

.manual-window {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
}

.product-sidebar {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: rgba(23, 18, 14, 0.36);
}

.sidebar-label {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.sidebar-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--paper-muted);
}

.sidebar-item.is-current {
  background: rgba(194, 86, 42, 0.14);
  color: var(--paper);
  border: 1px solid rgba(194, 86, 42, 0.32);
}

.manual-editor {
  display: grid;
  gap: 12px;
  padding: 0 0 18px;
  align-content: start;
}

.manual-editor > h3,
.manual-editor > p,
.manual-editor > .rule-row,
.manual-editor > small {
  margin-inline: 18px;
}

.manual-editor h3 {
  font-size: 1.28rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-top: 16px;
}

.manual-editor > p {
  font-size: 0.92rem;
  color: var(--paper-muted);
  line-height: 1.6;
}

.demo-note {
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.tour-explanation {
  display: grid;
  gap: 12px;
}

.tour-explanation h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.tour-explanation p {
  color: var(--paper-ink-muted);
  line-height: 1.65;
}

.inbox-window {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
}

.inbox-list {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: rgba(23, 18, 14, 0.36);
}

.inbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.inbox-item i {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink-raised);
  border: 1px solid var(--line-strong);
}

.inbox-item strong {
  display: block;
  font-size: 0.88rem;
}

.inbox-item small {
  color: var(--ink-muted);
  font-size: 0.76rem;
}

.inbox-item.is-current {
  background: rgba(194, 86, 42, 0.12);
  border: 1px solid rgba(194, 86, 42, 0.3);
}

.chat-window {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-bottom: 18px;
}

.chat-window .window-bar {
  margin-bottom: 4px;
}

.chat-bubble {
  max-width: 84%;
  margin-inline: 18px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-bubble.customer {
  justify-self: start;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-bottom-left-radius: 3px;
}

.chat-bubble.agent {
  justify-self: end;
  background: #33241a;
  border: 1px solid rgba(194, 86, 42, 0.34);
  border-bottom-right-radius: 3px;
}

.handoff-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-inline: 18px;
  padding: 11px 14px;
  border: 1px solid rgba(143, 214, 178, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(59, 155, 109, 0.1);
  font-size: 0.86rem;
}

.handoff-row span {
  color: var(--ink-muted);
}

.handoff-row strong {
  color: var(--success-soft);
}

.sources-window {
  display: grid;
}

.source-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.source-row:last-child {
  border-bottom: 0;
}

.source-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--paper-muted);
}

.source-row strong {
  display: block;
  font-size: 0.95rem;
}

.source-row small {
  display: block;
  color: var(--ink-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.source-state {
  flex: none;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(143, 214, 178, 0.3);
  background: rgba(59, 155, 109, 0.1);
  color: var(--success-soft);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.source-state.is-conditional {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink-muted);
}

.results-window {
  display: grid;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-list > div {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.metric-list > div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.metric-list dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.metric-list dd {
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--paper-muted);
}

.results-empty {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.results-empty strong {
  font-size: 1.02rem;
}

.results-empty p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ── Tres recorridos ───────────────────────────────────────────────── */

.use-cases {
  padding-block: var(--space-section);
  border-top: 1px solid var(--line);
}

.case-rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 56px);
}

.case {
  display: grid;
  gap: 14px;
  align-content: start;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.case h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.case > p {
  color: var(--paper-muted);
  line-height: 1.62;
  font-size: 0.98rem;
}

.case-flow {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-text);
  line-height: 1.7;
}

.case-flow span {
  color: var(--ink-muted);
  padding-inline: 2px;
}

/* ── Control humano ────────────────────────────────────────────────── */

.control {
  padding-block: var(--space-section);
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: start;
}

.control-heading {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 18px;
}

.control-ledger {
  display: grid;
}

.control-ledger > div {
  display: grid;
  gap: 6px;
  padding-block: 24px;
  border-top: 1px solid var(--paper-line);
}

.control-ledger > div:last-child {
  border-bottom: 1px solid var(--paper-line);
}

.control-ledger dt {
  font-size: clamp(1.14rem, 1.7vw, 1.34rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.control-ledger dd {
  color: var(--paper-ink-muted);
  line-height: 1.6;
  max-width: 56ch;
}

/* ── Precios ───────────────────────────────────────────────────────── */

.offer {
  padding-block: var(--space-section);
  border-top: 1px solid var(--line);
}

.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
}

.offer-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.offer-note {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.offer-board {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-soft), var(--ink-raised));
  box-shadow: var(--shadow-board);
  overflow: hidden;
}

.offer-trial {
  display: grid;
  gap: 12px;
  padding: 26px 26px 22px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(194, 86, 42, 0.16), transparent 70%);
}

.offer-line {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.45;
  color: var(--paper-muted);
}

.offer-line strong {
  color: var(--paper);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.offer-model {
  display: grid;
}

.offer-model > div {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  gap: 12px;
  padding: 16px 26px;
  border-bottom: 1px solid var(--line);
}

.offer-model > div:last-child {
  border-bottom: 0;
}

.offer-model dt {
  font-weight: 750;
  font-size: 0.95rem;
}

.offer-model dd {
  color: var(--paper-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ── FAQ ───────────────────────────────────────────────────────────── */

.faq {
  padding-block: var(--space-section);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 16px;
}

.faq-list {
  display: grid;
  gap: 34px;
}

.faq-group {
  display: grid;
}

.faq-group-label {
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.faq-list details {
  border-top: 1px solid var(--paper-line);
}

.faq-group details:last-child {
  border-bottom: 1px solid var(--paper-line);
}

.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  padding: 18px 2px;
  font-size: 1.04rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
}

.faq-list summary span::before,
.faq-list summary span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-ink);
  transform: translate(-50%, -50%);
  transition: transform 220ms var(--ease);
}

.faq-list summary span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-list details[open] summary span::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-list details p {
  padding: 0 36px 20px 2px;
  color: var(--paper-ink-muted);
  line-height: 1.65;
  max-width: 62ch;
}

/* ── Cierre ────────────────────────────────────────────────────────── */

.closing {
  background: var(--accent);
  color: var(--ink);
  padding-block: clamp(72px, 9vw, 136px);
}

.closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
}

.closing-title {
  font-size: clamp(3.6rem, 10.5vw, 9rem);
  color: var(--ink);
}

.closing-side {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.closing-side p {
  font-size: clamp(1.12rem, 1.7vw, 1.3rem);
  font-weight: 700;
  line-height: 1.55;
  color: #fff;
  max-width: 40ch;
}

/* ── Footer ────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 84px) clamp(48px, 6vw, 72px);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  gap: clamp(32px, 5vw, 84px);
  align-items: start;
}

.footer-brand-block {
  display: grid;
  gap: 16px;
}

.footer-lockup {
  display: inline-flex;
  width: min(240px, 60vw);
  color: var(--paper);
}

.footer-lockup svg {
  width: 100%;
  height: auto;
}

.footer-brand-block p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 34ch;
}

.footer-grid nav {
  display: grid;
  gap: 4px;
}

.footer-grid nav a,
.footer-access a {
  display: inline-block;
  padding: 8px 0;
  color: var(--paper-muted);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms var(--ease);
}

@media (hover: hover) {
  .footer-grid nav a:hover,
  .footer-access a:hover {
    color: var(--paper);
  }
}

.footer-access {
  display: grid;
  gap: 8px;
}

.footer-access p {
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  max-width: 28ch;
}

/* ── Dock móvil ────────────────────────────────────────────────────── */

.mobile-action {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 140;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 10px 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(32, 25, 21, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-action span {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mobile-action .button {
  min-height: 46px;
}

/* ── Revelados de sección (solo con JS) ────────────────────────────── */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 1120px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  }

  .sale-sticky {
    grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr);
  }

  .split-heading {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .split-heading .section-lede {
    justify-self: start;
  }
}

@media (max-width: 980px) {
  .section-shell,
  .header-inner,
  .sale-sticky {
    width: min(var(--max-width), 100% - 48px);
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 14px 24px 22px;
    background: rgba(23, 18, 14, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease),
      visibility 0s linear 200ms;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  html:not(.js) .site-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    flex-direction: row;
    flex-wrap: wrap;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  html:not(.js) .menu-toggle {
    display: none;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
    padding-block: 12px;
    row-gap: 2px;
  }

  html:not(.js) .site-nav {
    order: 3;
    flex-basis: 100%;
  }

  .site-nav a {
    padding: 14px 10px;
    font-size: 1.05rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-phone {
    max-width: 560px;
  }

  .problem-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .problem-clock {
    position: static;
  }

  .sale-sticky {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .sale-rail {
    display: none;
  }

  .sale-screen {
    order: -1;
    top: calc(var(--header-h) + 8px);
    z-index: 5;
    width: 100%;
  }

  .sale-ghost {
    display: none;
  }

  /* Compactar los paneles pegajosos: en columna, la altura del panel más
     alto define cuánto viewport queda para leer los pasos. */
  .sale-panel[data-sale-panel="2"] .mini-chat,
  .voucher-shot {
    display: none;
  }

  .voucher-fields {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }

  .sale-step {
    min-height: 42vh;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
  }

  .sale-step:first-child {
    padding-top: 48px;
  }

  .tour-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .tour-explanation {
    max-width: 60ch;
  }

  .case-rows {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .control-grid,
  .faq-grid,
  .offer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .control-heading,
  .faq-heading {
    position: static;
  }

  .closing-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
    --display-size: clamp(2.7rem, 12.4vw, 3.7rem);
    --headline-size: clamp(1.9rem, 8vw, 2.6rem);
    --space-section: 92px;
  }

  .section-shell,
  .header-inner,
  .sale-sticky {
    width: min(var(--max-width), 100% - 32px);
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy {
    gap: 20px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .belt-run li {
    font-size: 1rem;
    padding: 0 24px;
  }

  .clock-figure {
    font-size: clamp(5rem, 26vw, 8rem);
  }

  .evidence-ledger li,
  .evidence-ledger li:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .evidence-ledger li:nth-child(even) .evidence-figure {
    order: 0;
    text-align: left;
  }

  .evidence-figure {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .manual-window,
  .inbox-window {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-sidebar,
  .inbox-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-auto-flow: row;
  }

  .metric-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .metric-list > div:nth-child(odd) {
    border-right: 0;
  }

  .sale-step {
    min-height: 58vh;
  }

  .step-copy h3 {
    font-size: 1.4rem;
  }

  /* El dock fijo roba ~90px del borde inferior: la venta y la evidencia
     cierran con aire extra para que su última fila se lea por encima. */
  .sale,
  .evidence {
    padding-bottom: 150px;
  }

  .tour-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -16px;
    padding-inline: 16px;
    scrollbar-width: none;
  }

  .tour-tabs::-webkit-scrollbar {
    display: none;
  }

  .tour-tab {
    flex: none;
  }

  .mobile-action {
    display: flex;
    transform: translateY(calc(100% + 24px));
    transition: transform 220ms var(--ease);
  }

  .mobile-action.is-visible {
    transform: none;
  }

  html:not(.js) .mobile-action {
    transform: none;
  }

  .site-footer {
    padding-bottom: 120px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .closing-title {
    font-size: clamp(3.1rem, 16vw, 4.6rem);
  }
}

@media (max-width: 390px) {
  .hero-note {
    font-size: 0.84rem;
  }

  .brand-by {
    display: none;
  }

  .mobile-action span {
    display: none;
  }

  .mobile-action {
    padding-left: 10px;
  }

  .mobile-action .button {
    width: 100%;
  }

  /* La regla del dato rotulado no se apaga en ningún ancho: los chips de
     demostración se compactan, nunca desaparecen. */
  .demo-chip {
    padding: 4px 8px;
    font-size: 0.6rem;
    letter-spacing: 0.03em;
  }

  .phone-top .demo-chip {
    white-space: normal;
    max-width: 104px;
    text-align: right;
    line-height: 1.4;
  }

  .phone-top {
    padding: 13px 16px;
  }

  .phone-scroll {
    padding: 18px 14px 14px;
  }

  .bubble {
    max-width: 94%;
  }
}

@media (max-width: 340px) {
  :root {
    --display-size: 2.35rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .belt-run li {
    font-size: 0.9rem;
    padding: 0 18px;
  }
}

/* ── Sin JavaScript: todo visible, nada depende del guion ──────────── */

html:not(.js) .sale-screen {
  position: static;
  order: 0;
  display: grid;
  gap: 24px;
  margin-top: 8px;
}

html:not(.js) .sale-panel {
  grid-area: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
}

html:not(.js) .sale-step {
  opacity: 1;
  min-height: 0;
  padding-block: 20px;
}

html:not(.js) .bubble.typing {
  display: none;
}

html:not(.js) .sale-ghost {
  display: none;
}

/* ── Reducción de movimiento ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .belt-track {
    animation: none;
    transform: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .js [data-hero-reply].is-pending {
    opacity: 1;
    transform: none;
  }

  .accent-word::after {
    transform: scaleX(1) !important;
    animation: none !important;
  }

  .sale-step {
    opacity: 1;
  }
}

/* ── Páginas legales (/terminos · /privacidad) ─────────────────────── */

.legal-body {
  background: var(--paper);
  color: var(--ink);
}

.legal-header {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  width: min(var(--max-width), 100% - 48px);
  margin-inline: auto;
  min-height: var(--header-h);
  padding-block: 12px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
}

.legal-brand svg {
  width: 32px;
  height: 32px;
  flex: none;
}

.legal-brand b {
  display: block;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.legal-brand small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.legal-nav a {
  color: var(--paper-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
}

.legal-nav a:hover {
  color: var(--paper);
}

.legal-nav a[aria-current="page"] {
  color: var(--paper);
  background: var(--ink-raised);
}

.legal-shell {
  width: min(760px, 100% - 48px);
  margin-inline: auto;
  padding-block: clamp(56px, 8vw, 96px);
}

.legal-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.legal-shell h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 14px 0 18px;
}

.legal-lede {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--paper-ink-muted);
  max-width: 62ch;
  margin: 0 0 10px;
}

.legal-shell h2 {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 46px 0 12px;
}

.legal-shell p,
.legal-shell li {
  font-size: 1rem;
  line-height: 1.7;
  color: #3c332c;
}

.legal-shell p {
  margin: 0 0 14px;
}

.legal-shell ul {
  padding-left: 22px;
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}

.legal-shell a {
  color: var(--accent-ink);
  font-weight: 600;
}

.legal-shell strong {
  color: var(--ink);
}

.legal-note {
  border: 1px solid var(--paper-line-strong);
  background: var(--paper-deep);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin: 0 0 14px;
}

.legal-note p {
  margin: 0;
}

.legal-footer {
  border-top: 1px solid var(--paper-line);
}

.legal-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  width: min(var(--max-width), 100% - 48px);
  margin-inline: auto;
  padding-block: 26px;
  font-size: 0.9rem;
  color: var(--paper-ink-muted);
}

.legal-footer a {
  color: var(--accent-ink);
  font-weight: 600;
}
