/* ═══════════════════════════════════════════════════════════════════════
   Portada de la landing bajo el hero (S1). Solo tokens --ds-* de ds.css
   (GENERADO); clases lp-*. La cabecera y el hero viven en hero.css.
   Decisiones de Markyño sobre las opciones de explorations/s1:
   · A3 «Mareas» (D-044): sin bandas ni hairlines entre secciones; cuatro
     mareas estáticas de tinte de marca con grano (problema, evidencia,
     precios y cierre) y calma entre ellas. Cifras y reloj en JetBrains Mono,
     libros mayores con la firma en barra, casos en filas, aire máximo.
   · B1 «Escena» (D-045): la venta con los seis pasos y un solo frame
     pegajoso donde los paneles se funden; la conduce app.js (data-sale-*).
   · C1 «Réplica» (D-046): las maquetas son la app real migrada al sistema,
     en pequeño (barra con el símbolo, Nav, Tabs, Table, Badge, Switch,
     EmptyState «Caja»). El Badge es el del sistema (ds-badge, en ds.css).
   · D3 «Portada» (D-047): precios centrados con una tira ancha; el cierre
     trae de vuelta el campo (UN fotograma quieto, nunca un segundo campo
     vivo) con velo, grano y CTA de vidrio; pie compacto; dock de vidrio.
   Sustituye a styles.css (la landing vieja, solo oscura) en la portada.
   ═══════════════════════════════════════════════════════════════════════ */

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

/* D-008: IDs, cifras tabulares, reloj y rótulos. */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono.woff2') format('woff2');
}

/* ── Base (lo que la página tomaba de styles.css, ya con tokens) ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--ds-warm-500) var(--ds-bg);
  scrollbar-width: thin;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-font-sans);
  font-size: var(--ds-text-base);
  line-height: var(--ds-leading-relaxed);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

a.ds-button {
  text-decoration: none;
}

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

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--ds-focus);
  outline-offset: var(--ds-focus-offset);
}

::selection {
  background: var(--ds-accent);
  color: var(--ds-text-on-accent);
}

.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;
}

/* Por encima de la cabecera fija (--ds-z-fixed). */
.skip-link {
  position: fixed;
  top: var(--ds-space-3);
  left: var(--ds-space-3);
  z-index: var(--ds-z-tooltip);
  padding: var(--ds-space-3) var(--ds-space-4);
  border-radius: var(--ds-radius-md);
  background: var(--ds-cta);
  color: var(--ds-cta-fg);
  font-size: var(--ds-text-ui);
  font-weight: var(--ds-weight-semibold);
  text-decoration: none;
  transform: translateY(calc(-100% - var(--ds-space-6)));
  transition: transform var(--ds-dur-fast) var(--ds-ease-exit);
}

.skip-link:focus-visible {
  transform: none;
  transition: transform var(--ds-dur-base) var(--ds-ease-enter);
}

/* ── Escala local (Editorial, D-019): el titular de sección vive entre h1 (30) y el display del hero ── */
.lp-main,
.lp-footer,
.lp-dock {
  --lp-text-headline: clamp(2rem, 1.3rem + 2.3vw, 3.3rem);
  --lp-text-figure: clamp(2.6rem, 1.9rem + 3vw, 4.4rem);
  --lp-text-step: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem);
  /* títulos de paso de la venta y notas del recorrido (escala de B1 y C1) */
  --lp-text-scene: clamp(1.35rem, 2.1vw, 1.75rem);
  --lp-section-y: clamp(96px, 6vw + 56px, 160px);
  --lp-header-h: calc(var(--ds-control-h) + 2 * var(--ds-space-4));
}

.lp-shell {
  width: min(1240px, 100% - 2 * var(--ds-space-8));
  margin-inline: auto;
}

.lp-section {
  position: relative;
  isolation: isolate;
  padding-block: var(--lp-section-y);
  scroll-margin-top: var(--lp-header-h);
}

.lp-section > .lp-shell,
.lp-section > .ds-mesh__content {
  position: relative;
  z-index: 2;
}

/* ── Mareas (A3): glow radial de los tokens de luz y acento, estático, con grano al 10 % (D-021) ── */
.lp-problem::before,
.lp-evidence::before,
.lp-price::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* la primera marea baja desde el hero, por la izquierda */
.lp-problem::before {
  background: radial-gradient(70% 62% at 0% 0%, color-mix(in oklab, var(--ds-glow) 16%, transparent), transparent 70%);
}

/* la evidencia sube por la derecha */
.lp-evidence::before {
  background: radial-gradient(58% 80% at 100% 50%, color-mix(in oklab, var(--ds-accent) 16%, transparent), transparent 70%);
}

/* los precios, desde abajo a la izquierda (la cuarta marea es el cierre: el campo quieto) */
.lp-price::before {
  background: radial-gradient(62% 70% at 0% 100%, color-mix(in oklab, var(--ds-glow) 16%, transparent), transparent 70%);
}

.lp-grain {
  z-index: 1;
}

/* ── Tipografía ── */
.lp-head {
  display: grid;
  gap: var(--ds-space-5);
}

.lp-h2 {
  max-width: 22ch;
  font-size: var(--lp-text-headline);
  font-weight: var(--ds-weight-bold);
  line-height: var(--ds-leading-tight);
  letter-spacing: var(--ds-tracking-h1);
  text-wrap: balance;
}

.lp-lede {
  max-width: 56ch;
  font-size: var(--ds-text-lede);
  line-height: var(--ds-leading-normal);
  color: var(--ds-text-muted);
}

