/* Layout: una columna en el teléfono (el anuncio de Meta llega ahí); en escritorio el hero
   se abre en texto + escena (chat → agenda), y el resto alterna bloques sobre una grilla de 12. */
:root {
  --bg: oklch(0.982 0.004 255);
  --surface: oklch(1 0 0);
  --sunk: oklch(0.958 0.008 255);
  --ink: oklch(0.21 0.035 264);
  --ink-2: oklch(0.43 0.03 258);
  --ink-3: oklch(0.57 0.02 258);
  --line: oklch(0.915 0.012 255);

  --night: oklch(0.19 0.042 266);
  --night-2: oklch(0.245 0.045 265);
  --night-ink: oklch(0.975 0.006 250);
  --night-ink-2: oklch(0.79 0.03 256);
  --night-line: oklch(0.31 0.04 263);

  --wa: oklch(0.775 0.195 150);
  --wa-hover: oklch(0.73 0.185 150);
  --wa-ink: oklch(0.22 0.06 155);
  --wa-text: oklch(0.5 0.135 152);
  --brand: oklch(0.585 0.23 27);

  --chat-bg: oklch(0.955 0.012 165);
  --bubble-in: oklch(1 0 0);
  --bubble-out: oklch(0.925 0.07 148);

  --ok-bg: oklch(0.955 0.05 160);   --ok-fg: oklch(0.47 0.12 162);   --ok-line: oklch(0.85 0.08 160);
  --pend-bg: oklch(0.965 0.045 75); --pend-fg: oklch(0.56 0.15 55);  --pend-line: oklch(0.86 0.09 70);
  --err-bg: oklch(0.965 0.025 25);  --err-fg: oklch(0.52 0.19 27);   --err-line: oklch(0.85 0.08 25);

  --f-display: "Bricolage Grotesque", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-hero: clamp(2.55rem, 1.5rem + 4.9vw, 5.1rem);
  --t-h2: clamp(1.95rem, 1.3rem + 2.7vw, 3.2rem);
  --t-h3: 1.25rem;
  --t-body: 1.0625rem;
  --t-small: 0.9rem;
  --t-mono: 0.8125rem;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow: 0 1px 2px oklch(0.2 0.04 264 / 0.06), 0 12px 32px -12px oklch(0.2 0.04 264 / 0.18);
  --shadow-lg: 0 2px 4px oklch(0.1 0.04 264 / 0.2), 0 40px 80px -24px oklch(0.05 0.04 264 / 0.55);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(0.165 0.022 264);
    --surface: oklch(0.21 0.026 263);
    --sunk: oklch(0.185 0.024 264);
    --ink: oklch(0.96 0.006 255);
    --ink-2: oklch(0.79 0.022 257);
    --ink-3: oklch(0.65 0.02 257);
    --line: oklch(0.3 0.026 262);
    --night: oklch(0.125 0.03 266);
    --night-2: oklch(0.18 0.035 265);
    --night-line: oklch(0.27 0.035 263);
    --wa-text: oklch(0.8 0.17 150);
    --chat-bg: oklch(0.17 0.02 230);
    --bubble-in: oklch(0.25 0.022 245);
    --bubble-out: oklch(0.36 0.075 158);
    --ok-bg: oklch(0.27 0.05 162);   --ok-fg: oklch(0.83 0.13 160);  --ok-line: oklch(0.4 0.07 162);
    --pend-bg: oklch(0.28 0.05 65);  --pend-fg: oklch(0.85 0.13 75);  --pend-line: oklch(0.42 0.08 65);
    --err-bg: oklch(0.27 0.05 25);   --err-fg: oklch(0.8 0.13 25);   --err-line: oklch(0.42 0.1 25);
    --shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 12px 32px -12px oklch(0 0 0 / 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: oklch(0.165 0.022 264);
  --surface: oklch(0.21 0.026 263);
  --sunk: oklch(0.185 0.024 264);
  --ink: oklch(0.96 0.006 255);
  --ink-2: oklch(0.79 0.022 257);
  --ink-3: oklch(0.65 0.02 257);
  --line: oklch(0.3 0.026 262);
  --night: oklch(0.125 0.03 266);
  --night-2: oklch(0.18 0.035 265);
  --night-line: oklch(0.27 0.035 263);
  --wa-text: oklch(0.8 0.17 150);
  --chat-bg: oklch(0.17 0.02 230);
  --bubble-in: oklch(0.25 0.022 245);
  --bubble-out: oklch(0.36 0.075 158);
  --ok-bg: oklch(0.27 0.05 162);   --ok-fg: oklch(0.83 0.13 160);  --ok-line: oklch(0.4 0.07 162);
  --pend-bg: oklch(0.28 0.05 65);  --pend-fg: oklch(0.85 0.13 75);  --pend-line: oklch(0.42 0.08 65);
  --err-bg: oklch(0.27 0.05 25);   --err-fg: oklch(0.8 0.13 25);   --err-line: oklch(0.42 0.1 25);
  --shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 12px 32px -12px oklch(0 0 0 / 0.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--wa); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4.5vw, 36px); }
