/* Senvario AI · sitio web
   Sistema: blanco + azul de marca, tinta casi negra, verde solo para WhatsApp y confirmaciones.
   Movimiento (Emil Kowalski): entradas ease-out fuerte, UI < 300 ms, solo transform/opacity,
   hover solo con puntero fino, reduced-motion respetado. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-sunk: #eef2f7;
  --ink: #0b1220;
  --ink-2: #475163;
  --ink-3: #8a93a3;
  --line: #e5e9f0;
  --line-2: #d6dce5;
  --blue: #2563eb;
  --blue-700: #1d4ed8;
  --blue-50: #eef4ff;
  --wa-head: #008069;
  --wa-send: #00a884;
  --wa-out: #d9fdd3;
  --wa-in: #eef0f2;
  --wa-meta: #667781;
  --wa-read: #53bdeb;
  --ok: #15803d;
  --ok-50: #ecfdf3;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-ui: 200ms;
  --dur-reveal: 700ms;

  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-card: 0 1px 2px rgba(11, 18, 32, 0.04), 0 12px 32px -12px rgba(11, 18, 32, 0.14);
  --shadow-float: 0 2px 4px rgba(11, 18, 32, 0.04), 0 30px 60px -20px rgba(11, 18, 32, 0.25);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue-50); color: var(--blue-700); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ic { display: inline-block; width: 1em; height: 1em; flex: none; }
.ic svg { width: 100%; height: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--blue); letter-spacing: 0; }
.h1 { font-size: clamp(42px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; margin: 0; }
.h1 .ml { white-space: nowrap; }
.h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -0.038em; font-weight: 700; margin: 0; }
.h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 650; margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); letter-spacing: -0.01em; margin: 0; }
.muted { color: var(--ink-2); }
.accent { color: var(--blue); }
.tnum { font-variant-numeric: tabular-nums; }

/* Titulares que suben línea a línea (máscara), como en el vídeo */
.mask-lines .ml { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask-lines .ml > span { display: inline-block; transform: translateY(110%); transition: transform 900ms var(--ease-out); }
.mask-lines.is-in .ml > span { transform: translateY(0); }
.mask-lines.is-in .ml:nth-child(2) > span { transition-delay: 80ms; }
.mask-lines.is-in .ml:nth-child(3) > span { transition-delay: 160ms; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 14px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease, color var(--dur-ui) ease;
}
.btn:active { transform: scale(0.97); }
.btn .ic { width: 20px; height: 20px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 8px 20px -10px rgba(11, 18, 32, 0.5); }
.btn-wa { background: var(--wa-send); color: #fff; box-shadow: 0 8px 20px -10px rgba(0, 168, 132, 0.6); }
.btn-ghost { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-small { height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #1b2436; }
  .btn-wa:hover { background: #009575; }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: baseline; font-weight: 700; letter-spacing: -0.055em; font-size: 28px; line-height: 1; color: var(--ink); }
.logo .i { position: relative; }
.logo .i::after { content: ""; position: absolute; left: 50%; top: 0.115em; width: 0.17em; height: 0.17em; margin-left: -0.075em; border-radius: 50%; background: var(--blue); }
.logo .ya { color: var(--blue); }
.logo .dot { display: inline-block; width: 0.19em; height: 0.19em; margin-left: 0.05em; border-radius: 50%; background: var(--blue); }

/* ---------- Cabecera ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow var(--dur-ui) ease; }
.site-head.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color var(--dur-ui) ease, background-color var(--dur-ui) ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); background: var(--bg-soft); } }
.head-cta { display: flex; gap: 10px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform 200ms var(--ease-out); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 200ms var(--ease-out); }
.menu-btn span::before { transform: translateY(-6px); }
.menu-btn span::after { transform: translateY(6px); }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: rotate(45deg); }
.menu-open .menu-btn span::after { transform: rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Secciones ---------- */
section { position: relative; }
.section { padding: clamp(88px, 12vw, 150px) 0; }
.section-head { max-width: 920px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head .h2 { margin-top: 14px; }
.section-head .lead { margin-top: 18px; }
.soft { background: var(--bg-soft); }

/* Revelado al hacer scroll (sutil, una sola vez) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 60ms; }
.reveal[data-delay="2"] { transition-delay: 120ms; }
.reveal[data-delay="3"] { transition-delay: 180ms; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .lead { margin-top: 26px; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 30px; font-size: 14px; color: var(--ink-2); }
.hero-notes span { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes .ic { width: 16px; height: 16px; color: var(--ok); }

/* ---------- Teléfono (demo en vivo) ---------- */
.phone-stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.phone {
  position: relative; width: 340px; height: 700px; border-radius: 54px; background: #0b1220; padding: 10px;
  box-shadow: 0 0 0 1.5px #1e2636, inset 0 0 0 1.5px #3a4356, var(--shadow-float);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.island { position: absolute; top: 11px; left: 50%; width: 104px; height: 30px; margin-left: -52px; border-radius: 20px; background: #0b1220; z-index: 3; }
.wa-head { background: var(--wa-head); color: #fff; padding: 14px 18px 12px; flex: none; }
.statusbar { display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 0 12px; font-size: 14px; font-weight: 600; }
.statusbar .icons { display: flex; gap: 5px; align-items: center; }
.statusbar .icons .ic { width: 15px; height: 15px; }
.wa-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.wa-bar .back { width: 18px; height: 18px; }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #fff; flex: none; }
.wa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa-title { flex: 1; min-width: 0; }
.wa-name { font-size: 16px; font-weight: 600; line-height: 1.2; }
.wa-sub { position: relative; height: 17px; font-size: 13px; line-height: 17px; color: rgba(255, 255, 255, 0.85); overflow: hidden; }
.wa-sub span { position: absolute; left: 0; top: 0; white-space: nowrap; transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out); }
.wa-sub span[aria-hidden="true"] { opacity: 0; transform: translateY(8px); }
.wa-bar .call { width: 22px; height: 22px; }
.chat { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px 12px 10px; background: #fff; }
.bub { max-width: 82%; padding: 8px 11px 7px; border-radius: 14px; font-size: 14.5px; line-height: 1.38; letter-spacing: -0.005em; color: #111b21; box-shadow: 0 1px 0 rgba(11, 20, 26, 0.07); }
.bub.out { align-self: flex-end; background: var(--wa-out); border-bottom-right-radius: 4px; }
.bub.in { align-self: flex-start; background: var(--wa-in); border-bottom-left-radius: 4px; box-shadow: none; }
.bub .meta { display: inline-flex; align-items: center; gap: 3px; float: right; margin: 6px 0 -3px 10px; font-size: 11px; color: var(--wa-meta); }
.bub .tk { position: relative; width: 16px; height: 13px; }
.bub .tk .ic { position: absolute; inset: 0; width: 16px; height: 13px; transition: opacity 200ms ease; }
.bub .tk .t1 { color: var(--wa-meta); }
.bub .tk .t2 { color: var(--wa-read); opacity: 0; }
.bub.read .tk .t1 { opacity: 0; }
.bub.read .tk .t2 { opacity: 1; }
.bub.typing { display: flex; gap: 4px; padding: 12px 13px; }
.bub.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: dot 1.1s infinite ease-in-out; }
.bub.typing i:nth-child(2) { animation-delay: 0.15s; }
.bub.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 70%, 100% { opacity: 0.35; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-2px); } }
.enter { animation: bub-in 260ms var(--ease-out) both; }
.bub.out.enter { transform-origin: 100% 100%; }
.bub.in.enter { transform-origin: 0% 100%; }
@keyframes bub-in { from { opacity: 0; transform: scale(0.92) translateY(6px); } to { opacity: 1; transform: none; } }
.qr-row { align-self: flex-start; display: flex; gap: 6px; }
.qr { height: 32px; padding: 0 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #d1d7db; color: var(--wa-head); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; transition: transform 140ms var(--ease-out), background-color 160ms ease; }
.qr.tap { transform: scale(0.95); background: var(--wa-out); }
.confirm { align-self: stretch; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--ok-50); box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.2); color: #0f5a2c; font-size: 13.5px; line-height: 1.35; }
.confirm .ic { width: 22px; height: 22px; color: var(--ok); }
.confirm b { display: block; font-weight: 650; color: #0b4a24; }
.composer { flex: none; display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: #f0f2f5; }
.field { position: relative; flex: 1; height: 38px; border-radius: 19px; background: #fff; overflow: hidden; }
.field .ph { position: absolute; left: 14px; top: 0; line-height: 38px; font-size: 14.5px; color: #6b7785; transition: opacity 120ms ease; }
.field .typed-wrap { position: absolute; left: 14px; right: 10px; top: 0; height: 38px; overflow: hidden; }
.field .typed { position: absolute; right: auto; left: 0; top: 0; line-height: 38px; font-size: 14.5px; white-space: pre; color: #111b21; }
.field .caret { position: absolute; top: 10px; left: 14px; width: 2px; height: 18px; border-radius: 1px; background: var(--wa-send); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.bub b { font-weight: 600; }
.send { width: 38px; height: 38px; border-radius: 50%; background: var(--wa-send); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; transition: transform 140ms var(--ease-out); }
.send .ic { width: 18px; height: 18px; }
.send.tap { transform: scale(0.9); }
.kb { flex: none; background: #d6dbe3; padding: 8px 4px 22px; }
.krow { display: flex; justify-content: center; gap: 5px; margin-bottom: 9px; padding: 0 2px; }
.key { flex: 1 1 0; min-width: 0; height: 40px; border-radius: 6px; background: #fff; box-shadow: 0 1px 0 #a9b0bb; display: flex; align-items: center; justify-content: center; font-size: 17px; color: #111b21; transition: background-color 60ms linear; }
.key.fn { flex: 1.45 1 0; background: #b9c0cc; font-size: 12px; }
.krow:last-child .key.fn { flex: 2.4 1 0; }
.key.sp { flex: 5.5 1 0; font-size: 13px; color: #4a5463; }
.key.on { background: #dbe7fe; color: var(--blue-700); }
.demo-controls { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.demo-controls button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; font-size: 13.5px; transition: transform 160ms var(--ease-out), box-shadow var(--dur-ui) ease; }
.demo-controls button:active { transform: scale(0.97); }
.demo-controls .ic { width: 15px; height: 15px; }

/* ---------- Problema ---------- */
.problem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.problem-statement { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.18; letter-spacing: -0.03em; font-weight: 650; margin: 0; }
.problem-statement .fade { color: var(--ink-3); }
.notif-stack { display: grid; gap: 12px; }
.notif { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border-radius: var(--radius-m); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line); }
.notif .t { flex: 1; min-width: 0; }
.notif .t b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.notif .t span { font-size: 14px; color: var(--ink-2); }
.notif .time { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.notif .warn { color: #b42318; font-weight: 600; }

/* Baldosas de icono estilo iOS */
.tile { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(11, 18, 32, 0.12); }
.tile .ic { width: 23px; height: 23px; }
.tile-wa { background: linear-gradient(180deg, #2fdc75 0%, #12b45a 100%); }
.tile-green { background: linear-gradient(180deg, #4cd964 0%, #28b84c 100%); }
.tile-blue { background: linear-gradient(180deg, #4f8df7 0%, #2563eb 100%); }
.tile-ink { background: linear-gradient(180deg, #2b3446 0%, #0b1220 100%); }
.tile-teal { background: linear-gradient(180deg, #3cc8d6 0%, #1597a8 100%); }

/* ---------- Cómo funciona (escenario fijo) ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.step-num { font-size: 14px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color var(--dur-ui) ease; }
.step .h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; margin-top: 10px; color: var(--ink-3); transition: color 300ms ease; }
.step p { margin: 12px 0 0; max-width: 440px; color: var(--ink-3); transition: color 300ms ease; }
.step.is-active .step-num { color: var(--blue); }
.step.is-active .h3 { color: var(--ink); }
.step.is-active p { color: var(--ink-2); }
.stage-col { position: relative; }
.stage { position: sticky; top: calc(50vh - 260px); height: 520px; border-radius: var(--radius-l); background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 40px; opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(4px); transition: opacity 360ms var(--ease-out), transform 520ms var(--ease-out), filter 360ms var(--ease-out); pointer-events: none; }
.scene.is-active { opacity: 1; transform: none; filter: blur(0); }
.card { width: 100%; max-width: 440px; background: #fff; border-radius: 22px; box-shadow: var(--shadow-float), inset 0 0 0 1px var(--line); padding: 22px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head .t { flex: 1; min-width: 0; }
.card-head b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.card-head span { font-size: 13.5px; color: var(--ink-2); }
.mini-chat { display: grid; gap: 8px; }
.mini-chat .bub { max-width: 88%; font-size: 14.5px; }
.contact-av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(180deg, #a7adb7 0%, #858b95 100%); color: #fff; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.fields { display: grid; }
.fields div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.fields dt, .fields .k { color: var(--ink-2); font-size: 14px; }
.fields .v { font-weight: 600; letter-spacing: -0.01em; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 13px; font-weight: 600; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.slots { display: grid; gap: 8px; }
.slot { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; font-size: 14px; }
.slot .h { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.slot .b { height: 44px; border-radius: 10px; display: flex; align-items: center; padding: 0 14px; font-size: 13.5px; font-weight: 500; }
.slot .busy { background: repeating-linear-gradient(135deg, #f1f4f8 0 10px, #e9edf3 10px 20px); color: var(--ink-3); }
.slot .free { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--blue-700); }
.slot .booked { background: var(--blue); color: #fff; font-weight: 600; box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.6); }
.card-status { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ok); }
.card-status .ic { width: 18px; height: 18px; }
.callpill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; background: #1e9e4a; color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.callpill i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.wave { display: flex; align-items: center; gap: 4px; height: 64px; margin: 6px 0 14px; }
.wave i { flex: 1; height: 8px; border-radius: 3px; background: var(--blue); transform-origin: center; }
.scene.is-active .wave i { animation: wave 1.2s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: scaleY(0.6); } 50% { transform: scaleY(var(--h, 4)); } }
.say-who { font-size: 13px; font-weight: 650; color: var(--blue); }
.say { font-size: 17px; line-height: 1.4; letter-spacing: -0.01em; margin-top: 4px; }

/* ---------- Vídeo ---------- */
.video-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.video-frame { position: relative; width: 340px; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #e9eef6; box-shadow: var(--shadow-float); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(11, 18, 32, 0) 50%, rgba(11, 18, 32, 0.35) 100%); transition: opacity var(--dur-ui) ease; }
.video-play span { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; box-shadow: var(--shadow-card); transition: transform 160ms var(--ease-out); }
.video-play:active span { transform: scale(0.97); }
.video-play .ic { width: 18px; height: 18px; color: var(--blue); }
.video-frame.is-playing .video-play { opacity: 0; pointer-events: none; }
.checklist { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.checklist .ic { width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }

/* ---------- Lo que incluye ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.feature { padding: 34px 32px 38px 0; border-bottom: 1px solid var(--line); }
.feature:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.feature .h3 { margin-top: 22px; }
.feature p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }

/* ---------- Para quién ---------- */
.segmented { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--bg-sunk); position: relative; flex-wrap: wrap; }
.segmented button { position: relative; z-index: 1; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: color var(--dur-ui) ease; }
.segmented button .ic { width: 17px; height: 17px; }
.segmented button[aria-selected="true"] { color: var(--ink); }
.seg-thumb { position: absolute; z-index: 0; top: 4px; left: 0; height: 40px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(11, 18, 32, 0.08), 0 0 0 1px var(--line); transition: transform 280ms var(--ease-out), width 280ms var(--ease-out); }
.who-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; margin-top: 44px; min-height: 300px; }
.who-text { transition: opacity 200ms ease, transform 280ms var(--ease-out), filter 200ms ease; }
.who-text .h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; }
.who-text ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.who-text li { display: flex; gap: 10px; color: var(--ink-2); }
.who-text li .ic { width: 20px; height: 20px; color: var(--blue); margin-top: 3px; }
.who-chat { padding: 26px; border-radius: var(--radius-l); background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); transition: opacity 200ms ease, transform 280ms var(--ease-out), filter 200ms ease; }
.who-chat .bub { font-size: 15px; }
.is-swapping .who-text, .is-swapping .who-chat { opacity: 0; transform: translateY(8px); filter: blur(3px); }

/* ---------- Cómo empezar ---------- */
.start { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.start li { position: relative; padding: 32px 32px 8px 0; }
.start li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.start-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.start .h3 { margin-top: 20px; }
.start p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }
.start-cta { margin-top: 40px; }

/* ---------- Precios ---------- */
.pricing-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.bill-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--bg-sunk); flex: none; }
.bill-toggle button { position: relative; z-index: 1; height: 42px; padding: 0 18px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: color var(--dur-ui) ease; }
.bill-toggle button[aria-pressed="true"] { color: var(--ink); }
.bill-thumb { position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: 42px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(11, 18, 32, 0.08), 0 0 0 1px var(--line); transition: transform 280ms var(--ease-out); }
.bill-toggle.is-year .bill-thumb { transform: translateX(100%); }
.save-tag { font-size: 12px; font-weight: 650; color: var(--ok); background: var(--ok-50); padding: 3px 8px; border-radius: 999px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.plan.featured { box-shadow: inset 0 0 0 2px var(--blue), 0 24px 48px -24px rgba(37, 99, 235, 0.35); }
.plan-tag { position: absolute; top: 24px; right: 24px; font-size: 12.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); }
.plan-top { display: flex; align-items: center; gap: 12px; }
.plan-top .tile { width: 40px; height: 40px; border-radius: 11px; }
.plan-top .tile .ic { width: 21px; height: 21px; }
.plan-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.plan-channel { font-size: 13.5px; color: var(--ink-2); }
.plan-desc { margin: 16px 0 0; font-size: 15px; color: var(--ink-2); min-height: 48px; }
.price-label { margin-top: 22px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.price { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; white-space: nowrap; }
.price .amount { font-size: clamp(32px, 3vw, 40px); font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.price .per { font-size: 15px; color: var(--ink-2); }
.price-sub { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); min-height: 21px; }
.price-sub b { color: var(--ok); font-weight: 600; }
.amount.tick { animation: tick 260ms var(--ease-out); }
@keyframes tick { from { opacity: 0.2; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.setup { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 11px 14px; border-radius: 12px; background: var(--bg-soft); font-size: 14px; color: var(--ink-2); }
.setup b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 11px; font-size: 15px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li.plus { font-weight: 600; color: var(--ink); }
.plan li .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--blue); }
.plan .btn { margin-top: auto; width: 100%; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.7); }
@media (hover: hover) and (pointer: fine) { .btn-blue:hover { background: var(--blue-700); } }
.pricing-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.founders, .calc { padding: 26px 28px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.founders { display: flex; gap: 16px; align-items: flex-start; background: var(--blue-50); box-shadow: inset 0 0 0 1px #d7e4ff; }
.founders b { font-size: 17px; letter-spacing: -0.01em; }
.founders p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.founders strong { color: var(--ink); font-weight: 600; }
.founders-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--blue-700); }
.founders-link .ic { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .founders-link:hover .ic { transform: translateX(3px); } }
.calc label { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 15px; }
.calc-val { min-width: 44px; height: 32px; padding: 0 10px; border-radius: 10px; background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center; }
.calc input[type="range"] { width: 100%; margin: 16px 0 14px; accent-color: var(--blue); height: 24px; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-result > div { padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); }
.calc-k { display: block; font-size: 13px; color: var(--ink-2); }
.calc-result b { display: block; margin-top: 2px; font-size: 20px; letter-spacing: -0.02em; }
.calc-result b small { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.calc-out { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); }
.fine { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }

/* ---------- Preguntas ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; text-align: left; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.qa button .ic { width: 20px; height: 20px; color: var(--ink-3); transition: transform 240ms var(--ease-out); }
.qa button[aria-expanded="true"] .ic { transform: rotate(180deg); }
.qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease-out); }
.qa .ans > div { overflow: hidden; }
.qa .ans p { margin: 0 0 24px; max-width: 680px; color: var(--ink-2); }
.qa.open .ans { grid-template-rows: 1fr; }

/* ---------- Cierre ---------- */
.final { padding: clamp(80px, 11vw, 140px) 0; background: var(--blue-50); overflow: hidden; }
.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.final .lead { margin-top: 20px; }
.final .logo { font-size: 34px; margin-bottom: 30px; }
.lead-form { padding: 28px; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: var(--shadow-float); }
.lead-form h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.02em; }
.lead-form p.small { margin: 0 0 20px; font-size: 14px; color: var(--ink-2); }
.lead-form label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.lead-form input, .lead-form select { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); font: inherit; font-size: 16px; color: var(--ink); background: #fff; transition: box-shadow var(--dur-ui) ease; }
.lead-form input:focus, .lead-form select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.lead-form .btn { width: 100%; margin-top: 22px; }
.lead-form .legal { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); }
.lead-form .legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Pie ---------- */
.site-foot { padding: 48px 0 40px; font-size: 14px; color: var(--ink-2); }
.foot-row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { transition: color var(--dur-ui) ease; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover { color: var(--ink); } }
.foot-small { margin-top: 24px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .head-cta .btn-ghost { display: none; }
  .head-cta { margin-left: auto; }
}
@media (max-width: 960px) {
  .hero-grid, .problem-grid, .video-grid, .who-panel, .final-grid { grid-template-columns: 1fr; }
  .phone-stage { margin-top: 12px; }
  .how-grid { grid-template-columns: 1fr; }
  .stage-col { display: none; }
  .step { min-height: 0; padding: 28px 0; border-top: 1px solid var(--line); }
  .step .h3, .step p { color: inherit; }
  .step .h3 { color: var(--ink); }
  .step p { color: var(--ink-2); }
  .step-num { color: var(--blue); }
  .step .scene-inline { display: block; margin-top: 22px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature, .feature:not(:nth-child(3n + 1)) { padding: 28px 24px 30px 0; border-left: 0; }
  .feature:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .plans, .pricing-foot, .start { grid-template-columns: 1fr; }
  .start li, .start li + li { padding: 26px 0 22px; border-left: 0; border-bottom: 1px solid var(--line); }
  .video-frame { width: min(340px, 100%); margin: 0 auto; }
}
@media (min-width: 961px) { .scene-inline { display: none; } }
.scene-inline .scene { position: static; opacity: 1; transform: none; filter: none; padding: 0; justify-content: flex-start; pointer-events: auto; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .head-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { position: fixed; inset: 72px 0 auto 0; z-index: 49; display: grid; gap: 4px; padding: 12px var(--gutter) 24px; background: #fff; box-shadow: 0 20px 40px -20px rgba(11, 18, 32, 0.25); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform 240ms var(--ease-out), opacity 200ms ease, visibility 0s 240ms; }
  .menu-open .mobile-nav { transform: none; opacity: 1; visibility: visible; transition: transform 240ms var(--ease-out), opacity 200ms ease; }
  .mobile-nav a { padding: 14px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 14px; }
  .phone { width: 320px; height: 660px; border-radius: 50px; }
  .screen { border-radius: 41px; }
  .key { height: 36px; font-size: 15px; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(n) { padding: 26px 0 28px; border-left: 0; }
  .segmented button { padding: 0 12px; font-size: 14px; }
  .qa button { font-size: 17px; }
  .bill-toggle { width: 100%; }
  .bill-toggle button { padding: 0 8px; font-size: 14px; }
  .save-tag { font-size: 11px; padding: 2px 6px; }
  .plan, .founders, .calc { padding: 24px 20px; }
}

/* ---------- Reducir movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .mask-lines .ml > span { transform: none !important; transition: opacity 300ms ease !important; }
  .reveal { opacity: 1; }
  .scene { transform: none !important; filter: none !important; transition: opacity 200ms ease; }
  .enter { animation: none; }
  .bub.typing i, .scene.is-active .wave i, .field .caret { animation: none; }
  .is-swapping .who-text, .is-swapping .who-chat { transform: none; filter: none; }
}