.lp-display {
  font-size: var(--ds-text-display);
  font-weight: var(--ds-weight-heavy);
  line-height: var(--ds-leading-display);
  letter-spacing: var(--ds-tracking-display);
  text-wrap: balance;
}

.lp-main h3 {
  font-size: var(--ds-text-h3);
  font-weight: var(--ds-weight-semibold);
  line-height: var(--ds-leading-snug);
  letter-spacing: var(--ds-tracking-tight);
}

/* ── Cinta de módulos: estática (Calma), en versalitas, una sola tanda ── */
.lp-belt {
  overflow: hidden;
}

.lp-belt__run {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ds-space-2) var(--ds-space-6);
  width: min(1240px, 100% - 2 * var(--ds-space-8));
  margin: 0 auto;
  padding: var(--ds-space-5) 0;
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
  letter-spacing: var(--ds-tracking-caps);
  text-transform: uppercase;
  color: var(--ds-text-muted);
}

/* ── El problema: el reloj en mono, a la altura de la hora; libro mayor en dos columnas con la firma ── */
.lp-problem__grid {
  display: grid;
  gap: var(--ds-space-10);
}

.lp-clock {
  display: grid;
  grid-auto-flow: column;
  justify-content: start;
  align-items: baseline;
  gap: var(--ds-space-5);
}

.lp-clock__figure {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-display);
  font-weight: var(--ds-weight-bold);
  line-height: var(--ds-leading-display);
  letter-spacing: var(--ds-tracking-display);
  font-variant-numeric: tabular-nums;
  color: var(--ds-accent-strong);
}

.lp-clock__caption {
  max-width: 30ch;
  font-size: var(--ds-text-base);
  line-height: var(--ds-leading-normal);
  color: var(--ds-text-muted);
}

.lp-problem__body {
  display: grid;
  gap: var(--ds-space-12);
}

.lp-ledger {
  display: grid;
  gap: var(--ds-space-8) var(--ds-space-12);
}

/* la firma como barra vertical del gradiente (Signature bar) */
.lp-ledger > div {
  display: grid;
  gap: var(--ds-space-1);
  align-content: start;
  padding-left: var(--ds-space-5);
  border-left: 3px solid var(--ds-accent);
  border-image: var(--ds-gradient-brand-fallback) 1;
  border-image: var(--ds-gradient-brand) 1;
}

.lp-ledger dt {
  font-size: var(--ds-text-base);
  font-weight: var(--ds-weight-semibold);
  line-height: var(--ds-leading-snug);
  letter-spacing: var(--ds-tracking-tight);
}

.lp-ledger dd {
  font-size: var(--ds-text-base);
  line-height: var(--ds-leading-normal);
  color: var(--ds-text-muted);
}

.lp-problem__ledger {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 1000px);
}

/* ── La venta completa (B1 · Escena): seis pasos | un frame pegajoso donde los paneles se funden.
   La conduce app.js (data-sale · data-sale-step · data-sale-panel · data-sale-ghost · --sale-progress). ── */
.lp-sale__head {
  margin-bottom: clamp(var(--ds-space-10), 5vw, var(--ds-space-20));
}

.lp-escena {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  column-gap: clamp(32px, 4vw, 72px);
  align-items: start;
}

.lp-escena__steps {
  position: relative;
  display: grid;
}

/* Riel: hairline a lo largo de los numerales; el tramo recorrido lleva la firma (gradiente de marca) y sigue a
   --sale-progress solo por transform. Pasa por detrás de los numerales (los pasos van encima). */
.lp-escena__steps::before,
.lp-escena__steps::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 19px;
  z-index: 0;
  width: 2px;
  border-radius: var(--ds-radius-xs);
  background: var(--ds-border);
}

.lp-escena__steps::after {
  background: var(--ds-gradient-brand-fallback);
  background: var(--ds-gradient-brand);
  transform-origin: top;
  transform: scaleY(var(--sale-progress, 0.16));
  transition: transform var(--ds-dur-slow) var(--ds-ease-enter);
}

.lp-escena__step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: var(--ds-space-5);
  align-content: center;
  min-height: 72vh;
  padding-block: var(--ds-space-8);
}

.lp-escena__num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-md);
  background-color: var(--ds-surface-raised);
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-ui);
  font-weight: var(--ds-weight-bold);
  color: var(--ds-text-muted);
  transition: background-color var(--ds-dur-fast) var(--ds-ease-enter), border-color var(--ds-dur-fast) var(--ds-ease-enter),
    color var(--ds-dur-fast) var(--ds-ease-enter);
}

/* El tinte es translúcido en dark: va sobre el fondo para que el riel no se vea a través del numeral. */
.lp-escena__step.is-active .lp-escena__num {
  border-color: var(--ds-accent);
  background-color: var(--ds-bg);
  background-image: linear-gradient(var(--ds-accent-tint), var(--ds-accent-tint));
  color: var(--ds-accent-strong);
}

/* El paso activo se distingue por COLOR (muted ≥ 7:1, texto ≥ 16:1), no por opacidad. */
.lp-escena__copy h3 {
  margin: 0 0 var(--ds-space-2);
  font-size: var(--lp-text-scene);
  font-weight: var(--ds-weight-bold);
  line-height: var(--ds-leading-tight);
  color: var(--ds-text-muted);
  transition: color var(--ds-dur-fast) var(--ds-ease-enter);
}

.lp-escena__copy p {
  max-width: 44ch;
  line-height: var(--ds-leading-relaxed);
  color: var(--ds-text-muted);
  transition: color var(--ds-dur-fast) var(--ds-ease-enter);
}

.lp-escena__step.is-active .lp-escena__copy h3,
.lp-escena__step.is-active .lp-escena__copy p {
  color: var(--ds-text);
}

