/* ============================================================
   Gozepelin Landing — v2 (Apple-grade)
   ============================================================ */

@property --p {
  syntax: '<number>';
  initial-value: 0;
  inherits: true;
}

:root {
  /* Light scene tokens */
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f4f4f3;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.14);
  --live: #34c759;
  --brand: #007AFF;        /* iOS system blue. PHILOSOPHY A: blue = ACTION (every real CTA, button,
                              link) + LIVE DATA (chart series). Never decoration, never editorial
                              titles/eyebrows/body. If it's clickable or it's live data, it's blue. */
  --brand-tint: #E1ECFF;   /* light blue chip background */
  --warm: #ff9500;         /* amber — "live / in-progress" accent (also the audit warn status) */

  --maxw: 1320px;
  --pad-x: clamp(20px, 4vw, 56px);

  --sans: "Poppins", "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --mono: "Poppins", "Helvetica Neue", Helvetica, system-ui, sans-serif;

  --r-card: 20px;
  --r-card-lg: 28px;
  --r-pill: 999px;

  --ease-emph: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* Dark scene — Apple graphite (#1d1d1f), softer cut against the warm off-white */
.scene-dark {
  --bg: #1d1d1f;
  --surface: #2a2a2c;
  --surface-2: #353537;
  --ink: #f5f5f7;
  --ink-2: #d2d2d7;
  --muted: #a1a1a6;
  --muted-2: #86868b;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.20);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
body {
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}
::selection { background: var(--ink); color: var(--bg); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); position: relative; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 var(--pad-x); }

/* Scene container — switches tokens light↔dark with a hard cut */
.scene {
  background: var(--bg);
  color: var(--ink);
  position: relative;
}

/* Spacing contextual: cuando dos secciones claras quedan pegadas (mismo fondo),
   el padding inferior de una + el superior de la otra se sienten como un hueco
   doble. Al compartir color no hay frontera que lo justifique, así que la
   segunda pierde su padding superior y queda un único gap. En los bordes contra
   secciones oscuras (.scene-dark) el doble padding se mantiene a propósito. */
.scene:not(.scene-dark) + .scene:not(.scene-dark) {
  padding-top: 0;
}

/* Solo el portal proyecta sombra hacia abajo (la tarjeta del navegador); las
   demás secciones claras no tienen sombra. Como :has() no se puede anidar, un
   escalado descendente genérico no es viable — y tampoco hace falta. Basta con
   elevar el portal por encima de la sección clara que le sigue (que sin z-index
   queda en 0), para que su sombra se dibuje completa y no se recorte. */
.scene.portal {
  z-index: 2;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .35s ease, color .35s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
}
.brand .dim { color: var(--muted); font-weight: 400; }
.brand-logo { height: 16px; width: auto; display: block; }
.nav-links {
  display: flex; gap: 30px; align-items: center;
  font-size: 13px; color: var(--muted);
}
.nav-links a {
  color: inherit; text-decoration: none;
  transition: color .15s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-cta {
  font: 500 13px var(--sans);
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: opacity .15s ease;
}
.nav-links a.nav-cta:hover { opacity: 0.86; color: #fff; }
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}
.display .dim { color: var(--muted); }
.h-section {
  font-weight: 600;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.h-section .dim { color: var(--muted); }
.lede {
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 28px 0 0;
  font-weight: 400;
  text-wrap: pretty;
}
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   LINKS / CTAs
   ============================================================ */
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.btn-pri {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff;
  padding: 11px 21px;
  border-radius: var(--r-pill);
  text-decoration: none;
  font: 500 15px var(--sans);
  letter-spacing: -0.005em;
  transition: opacity .15s ease, transform .2s ease;
}
.btn-pri:hover { opacity: 0.88; }
.btn-pri .arr {
  transition: transform .25s var(--ease-emph);
}
.btn-pri:hover .arr { transform: translateX(3px); }
.link {
  font: 500 15px var(--sans);
  color: var(--ink);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 4px;
  transition: border-color .15s ease;
}
.link:hover { border-bottom-color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.link .arr { transition: transform .25s var(--ease-emph); }
.link:hover .arr { transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 160px var(--pad-x) 80px;
}
.hero .eyebrow {
  margin-bottom: 28px;
}
.hero .display { max-width: 16ch; }
.hero .lede { max-width: 620px; }

.hero-visual {
  margin-top: clamp(60px, 8vw, 100px);
  position: relative;
}

/* ============================================================
   ACTIVITY FEED (hero product visual)
   ============================================================ */
.feed {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(10,10,10,0.02),
    0 30px 60px -20px rgba(10,10,10,0.10),
    0 60px 120px -40px rgba(10,10,10,0.12);
}
.scene-dark .feed {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 60px 120px -40px rgba(0,0,0,0.4);
}
.feed-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}
.feed-title {
  display: flex; align-items: baseline; gap: 14px;
}
.feed-title h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.feed-title .sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.live-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.live-dot {
  width: 8px; height: 8px; border-radius: var(--r-pill);
  background: var(--live);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 50%, transparent);
  animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 50%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--live) 0%, transparent); }
}

