/* Portada.
   Papel cálido y tinta, lima como marcador, Inter para decir e Instrument
   Serif itálica para subrayar una o dos palabras. La semana laboral se
   presenta como un instrumento que se puede tocar; lo demás es prueba de
   producto y hechos. Es clara siempre: no sigue el modo oscuro del sistema.
   Sin colores literales: todos salen de brand.css.

   Movimiento (skills animate, choreograph y apple-design). Es una página
   que se ve pocas veces: aquí vive el presupuesto de movimiento expresivo.
   - Entrada del héroe, una vez. El titular guía (sube por su máscara, dos
     líneas a 0 y 90 ms); el rótulo solo aparece; el texto y los botones lo
     siguen (200 ms) y la regla cierra (320 ms). Intervalos desiguales.
   - Revelado al hacer scroll: una vez por bloque, opacidad y 14 px de
     subida. Las tarjetas de una misma fila se escalonan con intervalos que
     se acortan. Las ilustraciones entran con su tarjeta: una sola entrada
     por contenedor.
   - La regla: manipulación directa 1:1; al soltar, un resorte sin rebote.
   - Las cifras son datos: cambian al instante, no se animan.
   - Nada bloquea la interacción ni se repite en bucle. Con movimiento
     reducido no hay desplazamientos: el grupo aparece junto. Sin JavaScript
     todo está visible desde el inicio. */

.landing { --wide: min(1200px, 100% - 48px); overflow-x: clip; }
@media (max-width: 560px) { .landing { --wide: calc(100% - 40px); } }
.wide { width: var(--wide); margin-inline: auto; }
html:has(.landing) { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html:has(.landing) { scroll-behavior: auto; } }

.skip { position: absolute; left: 16px; top: -64px; z-index: 20; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 550; }
.skip:focus { top: 12px; }

/* ── Barra ── */
.site-bar { border-bottom-color: transparent; transition: border-color var(--t-ui) ease; }
.site-bar[data-scrolled] { border-bottom-color: var(--line); }
.site-bar .bar-in { justify-content: space-between; min-height: 64px; flex-wrap: nowrap; padding-top: 0; gap: 16px; }
.site-nav { display: flex; gap: 28px; margin-left: auto; margin-right: 12px; }
.site-nav a, .site-login { color: var(--text-2); font-size: 0.9375rem; transition: color var(--t-ui) ease; }
.site-login { color: var(--text); font-weight: 500; padding: 10px 4px; }
.site-bar .btn { min-height: 40px; padding: 0 1.1em; font-size: 0.9375rem; }
@media (hover: hover) and (pointer: fine) { .site-nav a:hover { color: var(--text); } .site-login:hover { text-decoration: underline; text-underline-offset: 3px; } }
/* En teléfono queda el botón principal; el acceso sigue en el héroe y en el cierre. */
@media (max-width: 900px) { .site-nav { display: none; } .site-login { margin-left: auto; } }
@media (max-width: 560px) { .site-login { display: none; } }
@media (max-width: 400px) { .site-bar .logo .word { display: none; } }

/* ── Héroe ── */
.hero { position: relative; padding: clamp(32px, 6vh, 72px) 0 clamp(20px, 3vh, 32px); }
/* El único rótulo de la página: la cuenta regresiva, que es un dato. El
   punto lima marca que algo espera una acción. */
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(20px, 3vh, 28px);
  padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text); font-variant-numeric: tabular-nums;
}
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--lime); box-shadow: 0 0 0 1px var(--lime-ink); }
.hero .eyebrow i { margin: 0 0.1em; }

.hero .mega { max-width: 13em; }
/* Cada línea vive en una máscara: el texto sube desde abajo. El relleno
   evita que la máscara recorte las descendentes (j, g, p) y la itálica. */
.mega .line { display: block; overflow: hidden; padding: 0.06em 0.08em 0.18em 0.02em; margin: -0.06em -0.08em -0.18em -0.02em; }
.mega .line > span { display: block; }

.hero-foot { display: grid; gap: 28px; margin-top: clamp(22px, 3.4vh, 36px); }
.hero-foot .lead { max-width: 34em; }
@media (min-width: 960px) { .hero-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; } }

/* ── Entrada del héroe ── */
.enter { animation: enter 600ms var(--ease-out) both; }
.hero .eyebrow.enter { animation-name: fade; }
.instrument.enter { animation-name: enter-far; }
.mega .line > span { animation: lift 850ms var(--ease-out) both; }
.hero .hl::before { animation: swipe 600ms var(--ease-out) 520ms both; }
.e-0 { animation-delay: 0ms; }
.e-1 { animation-delay: 90ms; }
.e-2 { animation-delay: 200ms; }
.e-3 { animation-delay: 320ms; }
@keyframes fade { from { opacity: 0; } }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
@keyframes enter-far { from { opacity: 0; transform: translateY(14px); } }
@keyframes lift { from { transform: translateY(110%); } }
@keyframes swipe { from { transform: scaleX(0); } }

/* ── El instrumento: una pieza de tinta sobre el papel ── */
.instrument { padding: clamp(8px, 2vh, 20px) 0 clamp(72px, 12vh, 136px); }
.slab { border-radius: clamp(20px, 2.4vw, 28px); padding: clamp(22px, 3.6vw, 48px); display: grid; gap: clamp(20px, 3vh, 32px); box-shadow: var(--shadow-2); }
.inst-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.inst-title { font-size: 0.9375rem; line-height: 1.4; font-weight: 500; letter-spacing: 0; color: var(--text-2); }