/* El frame (440 px) queda centrado en el viewport, a la altura del paso activo; cada panel se centra dentro. */
.lp-escena__screen {
  position: sticky;
  top: max(calc(var(--lp-header-h) + var(--ds-space-6)), calc(50vh - 220px));
  display: grid;
}

.lp-escena__frame {
  display: grid;
  align-items: center;
  min-height: 440px;
}

/* Paneles apilados en la misma celda: el activo entra lento (400) con 4 px, el que sale se va rápido (150). */
.lp-escena__panel {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(var(--ds-dist-enter));
  transition: opacity var(--ds-dur-fast) var(--ds-ease-exit), transform var(--ds-dur-fast) var(--ds-ease-exit),
    visibility 0s linear var(--ds-dur-fast);
}

.lp-escena__panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--ds-dur-slow) var(--ds-ease-enter), transform var(--ds-dur-slow) var(--ds-ease-enter), visibility 0s;
}

/* Medidor (solo en columna, donde el riel no cabe): barra de la firma + numeral en mono que escribe app.js. */
.lp-escena__meter {
  display: none;
  align-items: center;
  gap: var(--ds-space-3);
}

.lp-escena__meter-track {
  flex: 1;
  height: 2px;
  overflow: hidden;
  border-radius: var(--ds-radius-xs);
  background: var(--ds-border);
}

.lp-escena__meter-fill {
  display: block;
  height: 100%;
  background: var(--ds-gradient-brand-fallback);
  background: var(--ds-gradient-brand);
  transform-origin: left;
  transform: scaleX(var(--sale-progress, 0.16));
  transition: transform var(--ds-dur-slow) var(--ds-ease-enter);
}

.lp-escena__meter-count {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--ds-text-muted);
}

/* ── Ventanas de la app (C1 · Réplica): frame radio 18 + barra con el símbolo; dentro, las familias «Caja» en pequeño.
   Controles dibujados: escenografía, no controles de la página. ── */
.lp-win {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-xl);
  background: var(--ds-surface);
  font-size: var(--ds-text-ui);
  line-height: var(--ds-leading-normal);
}

.lp-win__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-2) var(--ds-space-3);
  min-height: 48px;
  padding: var(--ds-space-2) var(--ds-space-4);
  border-bottom: 1px solid var(--ds-border);
  background: var(--ds-surface-sunken);
}

.lp-win__mark {
  flex: none;
  width: 18px;
  height: 18px;
}

.lp-win__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: var(--ds-weight-semibold);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lp-win__action {
  display: inline-flex;
  align-items: center;
  height: var(--ds-control-h-sm);
  padding: 0 var(--ds-space-3);
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface-raised);
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  white-space: nowrap;
}

.lp-win__body {
  display: grid;
  gap: var(--ds-space-4);
  padding: var(--ds-space-4);
}

.lp-win__body--flush {
  padding: 0;
}

.lp-win__body--split {
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 0;
  padding: 0;
}

/* Nav «Caja» */
.lp-side {
  display: grid;
  gap: 2px;
  align-content: start;
  padding: var(--ds-space-3);
  border-right: 1px solid var(--ds-border);
}

.lp-side__title {
  height: 28px;
  padding: 0 var(--ds-space-2);
  font-size: var(--ds-text-2xs);
  font-weight: var(--ds-weight-semibold);
  line-height: 28px;
  letter-spacing: var(--ds-tracking-caps);
  text-transform: uppercase;
  color: var(--ds-text-muted);
}

.lp-side__item {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  height: 36px;
  padding: 0 var(--ds-space-3);
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--ds-radius-md);
  font-weight: var(--ds-weight-medium);
  color: var(--ds-text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lp-side__icon {
  flex: none;
  width: 18px;
  height: 18px;
}

.lp-side__item.is-active {
  border-color: var(--ds-border-strong);
  background: var(--ds-surface-raised);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-text);
}

.lp-side__item.is-active .lp-side__icon {
  color: var(--ds-accent-strong);
}

/* Editor del manual */
.lp-editor {
  display: grid;
  gap: var(--ds-space-3);
  align-content: start;
  padding: var(--ds-space-4) var(--ds-space-5);
}

.lp-main .lp-editor h3,
.lp-editor__head h4 {
  font-size: var(--ds-text-h3);
  font-weight: var(--ds-weight-bold);
  line-height: var(--ds-leading-normal);
  letter-spacing: var(--ds-tracking-tight);
}

.lp-editor > p {
  color: var(--ds-text-muted);
}

.lp-editor__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-2);
}

.lp-editor__note {
  font-size: var(--ds-text-xs);
  color: var(--ds-text-muted);
}

.lp-rules {
  display: grid;
  gap: var(--ds-space-2);
}

/* Fila de regla: control en caja (raised + hairline fuerte, radio 10) */
.lp-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-1) var(--ds-space-3);
  min-height: var(--ds-control-h);
  padding: var(--ds-space-2) var(--ds-space-3);
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface-raised);
}

/* el rótulo de la fila; un Badge dentro conserva su tono */
.lp-rule > span:not(.ds-badge) {
  color: var(--ds-text-muted);
}

.lp-rule strong {
  font-weight: var(--ds-weight-semibold);
}

.lp-rule.is-armed {
  border-color: var(--ds-accent);
  background: var(--ds-accent-tint);
}

.lp-rule.is-armed strong {
  color: var(--ds-accent-strong);
}