.feed-rows { display: grid; }
.feed-row {
  display: grid;
  grid-template-columns: 88px 1fr 200px 140px;
  gap: 20px;
  align-items: center;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.feed-row:first-child { border-top: none; }
.feed-row .when {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.feed-row .what { color: var(--ink); }
.feed-row .what .verb { font-weight: 500; letter-spacing: -0.01em; }
.feed-row .what .obj { color: var(--muted); margin-left: 6px; }
.feed-row .who { color: var(--ink-2); font-weight: 500; letter-spacing: -0.005em; }
.feed-row .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em;
  text-align: right;
}
.feed-row .meta .amt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.feed-row.new {
  background: color-mix(in srgb, var(--live) 6%, transparent);
}
@media (max-width: 820px) {
  .feed-row { grid-template-columns: 64px 1fr auto; gap: 12px; }
  .feed-row .who { display: none; }
  .feed-row .meta { font-size: 10px; }
}

/* ============================================================
   PROOF STRIP under hero
   ============================================================ */
.proof {
  margin-top: clamp(80px, 9vw, 120px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof .stat {
  padding: 28px clamp(8px, 2vw, 24px);
  border-right: 1px solid var(--line);
}
.proof .stat:last-child { border-right: none; }
.proof .stat .n {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}
.proof .stat .n .dim { color: var(--muted); font-weight: 400; }
.proof .stat .l {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 760px) {
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof .stat:nth-child(2) { border-right: none; }
  .proof .stat:nth-child(1), .proof .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============================================================
   TIME-COLLAPSE (sticky scroll moment)
   ============================================================ */
.time-section {
  position: relative;
  background: var(--bg);
}
.time-track {
  position: relative;
  height: 320vh;
}
.time-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.time-stage .inner {
  width: 100%;
  max-width: 1200px;
  padding: 0 var(--pad-x);
  text-align: center;
}

/* Stacked headings */
.tl-heads {
  position: relative;
  height: clamp(120px, 14vw, 200px);
}
.tl-head {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: clamp(48px, 7.5vw, 120px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-wrap: balance;
}
.tl-head .dim { color: var(--muted); }

/* The week bar */
.tl-bar-wrap {
  margin-top: clamp(40px, 6vw, 80px);
  height: 60px;
  position: relative;
}
.tl-bar {
  height: 8px;
  background: var(--ink);
  border-radius: 999px;
  margin: 0 auto;
  width: calc(8% + 92% * (1 - var(--p, 0)));
  position: relative;
}
.tl-bar::before, .tl-bar::after {
  content: ""; position: absolute;
  top: -10px; height: 28px; width: 1px;
  background: var(--ink);
  opacity: calc(1 - var(--p, 0));
}
.tl-bar::before { left: 0; }
.tl-bar::after { right: 0; }
.tl-end {
  position: absolute; top: 26px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted);
  opacity: calc(1 - var(--p, 0));
}
.tl-end.left { left: 4%; }
.tl-end.right { right: 4%; }

.tl-tasks {
  margin-top: clamp(40px, 6vw, 70px);
  position: relative;
  height: 64px;
}
.tl-stage-text {
  position: absolute; inset: 0;
  margin: 0;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -0.01em;
}
.tl-stage-text > span {
  font-size: clamp(17px, 1.5vw, 22px);
  color: var(--muted);
  text-wrap: balance;
  max-width: 700px;
  text-align: center;
}
.tl-stage-text .stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  margin-right: 16px;
  vertical-align: 0.45em;
  line-height: 1;
}
.tl-stage-text[data-show="a"] .stamp {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-strong);
}
.tl-stage-text[data-show="b"] .stamp {
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
}
.tl-clock {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
}
.tl-clock .big {
  font-family: var(--mono);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.tl-clock .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------
   TIME-COLLAPSE · colapso en mobile / reduced-motion
   Desactiva el scroll-jack y muestra las 3 etapas como una
   secuencia apilada (titular + texto por etapa). NO afecta al
   desktop: todo vive dentro de este @media.
   ------------------------------------------------------------ */
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  /* La sección mide su contenido (sin los 320vh ni el pin) */
  .time-track { height: auto; }
  .time-stage {
    position: static;
    height: auto;
    display: block;
    overflow: visible;
    padding: 0 0 72px;
  }
  .time-stage .inner {
    text-align: left;
    display: flex;
    flex-direction: column;
  }

  /* Aplanar los dos contenedores: sus hijos pasan a ser hermanos del
     flex de .inner, así se pueden intercalar con `order`. */
  .tl-heads,
  .tl-tasks { display: contents; }

  /* Desapilar: de position:absolute al flujo normal, todo visible.
     opacity:1 !important gana contra la opacity inline que setea el JS
     (por eso se ve aunque el JS no corra). */
  .tl-head,
  .tl-stage-text,
  .tl-clock {
    position: static;
    inset: auto;
    opacity: 1 !important;
  }

  /* Intercalar titular + su texto, etapa por etapa (a -> b -> c) */
  .tl-head[data-show="a"]       { order: 1; }
  .tl-stage-text[data-show="a"] { order: 2; }
  .tl-head[data-show="b"]       { order: 3; }
  .tl-stage-text[data-show="b"] { order: 4; }
  .tl-head[data-show="c"]       { order: 5; }
  .tl-clock[data-show="c"]      { order: 6; }

  /* Titulares: tamaño mobile, a la izquierda, alto natural */
  .tl-head {
    display: block;
    height: auto;
    font-size: clamp(34px, 9vw, 52px);
    line-height: 1.02;
    margin: 0 0 12px;
  }

  /* Textos: alto natural, a la izquierda, separados de la etapa siguiente */
  .tl-stage-text {
    display: block;
    height: auto;
    margin: 0 0 40px;
  }
  .tl-stage-text > span {
    display: block;
    max-width: none;
    text-align: left;
    font-size: clamp(16px, 4.2vw, 19px);
  }

  /* Reloj (etapa c): alto natural, a la izquierda */
  .tl-clock {
    height: auto;
    align-items: flex-start;
    margin: 0;
  }

  /* La barra de semana depende de --p (scroll-jack): no aplica acá */
  .tl-bar-wrap { display: none; }
}

/* ============================================================
   FEATURE SECTIONS
   ============================================================ */
.feat {
  padding: clamp(100px, 14vw, 150px) 0;
  position: relative;
}
.feat-head {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(60px, 8vw, 100px);
}
@media (max-width: 880px) {
  .feat-head { grid-template-columns: 1fr; gap: 24px; }
}
.feat-head .h-section { margin-top: 18px; }
.feat-head .body p {
  margin: 0;
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--ink-2);
  max-width: 460px;
  line-height: 1.5;
}

/* Feature visual containers — large product cards */
.feat-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.10),
    0 80px 160px -40px rgba(0,0,0,0.16);
}
.scene-dark .feat-visual {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 80px 160px -40px rgba(0,0,0,0.5);
}