.mono { font-family: var(--f-mono); font-size: var(--t-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.eyebrow {
  font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--wa-text);
}
.h2 { font-size: var(--t-h2); font-weight: 750; font-variation-settings: "wdth" 88, "opsz" 72; line-height: 1.02; letter-spacing: -0.02em; }
.lede { color: var(--ink-2); max-width: 58ch; font-size: 1.125rem; }

/* ——— Botón WhatsApp ——— */
.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 56px; padding: 0 1.5em;
  background: var(--wa); color: var(--wa-ink);
  font: 600 1.0625rem/1 var(--f-body); text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 0 0 0 oklch(0.775 0.195 150 / 0.5), 0 10px 24px -10px oklch(0.6 0.19 150 / 0.7);
  transition: background .2s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-wa:hover { background: var(--wa-hover); transform: translateY(-1px); }
.btn-wa:active { transform: translateY(1px); }
.btn-wa svg { width: 1.35em; height: 1.35em; flex: none; }
.btn-wa.is-lg { min-height: 64px; font-size: 1.15rem; padding: 0 1.8em; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .4em; min-height: 56px; padding: 0 0.4em;
  color: var(--night-ink-2); text-decoration: none; font-weight: 500;
}
.btn-ghost:hover { color: var(--night-ink); }

/* ——— Barra superior ——— */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--night-ink); text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--brand);
  display: grid; place-items: center; color: #fff;
}
.logo-mark svg { width: 20px; height: 20px; }
.logo b { font: 700 1.3rem/1 var(--f-display); font-variation-settings: "wdth" 90; letter-spacing: -0.01em; }
.logo b span { font-weight: 500; color: var(--night-ink-2); }
.nav { display: none; gap: 28px; }
.nav a { color: var(--night-ink-2); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--night-ink); }
.top .btn-wa { min-height: 44px; font-size: .95rem; padding: 0 1.1em; }
@media (min-width: 900px) { .nav { display: flex; } }


.language-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--night-line); border-radius: 999px; flex: none; }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: 999px; font-size: .8125rem; font-weight: 500; text-decoration: none; color: var(--night-ink-2); }
.language-switch a:hover { color: var(--night-ink); background: var(--night-2); }
.language-switch a[aria-current="page"] { background: var(--night-ink); color: var(--night); }
@media (max-width: 619px) {
  .top .wrap { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding-block: 12px; }
  .language-switch { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 359px) {
  .logo { gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo b { font-size: 1.15rem; }
  .top .btn-wa { font-size: .85rem; padding-inline: .8em; }
}

/* ——— Hero ——— */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night); color: var(--night-ink);
  padding-block: calc(96px + env(safe-area-inset-top, 0px)) 72px;
}
/* Fondo: las líneas de hora de una agenda */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    repeating-linear-gradient(to bottom, transparent 0 63px, var(--night-line) 63px 64px),
    radial-gradient(60% 50% at 78% 40%, oklch(0.5 0.15 152 / 0.22), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, oklch(0.45 0.12 262 / 0.35), transparent 70%);
  mask-image: linear-gradient(to bottom, black 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent);
}
.hours {
  position: absolute; inset: 0 auto 0 0; z-index: -1; display: none;
  padding-left: 18px; color: var(--night-line);
}
.hours span { display: block; height: 64px; font: 500 11px/64px var(--f-mono); transform: translateY(-32px); }
@media (min-width: 1280px) { .hours { display: block; } }