/* Switch «Caja» ON (dibujado) */
.lp-switch {
  position: relative;
  display: inline-block;
  flex: none;
  width: 36px;
  height: 20px;
  border: 1px solid var(--ds-cta);
  border-radius: var(--ds-radius-full);
  background: var(--ds-cta);
}

.lp-switch__thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--ds-cta-fg);
  border-radius: var(--ds-radius-full);
  background: var(--ds-cta-fg);
  transform: translateX(16px);
}

/* Lista de conversaciones (bandeja) */
.lp-list {
  display: grid;
  gap: 2px;
  align-content: start;
  padding: var(--ds-space-3);
  border-right: 1px solid var(--ds-border);
}

.lp-list__item {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-2) var(--ds-space-3);
  border: 1px solid transparent;
  border-radius: var(--ds-radius-md);
}

.lp-list__item > div {
  display: grid;
  gap: var(--ds-space-1);
  justify-items: start;
  min-width: 0;
}

.lp-list__item strong {
  max-width: 100%;
  overflow: hidden;
  font-weight: var(--ds-weight-semibold);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lp-list__item.is-active {
  border-color: var(--ds-border-strong);
  background: var(--ds-surface-raised);
}

.lp-avatar {
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-full);
  background: var(--ds-surface-sunken);
}

/* Chat sobre superficie sólida (las burbujas del hero cuentan con el campo detrás) */
.lp-thread {
  display: grid;
  gap: var(--ds-space-2);
  align-content: start;
}

.lp-win__body--split .lp-thread {
  padding: var(--ds-space-4);
}

.lp-thread__bubble {
  max-width: 88%;
  padding: var(--ds-space-2) var(--ds-space-3);
  border-radius: var(--ds-radius-lg);
}

.lp-thread__bubble--in {
  justify-self: start;
  border: 1px solid var(--ds-border);
  border-bottom-left-radius: var(--ds-radius-xs);
  background: var(--ds-surface-raised);
}

.lp-thread__bubble--out {
  justify-self: end;
  border-bottom-right-radius: var(--ds-radius-xs);
  background: color-mix(in oklab, var(--ds-accent) 16%, var(--ds-surface-raised));
}

.lp-thread__bubble--wide {
  max-width: 100%;
}

.lp-thread__meta {
  display: block;
  margin-top: var(--ds-space-1);
  font-size: var(--ds-text-2xs);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ds-text-muted);
}

.lp-thread__day {
  font-size: var(--ds-text-xs);
  color: var(--ds-text-muted);
}

/* Alert en línea «Caja» (tinte + hairline del tono; el tono es AA sobre su tinte, D-043) */
.lp-alert {
  --ds-tone: var(--ds-text-muted);
  --ds-tone-tint: var(--ds-surface-sunken);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-1) var(--ds-space-3);
  padding: var(--ds-space-2) var(--ds-space-3);
  border: 1px solid var(--ds-tone);
  border-radius: var(--ds-radius-md);
  background: var(--ds-tone-tint);
}

.lp-alert--success {
  --ds-tone: var(--ds-success);
  --ds-tone-tint: var(--ds-success-tint);
}

.lp-alert span {
  font-size: var(--ds-text-sm);
  color: var(--ds-text-muted);
}

.lp-alert strong {
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-tone);
}

.lp-alert--stack {
  display: grid;
  gap: 2px;
  justify-items: start;
  padding: var(--ds-space-3) var(--ds-space-4);
}

.lp-alert--stack strong {
  font-size: var(--ds-text-h3);
  letter-spacing: var(--ds-tracking-tight);
}

.lp-note {
  padding: var(--ds-space-2) var(--ds-space-3);
  border: 1px solid var(--ds-accent);
  border-radius: var(--ds-radius-md);
  background: var(--ds-accent-tint);
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-accent-strong);
}

/* Table «Caja» (D-027): filas por hairline, 13,5, numéricos tabulares */
.lp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--ds-text-table);
  line-height: var(--ds-leading-snug);
}

.lp-table td {
  padding: var(--ds-space-3) var(--ds-cell-x);
  border-bottom: 1px solid var(--ds-border);
  vertical-align: middle;
}

.lp-table tr:last-child td {
  border-bottom: 0;
}

.lp-table td:first-child {
  padding-left: var(--ds-space-4);
}

.lp-table td:last-child {
  padding-right: var(--ds-space-4);
}

.lp-table__narrow {
  width: 1%;
  white-space: nowrap;
}

.lp-table__end {
  white-space: nowrap;
  text-align: right;
}

.lp-table strong {
  display: block;
  font-weight: var(--ds-weight-medium);
}

.lp-table small {
  display: block;
  margin-top: 1px;
  font-size: var(--ds-text-xs);
  line-height: var(--ds-leading-normal);
  color: var(--ds-text-muted);
}

.lp-table--boxed {
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
}

.lp-code {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 28px;
  padding: 0 var(--ds-space-2);
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-surface-raised);
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-2xs);
  font-weight: var(--ds-weight-bold);
  letter-spacing: var(--ds-tracking-wide);
  color: var(--ds-text-muted);
}

.lp-table .lp-amount {
  margin-bottom: var(--ds-space-1);
  font-size: var(--ds-text-h3);
  font-weight: var(--ds-weight-bold);
  font-variant-numeric: tabular-nums;
}

.lp-thumb {
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-md);
  background: url('/assets/colageno.jpg') center / cover no-repeat;
}

.lp-shot {
  display: grid;
  gap: 2px;
  padding: var(--ds-space-4);
  border: 1px dashed var(--ds-border-strong);
  border-radius: var(--ds-radius-lg);
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--ds-surface) 94%, transparent), color-mix(in oklab, var(--ds-surface) 64%, transparent) 55%, color-mix(in oklab, var(--ds-surface) 28%, transparent)),
    url('/assets/voucher-yape.jpg') center 42% / cover no-repeat;
}