.years { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(62px, 1fr); padding: 3px; border-radius: 12px; background: var(--fill); }
.years button {
  appearance: none; border: 0; background: none; font: inherit; color: var(--text-2); cursor: pointer;
  display: grid; gap: 1px; padding: 7px 8px 6px; text-align: center; border-radius: 9px; min-height: 44px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: color var(--t-ui) ease, background-color var(--t-ui) ease;
}
.years b { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.years span { font-size: 0.75rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.years button[aria-checked="true"] { color: var(--ink); background: var(--lime); }
@media (hover: hover) and (pointer: fine) { .years button:hover:not([aria-checked="true"]) { color: var(--text); } }

.verdict {
  font-family: var(--display); font-size: clamp(1.5rem, 3.3vw, 2.625rem); line-height: 1.08; letter-spacing: -0.034em; font-weight: 600;
  min-height: 2.16em; text-wrap: balance; font-variant-numeric: tabular-nums;
}
.verdict[data-state="double"] { color: var(--double); }
.verdict[data-state="triple"], .verdict[data-state="over"] { color: var(--triple); }

.ruler { display: grid; gap: 10px; padding-top: 30px; }
.track { position: relative; height: clamp(60px, 8vw, 88px); border-radius: 10px; background: var(--fill); touch-action: pan-y; cursor: ew-resize; }
/* Una marca por hora; cada ocho, una más alta. */
.ticks {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12.5%) 0 100% / 100% 46% no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 1.5625%) 0 100% / 100% 22% no-repeat;
}
.fill { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; clip-path: inset(0 100% 0 0 round 10px); }
.limit { position: absolute; top: -30px; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--text); pointer-events: none; }
.limit span { position: absolute; top: 0; left: 8px; white-space: nowrap; font-size: 0.8125rem; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.limit span::after { content: "  tope ordinario"; font-weight: 400; color: var(--text-2); }
@media (max-width: 560px) { .limit span::after { content: ""; } }

.handle {
  position: absolute; top: 50%; left: 0; width: 48px; height: calc(100% + 36px); margin: 0 0 0 -24px;
  display: grid; place-items: center; cursor: grab; touch-action: none; outline: none;
  -webkit-tap-highlight-color: transparent;
}
.handle:active { cursor: grabbing; }
.grip {
  width: 8px; height: 100%; border-radius: 4px; background: var(--lime);
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 4px color-mix(in srgb, var(--lime) 40%, transparent);
  transition: box-shadow var(--t-press) var(--ease-out);
}
.handle:active .grip, .handle[data-drag] .grip { box-shadow: 0 0 0 3px var(--ink), 0 0 0 10px color-mix(in srgb, var(--lime) 30%, transparent); }
.handle:focus-visible .grip { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--paper); }
.hint {
  position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 0; white-space: nowrap;
  font-size: 0.75rem; line-height: 1; font-weight: 600; padding: 7px 10px; border-radius: 8px;
  background: var(--lime); color: var(--ink); transition: opacity var(--t-ui) ease;
}
.hint[data-gone] { opacity: 0; }
.scale { display: flex; justify-content: space-between; color: var(--text-3); font-size: 0.75rem; line-height: 1; font-variant-numeric: tabular-nums; }

.readouts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin: 0; padding-top: 8px; border-top: 1px solid var(--line); }
.readouts > div { padding-top: 14px; }
.readouts dt { color: var(--text-2); font-size: 0.8125rem; line-height: 1.3; display: flex; align-items: center; gap: 7px; }
.readouts dd { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 4px; }
.on-ink .dot { background: var(--paper); }
.on-ink .dot.dbl { background: var(--double-fill); }
.on-ink .dot.tpl { background: var(--triple); }
.on-ink .dot.rest { background: none; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.slab .caption { color: var(--text-3); max-width: 62em; }
.readouts .pay dd { color: var(--lime); }
@media (max-width: 760px) { .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .readouts .pay { grid-column: 1 / -1; } }

/* ── Secciones ── */
.why, .modules, .trust { padding: clamp(72px, 12vh, 144px) 0; }
.why { padding-top: 0; }
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 6vh, 72px); }
.sec-head .lead { max-width: 36em; }
@media (min-width: 960px) {
  .sec-head:has(.lead) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 56px; }
}

/* Listas de puntos: una frase fuerte y su explicación. */
.points { display: grid; }
.points li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 1rem; line-height: 1.5; text-wrap: pretty; }
.points b { color: var(--text); font-weight: 600; }

/* Bandas: dan ritmo a una página clara. La lima es un marcador, no un fondo. */
.band { margin-inline: clamp(8px, 1.4vw, 20px); border-radius: clamp(24px, 3vw, 40px); padding: clamp(64px, 11vh, 136px) 0; }
.band-soft { background: var(--surface-2); }