.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; } }

.hero-copy { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  border: 1px solid var(--night-line); background: oklch(1 0 0 / 0.04);
  font-size: .85rem; color: var(--night-ink-2);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px oklch(0.775 0.195 150 / 0.2); }
.hero h1 {
  font-size: var(--t-hero); font-weight: 760; line-height: 0.98; letter-spacing: -0.018em;
  font-variation-settings: "wdth" 86, "opsz" 96;
}
.hero h1 em { font-style: normal; color: var(--wa); display: block; }
.hero .lede { color: var(--night-ink-2); font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); }
.hero .lede strong { color: var(--night-ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.cta-note { font-size: .875rem; color: var(--night-ink-2); display: flex; align-items: center; gap: 8px; }
.cta-note svg { width: 16px; height: 16px; color: var(--wa); flex: none; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 0; list-style: none; }
.facts li.offer { color: var(--wa); border-color: oklch(0.775 0.195 150 / 0.45); background: oklch(0.775 0.195 150 / 0.1); font-weight: 600; }
.facts li {
  font-size: .85rem; color: var(--night-ink-2); padding: 6px 12px; border-radius: 999px;
  background: oklch(1 0 0 / 0.05); border: 1px solid var(--night-line);
}

/* Escena: teléfono + agenda. En el teléfono se apilan (la agenda tapa solo la barra de escribir);
   desde 620px van lado a lado. */
.stage { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 620px) { .stage { flex-direction: row; justify-content: center; } }

.phone {
  width: min(300px, 84vw); flex: none; border-radius: 40px; padding: 10px;
  background: oklch(0.12 0.02 265); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px oklch(0.4 0.03 260);
  position: relative; z-index: 1;
}
.screen { border-radius: 31px; overflow: hidden; background: var(--chat-bg); color: var(--ink); }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 26px 14px 10px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--brand); color: #fff; display: grid; place-items: center;
}
.avatar svg { width: 18px; height: 18px; }
.chat-head b { display: block; font-size: .9rem; line-height: 1.2; font-weight: 600; }
.chat-status { font-size: .75rem; color: var(--ink-3); line-height: 1.2; }
.chat-status.is-typing { color: var(--wa-text); }
.chat {
  height: 410px; padding: 14px 12px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  font-size: .845rem; line-height: 1.4;
}
.day-tag {
  align-self: center; font-size: .7rem; padding: 3px 10px; border-radius: 8px;
  background: var(--surface); color: var(--ink-3); box-shadow: 0 1px 1px oklch(0 0 0 / .06); margin-bottom: 4px;
}
.msg {
  max-width: 84%; padding: 7px 10px 6px; border-radius: 12px; position: relative;
  box-shadow: 0 1px 1px oklch(0 0 0 / .08);
}
.msg.in { align-self: flex-start; background: var(--bubble-in); border-top-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 4px; }
.msg time { display: block; text-align: right; font: 400 .66rem/1 var(--f-mono); color: var(--ink-3); margin-top: 3px; }
.slots { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.slots span {
  font: 500 .75rem/1 var(--f-mono); padding: 6px 9px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--sunk);
}
.slots span.is-picked { border-color: var(--wa-text); color: var(--wa-text); background: var(--ok-bg); }
.msg.is-entering { animation: msg-in .38s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.composer { display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; background: var(--chat-bg); }
.composer span { flex: 1; background: var(--surface); border-radius: 999px; padding: 9px 14px; font-size: .8rem; color: var(--ink-3); }
.composer i { width: 34px; height: 34px; border-radius: 50%; background: var(--wa); flex: none; }
.replay {
  margin-left: auto; background: none; border: 0; color: var(--ink-3); font: 500 .72rem var(--f-body);
  display: inline-flex; gap: 5px; align-items: center; cursor: pointer; padding: 6px; border-radius: 6px;
}
.replay:hover { color: var(--ink); background: var(--sunk); }
.replay svg { width: 18px; height: 18px; }

.agenda-card {
  position: relative; z-index: 2; flex: none; margin-top: -48px;
  width: min(300px, 88vw);
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
@media (min-width: 620px) { .agenda-card { width: 268px; margin: 64px 0 0 -14px; align-self: center; } }
.ac-head { padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.ac-head b { font: 700 1rem/1.2 var(--f-display); font-variation-settings: "wdth" 92; display: block; }
.ac-head span { font-size: .72rem; color: var(--ink-3); }
.ac-rows { padding: 8px; display: grid; gap: 6px; }
.row {
  display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: start;
  padding: 8px 8px; border-radius: 8px; border: 1px solid var(--line); font-size: .8rem; line-height: 1.3;
}
.row .mono { font-weight: 500; color: var(--ink); padding-top: 1px; }
.row small { display: block; color: var(--ink-3); font-size: .72rem; margin-top: 2px; }
.row.is-free { border-style: dashed; color: var(--ink-3); background: transparent; }
.row.is-new { border-color: var(--wa-text); background: var(--ok-bg); }
.row.is-new.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 oklch(0.775 0.195 150 / .7); } 100% { box-shadow: 0 0 0 14px oklch(0.775 0.195 150 / 0); } }
.chip {
  display: inline-block; font-size: .7rem; font-weight: 500; line-height: 1; padding: 3px 6px;
  border-radius: 4px; border: 1px solid; vertical-align: 1px; margin-left: 4px; white-space: nowrap;
}
.chip.ok { color: var(--ok-fg); background: var(--ok-bg); border-color: var(--ok-line); }
.chip.pend { color: var(--pend-fg); background: var(--pend-bg); border-color: var(--pend-line); }
.toast {
  position: absolute; z-index: 3; top: -46px; right: 8px; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 10px; box-shadow: var(--shadow); font-size: .78rem; font-weight: 500;
  transition: opacity .3s, transform .3s;
}
.toast svg { width: 15px; height: 15px; color: var(--ok-fg); }
.toast.is-hidden { opacity: 0; transform: translateY(6px); }

/* ——— Sections ——— */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }

/* Calculadora: el costo del tiempo, con los supuestos a la vista. */
.calculator { background: var(--night); color: var(--night-ink); }
.calculator .eyebrow { color: var(--wa); }
.calculator .section-head { max-width: 850px; }
.calculator .lede { color: var(--night-ink-2); }
.calculator-panel { display: grid; gap: 36px; padding: clamp(20px, 4vw, 40px); border: 1px solid var(--night-line); border-radius: var(--r-lg); background: var(--night-2); }
.calculator-controls { display: grid; align-content: start; gap: 28px; min-width: 0; }
.calculator-field { min-width: 0; }
.calculator-label { display: flex; align-items: start; justify-content: space-between; gap: 16px; font-size: 1rem; line-height: 1.4; }
.calculator-label label { font-weight: 500; }
.calculator-label output { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calculator-field p { font-size: .85rem; line-height: 1.5; color: var(--night-ink-2); margin-top: 8px; }
.calculator-field input[type="range"] { display: block; width: 100%; height: 44px; margin: 10px 0 0; cursor: pointer; appearance: none; -webkit-appearance: none; background: transparent; --range-progress: 0%; }
.calculator-field input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--wa) var(--range-progress), var(--night-line) var(--range-progress)); }
.calculator-field input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--night-line); }
.calculator-field input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--wa); }
.calculator-field input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border: 3px solid var(--night-ink); border-radius: 50%; background: var(--night-ink); box-shadow: 0 2px 8px oklch(0 0 0 / .25); }
.calculator-field input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid var(--night-ink); border-radius: 50%; background: var(--night-ink); box-shadow: 0 2px 8px oklch(0 0 0 / .25); }
.calculator-scale { display: flex; justify-content: space-between; font: 400 .72rem/1 var(--f-mono); color: var(--night-ink-2); }
.calculator-currency { display: inline-flex; gap: 4px; padding: 4px; margin: 18px 0 0; border: 1px solid var(--night-line); border-radius: 10px; }
.calculator-currency label { position: relative; cursor: pointer; }
.calculator-currency input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.calculator-currency span { display: flex; align-items: center; min-height: 44px; padding-inline: 14px; border-radius: 6px; font-size: .85rem; font-weight: 500; color: var(--night-ink-2); }
.calculator-currency input:checked + span { background: var(--night-ink); color: var(--night); }
.calculator-currency input:focus-visible + span { outline: 3px solid var(--wa); outline-offset: 3px; }
.calculator-field .calculator-hint { font-size: .75rem; }
.calculator-results { display: grid; gap: 18px; align-content: start; min-width: 0; }
.calculator-total { padding: clamp(20px, 3vw, 28px); border-radius: var(--r-md); background: var(--night); }
.calculator-total > p { color: var(--night-ink-2); font-size: .95rem; }
.calculator-total .calculator-amount { font: 750 clamp(2.25rem, 1.5rem + 3vw, 4rem)/1.1 var(--f-display); letter-spacing: -.035em; font-variation-settings: "wdth" 88; font-variant-numeric: tabular-nums; color: var(--wa); margin-block: 12px 8px; overflow-wrap: anywhere; }
.calculator-total .calculator-time { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--night-line); font-size: .85rem; }
.calculator-time strong { color: var(--night-ink); }
.calculator-risk { border-left: 3px solid var(--wa); padding: 4px 0 4px 20px; margin-top: 24px; }
.calculator-risk .eyebrow { font-size: .7rem; }
.calculator-risk-number { font: 650 1.35rem/1.25 var(--f-display); margin-block: 8px; text-wrap: balance; }
.calculator-risk > p:last-child { color: var(--night-ink-2); font-size: .85rem; }
.calculator-assumptions { color: var(--night-ink-2); font-size: .75rem; line-height: 1.6; }
.calculator-results .btn-wa { font-size: .95rem; line-height: 1.3; padding-block: 14px; text-align: center; }
@media (min-width: 800px) { .calculator-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
@media (max-width: 359px) { .calculator-label { flex-wrap: wrap; gap: 8px; } .calculator-currency span { padding-inline: 10px; } }

/* Dolores */
.pains-intro { display: grid; gap: 16px; max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }
.pains-intro .h2 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem); }
.pain-list { display: grid; gap: clamp(56px, 8vw, 104px); }
.pain { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .pain { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
  .pain:nth-child(even) .pain-copy { order: 2; }
}
.pain-copy { display: grid; gap: 14px; min-width: 0; }
.pain-copy .tag { font: 500 .78rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--err-fg); }
.pain-copy h3 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.5rem); font-weight: 750; line-height: 1.05; letter-spacing: -0.015em; font-variation-settings: "wdth" 88, "opsz" 72; }
.pain-copy p { color: var(--ink-2); max-width: 46ch; font-size: 1.08rem; }
.pain-copy .fix { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--ink); font-size: 1rem; }
.pain-copy .fix svg { width: 22px; height: 22px; color: var(--wa-text); margin-top: 1px; }
.pain-copy .fix b { font-weight: 600; }
@media (max-width: 899px) {
  .pain { gap: 14px; }
  .pain-copy { display: contents; }
  .pain-visual { order: 1; margin-block: 10px 4px; }
  .pain-copy .fix { order: 2; }
}
.pain-visual { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 28px); box-shadow: var(--shadow); min-width: 0; }