.lp-shot span {
  font-weight: var(--ds-weight-semibold);
}

.lp-shot small {
  font-size: var(--ds-text-xs);
  color: var(--ds-text-muted);
}

.lp-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ds-space-2);
}

.lp-fields > div {
  display: grid;
  gap: 2px;
  padding: var(--ds-space-2) var(--ds-space-3);
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface-raised);
}

.lp-fields dt,
.lp-kpi dt {
  font-size: var(--ds-text-2xs);
  font-weight: var(--ds-weight-semibold);
  letter-spacing: var(--ds-tracking-caps);
  text-transform: uppercase;
  color: var(--ds-text-muted);
}

.lp-fields dd {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  font-variant-numeric: tabular-nums;
}

.lp-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-2);
}

/* KPIs y estado vacío «Caja» (D-031) */
.lp-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ds-space-3);
}

.lp-kpi {
  display: grid;
  gap: var(--ds-space-1);
  padding: var(--ds-space-3) var(--ds-space-4);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
}

.lp-kpi dd {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-h2);
  font-weight: var(--ds-weight-bold);
  font-variant-numeric: tabular-nums;
  color: var(--ds-text-muted);
}

.lp-empty {
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-3);
  padding: var(--ds-space-4);
  border: 1px dashed var(--ds-border-strong);
  border-radius: var(--ds-radius-lg);
}

.lp-empty__icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--ds-radius-md);
  background: var(--ds-accent-tint);
  color: var(--ds-accent-strong);
}

.lp-empty__icon svg {
  width: 22px;
  height: 22px;
}

.lp-empty strong {
  display: block;
  font-size: var(--ds-text-base);
  font-weight: var(--ds-weight-semibold);
  letter-spacing: var(--ds-tracking-tight);
}

.lp-empty p {
  margin-top: var(--ds-space-1);
  font-size: var(--ds-text-sm);
  color: var(--ds-text-muted);
}

/* ── Recorrido (#producto): Tabs «Caja» (D-026) con la caja activa que se desliza (app.js); sin JS, fija ── */
.lp-tour__shell {
  display: grid;
  gap: var(--ds-space-6);
  margin-top: clamp(var(--ds-space-8), 4vw, var(--ds-space-12));
}

.lp-tour__tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  max-width: 100%;
  padding: 3px;
  overflow-x: auto;
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface-sunken);
  scrollbar-width: none;
}

.lp-tour__tabs::-webkit-scrollbar {
  display: none;
}

.lp-tour__tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 36px;
  padding: 0 var(--ds-space-4);
  border: 0;
  border-radius: var(--ds-radius-sm);
  background: transparent;
  font-size: var(--ds-text-ui);
  font-weight: var(--ds-weight-medium);
  line-height: 1;
  white-space: nowrap;
  color: var(--ds-text-muted);
  cursor: pointer;
  transition: color var(--ds-dur-fast) var(--ds-ease-enter);
}

.lp-tour__tab:hover:not(.is-selected) {
  color: var(--ds-text);
}

.lp-tour__tab.is-selected {
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-text);
}

.lp-tour__tab:focus-visible {
  outline-offset: -2px;
}

.lp-tour__ind {
  position: absolute;
  top: 3px;
  left: 0;
  z-index: 0;
  width: 0;
  height: calc(100% - 6px);
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-surface-raised);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--ds-dur-base) var(--ds-ease-enter);
}

.lp-tour__ind.is-on {
  opacity: 1;
}

.lp-tour__tabs:not(.has-ind) .lp-tour__tab.is-selected {
  background: var(--ds-surface-raised);
  outline: 1px solid var(--ds-border-strong);
  outline-offset: -1px;
}

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

.lp-tour__panel:focus-visible {
  outline-offset: 8px;
  border-radius: var(--ds-radius-xs);
}

.lp-tour__note {
  display: grid;
  gap: var(--ds-space-3);
}

.lp-main .lp-tour__note h3 {
  font-size: var(--lp-text-scene);
  font-weight: var(--ds-weight-bold);
  line-height: var(--ds-leading-tight);
  text-wrap: balance;
}

.lp-tour__note p {
  line-height: var(--ds-leading-relaxed);
  color: var(--ds-text-muted);
}

/* ── Evidencia: cifras en mono, sin divisores, mucho aire ── */
.lp-evidence__head {
  max-width: 720px;
  margin-bottom: var(--ds-space-16);
}

.lp-figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ds-space-12) var(--ds-space-10);
}

.lp-figures__item {
  display: grid;
  gap: var(--ds-space-3);
  align-content: start;
}

.lp-figure {
  display: block;
  font-family: var(--ds-font-mono);
  font-size: var(--lp-text-figure);
  font-weight: var(--ds-weight-bold);
  line-height: 1;
  letter-spacing: var(--ds-tracking-tight);
  font-variant-numeric: tabular-nums;
}

.lp-figures__item--zero .lp-figure {
  color: var(--ds-accent-strong);
}

.lp-figures__item p {
  max-width: 34ch;
  line-height: var(--ds-leading-normal);
  color: var(--ds-text-muted);
}

.lp-figures__item strong {
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-text);
}

/* ── Casos: filas (título a la izquierda, relato a la derecha, el flujo en mono versalitas) ── */
.lp-cases__rows {
  display: grid;
  margin-top: var(--ds-space-12);
  border-top: 1px solid var(--ds-border);
}