/* ── Por qué ahora: hechos de la ley, con su artículo ── */
.facts { display: grid; gap: 0 clamp(24px, 3vw, 48px); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { padding: 20px 0 36px; border-top: 1px solid var(--line-strong); display: grid; gap: 8px; align-content: start; }
.fact-n { font-family: var(--display); font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.facts h3 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.012em; font-weight: 600; text-wrap: balance; }
.facts p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; text-wrap: pretty; }
.facts .cite, .source { color: var(--text-3); font-size: 0.8125rem; line-height: 1.45; }
.facts .cite { margin-top: 4px; }
.source { max-width: 60em; margin-top: 8px; }

/* ── Producto: pantallas dibujadas con el sistema visual de la aplicación ── */
.screens { display: grid; gap: 40px; }
.screen { display: grid; gap: 18px; margin: 0; }
.screen figcaption { color: var(--text-2); font-size: 1rem; line-height: 1.5; max-width: 28em; text-wrap: pretty; }
.screen figcaption b { color: var(--text); font-weight: 600; }
.shot {
  aspect-ratio: 4 / 5; border-radius: 20px; background: var(--surface); padding: clamp(22px, 2.6vw, 34px);
  display: grid; align-content: center; gap: 10px; overflow: hidden; box-shadow: var(--shadow-1);
  --surface-2: var(--paper);
}
@media (min-width: 900px) { .screens { grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; } }
.s-kicker, .s-muted { font-size: 0.8125rem; line-height: 1.4; color: var(--text-2); }
.s-figure, .s-clock { font-family: var(--display); font-size: clamp(3.25rem, 5.6vw, 4.5rem); line-height: 1; letter-spacing: -0.045em; font-weight: 600; font-variant-numeric: tabular-nums; }
.s-figure small { font-size: 0.26em; font-weight: 500; letter-spacing: -0.01em; color: var(--text-2); margin-left: 0.4em; }
.s-figure.small { font-size: clamp(2.2rem, 3.4vw, 2.75rem); margin-top: 14px; }
.s-list { margin-top: 12px; border-radius: 14px; background: var(--surface-2); }
.s-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; font-size: 0.875rem; font-weight: 500; }
.s-list li + li { border-top: 1px solid var(--line-soft); }
.s-list em, .s-task em { font-family: var(--sans); font-style: normal; letter-spacing: 0; font-size: 0.75rem; line-height: 1; font-weight: 550; padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.s-list em { color: var(--warn); background: var(--warn-soft); }
.s-list i { font-style: normal; color: var(--text-2); font-variant-numeric: tabular-nums; }
.shot-kiosk { justify-items: center; text-align: center; }
.s-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; margin-top: 12px; }
.s-keys i { font-style: normal; width: clamp(40px, 4.2vw, 54px); aspect-ratio: 1; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 1.125rem; font-weight: 500; }
.s-title { font-family: var(--display); font-size: clamp(1.25rem, 1.9vw, 1.625rem); line-height: 1.12; letter-spacing: -0.028em; font-weight: 600; }
.s-button { display: grid; place-items: center; height: 48px; border-radius: 12px; background: var(--ink); color: var(--paper); font-weight: 550; margin-top: 8px; }
.s-meter { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.s-meter i { display: block; height: 100%; width: 82.6%; background: var(--ink); border-radius: 4px; }
.s-task { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 0.875rem; font-weight: 500; }
.s-task em { color: var(--ink); background: var(--lime); }

/* ── Módulos: una retícula de tarjetas; la primera y la última, anchas ── */
.mods { display: grid; gap: 16px; }
.mod {
  display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.4vw, 32px); border-radius: 20px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft), var(--shadow-1);
}
.mod .iso { width: 120px; margin: -8px 0 0 -12px; transition: transform var(--t-ui) var(--ease-out); }
.mod .big { font-size: clamp(1.25rem, 1.7vw, 1.5rem); letter-spacing: -0.024em; }
.mod-lead { color: var(--text); font-size: 1rem; line-height: 1.45; text-wrap: pretty; }
.mod ul { display: grid; gap: 8px; margin-top: 8px; }
.mod li { position: relative; padding-left: 18px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; text-wrap: pretty; }
.mod li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.mod-wide > div { display: grid; gap: 10px; align-content: start; }
@media (min-width: 720px) {
  .mods { grid-template-columns: repeat(2, 1fr); }
  .mod-wide { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 40px); }
  .mod-wide .iso { width: clamp(160px, 18vw, 200px); margin: 0; }
}
@media (min-width: 1040px) {
  .mods { grid-template-columns: repeat(6, 1fr); }
  .mod { grid-column: span 2; }
  .mod-wide { grid-column: span 4; }
}
@media (hover: hover) and (pointer: fine) { .mod:hover .iso { transform: translateY(-4px); } }