/* -------- Dunning thread visual (Mora) -------- */
.dun {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 540px;
}
@media (max-width: 880px) { .dun { grid-template-columns: 1fr; } }
.dun-side {
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  gap: 18px;
}
@media (max-width: 880px) { .dun-side { border-right: none; border-bottom: 1px solid var(--line); } }
.dun-side h4 {
  margin: 0;
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.015em;
}
.dun-side .meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.dun-cadence {
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.dun-cadence-label {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
  padding: 14px 0 4px;
}
.dun-step {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.dun-step .d {
  font-family: var(--mono); color: var(--muted);
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
}
.dun-step .t { color: var(--ink); line-height: 1.4; }
.dun-step .tone {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 0;
  align-self: center;
}
.dun-step .tone.task {
  color: var(--muted);
}
.dun-step.active .tone {
  color: var(--live);
}
.dun-side .dun-guia {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.5;
}
.dun-side .dun-guia strong {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
  font-family: var(--sans);
  font-size: 13px;
}
.bubble.success em {
  font-style: normal;
  color: var(--muted);
}
@media (max-width: 520px) {
  .dun-step { grid-template-columns: 50px 1fr; }
  .dun-step .tone {
    grid-column: 2 / 3;
    justify-self: start;
    margin-top: 6px;
  }
}
.dun-step.active { background: color-mix(in srgb, var(--live) 6%, transparent); margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
.dun-step.active .d { color: var(--live); font-weight: 500; }
.dun-step.skip { opacity: 0.4; }

.dun-thread {
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface);
}
.dun-thread-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.dun-thread-head .t {
  font-size: 14px; font-weight: 500;
}
.dun-thread-head .meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase;
}
.bubble {
  background: var(--surface-2);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 66.6667%;
  align-self: flex-start;
}
.bubble strong { color: var(--ink); font-weight: 500; }
.bubble .tick { color: var(--live); letter-spacing: -0.1em; }
.bubble-link { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; white-space: nowrap; }
.bubble .when {
  display: block;
  margin-top: 6px;
  font-family: var(--mono); font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.bubble.out {
  background: var(--ink);
  color: var(--bg);
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  align-self: flex-end;
  margin-left: auto;
}
.bubble.out .when { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.bubble.success {
  position: relative;
  background: color-mix(in srgb, var(--live) 7%, var(--surface));
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 12px;
  align-self: stretch;
  margin: 30px 0 0;
  max-width: 100%;
  font-size: 13px;
}
.bubble.success::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -16px;
  height: 1px;
  background: var(--line-strong);
}
.bubble.success .when { color: var(--muted); }
.bubble.success strong { color: var(--ink); }

/* -------- Audit log visual (Comunicación) -------- */
.audit {
  padding: 0;
  background: var(--surface);
}
.audit-head {
  padding: 22px 28px;
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line);
}
.audit-head h4 {
  margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.015em;
}
.audit-head .meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase;
}
.audit table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.audit thead th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  font-weight: 500;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.audit tbody td {
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.audit tbody tr:last-child td { border-bottom: none; }
.audit .ts {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.audit .ev { color: var(--ink); font-weight: 500; letter-spacing: -0.005em; }
.audit .target { color: var(--muted); font-size: 13px; }
.audit .channel {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.audit .status {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.audit .status.ok { background: color-mix(in srgb, var(--live) 14%, transparent); color: var(--ink); }
.audit .status.ok::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--live); }
.audit .status.pending { background: var(--surface-2); color: var(--muted); }
.audit .status.pending::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--muted); }
.audit .status.warn { background: color-mix(in srgb, #ff9500 18%, transparent); color: var(--ink); }
.audit .status.warn::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #ff9500; }

@media (max-width: 760px) {
  .audit thead .col-channel, .audit tbody .col-channel { display: none; }
  .audit thead th, .audit tbody td { padding: 14px 18px; }
}

/* -------- Batch processing visual (Facturación) -------- */
.batch {
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 880px) { .batch { grid-template-columns: 1fr; } }
.batch-side h4 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.batch-side h4 .dim { color: var(--muted); }
.batch-side .lede2 {
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
  max-width: 420px;
}
.batch-stats {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.batch-stats .s {
  padding: 18px 14px 0 14px;
  border-right: 1px solid var(--line);
}
.batch-stats .s:first-child { padding-left: 0; }
.batch-stats .s:last-child { border-right: none; padding-right: 0; }
.batch-stats .n {
  font-size: 28px; font-weight: 600; letter-spacing: -0.025em;
  line-height: 1;
}
.batch-stats .s:nth-child(2) .n { color: var(--warm); }
.batch-stats .l {
  margin-top: 6px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted);
}

.batch-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 4px;
  position: relative;
  width: 100%;
  align-self: stretch;
}
.batch-grid .cell {
  aspect-ratio: 1;
  width: 100%;
  background: var(--surface-2);
  border-radius: 3px;
  position: relative;
}
.batch-grid .cell.done {
  background: var(--ink);
  animation: cell-pop .4s ease both;
}
.batch-grid .cell.processing {
  background: var(--warm);
  box-shadow: 0 0 9px color-mix(in srgb, var(--warm) 55%, transparent);
  animation: cell-pulse 1.2s ease-in-out infinite;
}
@keyframes cell-pop { from { transform: scale(0.4); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
@keyframes cell-pulse {
  0%, 100% { background: color-mix(in srgb, var(--warm) 90%, #000000); }
  50% { background: color-mix(in srgb, var(--warm) 68%, #ffffff); }
}

/* ============================================================
   FLOW
   ============================================================ */
.flow {
  padding: clamp(100px, 12vw, 160px) 0;
}
.flow-head {
  margin-bottom: clamp(60px, 8vw, 100px);
  max-width: 720px;
}
.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  counter-reset: flow;
}
@media (max-width: 980px) { .flow-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .flow-steps { grid-template-columns: 1fr; }
  .flow-step,
  .flow-step:nth-child(2n),
  .flow-step:nth-child(odd) {
    border-right: none;
    padding: 26px 0;
    min-height: 0;
  }
  .flow-step:first-child { padding-top: 0; }
  .flow-step:last-child { border-bottom: none; padding-bottom: 0; }
  .flow-steps .flow-step .role {
    margin-top: 18px;
  }
}
.flow-step {
  padding: 28px 20px 32px 20px;
  border-right: 1px solid var(--line);
  position: relative;
  min-height: 264px;
  counter-increment: flow;
  display: flex;
  flex-direction: column;
}
.flow-step:first-child { padding-left: 0; }
.flow-step:last-child { border-right: none; padding-right: 0; }
.flow-step .n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.flow-step .n::before {
  content: counter(flow, decimal-leading-zero);
  margin-right: 10px;
  color: var(--ink);
}
.flow-step h5 {
  margin: 14px 0 10px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.flow-step h5 .dim { color: var(--muted); font-weight: 500; }
.flow-step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.flow-step .role {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.flow-step:first-child .role { left: 0; }
/* La columna "rol" cuenta la historia: el alta inicial la hacemos nosotros (sin
   cargo), y de ahí en más vos solo supervisás. Lo hacemos visible sin color (el
   azul está reservado a acción/datos): el paso 1 lleva punto lleno y oscuro =
   paso a cargo de Gozepelin; los 2–5, punto hueco y atenuado = automático, vos
   solo mirás. */
.flow-step .role .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--muted-2);
}
.flow-step:first-child .role {
  color: var(--ink);
  font-weight: 600;
}
.flow-step:first-child .role .dot {
  background: var(--ink);
  box-shadow: none;
}
@media (max-width: 980px) {
  .flow-step:nth-child(2n) { border-right: none; padding-right: 0; }
  .flow-step:nth-child(odd) { padding-right: 20px; }
  .flow-step { border-bottom: 1px solid var(--line); }
}

/* ============================================================
   PAYMENTS
   ============================================================ */
.pay {
  padding: clamp(100px, 12vw, 160px) 0;
}
.pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 70px);
}
@media (max-width: 960px) { .pay-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-cell { min-height: 0; padding: 24px 22px; }
}
.pay-cell {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 160px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 10px;
  transition: background-color .15s ease;
}
.pay-cell:hover { background: var(--surface-2); }
.pay-cell .kind {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted);
}
.pay-cell .name {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.pay-cell .name .dim { color: var(--muted); font-weight: 500; }
.pay-cell .note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pay-footnote {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  max-width: 720px;
  line-height: 1.5;
}

/* ============================================================
   CLOSING
   ============================================================ */
.closing {
  padding: clamp(120px, 14vw, 200px) 0;
  text-align: left;
}
.closing .display {
  max-width: 18ch;
}
.closing .lede {
  max-width: 540px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
}
footer .row {
  display: flex; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; align-items: baseline;
  font-size: 13px;
  color: var(--muted);
}
footer .links { display: flex; gap: 22px; }
footer .links a {
  color: var(--muted); text-decoration: none;
  transition: color .15s ease;
}
footer .links a:hover { color: var(--ink); }
footer .legal { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ============================================================
   REVEAL ANIMATIONS — CSS-only, fires on page load
   ============================================================ */
.reveal {
  animation: reveal-in 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.reveal.delay-1 { animation-delay: 0.08s; }
.reveal.delay-2 { animation-delay: 0.16s; }
.reveal.delay-3 { animation-delay: 0.24s; }
.reveal.delay-4 { animation-delay: 0.32s; }
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .live-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
#tweaks-root {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 100;
  display: none;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  padding: 16px 18px 18px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.3);
  font-family: var(--sans);
  color: var(--ink);
}
#tweaks-root.open { display: block; }
.tw-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.tw-head h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.tw-head button {
  background: none; border: none; font-size: 20px;
  color: var(--muted); cursor: pointer; padding: 0; line-height: 1;
}
.tw-section { margin-bottom: 14px; }
.tw-section:last-child { margin-bottom: 0; }
.tw-label {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 8px;
}
.seg {
  display: flex; gap: 4px;
  background: var(--surface-2);
  border-radius: 10px; padding: 3px;
}
.seg button {
  flex: 1; padding: 7px 8px;
  font: 500 12px var(--sans);
  background: transparent; color: var(--muted);
  border: none; border-radius: 7px;
  cursor: pointer;
  transition: all .12s ease;
}
.seg button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

/* ============================================================
   COBRANZAS — chart + live feed
   ============================================================ */
.cob {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  min-height: 540px;
}
@media (max-width: 1040px) { .cob { grid-template-columns: 1fr; } }

.cob-main {
  padding: 28px clamp(20px, 2.4vw, 36px);
  display: flex; flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--line);
}
@media (max-width: 1040px) { .cob-main { border-right: none; border-bottom: 1px solid var(--line); } }

.cob-callout {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: color-mix(in srgb, var(--live) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--live) 26%, transparent);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.cob-callout strong { color: var(--ink); font-weight: 600; }
.cob-callout .callout-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  color: var(--ink);
  flex-shrink: 0;
}
.cob-callout .callout-mark svg { width: 16px; height: 16px; }

.cob-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 18px; flex-wrap: wrap;
  padding-bottom: 6px;
}
.cob-head .kicker {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.cob-head h4 {
  margin: 8px 0 0;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cob-head h4 .cents {
  font-size: 0.55em;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-left: -8px;
}
.cob-head .delta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--live) 16%, transparent);
  color: var(--ink);
  font-weight: 500;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cob-head .delta .delta-arr {
  width: 0.7em;
  height: auto;
  display: block;
  fill: currentColor;
  flex: none;
}
.cob-head .delta.down .delta-arr {
  transform: rotate(180deg);
}

.cob-chart {
  width: 100%;
  height: 300px;
  display: block;
}
.cob-chart-svg-legacy {
  display: none;
}

.cob-legend {
  display: flex; gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 4px;
}
.cob-legend .leg {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted);
}
.cob-legend .sw {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--brand);
  flex-shrink: 0;
}
.cob-legend .sw.prev {
  background: var(--muted);
  opacity: 0.55;
}