.lp-case {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--ds-space-4) var(--ds-space-12);
  align-content: start;
  padding: var(--ds-space-8) 0;
  border-bottom: 1px solid var(--ds-border);
}

.lp-main .lp-case h3 {
  font-size: var(--lp-text-step);
  font-weight: var(--ds-weight-bold);
  line-height: var(--ds-leading-tight);
}

.lp-case > p {
  grid-column: 2;
  max-width: 60ch;
  line-height: var(--ds-leading-normal);
  color: var(--ds-text-muted);
}

.lp-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-1) var(--ds-space-2);
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-medium);
  letter-spacing: var(--ds-tracking-wide);
  text-transform: uppercase;
}

.lp-flow__arrow {
  color: var(--ds-accent);
}

/* ── Control: titular arriba, tres columnas con la firma ── */
.lp-control__grid {
  display: grid;
  gap: var(--ds-space-12);
}

.lp-control__ledger {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ── Precios (D3 · Portada) sobre la marea: copy centrado con el CTA sólido y la tira ancha debajo ── */
.lp-price__copy {
  display: grid;
  gap: var(--ds-space-5);
  justify-items: center;
  width: min(100%, 760px);
  margin-inline: auto;
  text-align: center;
}

.lp-price__cta {
  display: grid;
  gap: var(--ds-space-3);
  justify-items: center;
  margin-top: var(--ds-space-4);
}

.lp-price__note {
  max-width: 40ch;
  font-size: var(--ds-text-sm);
  line-height: var(--ds-leading-normal);
  color: var(--ds-text-muted);
}

/* Marco «Caja» (D-025: superficie + hairline, radio 18) */
.lp-price__strip {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  margin-top: var(--ds-space-12);
  overflow: hidden;
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-xl);
  background: var(--ds-surface);
}

.lp-price__trial {
  display: grid;
  gap: var(--ds-space-4);
  align-content: start;
  padding: var(--ds-space-6);
  border-right: 1px solid var(--ds-border);
  background: var(--ds-accent-tint);
}

.lp-price__line {
  font-size: var(--ds-text-lede);
  line-height: var(--ds-leading-snug);
}

.lp-price__line strong,
.lp-price__cell strong {
  font-weight: var(--ds-weight-bold);
}

.lp-price__model {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lp-price__cell {
  display: grid;
  gap: var(--ds-space-2);
  align-content: start;
  padding: var(--ds-space-6);
  border-left: 1px solid var(--ds-border);
}

.lp-price__cell:first-child {
  border-left: 0;
}

.lp-price__cell dt {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-medium);
  letter-spacing: var(--ds-tracking-wide);
  text-transform: uppercase;
  color: var(--ds-text-muted);
}

.lp-price__cell dd {
  font-size: var(--ds-text-base);
  line-height: var(--ds-leading-normal);
  color: var(--ds-text-muted);
}

.lp-price__cell dd strong {
  color: var(--ds-text);
}

/* ── Preguntas: una columna de lectura; <details>/<summary> nativos, el icono gira por transform (Calma) ── */
.lp-faq__grid {
  display: grid;
  gap: var(--ds-space-12);
  max-width: 840px;
}

.lp-faq__list {
  display: grid;
  gap: var(--ds-space-12);
}

/* el rótulo de cada grupo es un h3 (tamaño y peso de .lp-main h3) en mono versalitas */
.lp-faq__label {
  font-family: var(--ds-font-mono);
  text-transform: uppercase;
  color: var(--ds-text-muted);
}

.lp-faq__item {
  border-top: 1px solid var(--ds-border);
}

.lp-faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--ds-space-4);
  padding: var(--ds-space-4) 0;
  border-radius: var(--ds-radius-sm);
  list-style: none;
  font-size: var(--ds-text-base);
  font-weight: var(--ds-weight-semibold);
  line-height: var(--ds-leading-snug);
  cursor: pointer;
}

.lp-faq__item summary::-webkit-details-marker {
  display: none;
}

.lp-faq__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}

.lp-faq__icon::before,
.lp-faq__icon::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 12px;
  height: 2px;
  border-radius: var(--ds-radius-xs);
  background: var(--ds-text-muted);
  transition: transform var(--ds-dur-base) var(--ds-ease-enter);
}

.lp-faq__icon::after {
  transform: rotate(90deg);
}

.lp-faq__item[open] .lp-faq__icon::after {
  transform: rotate(0deg);
}

.lp-faq__body {
  padding: 0 0 var(--ds-space-5);
}

.lp-faq__body p {
  max-width: 62ch;
  line-height: var(--ds-leading-normal);
  color: var(--ds-text-muted);
}

.lp-faq__body a {
  color: var(--ds-accent-strong);
  text-underline-offset: 0.15em;
}

/* ── Cierre (D3): el campo vuelve en UN fotograma quieto de MeshFlow (app.js lo pinta; nunca un segundo campo vivo),
   con velo, grano y el CTA de vidrio, como el hero. D-041: texto pleno sobre el velo, nunca muted. ── */
.lp-end {
  display: grid;
  align-content: center;
  min-height: 72vh;
  padding-block: clamp(var(--ds-space-20), 12vw, 176px);
  background: var(--ds-bg);
}

/* el velo se centra en el copy, que va todo a la izquierda */
.lp-end.ds-mesh--veil::after {
  background: radial-gradient(90% 115% at 24% 55%, var(--ds-field-veil), transparent 70%);
}

.lp-end__cover {
  display: grid;
  gap: var(--ds-space-8);
  justify-items: start;
}

.lp-end__side {
  display: grid;
  gap: var(--ds-space-6);
  justify-items: start;
  max-width: 44ch;
}