/* ── Para quién ── */
.audiences { display: grid; gap: 40px clamp(24px, 3vw, 48px); }
.audience { display: grid; gap: 14px; align-content: start; }
.audience .big { font-size: clamp(1.25rem, 1.7vw, 1.5rem); letter-spacing: -0.024em; }
@media (min-width: 640px) { .audiences { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .audiences { grid-template-columns: repeat(4, 1fr); } }
.audience .points li { font-size: 0.9375rem; padding: 14px 0; }

/* ── Confianza ── */
.pillars { display: grid; gap: 40px clamp(28px, 4vw, 64px); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { display: grid; gap: 14px; align-content: start; }
.pillar .iso { width: 96px; margin: 0 0 0 -10px; }
.pillar .big { font-size: clamp(1.25rem, 1.7vw, 1.5rem); letter-spacing: -0.024em; }
.pillar .points li { font-size: 0.9375rem; padding: 14px 0; }
.connects { margin-top: clamp(40px, 7vh, 72px); padding-top: 28px; border-top: 1px solid var(--line); font-size: clamp(1.125rem, 1.8vw, 1.5rem); line-height: 1.35; letter-spacing: -0.018em; color: var(--text-2); }
.connects b { font-weight: 600; color: var(--text); }

/* ── Cierre ── */
.closing { border-radius: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0 0; margin-bottom: 0; padding: clamp(88px, 17vh, 200px) 0 clamp(72px, 13vh, 144px); }
.closing .wide { display: grid; gap: 28px; justify-items: start; }
.closing .mega { font-size: clamp(2.75rem, 7.4vw, 6.5rem); }
.closing .lead { max-width: 30em; }
.closing .row { margin-top: 12px; }
.foot { margin-inline: clamp(8px, 1.4vw, 20px); margin-bottom: clamp(8px, 1.4vw, 20px); border-radius: 0 0 clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); padding: 0; }
.foot-in { display: grid; gap: 20px 40px; padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-nav a { color: var(--text-2); font-size: 0.9375rem; padding: 6px 0; }
.foot .caption { max-width: 60em; color: var(--text-3); }
@media (min-width: 900px) { .foot-in { grid-template-columns: auto 1fr; align-items: center; } .foot-nav { justify-content: flex-end; } .foot .caption { grid-column: 1 / -1; } }
@media (hover: hover) and (pointer: fine) { .foot-nav a:hover { color: var(--text); } }

/* ── Revelado al hacer scroll: una vez por bloque. Solo se oculta de inicio
      si hay JavaScript para revelarlo. ── */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
  .reveal[data-visible] { opacity: 1; transform: none; }
  /* Intervalos que se acortan entre los bloques de una misma fila. */
  .facts li:nth-child(2), .screen:nth-child(2), .audience:nth-child(2), .pillar:nth-child(2), .mod:nth-child(2), .mod:nth-child(4), .mod:nth-child(7) { transition-delay: 70ms; }
  .facts li:nth-child(3), .screen:nth-child(3), .audience:nth-child(3), .pillar:nth-child(3), .mod:nth-child(5) { transition-delay: 120ms; }
  .facts li:nth-child(4), .audience:nth-child(4) { transition-delay: 160ms; }
}

/* Sin JavaScript la regla no se mueve: se muestra el ejemplo de 38 horas con
   el tope de 46, que es lo que dicen las cifras escritas en el documento. */
@media (scripting: none) {
  .fill { clip-path: inset(0 40.625% 0 0 round 10px); background: var(--text); }
  .handle { left: 59.375%; }
  .limit { left: 71.875%; }
  .hint { display: none; }
  .track, .handle { cursor: default; }
}

/* ── Teléfono ── */
@media (max-width: 560px) {
  .inst-head { align-items: stretch; }
  .years { flex: 1 1 100%; grid-auto-columns: 1fr; }
  .hero-foot .row, .closing .row { display: grid; gap: 10px; width: 100%; }
  .hero-foot .btn, .closing .btn { width: 100%; }
}

/* ── Movimiento reducido: sin desplazamientos; el grupo aparece junto. ── */
@media (prefers-reduced-motion: reduce) {
  .enter, .instrument.enter, .mega .line > span { animation-name: fade; animation-delay: 0ms; animation-duration: 300ms; }
  .hero .hl::before { animation: none; }
  .reveal, .reveal[data-visible] { transform: none; transition: opacity 300ms ease; transition-delay: 0ms !important; }
  .mod .iso, .mod:hover .iso { transform: none; transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .landing .bar { background: var(--paper); }
}

/* ── Fotografía: tres escenas de trabajo real, sobre el bloque «para quién». ── */
.photos { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(8px, 1.2vw, 16px); margin-bottom: clamp(40px, 7vh, 72px); }
/* Las tres a la misma altura: la primera es más ancha, no más alta. */
.photos figure { margin: 0; border-radius: clamp(12px, 1.6vw, 20px); overflow: hidden; background: var(--surface-3); height: clamp(200px, 25vw, 360px); }
.photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .photos { grid-template-columns: 1fr 1fr; }
  .photos figure { height: 150px; }
  .photos figure:first-child { grid-column: 1 / -1; height: 220px; }
}

/* ══ Refinamiento de la portada ═════════════════════════════════════════════
   Página blanca y neutra, una sola familia tipográfica, y un héroe con el
   producto en movimiento. La portada redefine aquí sus variables; el resto
   del producto conserva las de brand.css. */
/* Tarjetas de módulos: plano gris sin sombra sobre la página blanca. */
.landing .mod { background: var(--surface-2); box-shadow: none; }

/* ── Héroe ── */
.hero { padding: clamp(40px, 8vh, 96px) 0 56px; overflow-x: clip; }
.hero-head { display: grid; justify-items: center; text-align: center; gap: clamp(16px, 2.4vh, 24px); }
.h-title { font-size: clamp(2.5rem, 5.6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; max-width: 13em; text-wrap: balance; }
.h-lead { font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.45; letter-spacing: -0.011em; color: var(--text-2); max-width: 36em; text-wrap: pretty; }
.h-cta { justify-content: center; margin-top: 4px; }
.h-note { font-size: 0.875rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.instrument { padding-top: clamp(24px, 5vh, 56px); }

/* ── La escena ──
   Todo se mide en em y el tamaño de letra sigue al ancho del contenedor, así
   la escena escala entera, del teléfono al monitor. */
.stage-wrap { margin-top: clamp(36px, 6vh, 64px); }
.stage { container-type: inline-size; max-width: 1120px; margin-inline: auto; }
.scene { position: relative; font-size: clamp(6.4px, 1.25cqw, 14px); line-height: 1.35; padding: 0 0 4em; color: var(--ink); -webkit-user-select: none; user-select: none; }
.scene p, .scene ul { margin: 0; padding: 0; list-style: none; }
.scene em { font-family: var(--sans); font-style: normal; font-size: 0.82em; font-weight: 550; letter-spacing: 0; line-height: 1; padding: 0.5em 0.75em; border-radius: 99em; white-space: nowrap; color: var(--warn); background: var(--warn-soft); }
.scene em.ok { color: var(--ok); background: var(--ok-soft); }
.scene time { font-variant-numeric: tabular-nums; color: var(--text-2); }

.win { width: 88%; border-radius: 1.1em; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 2.4em 5em -1.6em rgba(17, 18, 13, 0.28), 0 0.6em 1.6em -0.6em rgba(17, 18, 13, 0.12); overflow: hidden; }
.win-bar { display: flex; gap: 0.5em; padding: 0.9em 1.1em; border-bottom: 1px solid var(--line-soft); background: #fafafa; }
.win-bar i { width: 0.75em; height: 0.75em; border-radius: 50%; background: var(--surface-3); }
.win-body { display: grid; grid-template-columns: 15em 1fr; min-height: 31em; }
.win-side { padding: 1.4em 1em; background: #f7f7f8; border-right: 1px solid var(--line-soft); }
.win-brand { display: flex; align-items: center; gap: 0.5em; font-size: 1.05em; letter-spacing: -0.02em; padding: 0 0.6em 1.2em; }
.win-brand svg { width: 1.4em; height: 1.4em; }
.win-brand b { font-weight: 650; }
.win-side li { padding: 0.62em 0.8em; border-radius: 0.6em; color: var(--text-2); font-size: 0.95em; }
.win-side li.on { background: rgba(17, 18, 13, 0.07); color: var(--ink); font-weight: 550; }
.win-main { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2em; padding: 2.2em 2.4em; padding-right: 15em; align-items: start; }
.w-cap { font-size: 0.9em; color: var(--text-3); }
.w-count { display: flex; align-items: baseline; gap: 0.4em; margin-top: 0.3em; font-size: 1.3em; color: var(--text-2); }
.w-count b { font-size: 3.4em; line-height: 1; font-weight: 600; letter-spacing: -0.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.w-sub { margin-top: 0.5em; font-size: 0.9em; color: var(--text-3); }
.w-list { margin-top: 1.4em !important; border-radius: 0.9em; background: var(--surface-2); }
.w-list li { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 0.85em 1.1em; min-height: 3.3em; border-top: 1px solid var(--line-soft); font-size: 0.98em; }
.w-list li:first-child { border-top: 0; border-radius: 0.9em 0.9em 0 0; }
.w-list li.live { transition: background-color 900ms ease; }
.w-card { border-radius: 0.9em; padding: 1.2em 1.3em; background: var(--surface-2); }
.w-card + .w-card { margin-top: 1em; }
.w-big { margin-top: 0.3em; font-size: 0.95em; color: var(--text-2); display: flex; align-items: baseline; gap: 0.35em; font-weight: 400; }
.w-big b, .w-big { font-variant-numeric: tabular-nums; }
.w-big b, .w-big > :not(span) { font-size: 1.9em; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.w-card:last-child .w-big { font-size: 1.8em; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.w-card:last-child .w-big span { font-size: 0.53em; font-weight: 400; letter-spacing: 0; color: var(--text-2); }
.w-meter, .ph-meter { height: 0.45em; border-radius: 99em; background: rgba(17, 18, 13, 0.09); margin-top: 0.9em; overflow: hidden; }
.w-meter i, .ph-meter i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--ink); transform-origin: left center; transform: scaleX(0.643); transition: transform 700ms var(--ease-out); }
.ph-meter i { transform: scaleX(0.82); }
.w-bars { display: flex; align-items: flex-end; gap: 0.45em; height: 3.2em; margin-top: 0.9em; }
.w-bars i { flex: 1; border-radius: 0.25em; background: rgba(17, 18, 13, 0.16); height: 62%; }
.w-bars i:nth-child(2) { height: 70%; } .w-bars i:nth-child(3) { height: 58%; } .w-bars i:nth-child(4) { height: 66%; }
.w-bars i:nth-child(6) { height: 40%; }
.w-bars i.x { height: 100%; background: var(--double-fill); }

.phone { position: absolute; right: 0; bottom: 0; width: 21em; padding: 0.7em; border-radius: 3em; background: var(--ink); box-shadow: 0 2.6em 4.6em -1.4em rgba(17, 18, 13, 0.45), 0 0.5em 1.2em -0.3em rgba(17, 18, 13, 0.2); }
.ph-screen { border-radius: 2.35em; background: #fff; padding: 3em 1.4em 1.8em; min-height: 36em; }
.ph-cap { font-size: 0.9em; color: var(--text-3); }
.ph-state { margin-top: 0.3em !important; font-size: 1.55em; line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; min-height: 2.3em; }
.ph-btn { position: relative; margin-top: 1em; height: 3.6em; border-radius: 0.95em; background: var(--ink); color: #fff; font-weight: 550; font-size: 1.05em; display: grid; place-items: center; transition: transform 160ms var(--ease-out), background-color 300ms ease, color 300ms ease, box-shadow 300ms ease; }
.ph-week { margin-top: 1.5em !important; font-size: 0.9em; color: var(--text-2); }
.ph-week b { font-size: 2.3em; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ph-task { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 0.6em; margin-top: 1.2em; padding: 0.95em 1em; min-height: 3.5em; border-radius: 0.9em; background: var(--surface-2); font-size: 0.95em; transition: transform 160ms var(--ease-out); }
.ph-task.quiet { margin-top: 0.6em; }
.scene .ph-task em.a { color: var(--ink); background: var(--lime); }

/* Dos estados apilados en el mismo sitio: uno sale y el otro entra. */
.swap { position: relative; display: inline-grid; }
.swap > * { grid-area: 1 / 1; transition: opacity 320ms ease, transform 420ms var(--ease-out); }
.swap.end > * { justify-self: end; }
.ph-btn.swap { display: grid; }
.ph-btn.swap > span { place-self: center; }
.swap > .b { opacity: 0; transform: translateY(0.5em); }
.num > .b { transform: translateY(0.35em); }
.num > * { justify-self: end; }

.stage.s-in .w-count .swap > .a, .stage.s-in .w-list .swap > .a, .stage.s-in .ph-state > .a,
.stage.s-signed .w-big .swap > .a, .stage.s-signed .ph-task .swap > .a { opacity: 0; transform: translateY(-0.5em); }
.stage.s-in .w-count .swap > .b, .stage.s-in .w-list .swap > .b, .stage.s-in .ph-state > .b,
.stage.s-signed .w-big .swap > .b, .stage.s-signed .ph-task .swap > .b { opacity: 1; transform: none; }

.stage.s-flash .w-list li.live { background: var(--lime-soft); transition-duration: 150ms; }
.stage.s-signed .w-meter i { transform: scaleX(0.714); }
.stage.t-1 .ph-btn, .stage.t-2 .ph-task:not(.quiet), .stage.t-3 .ph-task.vac { transform: scale(0.97); }

/* El toque: un punto que aparece donde se presiona. */
.tap { position: absolute; left: 50%; top: 50%; width: 3em; height: 3em; margin: -1.5em 0 0 -1.5em; border-radius: 50%; background: rgba(120, 120, 128, 0.36); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); opacity: 0; transform: scale(0.6); transition: opacity 220ms ease, transform 260ms var(--ease-out); pointer-events: none; }
.tap.t2 { left: 78%; }
.tap.t3 { left: 78%; }
.stage.t-1 .tap.t1, .stage.t-2 .tap.t2, .stage.t-3 .tap.t3 { opacity: 1; transform: scale(1); transition-duration: 120ms; }
/* Al reiniciar, todo vuelve sin animarse. */
.stage.s-reset * { transition: none !important; }
.stage.s-fade .scene { opacity: 0; }
.scene { transition: opacity 400ms ease; }

/* ── Más impacto: profundidad, entrada y tres momentos encadenados ── */
/* Retícula de puntos detrás de la escena, la misma de las ilustraciones. */
.stage-wrap { position: relative; isolation: isolate; }
.stage-wrap::before { content: ""; position: absolute; inset: -16% -9% -6%; z-index: -1; background-image: radial-gradient(circle, rgba(17, 18, 13, 0.26) 1px, transparent 1.5px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 45%, transparent 100%); pointer-events: none; }
.scene { perspective: 140em; }
.win { transform-origin: 50% 100%; transition: transform 1100ms var(--ease-out), opacity 700ms ease; }
.phone { transition: transform 1100ms var(--ease-out) 180ms, opacity 600ms ease 180ms; }
.w-list li, .w-card { transition: opacity 600ms ease, transform 700ms var(--ease-out), background-color 900ms ease; }
.w-list li:nth-child(1) { transition-delay: 420ms; } .w-list li:nth-child(2) { transition-delay: 470ms; }
.w-list li:nth-child(3) { transition-delay: 520ms; } .w-list li:nth-child(4) { transition-delay: 570ms; }
.w-list li:nth-child(5) { transition-delay: 620ms; }
.w-card:nth-child(1) { transition-delay: 520ms; } .w-card:nth-child(2) { transition-delay: 600ms; }
.stage.s-ready .w-list li, .stage.s-ready .w-card { transition-delay: 0ms; }
/* Antes de entrar: la ventana recostada y el teléfono abajo. */
.stage.pre .win { opacity: 0; transform: translateY(4em) rotateX(14deg) scale(0.94); }
.stage.pre .phone { opacity: 0; transform: translateY(9em); }
.stage.pre .w-list li, .stage.pre .w-card { opacity: 0; transform: translateY(1.2em); }

/* El botón del teléfono: pulsado, confirma en lima; luego ofrece la salida. */
.ph-btn > span { display: inline-flex; align-items: center; gap: 0.5em; }
.ph-btn svg { width: 1.25em; height: 1.25em; }
.ph-btn > .c { opacity: 0; transform: scale(0.9); }
.stage.s-in .ph-btn > .a { opacity: 0; transform: translateY(-0.5em); }
.stage.s-in.s-ok .ph-btn { background: var(--lime); color: var(--ink); }
.stage.s-in.s-ok .ph-btn > .c { opacity: 1; transform: none; }
.stage.s-in:not(.s-ok) .ph-btn { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.stage.s-in:not(.s-ok) .ph-btn > .b { opacity: 1; transform: none; }
/* La onda del toque: un anillo lima que se abre desde el botón. */
.ph-btn::after, .ph-task::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(200, 242, 79, 0.9); opacity: 0; pointer-events: none; }
.stage.s-flash .ph-btn::after, .stage.r-2 .ph-task:not(.quiet)::after, .stage.r-3 .ph-task.vac::after { animation: ring 900ms var(--ease-out); }
@keyframes ring { 0% { opacity: 1; box-shadow: 0 0 0 0 rgba(200, 242, 79, 0.9); } 100% { opacity: 0; box-shadow: 0 0 0 1.6em rgba(200, 242, 79, 0); } }

/* Vacaciones: la fila del teléfono cambia y el menú del portal recibe su pendiente. */
.scene em.lime { color: var(--ink); background: var(--lime); }
.stage.s-vac .ph-task.vac .swap > .a { opacity: 0; transform: translateY(-0.5em); }
.stage.s-vac .ph-task.vac .swap > .b { opacity: 1; transform: none; }
.win-side li { display: flex; align-items: center; justify-content: space-between; }
.win-side .badge { font-style: normal; font-size: 0.8em; font-weight: 650; min-width: 1.7em; height: 1.7em; display: grid; place-items: center; border-radius: 99em; background: var(--lime); color: var(--ink); opacity: 0; transform: scale(0.5); transition: opacity 200ms ease, transform 420ms cubic-bezier(0.34, 1.4, 0.5, 1); }
.stage.s-vac .win-side .badge { opacity: 1; transform: none; }
.stage.s-vac .win-side li:nth-child(3) { color: var(--ink); }

/* Avisos del portal: cada momento del teléfono llega como una nota. */
.win { position: relative; overflow: visible; }
.win-bar { border-radius: 1.1em 1.1em 0 0; }
.win-body { border-radius: 0 0 1.1em 1.1em; overflow: hidden; }
.toasts { position: absolute; z-index: 2; top: -1.7em; right: 17.5em; display: grid; justify-items: end; pointer-events: none; }
.scene .toast { grid-area: 1 / 1; display: flex; align-items: center; gap: 0.7em; padding: 0.95em 1.4em 0.95em 1.1em; border-radius: 99em; background: var(--ink); color: #fff; font-size: 0.95em; white-space: nowrap; box-shadow: 0 1em 2.4em -0.8em rgba(17, 18, 13, 0.5); opacity: 0; transform: translateY(-0.8em) scale(0.96); transition: opacity 260ms ease, transform 460ms var(--ease-out); }
.toast b { font-weight: 600; }
.toast i { width: 0.65em; height: 0.65em; border-radius: 50%; background: var(--lime); flex: none; }
.stage.n-1 .toast.n1, .stage.n-2 .toast.n2, .stage.n-3 .toast.n3 { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .scene { font-size: clamp(6.4px, 2.1cqw, 12px); padding-bottom: 6em; }
  .win { width: 100%; }
  .win-body { grid-template-columns: 1fr; min-height: 30em; }
  .win-side, .win-col.side { display: none; }
  .win-main { grid-template-columns: 1fr; padding: 1.8em; padding-right: 22.5em; }
  .phone { width: 19em; right: 1.5em; }
  .toasts { top: -1.7em; right: auto; left: 1.8em; justify-items: start; }
  .toast { font-size: 0.9em; }
  .ph-screen { min-height: 33em; }
}
@media (prefers-reduced-motion: reduce) {
  .stage * { transition: none !important; }
}

/* ══ Lenguaje «píldora» en la portada ════════════════════════════════════════
   Fondo gris claro con superficies blancas, encabezado flotante en píldora,
   titular más delgado, acción principal lima con flecha y la escena del héroe
   con las mismas piezas del producto. */
:root:has(.landing) { --paper: #f5f5f7; --surface-2: #ffffff; --surface-3: #e8e8ed; --chrome: rgba(255, 255, 255, 0.86); }
.landing .mod { background: var(--surface); border-radius: var(--radius); }
.landing .band-soft { background: var(--surface); }
.landing .shot { background: var(--paper); }

.landing .site-bar { background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding-top: 14px; }
.landing .site-bar .bar-in { min-height: 64px; padding: 0 10px 0 20px; border-radius: var(--radius-pill); background: var(--chrome); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 0 0 1px var(--line-soft); transition: box-shadow var(--t-ui) ease; }
.landing .site-bar[data-scrolled] .bar-in { box-shadow: 0 0 0 1px var(--line-soft), 0 12px 32px -18px rgba(17, 18, 13, 0.3); }
.landing .site-bar .btn { min-height: 44px; padding: 0 1.3em; }

.hero { padding-top: clamp(60px, 9vh, 88px); }
.landing .huge, .landing .mega { font-weight: 400; letter-spacing: -0.045em; }
.landing .huge em, .landing .mega em { font-weight: 300; }
.h-title { font-weight: 400; font-size: clamp(2.75rem, 6.2vw, 5.5rem); letter-spacing: -0.05em; line-height: 0.98; max-width: 12.5em; }
.landing .h-title em { font-weight: 300; }
.h-note.pill { min-height: 38px; padding: 0 16px 0 14px; font-size: 0.875rem; color: var(--text); gap: 9px; }
.h-note .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px var(--lime-ink); }
.h-cta { gap: 12px; align-items: center; }
.h-cta .cta { min-height: 64px; padding: 0 8px 0 28px; font-size: 1.125rem; }
.h-cta .cta::after { width: 48px; height: 48px; }
.h-cta .h-second { min-height: 64px; padding: 0 28px; background: var(--surface); font-size: 1.125rem; }
.h-mods { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; max-width: 760px; }
.h-mods .pill { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.h-mods .lead-pill { background: #dfe9b8; }
.closing .cta { min-height: 64px; padding: 0 8px 0 28px; font-size: 1.125rem; }
.closing .cta::after { width: 48px; height: 48px; }

/* La escena, con las piezas del producto. */
.win { border-radius: 2em; background: var(--paper); }
.win-bar { border-radius: 2em 2em 0 0; background: #fff; }
.win-body { border-radius: 0 0 2em 2em; padding: 1em; gap: 1em; background: var(--paper); }
.win-side { border-radius: 1.6em; border: 0; background: #fff; }
.win-side li { border-radius: 99em; padding: 0.7em 1em; }
.win-side li.on { background: var(--ink); color: #fff; }
.win-main { padding: 1.2em 1em; padding-right: 15em; }
.w-kpi { border-radius: 1.6em; padding: 1.3em 1.5em; background: var(--ink); color: #fff; }
.w-kpi .w-cap, .w-kpi .w-sub { color: rgba(255, 255, 255, 0.62); }
.w-kpi .w-count { color: rgba(255, 255, 255, 0.72); }
.w-kpi .w-count b { color: var(--lime); font-weight: 300; font-size: 3.8em; letter-spacing: -0.055em; }
.w-list { margin-top: 1em !important; border-radius: 1.6em; background: #fff; }
.w-list li:first-child { border-radius: 1.6em 1.6em 0 0; }
.w-card { border-radius: 1.6em; background: #fff; }
.w-big b, .w-big > :not(span), .w-card:last-child .w-big { font-weight: 300; }
.w-meter { height: 0.8em; background: var(--hatch); }
.w-meter i { background: var(--lime); border-radius: 99em; }
.w-bars i { border-radius: 99em 99em 0.3em 0.3em; }

.phone { border-radius: 3.4em; }
.ph-screen { border-radius: 2.7em; background: var(--paper); padding: 2.4em 1.2em 5.6em; position: relative; }
.scene .ph-fig { font-size: 4.6em; line-height: 1; font-weight: 300; letter-spacing: -0.055em; margin-top: 0.1em; }
.ph-fig small { font-size: 0.52em; color: var(--text-3); letter-spacing: -0.04em; }
.scene .ph-chip { display: inline-block; margin-top: 0.7em; padding: 0.55em 0.95em; border-radius: 99em; background: var(--ok-soft); color: #145c2d; font-size: 0.8em; font-weight: 500; }
.ph-ink { margin-top: 1em; padding: 1.1em; border-radius: 1.8em; background: var(--ink); color: #fff; }
.ph-ink .ph-state { margin: 0 !important; font-size: 1em; font-weight: 500; letter-spacing: 0; min-height: 0; color: var(--lime); }
.ph-ink .ph-btn { margin-top: 0.9em; height: 3.3em; border-radius: 99em; background: var(--lime); color: var(--ink); font-weight: 600; font-size: 1em; }
.stage.s-in.s-ok .ph-ink .ph-btn { background: #fff; color: var(--ink); }
.stage.s-in:not(.s-ok) .ph-ink .ph-btn { background: var(--lime); color: var(--ink); box-shadow: none; }
.ph-task { border-radius: 1.4em; background: #fff; margin-top: 0.7em; }
.ph-task.quiet { margin-top: 0.5em; }
.ph-nav { position: absolute; left: 1em; right: 1em; bottom: 1em; height: 3.6em; border-radius: 99em; background: #fff; display: flex; align-items: center; gap: 0.5em; padding: 0 0.45em; box-shadow: 0 0.8em 2em -1em rgba(17, 18, 13, 0.3); }
.ph-nav b { height: 2.7em; padding: 0 1.2em; border-radius: 99em; background: var(--ink); color: #fff; display: flex; align-items: center; font-size: 0.9em; font-weight: 500; }
.ph-nav i { flex: 1; height: 0.38em; border-radius: 99em; background: var(--surface-3); }
.ph-nav i:last-child { margin-right: 0.8em; }
@media (max-width: 760px) {
  .win-main { padding-right: 22.5em; }
  .h-cta .cta, .h-cta .h-second { min-height: 56px; font-size: 1rem; }
  .h-cta .cta::after { width: 44px; height: 44px; }
}