/* Dolor 1: bandeja desbordada */
.inbox-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.inbox-head b { font: 700 1.15rem/1 var(--f-display); font-variation-settings: "wdth" 92; }
.badge { background: var(--wa); color: var(--wa-ink); font: 600 .78rem/1 var(--f-body); padding: 5px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.chats { display: grid; }
.chat-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.chat-row:last-child { border-bottom: 0; }
.chat-row .av { width: 38px; height: 38px; border-radius: 50%; background: var(--sunk); color: var(--ink-3); display: grid; place-items: center; font: 600 .78rem/1 var(--f-body); }
.chat-row b { display: block; font-weight: 600; line-height: 1.3; }
.chat-row span { min-width: 0; }
.chat-row small { display: block; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row .meta { display: grid; justify-items: end; gap: 5px; font: 400 .7rem/1 var(--f-mono); color: var(--wa-text); }
.chat-row .meta .badge { font-size: .7rem; padding: 4px 7px; }
.chat-row.is-faded { opacity: .45; }

/* Dolor 2: el que no recibió respuesta */
.lost { display: grid; gap: 8px; background: var(--chat-bg); border-radius: var(--r-md); padding: 16px 14px; font-size: .9rem; line-height: 1.4; }
.lost .msg { max-width: 82%; }
.lost .msg.in { justify-self: start; }
.lost .msg.out { justify-self: end; }
.lost .gap { justify-self: center; }
.lost .msg time { display: flex; justify-content: flex-end; gap: 4px; align-items: center; }
.lost .ticks { color: var(--ink-3); letter-spacing: -3px; }
.lost .day-tag { margin: 4px 0; }
.gap {
  align-self: center; display: inline-flex; align-items: center; gap: 8px; margin: 6px 0;
  font: 500 .78rem/1 var(--f-mono); color: var(--err-fg); background: var(--err-bg); border: 1px solid var(--err-line);
  padding: 7px 12px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.gap svg { width: 14px; height: 14px; }

/* Dolor 3: el día partido en pedacitos */
.day { display: grid; gap: 10px; }
.day-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; font-size: .8rem; color: var(--ink-2); }
.day-track { position: relative; height: 34px; border-radius: 6px; background: var(--sunk); border: 1px solid var(--line); overflow: hidden; }
.day-track .c { position: absolute; top: 4px; bottom: 4px; border-radius: 4px; background: color-mix(in oklch, var(--ink) 32%, var(--surface)); }
.day-track .x { position: absolute; top: 3px; bottom: 3px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--err-fg); }
.day-axis { position: relative; height: 14px; margin-left: 88px; font: 400 .68rem/1 var(--f-mono); color: var(--ink-3); }
.day-axis span { position: absolute; transform: translateX(-50%); }
.day-axis span:first-child { transform: none; } .day-axis span:last-child { transform: translateX(-100%); }
.day-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); }
.day-sum b { font: 700 1.6rem/1 var(--f-display); color: var(--err-fg); font-variant-numeric: tabular-nums; margin-right: 6px; }
.day-sum .k { display: inline-flex; align-items: center; gap: 6px; }
.day-sum .k i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.pains-cta { display: grid; justify-items: start; gap: 16px; margin-top: clamp(56px, 8vw, 96px); padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: var(--night); color: var(--night-ink); }
.pains-cta p { font: 700 clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem)/1.1 var(--f-display); font-variation-settings: "wdth" 88; letter-spacing: -0.01em; max-width: 26ch; text-wrap: balance; }
.pains-cta p em { font-style: normal; color: var(--wa); }
@media (min-width: 760px) { .pains-cta { grid-template-columns: 1fr auto; align-items: center; } }