.lp-end__side p {
  font-size: var(--ds-text-lede);
  line-height: var(--ds-leading-normal);
}

/* ── Pie compacto (D3): marca a la izquierda; navegación y accesos a la derecha en dos líneas ── */
.lp-footer {
  padding-block: var(--ds-space-8) var(--ds-space-10);
  border-top: 1px solid var(--ds-border);
  font-size: var(--ds-text-sm);
  line-height: var(--ds-leading-normal);
  color: var(--ds-text-muted);
}

.lp-footer a {
  color: var(--ds-text-muted);
  text-decoration: none;
  transition: color var(--ds-dur-fast) var(--ds-ease-enter);
}

.lp-footer a:hover {
  color: var(--ds-text);
}

.lp-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--ds-space-3) var(--ds-space-12);
  align-items: start;
}

.lp-footer__brand {
  grid-row: 1 / 3;
  display: grid;
  gap: var(--ds-space-3);
  justify-items: start;
}

.lp-footer__lockup {
  display: inline-flex;
  border-radius: var(--ds-radius-sm);
}

.lp-footer__lockup svg {
  display: block;
  width: auto;
  height: 24px;
}

.lp-footer__tagline {
  max-width: 40ch;
  font-size: var(--ds-text-xs);
}

.lp-footer__nav,
.lp-footer__access {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--ds-space-2) var(--ds-space-5);
}

.lp-footer__access {
  font-size: var(--ds-text-xs);
}

.lp-footer__login {
  font-weight: var(--ds-weight-semibold);
}

/* ── Dock móvil de vidrio (D3; app.js lo enseña al pasar los CTA del hero). El CTA sigue sólido (D-014). ── */
.mobile-action {
  position: fixed;
  left: var(--ds-space-4);
  right: var(--ds-space-4);
  bottom: calc(var(--ds-space-4) + env(safe-area-inset-bottom, 0px));
  z-index: var(--ds-z-fixed);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  padding: var(--ds-space-2) var(--ds-space-2) var(--ds-space-2) var(--ds-space-4);
  border: 1px solid transparent;
  box-shadow: var(--ds-shadow-float);
  color: var(--ds-text);
}

.lp-dock__label {
  font-weight: var(--ds-weight-heavy);
  letter-spacing: var(--ds-tracking-tight);
}

/* ── Revelado Calma (fundido + 4 px, 400 ms, escalonado 60 ms); solo si hay IntersectionObserver (`lp-io`, app.js) ── */
.lp-io [data-lp-in] {
  opacity: 0;
}

.lp-io [data-lp-in].is-in {
  animation: lp-in var(--ds-dur-slow) var(--ds-ease-enter) both;
}

.lp-io [data-lp-in='stagger'] {
  opacity: 1;
}

.lp-io [data-lp-in='stagger'] > * {
  opacity: 0;
}

.lp-io [data-lp-in='stagger'].is-in {
  animation: none;
}

.lp-io [data-lp-in='stagger'].is-in > * {
  animation: lp-in var(--ds-dur-slow) var(--ds-ease-enter) both;
  animation-delay: calc(var(--lp-i, 0) * var(--ds-stagger));
}

[data-lp-in='stagger'] > :nth-child(2) { --lp-i: 1; }
[data-lp-in='stagger'] > :nth-child(3) { --lp-i: 2; }
[data-lp-in='stagger'] > :nth-child(4) { --lp-i: 3; }
[data-lp-in='stagger'] > :nth-child(5) { --lp-i: 4; }