/* Live feed sidebar */
.cob-side {
  background: var(--surface-2);
  padding: 24px clamp(18px, 2vw, 28px);
  display: flex; flex-direction: column;
  gap: 14px;
}
.cob-side-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cob-side-head .kicker {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.cob-side-head h5 {
  margin: 6px 0 0;
  font-size: 16px; font-weight: 500;
  letter-spacing: -0.01em;
}

.cob-pay {
  display: flex; flex-direction: column;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cob-pay:last-child { border-bottom: none; }
.cp-top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px;
}
.cp-who {
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.cp-amt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cp-stages {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cp-bar {
  display: flex;
  gap: 3px;
  flex: 1;
  height: 5px;
}
.cp-bar .seg {
  flex: 1;
  height: 100%;
  border-radius: 3px;
  background: var(--surface-2);
}
.cp-bar .seg.done { background: var(--live); }
.cp-bar .seg.now {
  background: var(--live);
  animation: cp-seg 1.4s ease-in-out infinite;
}
@keyframes cp-seg {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.32; }
}
.cp-status {
  width: 92px;
  flex-shrink: 0;
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.cp-status.now { color: var(--live); font-weight: 500; }
.cp-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ============================================================
   PORTAL FAMILIAS — browser-window mockup
   ============================================================ */
.portal-card {
  padding: 0;
  background: var(--surface);
  overflow: hidden;
}
.prt {
  display: flex; flex-direction: column;
  font-family: var(--sans);
}

/* Browser chrome */
.prt-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.prt-chrome .bz {
  width: 11px; height: 11px;
  border-radius: 999px;
  background: var(--line-strong);
}
.prt-url {
  flex: 1;
  display: inline-flex; align-items: center; gap: 8px;
  justify-self: center;
  max-width: 420px;
  margin: 0 auto;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.prt-url .lock { font-size: 8px; color: var(--live); }
.prt-spacer { width: 50px; }

/* Portal header */
.prt-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.prt-brand { display: inline-flex; align-items: center; gap: 10px; }
.prt-logo {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.prt-name {
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.prt-name-logo { height: 19px; width: auto; display: block; }
.prt-nav {
  display: inline-flex; gap: 6px;
  justify-self: start;
}
.prt-nav a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: -0.005em;
  cursor: default;
}
.prt-nav a.on {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 500;
}
.prt-tools { display: inline-flex; align-items: center; justify-content: flex-end; gap: 18px; }
.prt-bell {
  position: relative;
  width: 18px; height: 18px;
  color: var(--ink-2);
  display: inline-flex;
}
.prt-bell svg { width: 18px; height: 18px; }
.prt-bell .badge {
  position: absolute;
  top: -4px; right: -6px;
  min-width: 14px; height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: #c0392b;
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 14px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0;
}
.prt-user {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  padding: 6px 12px;
  background: var(--surface-2);
  border-radius: 999px;
}

/* Body grid */
.prt-body {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  min-height: 540px;
}
@media (max-width: 1040px) { .prt-body { grid-template-columns: 1fr; } }

.prt-main {
  padding: 28px clamp(20px, 2.2vw, 32px);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
@media (max-width: 1040px) { .prt-main { border-right: none; border-bottom: 1px solid var(--line); } }

.prt-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

/* Top notice strip */
.prt-notice {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.prt-notice-text { display: flex; flex-direction: column; }
.prt-notice-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.prt-notice-link {
  font-size: 13px;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.005em;
  align-self: flex-start;
  cursor: default;
}
.prt-chevron {
  display: inline-flex;
  width: 26px; height: 26px;
  color: var(--muted);          /* disclosure chevron = navigation decoration, kept neutral (Phil. A: blue is reserved for real actions) */
  flex-shrink: 0;
}
.prt-chevron svg { width: 26px; height: 26px; }

/* Summary row */
.prt-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.prt-summary-label {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}
.prt-amount {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.prt-amount .cents {
  font-size: 0.4em;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 2px;
  vertical-align: super;
  line-height: 0;
}
.prt-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 6px;
    font: 500 14px var(--sans);
    letter-spacing: -0.005em;
    cursor: default;
}

/* Table — 5 columns */
.prt-table {
  background: var(--surface);
}
.prt-table-head,
.prt-row {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1.2fr 1.2fr 0.8fr;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
}
.prt-table-head {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.prt-row {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.prt-row:last-child { border-bottom: none; }
.prt-row .prt-cell { color: var(--ink-2); letter-spacing: -0.005em; }
.prt-row .prt-cell .t { display: block; color: var(--ink); font-weight: 500; letter-spacing: -0.005em; }
.prt-row .prt-cell .sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: -0.005em;
  margin-top: 2px;
  font-weight: 400;
}
.prt-cell.mono {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.prt-amt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.prt-status {
  display: inline-flex; align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--live) 16%, transparent);
}
.prt-link {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--ink);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: -0.005em;
    cursor: default;
}

/* Aside notifications */
.prt-aside {
  padding: 28px clamp(20px, 2.2vw, 28px);
  background: var(--surface-2);
  display: flex; flex-direction: column;
}
.prt-aside-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.prt-aside-count {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.prt-notif {
  padding: 18px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  position: relative;
}
.prt-notif:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.prt-notif.new .prt-notif-head .t {
  position: relative;
  padding-left: 14px;
}
.prt-notif.new .prt-notif-head .t::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
}
.prt-notif-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.prt-notif-head .t {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.prt-notif-head .when {
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: -0.005em;
  white-space: nowrap;
  font-weight: 400;
}
.prt-notif p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  letter-spacing: -0.005em;
}
.prt-notif p + p {
  margin-top: 6px;
}
.prt-notif-link {
  color: var(--brand);
  text-decoration: none;
  cursor: default;
  letter-spacing: -0.005em;
}
.prt-notif-link:hover { text-decoration: none; }

@media (max-width: 720px) {
  .prt-header { gap: 14px; padding: 14px 18px; }
  .prt-user { display: none; }
  .prt-table-head, .prt-row { grid-template-columns: 2fr 1fr 1fr; }
  .prt-table-head span:nth-child(2),
  .prt-row .prt-cell:nth-child(2),
  .prt-table-head span:nth-child(5),
  .prt-row .prt-cell:nth-child(5) { display: none; }
  .prt-summary { grid-template-columns: 1fr; gap: 18px; }
  .prt-cta { justify-self: start; }
}

/* ============================================================
   CUIDADO HUMANO (UX + Support)
   ============================================================ */
.human {
  padding: clamp(100px, 12vw, 160px) 0;
}
.human-head {
  max-width: 880px;
  margin-bottom: clamp(50px, 7vw, 80px);
}
.human-head .h-section { margin-top: 18px; }
.human-lede {
  margin: 24px 0 0;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-2);
  line-height: 1.45;
  max-width: 680px;
}
.human-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 960px) {
  .human-grid { grid-template-columns: 1fr; }
}
.human-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  padding: 36px;
  display: flex; flex-direction: column;
  min-height: 480px;
}
/* Apiladas en mobile: sin alto mínimo. Va DESPUÉS de la regla base para ganarle en la cascada. */
@media (max-width: 960px) {
  .human-card { min-height: 0; }
}
@media (max-width: 560px) {
  .human-card { padding: 22px; }
}
.human-card .kicker { color: var(--muted); }
.human-card h3 {
  margin: 18px 0 0;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}
.human-card > p {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 440px;
}
.quote {
  margin: auto 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.quote blockquote {
  margin: 0;
  font-size: clamp(19px, 1.6vw, 24px);
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
  font-weight: 500;
}
.quote figcaption {
  margin-top: 16px;
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.quote figcaption .who { color: var(--ink); }

/* Chat card */
.human-card.chat {
  padding: 0;
  overflow: hidden;
}
.chat-head {
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.ch-id { display: flex; align-items: center; gap: 12px; }
.ch-av {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.02em;
}
.ch-name { font-size: 14px; font-weight: 500; letter-spacing: -0.005em; }
.ch-sub {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.ch-sub .live-dot { width: 6px; height: 6px; }
.ch-meta {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted);
}
.chat-thread {
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
  overflow: hidden;
  background-image: url('../assets/img/landings/chat-bg.png');
  background-size: cover;
  background-position: center;
}
.cmsg {
  max-width: 84%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 1px 1.5px rgba(0,0,0,0.08);
}
.cmsg p { margin: 0; }
.cmsg .when {
  display: block;
  margin-top: 6px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.cmsg.in {
  background: #fff;
  color: var(--ink-2);
  border-radius: 14px 14px 14px 4px;
  align-self: flex-start;
}
.cmsg.in .when { color: var(--muted); }
.cmsg.out {
  background: color-mix(in srgb, var(--live) 16%, #fff);
  color: var(--ink);
  border-radius: 14px 14px 4px 14px;
  align-self: flex-end;
}
.cmsg.out .when { color: var(--muted); }
.chat-foot {
  padding: 16px 22px 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.human-strip {
  margin-top: clamp(40px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.human-strip .hs {
  padding: 28px clamp(8px, 2vw, 24px);
  border-right: 1px solid var(--line);
}
.human-strip .hs:last-child { border-right: none; }
.human-strip .hs .n {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.human-strip .hs .l {
  margin-top: 10px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 760px) {
  .human-strip { grid-template-columns: 1fr; }
  .human-strip .hs { border-right: none; border-bottom: 1px solid var(--line); }
  .human-strip .hs:last-child { border-bottom: none; }
}

/* ============================================================
   CLOSING + LEAD FORM
   ============================================================ */
.closing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 960px) {
  .closing-grid { grid-template-columns: 1fr; gap: 56px; }
}
.closing-copy .display { margin-top: 28px; }
.closing-copy .lede { max-width: 480px; }
.closing-alt {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.closing-alt .link.inline {
  font-size: 14px;
  color: var(--ink);
  border-bottom-color: color-mix(in srgb, var(--ink) 35%, transparent);
}

.lead-form {
  /* Isla de luz sobre el grafito: la tarjeta recupera la paleta clara completa
     (no solo el fondo) para que inputs, textos y labels vuelvan a "modo claro"
     de forma coherente — el modo Apple. La sombra profunda la despega del fondo. */
  --surface: #ffffff;
  --surface-2: #f4f4f3;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.14);

  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column;
  gap: 24px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 60px 120px -40px rgba(0,0,0,0.5);
}
.lead-head .kicker {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.lead-head h3 {
  margin: 12px 0 0;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.lead-head p {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.lead-fields {
  display: flex; flex-direction: column;
  gap: 16px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}
.field {
  display: flex; flex-direction: column;
  gap: 8px;
}
.field .lbl {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select {
  font: 400 15px var(--sans);
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  letter-spacing: -0.005em;
  width: 100%;
  outline: none;
  transition: border-color .15s ease, background-color .15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder { color: var(--muted-2); }
.field input:hover,
.field select:hover { border-color: var(--line-strong); }
.field input:focus,
.field select:focus {
  border-color: var(--ink);
  background: var(--surface);
}
.field input:invalid:not(:placeholder-shown) { border-color: #c0392b; }
.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.lead-foot {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-top: 8px;
}
.lead-foot .btn-pri {
  border: none;
  cursor: pointer;
  font: 500 15px var(--sans);
}
.lead-fineprint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  flex: 1;
  min-width: 180px;
}

.lead-success[hidden] { display: none; }
.lead-success {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px;
  background: color-mix(in srgb, var(--live) 12%, transparent);
  border-radius: 14px;
}
.lead-success .ls-tick {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--live);
  color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}
.lead-success strong { color: var(--ink); font-weight: 600; font-size: 15px; }
.lead-success p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* ============================================================
   WHATSAPP · botón flotante (FAB)
   ============================================================ */
.wa-fab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 90;
  width: 60px;
  height: 60px;
  display: block;
  cursor: pointer;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s var(--ease-emph), box-shadow 0.18s ease;
}
.wa-fab img { width: 100%; height: 100%; display: block; border-radius: 999px; }
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24); }
.wa-fab:active { transform: scale(0.96); }
@media (max-width: 520px) {
  .wa-fab { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab { transition: none; }
}