/* Paso a paso */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: paso; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 0 18px; position: relative; padding-bottom: 36px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  counter-increment: paso; content: counter(paso);
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font: 700 1.25rem/1 var(--f-display);
  background: var(--ink); color: var(--bg); grid-row: span 3;
}
.step::after {
  content: ""; position: absolute; left: 23px; top: 56px; bottom: 8px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 6px, transparent 6px 11px);
}
.step:last-child::after { display: none; }
.step .who { font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: 6px; }
.step h3 { font-size: 1.45rem; font-weight: 700; font-variation-settings: "wdth" 90; letter-spacing: -0.01em; margin: 8px 0 6px; }
.step p { color: var(--ink-2); max-width: 46ch; }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .step { grid-template-columns: 1fr; padding-bottom: 0; }
  .step::before { grid-row: auto; margin-bottom: 16px; }
  .step::after { left: 60px; right: -16px; top: 23px; bottom: auto; width: auto; height: 2px;
    background: repeating-linear-gradient(to right, var(--line) 0 6px, transparent 6px 11px); }
  .step .who { padding-top: 0; }
}

/* Features: lista simple */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.features li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.features .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ok-bg); color: var(--wa-text); display: grid; place-items: center; }
.features .ic svg { width: 22px; height: 22px; }
.features h3 { font-size: 1.2rem; font-weight: 700; font-variation-settings: "wdth" 92; letter-spacing: -0.01em; margin-bottom: 4px; }
.features p { color: var(--ink-2); font-size: .98rem; }