@keyframes lp-in {
  from {
    opacity: 0;
    transform: translateY(var(--ds-dist-enter));
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Sin JavaScript: la venta entera en orden, nada pegajoso ni oculto ── */
html:not(.js) .lp-escena__screen {
  position: static;
}

html:not(.js) .lp-escena__frame {
  gap: var(--ds-space-6);
}

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

html:not(.js) .lp-escena__step {
  min-height: 0;
  padding-block: var(--ds-space-5);
}

html:not(.js) .lp-escena__copy h3,
html:not(.js) .lp-escena__copy p {
  color: var(--ds-text);
}

/* ── Responsive (980 · 720 · 480, como hero.css) ── */
@media (max-width: 980px) {
  .lp-shell,
  .lp-belt__run {
    width: min(1240px, 100% - 2 * var(--ds-space-6));
  }

  .lp-main,
  .lp-footer,
  .lp-dock {
    --lp-header-h: calc(var(--ds-control-h) + 2 * var(--ds-space-3));
  }

  /* Venta en columna: el frame se pega arriba y los pasos pasan por debajo (app.js activa en la franja visible). */
  .lp-escena {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-escena__screen {
    order: -1;
    top: calc(var(--lp-header-h) + var(--ds-space-2));
    z-index: 5;
  }

  /* Los paneles (opacos) se alinean arriba; el medidor va ENCIMA del frame para no dejar un hueco bajo los cortos. */
  .lp-escena__frame {
    align-items: start;
    min-height: 0;
  }

  /* Los pasos pasan POR DEBAJO del frame: en el cruce, el panel que sale espera opaco (debajo) a que el que entra
     termine de fundirse; si no, a mitad del cruce se leían los pasos a través de los dos paneles. */
  .lp-escena__panel {
    z-index: 1;
    align-self: start;
    transition: opacity var(--ds-dur-fast) var(--ds-ease-exit) var(--ds-dur-slow),
      transform var(--ds-dur-fast) var(--ds-ease-exit) var(--ds-dur-slow),
      visibility 0s linear calc(var(--ds-dur-slow) + var(--ds-dur-fast));
  }

  .lp-escena__panel.is-active {
    z-index: 2;
  }

  .lp-escena__steps::before,
  .lp-escena__steps::after {
    display: none;
  }

  .lp-escena__meter {
    display: flex;
    order: -1;
    padding: var(--ds-space-2) 0 var(--ds-space-3);
    background: var(--ds-bg);
  }

  /* Paneles compactos: el más alto decide cuánto viewport queda para leer los pasos. */
  .lp-escena .lp-win__bar {
    min-height: 40px;
    padding: var(--ds-space-2) var(--ds-space-3);
  }

  .lp-escena .lp-win__body {
    gap: var(--ds-space-2);
    padding: var(--ds-space-3);
  }

  .lp-escena [data-sale-compact] {
    display: none;
  }

  .lp-escena__step {
    min-height: 42vh;
    align-content: start;
    padding-block: var(--ds-space-6);
  }

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

  .lp-tour__note {
    max-width: 60ch;
  }

  .lp-figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ds-space-10) var(--ds-space-6);
  }

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

  .lp-case > p {
    grid-column: 1;
  }

  .lp-control__ledger {
    gap: var(--ds-space-8);
  }

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

  .lp-price__trial {
    border-right: 0;
    border-bottom: 1px solid var(--ds-border);
  }

  .lp-price__cell {
    border-left: 0;
    border-top: 1px solid var(--ds-border);
  }

  .lp-price__cell:first-child {
    border-top: 0;
  }

  /* Apilado: el copy ocupa todo el ancho; velo en columna, como el hero en móvil (D-042). */
  .lp-end {
    min-height: 0;
  }

  .lp-end.ds-mesh--veil::after {
    background: linear-gradient(to bottom, var(--ds-field-veil) 62%, transparent 86%);
    opacity: 0.86;
  }

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

  .lp-footer__brand {
    grid-row: auto;
  }

  .lp-footer__nav,
  .lp-footer__access {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .lp-shell,
  .lp-belt__run {
    width: min(1240px, 100% - 2 * var(--ds-space-4));
  }

  .lp-h2 {
    max-width: none;
  }

  /* La cinta, en una sola línea que se desvanece por la derecha (decorativa: aria-hidden). */
  .lp-belt__run {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: var(--ds-space-2) var(--ds-space-4);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, black 78%, transparent);
    mask-image: linear-gradient(90deg, black 78%, transparent);
  }

  .lp-clock {
    grid-auto-flow: row;
    gap: var(--ds-space-2);
  }

  /* El dock móvil roba ~90 px del borde inferior: la última fila de la venta se lee por encima. */
  .lp-sale {
    padding-bottom: 150px;
  }

  .lp-win__action {
    display: none;
  }

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

  .lp-side,
  .lp-list {
    border-right: 0;
    border-bottom: 1px solid var(--ds-border);
  }

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

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

  .lp-thread__bubble {
    max-width: 94%;
  }

  .lp-tour__tabs {
    display: flex;
    justify-self: stretch;
  }

  /* El dock toma el relevo del CTA de la barra (hero.css lo oculta a ≤ 720). */
  .mobile-action {
    display: flex;
    transform: translateY(calc(100% + var(--ds-space-8)));
    transition: transform var(--ds-dur-base) var(--ds-ease-exit);
  }

  .mobile-action.is-visible {
    transform: none;
    transition: transform var(--ds-dur-base) var(--ds-ease-enter);
  }

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

  .lp-footer {
    padding-bottom: calc(var(--ds-space-24) + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  .lp-problem__ledger,
  .lp-figures {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ds-space-8);
  }

  .lp-price__trial,
  .lp-price__cell {
    padding: var(--ds-space-5);
  }

  .lp-footer__lockup svg {
    height: 20px;
  }
}

/* hero.css recorta el lockup de la barra a «optiMind» por debajo de 400 px; el del pie tiene sitio y va completo. */
@media (max-width: 400px) {
  .lp-footer .lp-brand__by {
    display: inline;
  }
}

/* ── Reduced-motion diseñado (MOTION.md §5): estado final desde el primer paint; los paneles de la venta cambian por
   fundido, sin desplazarse; el riel, el medidor y la caja de las pestañas saltan a su sitio. ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .lp-io [data-lp-in],
  .lp-io [data-lp-in='stagger'] > * {
    opacity: 1;
  }

  .lp-io [data-lp-in].is-in,
  .lp-io [data-lp-in='stagger'].is-in > * {
    animation: none;
  }

  .lp-escena__panel {
    transform: none;
    transition: opacity var(--ds-dur-base) var(--ds-ease-exit), visibility 0s linear var(--ds-dur-base);
  }

  .lp-escena__panel.is-active {
    transition: opacity var(--ds-dur-base) var(--ds-ease-enter), visibility 0s;
  }

  .lp-escena__steps::after,
  .lp-escena__meter-fill,
  .lp-tour__ind,
  .lp-faq__icon::before,
  .lp-faq__icon::after {
    transition: none;
  }

  /* en columna, el panel que sale sigue opaco debajo hasta que el que entra termina de fundirse */
  @media (max-width: 980px) {
    .lp-escena__panel {
      transition: opacity var(--ds-dur-base) var(--ds-ease-exit) var(--ds-dur-base), visibility 0s linear calc(2 * var(--ds-dur-base));
    }
  }

  /* el dock entra y sale en fundido, sin deslizarse */
  .mobile-action {
    transform: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ds-dur-base) var(--ds-ease-exit), visibility 0s linear var(--ds-dur-base);
  }

  .mobile-action.is-visible,
  html:not(.js) .mobile-action {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--ds-dur-base) var(--ds-ease-enter), visibility 0s;
  }
}