/* Demo del producto */
.shot { margin: 0; display: grid; gap: 14px; }
.browser {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 10px; font: 400 .72rem/1 var(--f-mono); color: var(--ink-3); }
.shot figcaption { font-size: .875rem; color: var(--ink-3); }
.demo-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.demo-heading h2 { max-width: 20ch; }
.demo-heading p { margin-top: 14px; max-width: 56ch; color: var(--ink-2); }
.demo-open { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; font-size: .9rem; text-underline-offset: 4px; }
.demo-open svg { width: 16px; height: 16px; }
.demo-frame { display: block; width: 100%; height: 720px; border: 0; background: #f8fafc; }
@media (max-width: 639px) {
  .demo-heading { display: block; }
  .demo-open { margin-top: 12px; }
  .browser-bar span { font-size: .65rem; }
  .demo-frame { height: 740px; }
}

/* Control: quién hace qué */
.roles-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 48px); }
.roles { display: grid; gap: 14px; }
@media (min-width: 820px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.role { border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; align-content: start; min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.role.bot { background: var(--ok-bg); border-color: var(--ok-line); }
.role-top { display: flex; align-items: center; gap: 14px; }
.role-top .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.role.bot .ic { background: var(--wa); color: var(--wa-ink); }
.role.team .ic { background: var(--ink); color: var(--bg); }
.role-top .ic svg { width: 24px; height: 24px; }
.role-top h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); font-weight: 750; font-variation-settings: "wdth" 88; letter-spacing: -0.01em; line-height: 1.05; }
.role-top small { display: block; font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.role.bot .role-top small { color: var(--ok-fg); }
.role ul { list-style: none; margin: 0; padding: 0; display: grid; }
.role li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; }
.role.bot li { border-color: var(--ok-line); }
.role li svg { width: 18px; height: 18px; margin-top: 3px; }
.role.bot li svg { color: var(--ok-fg); }
.role.team li svg { color: var(--ink-2); }
.role li b { font-weight: 600; }
.role li span { color: var(--ink-2); }
.role li span b { color: var(--ink); }
.always { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; padding: 18px 22px; border-radius: var(--r-md); border: 1px dashed var(--line); font-size: .92rem; color: var(--ink-2); }
.always > b { font: 500 .75rem/1.7 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.always span { display: inline-flex; gap: 8px; align-items: center; }
.always svg { width: 17px; height: 17px; color: var(--wa-text); flex: none; }

/* Para quién */
.who-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.who-list li {
  font: 600 clamp(1.05rem, .95rem + .6vw, 1.45rem)/1 var(--f-display); font-variation-settings: "wdth" 88;
  padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}

/* FAQ */
.faq { display: grid; gap: 0; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 650 1.15rem/1.3 var(--f-display); font-variation-settings: "wdth" 94;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }
.faq details a { color: var(--wa-text); font-weight: 500; }

/* Cierre */
.closing { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; isolation: isolate; }
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 80% at 50% 120%, oklch(0.6 0.17 152 / 0.35), transparent 70%);
}
.closing .wrap { display: grid; gap: 28px; justify-items: center; text-align: center; }
.closing .h2 { font-size: clamp(2.2rem, 1.4rem + 3.8vw, 4.2rem); max-width: 16ch; }
.closing .lede { color: var(--night-ink-2); text-align: center; }
.closing .offer-note { font-size: 1rem; color: var(--night-ink-2); }
.closing .offer-note b { color: var(--wa); font-weight: 600; }
.closing .alt { font-size: .9rem; color: var(--night-ink-2); }
.closing .alt .mono { color: var(--night-ink); font-size: .9rem; user-select: all; }

footer { background: var(--night); color: var(--night-ink-2); border-top: 1px solid var(--night-line); font-size: .85rem; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 899px) { footer { padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); } }

/* Barra fija en el teléfono */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.dock.is-on { transform: none; }
.dock .btn-wa { width: 100%; }
@media (min-width: 900px) { .dock { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 619px) {
  .hero { padding-top: calc(144px + env(safe-area-inset-top, 0px)); }
}
