/* ANVAR Studio — estilos */
/* Fuentes de respaldo con las medidas de Onest y Young Serif (medidas en el navegador): mientras llega la
   fuente de Google, el texto ocupa casi lo mismo y al cambiar no empuja el resto de la página (menos CLS). */
@font-face { font-family: "Onest Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Roboto"); font-weight: 100 549; size-adjust: 104%; ascent-override: 93%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: "Onest Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Roboto Bold"); font-weight: 550 900; size-adjust: 99.4%; ascent-override: 97%; descent-override: 31%; line-gap-override: 0%; }
@font-face { font-family: "Young Serif Fallback"; src: local("Georgia"), local("Noto Serif"); size-adjust: 112.7%; ascent-override: 93%; descent-override: 33%; line-gap-override: 0%; }

:root {
  --bg: #FFFFFF;
  --panel: #F1F2F6;
  --ink: #16163A;
  --ink-2: #55557A;
  --ink-3: #6B6B8C;
  --on-ink-accent: #AEB7FF; /* checks y rótulos sobre índigo: el amarillo queda solo para dinero */
  --line: #E1E3EC;
  --cobalt: #3346F0;
  --cobalt-press: #2B3BD6;
  --cobalt-soft: #E6E9FE;
  --sale: #FFD23F;
  --ok: #1E9E57;
  --ok-ink: #157A42;
  --warn: #B4570A;
  --bad: #C2304A;
  --bubble-in: #FFFFFF;
  --bubble-out: #DAF4E0;
  --wall: #ECEEF4;

  --serif: "Young Serif", "Young Serif Fallback", Georgia, "Times New Roman", serif;
  --sans: "Onest", "Onest Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-phone: 44px;
  --r-screen: 34px;
  --r-panel: 24px;
  --r-btn: 14px;
  --r-field: 12px;

  --sh-1: 0 1px 2px rgba(22, 22, 58, .06), 0 2px 8px -2px rgba(22, 22, 58, .06);
  --sh-2: 0 1px 2px rgba(22, 22, 58, .05), 0 6px 16px -6px rgba(22, 22, 58, .12), 0 18px 40px -18px rgba(22, 22, 58, .18);
  --sh-phone: 0 2px 4px rgba(22, 22, 58, .10), 0 22px 44px -16px rgba(22, 22, 58, .34), 0 60px 110px -40px rgba(51, 70, 240, .42);

  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ease-out: cubic-bezier(.22, .8, .32, 1);
  --spring: cubic-bezier(.2, .9, .3, 1.2);

  /* z-index scale */
  --z-header: 30;
  --z-fab: 20;
  --z-skip: 40;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.section-ink :focus-visible { outline-color: var(--sale); }
.diag-form :focus-visible { outline-color: var(--cobalt); }
.plan-featured :focus-visible, .calc-result :focus-visible { outline-color: var(--on-ink-accent); }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: var(--z-skip);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-btn);
  text-decoration: none; font-weight: 600;
  transform: translateY(-160%);
  transition: transform .2s var(--ease-out);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Botones ---------- */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 22px;
  border-radius: var(--r-btn); border: 0;
  font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn-sm { --bh: 44px; padding: 0 16px; font-size: 15px; }
.btn-lg { --bh: 54px; padding: 0 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--cobalt); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 1px 2px rgba(22, 22, 58, .2), 0 6px 16px -8px rgba(51, 70, 240, .7);
}
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(22, 22, 58, .2); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 8px 20px -10px rgba(0, 0, 0, .5); }
.btn-sale { background: var(--sale); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 20px -10px rgba(255, 210, 63, .6); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--cobalt-press); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .btn-light:hover { background: var(--cobalt-soft); }
  .btn-sale:hover { background: #FFDB66; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(22, 22, 58, .07), 0 8px 24px -16px rgba(22, 22, 58, .25); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand-word { white-space: nowrap; font-family: var(--serif); font-size: 21px; letter-spacing: -.01em; line-height: 1; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--ink-2);
  border-radius: 10px;
  transition: color .15s ease, background-color .15s ease;
}
@media (hover: hover) { .nav-list a:not(.btn):hover { color: var(--ink); background: var(--panel); } }
.nav-cta-item { margin-left: 10px; }
.nav-toggle { display: none; }
.header-cta { display: none; }
.brand { margin-right: auto; }
.brand-mark { flex-shrink: 0; }

@media (max-width: 860px) {
  .header-inner { gap: 10px; }
  .header-cta { display: inline-flex; gap: 0; padding: 0 14px; font-size: 15px; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px; margin-right: -6px;
    background: none; border: 0; border-radius: 12px; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink);
    transition: transform .22s var(--ease-out), opacity .15s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav-list {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 20px;
    background: #fff;
    box-shadow: 0 16px 30px -18px rgba(22, 22, 58, .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .18s ease, transform .22s var(--ease-out), visibility 0s linear .22s;
  }
  .nav-list.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .22s var(--ease-out), visibility 0s; }
  .nav-list a:not(.btn) { min-height: 52px; font-size: 18px; color: var(--ink); padding: 0 12px; }
  .nav-cta-item { display: none; }
  .nav-toggle:focus-visible { outline-offset: -3px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-panel { background: var(--panel); }
.section-ink { background: var(--ink); color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2, .caso-copy h2, .diag-copy h2, .prueba-copy h2, .quien-copy h2 {
  font-family: var(--serif);
  font-size: clamp(2.05rem, 4vw, 3.15rem);
  line-height: 1.08; letter-spacing: -.01em;
}
.section-head p { margin-top: 16px; font-size: 18.5px; color: var(--ink-2); max-width: 60ch; }
.section-head a { color: var(--cobalt); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(24px, 3.4vw, 48px)); padding-bottom: clamp(56px, 8vw, 104px); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  line-height: 1.04; letter-spacing: -.01em;
}
.h1-line { display: block; text-wrap: balance; }
.hero-sub { margin-top: 24px; font-size: clamp(18px, 1.6vw, 20.5px); line-height: 1.55; color: var(--ink-2); max-width: 34em; min-height: 3.1em; }
.hero-sub [data-r="palabra"] { color: var(--ink); font-weight: 600; }
.chips-label { margin-top: 32px; font-size: 15px; font-weight: 600; color: var(--ink); }
.chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; max-width: 620px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--panel); color: var(--ink); font-weight: 500; font-size: 15.5px;
  box-shadow: inset 0 0 0 1px rgba(22, 22, 58, .06);
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.chip:active { transform: scale(.96); }
.chip[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(22, 22, 58, .3), 0 6px 14px -8px rgba(22, 22, 58, .6); }
@media (hover: hover) { .chip[aria-checked="false"]:hover { background: var(--cobalt-soft); } }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { margin-top: 24px; display: grid; justify-items: start; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--ink-2); }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%231E9E57' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.hero-founders { font-size: 15px; }
.hero-founders[hidden] { display: none; }
.hero-founders a {
  display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px 0 12px; border-radius: 999px;
  background: var(--cobalt-soft); color: #2533B8; font-weight: 600; text-decoration: none;
  transition: background-color .15s ease;
}
.hero-founders a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 3px rgba(51, 70, 240, .18); flex-shrink: 0; }
@media (hover: hover) { .hero-founders a:hover { background: #D6DBFD; } }

/* ---------- Teléfono ---------- */
.hero-demo { display: flex; flex-direction: column; align-items: center; }
.phone {
  --pw: 332px; --ph: 660px;
  width: var(--pw); height: var(--ph);
  padding: 10px; border-radius: var(--r-phone);
  background: linear-gradient(#22224d, #16163A);
  box-shadow: var(--sh-phone), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
  position: relative;
  flex-shrink: 0;
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: var(--r-screen);
  background: var(--wall);
  display: flex; flex-direction: column;
  isolation: isolate;
}
.phone-island { position: absolute; top: 10px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 999px; background: #0d0d24; z-index: 3; }
.phone-status { height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0 30px; font-size: 14px; font-weight: 600; background: #fff; }
.status-icons { display: flex; gap: 6px; align-items: center; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 6px 14px 10px; background: #fff; box-shadow: 0 1px 0 rgba(22, 22, 58, .06); flex-shrink: 0; position: relative; z-index: 1; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt); color: #fff; font-family: var(--serif); font-size: 18px; flex-shrink: 0; }
.chat-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.chat-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-state { font-size: 12.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.dot-ai { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(30, 158, 87, .18); }
.chat-body > * { flex-shrink: 0; }
.chat-body {
  flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 6px;
  padding: 10px 12px 8px;
}
/* Solo si en un teléfono muy angosto algo no cabe: el borde superior se difumina en vez de cortar en seco */
.chat-body.is-overflow { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px); mask-image: linear-gradient(to bottom, transparent 0, #000 28px); }
.msg {
  position: relative;
  max-width: 85%; padding: 7px 10px 5px; border-radius: 16px;
  font-size: 13.5px; line-height: 1.42;
  box-shadow: 0 1px 1px rgba(22, 22, 58, .08);
  opacity: 0; transform: translateY(8px);
  transition: opacity .22s ease-out, transform .22s ease-out;
}
.msg.in { opacity: 1; transform: none; }
.msg-c { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 6px; }
.msg-a { align-self: flex-end; background: var(--bubble-out); border-bottom-right-radius: 6px; }
.msg-tag { display: block; font-size: 11px; font-weight: 600; color: #1D7A45; margin-bottom: 1px; }
.msg-spacer { display: inline-block; width: 36px; height: 1px; }
.msg-time { position: absolute; right: 10px; bottom: 4px; font-size: 10.5px; line-height: 1.4; color: rgba(22, 22, 58, .62); font-variant-numeric: tabular-nums; }
.msg-has-pay .msg-time { position: static; display: block; text-align: right; margin-top: 3px; }
.msg-pay { margin-top: 7px; display: flex; flex-direction: column; gap: 6px; padding: 9px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px rgba(22, 22, 58, .07); }
.msg-pay-c { font-size: 12px; color: var(--ink-2); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-pay-btn { display: flex; align-items: center; justify-content: center; min-height: 36px; border-radius: 8px; background: var(--sale); color: var(--ink); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; border-bottom-left-radius: 6px; background: var(--bubble-in); box-shadow: 0 1px 1px rgba(22, 22, 58, .08); opacity: 0; transform: translateY(8px); transition: opacity .18s ease-out, transform .18s ease-out; }
.typing.typing-a { align-self: flex-end; background: var(--bubble-out); border-bottom-left-radius: 16px; border-bottom-right-radius: 6px; }
.typing.in { opacity: 1; transform: none; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(22, 22, 58, .4); animation: blink 1.1s infinite ease-in-out; }
.phone.is-paused .typing i { animation-play-state: paused; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

.chat-compose { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 6px 12px 16px; }
.compose-field { flex: 1; height: 38px; border-radius: 999px; background: #fff; display: flex; align-items: center; padding: 0 16px; font-size: 14px; color: var(--ink-2); box-shadow: 0 1px 1px rgba(22, 22, 58, .06); }
.compose-send { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }

.notif {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 4;
  display: flex; gap: 10px; align-items: center;
  padding: 11px 12px; border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 1px 2px rgba(22, 22, 58, .12), 0 12px 28px -10px rgba(22, 22, 58, .4);
  transform: translateY(calc(-100% - 16px)); opacity: 0;
  transition: transform .26s ease-in, opacity .2s ease-in;
}
.notif.show { transform: none; opacity: 1; transition: transform .5s var(--spring), opacity .16s ease-out; }
.notif-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--sale); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.notif-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.notif-app { font-size: 11.5px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.notif-time { color: var(--ink-2); }
.notif-title { font-size: 14.5px; font-weight: 700; }
.notif-detail { font-size: 12.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.demo-foot { width: var(--demo-w, 332px); margin-top: 22px; }
.demo-tag { font-size: 17px; font-weight: 600; line-height: 1.35; min-height: 2.7em; text-wrap: balance; transition: opacity .18s ease; }
.demo-row { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.btn-replay {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  min-height: 44px; padding: 0 16px 0 13px; border-radius: var(--r-btn); border: 0; cursor: pointer;
  background: var(--panel); font-weight: 600; font-size: 15px;
  transition: background-color .15s ease, transform .12s ease;
}
.btn-replay:active { transform: scale(.97); }
.btn-replay svg { transition: transform .35s var(--ease-out); }
@media (hover: hover) { .btn-replay:hover { background: var(--cobalt-soft); } .btn-replay:hover svg { transform: rotate(-60deg); } }
.demo-note { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.demo-note a { color: var(--cobalt); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.is-swapping { opacity: 0; }

/* ---------- Calculadora ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px; align-items: stretch; }
.calc-form { background: #fff; border-radius: var(--r-panel); padding: clamp(24px, 3vw, 40px); box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 30px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.range-top label { font-weight: 600; font-size: 17px; }
.range-top output { font-weight: 700; font-size: 22px; color: var(--cobalt); min-width: 3.5ch; text-align: right; }
.range-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; margin: 4px 0 0; background: transparent; cursor: pointer;
  touch-action: pan-y;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(to right, var(--cobalt) 0 var(--p), #DADDEA var(--p) 100%);
}
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: #DADDEA; }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--cobalt); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; margin-top: -10px; border-radius: 50%;
  background: #fff; border: 0;
  box-shadow: 0 0 0 1px rgba(22, 22, 58, .1), 0 2px 6px rgba(22, 22, 58, .25), inset 0 0 0 7px var(--cobalt);
  transition: transform .12s ease;
}
input[type="range"]::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: 0 0 0 1px rgba(22, 22, 58, .1), 0 2px 6px rgba(22, 22, 58, .25), inset 0 0 0 7px var(--cobalt);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(51, 70, 240, .3), 0 2px 6px rgba(22, 22, 58, .25), inset 0 0 0 7px var(--cobalt); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(51, 70, 240, .3), inset 0 0 0 7px var(--cobalt); }

.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: 16px; }
.hint { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.affix { display: flex; align-items: center; border-radius: var(--r-field); background: #fff; box-shadow: inset 0 0 0 1.5px #D3D6E3; transition: box-shadow .15s ease; }
.affix:focus-within { box-shadow: inset 0 0 0 2px var(--cobalt), 0 0 0 4px rgba(51, 70, 240, .14); }
.affix span { color: var(--ink-2); font-weight: 600; font-size: 18px; padding: 0 4px 0 14px; }
.affix-post span { padding: 0 14px 0 4px; }
.affix input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 52px; padding: 0 14px 0 2px; font: 600 19px/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.affix-post input { padding: 0 2px 0 14px; }

.calc-result {
  background: var(--ink); color: #fff; border-radius: var(--r-panel);
  padding: clamp(28px, 3.4vw, 48px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  box-shadow: var(--sh-2);
}
.calc-lead { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); color: rgba(255, 255, 255, .78); }
.calc-big { margin-top: 6px; font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -.01em; }
.calc-big .tnum { font-family: var(--sans); font-weight: 700; letter-spacing: -.03em; display: inline-block; min-width: 2.2ch; }
.calc-money { margin-top: 14px; font-family: var(--serif); font-size: clamp(22px, 2.3vw, 30px); color: rgba(255, 255, 255, .78); }
.money { background: var(--sale); color: var(--ink); font-family: var(--sans); font-weight: 700; padding: 0 .28em; border-radius: 8px; letter-spacing: -.01em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.calc-note { margin: 22px 0 0; color: rgba(255, 255, 255, .72); font-size: 16px; max-width: 36ch; min-height: 3.2em; }
.calc-break { margin: 14px 0 28px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 15.5px; line-height: 1.45; max-width: 38ch; }
.calc-break[hidden] { display: none; }
.calc-break b { font-weight: 700; }
.calc-assume a { color: var(--cobalt-press); font-weight: 600; text-underline-offset: 3px; }
.calc-assume { margin-top: 20px; font-size: 14.5px; color: var(--ink-2); max-width: 90ch; }
.calc-assume + .calc-assume { margin-top: 8px; }

/* ---------- Cómo funciona ---------- */
.flow { --steps: 5; --i: 0; position: relative; }
.flow-track { position: absolute; left: 0; top: 22px; width: 0; height: 4px; z-index: 0; }
.flow-line { position: absolute; inset: 0; border-radius: 4px; background: var(--line); }
.flow-line::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: var(--cobalt); transform-origin: left; transform: scaleX(calc(var(--i) / (var(--steps) - 1))); transition: transform .45s var(--ease-out); }
.flow-dot {
  position: absolute; top: 50%; left: 0; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  background: var(--cobalt); box-shadow: 0 0 0 6px rgba(51, 70, 240, .16), 0 6px 16px -4px rgba(51, 70, 240, .6);
  transform: translateX(calc(var(--track-w, 0px) * var(--i) / (var(--steps) - 1)));
  transition: transform .45s var(--ease-out);
}
.flow.is-vertical .flow-dot { left: 50%; top: 0; transform: translateY(calc(var(--track-h, 0px) * var(--i) / (var(--steps) - 1))); }
.flow.is-vertical .flow-line::after { transform-origin: top; transform: scaleY(calc(var(--i) / (var(--steps) - 1))); }
.flow-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.flow-step {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  background: none; border: 0; padding: 0 6px 12px; cursor: pointer; min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.flow-n {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--ink-2); font-weight: 700; font-size: 17px;
  box-shadow: inset 0 0 0 2px var(--line);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .12s ease;
  position: relative; z-index: 1;
}
.flow-step[aria-selected="true"] .flow-n { background: transparent; color: #fff; box-shadow: none; transition: background-color .12s ease, color .2s ease .15s, box-shadow .12s ease; }
.flow-step.is-past .flow-n { background: var(--cobalt-soft); color: var(--cobalt); box-shadow: inset 0 0 0 2px var(--cobalt); }
.flow-step:active .flow-n { transform: scale(.94); }
.flow-t { font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--ink-2); max-width: 16ch; transition: color .2s ease; }
.flow-step[aria-selected="true"] .flow-t { color: var(--ink); }
@media (hover: hover) { .flow-step:hover .flow-t { color: var(--ink); } .flow-step:not([aria-selected="true"]):hover .flow-n { box-shadow: inset 0 0 0 2px var(--cobalt); } }

.flow-stage { margin-top: 28px; position: relative; }
.flow-panel {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--panel); border-radius: var(--r-panel); padding: clamp(24px, 3.5vw, 48px);
  min-height: 330px;
}
.flow-panel[hidden] { display: none; }
.flow-panel.is-active .flow-text, .flow-panel.is-active .mini { animation: panelIn .32s var(--ease-out) both; }
.flow-panel.is-active .mini { animation-delay: .06s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.flow-text h3 { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.flow-text p { margin-top: 12px; color: var(--ink-2); font-size: 17.5px; max-width: 42ch; }

.mini { background: #fff; border-radius: 18px; padding: 20px; box-shadow: var(--sh-2); max-width: 470px; width: 100%; justify-self: center; }
.g-search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line), 0 1px 3px rgba(22, 22, 58, .08); font-size: 15px; color: var(--ink); }
.g-search svg { color: var(--ink-3); flex-shrink: 0; }
.g-result { display: flex; flex-direction: column; gap: 3px; margin-top: 18px; }
.g-url { font-size: 13px; color: var(--ink-2); }
.g-title { font-size: 18px; color: #2533B8; line-height: 1.3; }
.g-desc { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.g-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.g-actions span { font-size: 13.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: #2533B8; }

.mini-web { padding: 0; overflow: hidden; }
.mw-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--panel); }
.mw-bar span { width: 10px; height: 10px; border-radius: 50%; background: #CDD0DD; }
.mw-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.mw-name { font-family: var(--serif); font-size: 22px; }
.mw-prices li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.mw-prices li b { font-weight: 700; font-variant-numeric: tabular-nums; }
.mw-btn { align-self: flex-start; display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px; }

.mini-chat { background: var(--wall); display: flex; flex-direction: column; gap: 8px; }
.b { max-width: 88%; padding: 9px 12px; border-radius: 16px; font-size: 15px; line-height: 1.45; box-shadow: 0 1px 1px rgba(22, 22, 58, .08); }
.b-in { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; }
.b-out { align-self: flex-end; background: var(--bubble-out); border-bottom-right-radius: 6px; }
.b-tag { display: block; font-size: 12px; font-weight: 600; color: #1D7A45; }

.mini-pay { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; background: transparent; box-shadow: none; padding: 0; }
.pay-card { background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--sh-2); display: flex; flex-direction: column; gap: 4px; }
.pay-k { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.pay-c { font-size: 14.5px; }
.pay-amount { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 10px; }
.pay-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; background: var(--sale); font-weight: 700; font-size: 15px; }
.cal { background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--sh-2); display: flex; flex-direction: column; gap: 10px; align-self: start; }
.cal-h { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cal-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cal-s { display: grid; place-items: center; min-height: 40px; border-radius: 10px; font-size: 14.5px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; }
.cal-s.is-on { background: var(--cobalt); color: #fff; box-shadow: none; }
.cal-s.is-taken { color: var(--ink-3); background: var(--panel); box-shadow: none; text-decoration: line-through; text-decoration-color: rgba(22, 22, 58, .35); }

/* ---------- Caso real ---------- */
.caso-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.caso-lead { margin-top: 18px; color: var(--ink-2); font-size: 18px; max-width: 46ch; }
.checks { margin: 26px 0 34px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; font-size: 16.5px; line-height: 1.45; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--cobalt-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6L17.5 8.5' fill='none' stroke='%233346F0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.caso-visual { position: relative; padding-bottom: 48px; padding-right: 56px; margin-top: 8px; }
.browser { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(22, 22, 58, .08), 0 2px 4px rgba(22, 22, 58, .1), 0 30px 60px -24px rgba(22, 22, 58, .45); }
.browser-bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #ECEDF3; }
.bd { width: 11px; height: 11px; border-radius: 50%; background: #CBCDD9; }
.browser-url { margin-left: 14px; flex: 1; max-width: 260px; height: 22px; border-radius: 7px; background: #fff; font-size: 12px; color: var(--ink-2); display: flex; align-items: center; padding: 0 10px; }
.browser img { width: 100%; outline: 1px solid rgba(0, 0, 0, .06); outline-offset: -1px; }
.mini-phone {
  margin: 0; position: absolute; right: 0; bottom: 0; width: 30%; min-width: 120px;
  padding: 7px; border-radius: 30px; background: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12), 0 2px 4px rgba(22, 22, 58, .2), 0 24px 50px -18px rgba(22, 22, 58, .6);
}
.mini-phone img { border-radius: 23px; aspect-ratio: 9 / 18; object-fit: cover; object-position: top; width: 100%; }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 18px; align-items: center; }
.plan {
  border-radius: var(--r-panel); padding: clamp(24px, 2.6vw, 34px);
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  display: flex; flex-direction: column;
}
.plan-name { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.plan-for { margin-top: 6px; font-size: 15px; color: var(--ink-2); min-height: 2.9em; }
.plan-price { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.plan-install { font-size: clamp(34px, 3.2vw, 42px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.plan-install-l { font-size: 14px; color: var(--ink-2); }
.plan-monthly { margin-top: 12px; display: inline-flex; align-self: flex-start; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 10px; background: var(--panel); font-size: 15px; }
.plan-monthly b { font-size: 18px; font-variant-numeric: tabular-nums; }
.plan ul { margin: 22px 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.45; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%231E9E57' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan li.is-base { font-weight: 600; }
.plan .btn { width: 100%; }
.plan-featured { background: var(--ink); color: #fff; box-shadow: var(--sh-2); padding-block: clamp(30px, 3.4vw, 46px); }
.plan-featured .plan-for, .plan-featured .plan-install-l { color: rgba(255, 255, 255, .72); }
.plan-featured .plan-monthly { background: rgba(255, 255, 255, .1); }
.plan-featured li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23AEB7FF' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-pick { font-size: 14px; font-weight: 600; color: var(--on-ink-accent); margin-bottom: 10px; }
.plan-featured .plan-install { font-size: clamp(38px, 3.6vw, 48px); }
.plans-foot { margin-top: 28px; display: grid; gap: 18px; }
.no-lock { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink); }
.no-lock svg { color: var(--ok); flex-shrink: 0; margin-top: 3px; }
.founders {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 26px; border-radius: var(--r-panel);
  background: var(--cobalt-soft);
}
.founders h3 { font-family: var(--serif); font-size: 22px; }
.founders p { margin-top: 4px; color: var(--ink-2); }

/* ---------- Comparación ---------- */
.table-scroll {
  position: relative; overflow-x: auto; border-radius: var(--r-panel); background: #fff; box-shadow: var(--sh-1);
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.table-scroll:focus-visible { outline-offset: 4px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 820px; font-size: 15.5px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 15px; font-weight: 600; color: var(--ink-2); padding-top: 20px; padding-bottom: 16px; }
.compare thead th.is-us { color: #fff; background: var(--ink); font-family: var(--serif); font-weight: 400; font-size: 18px; border-radius: 16px 16px 0 0; }
.compare tbody th { font-weight: 600; width: 23%; }
.compare td.is-us { background: #F5F6FF; font-weight: 600; }
.compare th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
.v { display: inline-flex; align-items: flex-start; gap: 8px; line-height: 1.35; }
.v::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; margin-top: -1px; background-position: center; background-repeat: no-repeat; background-size: 14px; }
.v-yes::before { background-color: #DDF3E6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23157A42' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.v-no::before { background-color: #FBE3E7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7 7 17' fill='none' stroke='%23C2304A' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.v-mid::before { background-color: #FCEBD7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12h12' fill='none' stroke='%23B4570A' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.table-hint { display: none; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.table-scroll.can-right { box-shadow: var(--sh-1), inset -18px 0 16px -16px rgba(22, 22, 58, .35); }

/* ---------- 14 días ---------- */
.ruler { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; }
.day {
  display: grid; place-items: end start; height: 64px; padding: 8px 9px; border-radius: 10px;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--panel); color: var(--ink-3);
  transition: background-color .3s ease, color .3s ease;
}
.ruler:is(:not(.will-fill), .is-filled) .day[data-f="1"] { background: var(--ink); color: #fff; }
.ruler:is(:not(.will-fill), .is-filled) .day[data-f="2"] { background: var(--cobalt); color: #fff; }
.ruler:is(:not(.will-fill), .is-filled) .day[data-f="3"] { background: #8C97F7; color: var(--ink); }
.ruler:is(:not(.will-fill), .is-filled) .day[data-f="0"] { background: repeating-linear-gradient(135deg, var(--panel) 0 6px, #E2E4EE 6px 12px); color: var(--ink-3); }
.ruler:is(:not(.will-fill), .is-filled) .day[data-f="4"] { background: var(--ok-ink); color: #fff; font-weight: 700; }
.phases { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.phase { position: relative; }
/* La muestra de color funciona como leyenda de la regla, no como posición */
.phase-d { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.phase-d::before { content: ""; width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.phase[data-f="1"] .phase-d::before { background: var(--ink); }
.phase[data-f="2"] .phase-d::before { background: var(--cobalt); }
.phase[data-f="3"] .phase-d::before { background: #8C97F7; }
.phase[data-f="4"] .phase-d::before { background: var(--ok-ink); }
.phase h3 { margin-top: 4px; font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.phase p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq { background: #fff; border-radius: var(--r-panel); box-shadow: var(--sh-1); padding: 8px clamp(16px, 2.4vw, 28px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 14px 0; font-weight: 600; font-size: 17.5px; line-height: 1.35;
  border-radius: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%2316163A' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .25s var(--ease-out), background-color .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--cobalt-soft); }
@media (hover: hover) { .faq summary:hover::after { background-color: var(--cobalt-soft); } }
.faq details p { padding: 0 48px 20px 0; color: var(--ink-2); font-size: 16.5px; }
.faq details[open] p { animation: panelIn .25s var(--ease-out); }

/* ---------- Diagnóstico ---------- */
.diag-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.diag-copy p { margin-top: 18px; color: rgba(255, 255, 255, .78); font-size: 18px; max-width: 44ch; }
.diag-points { margin-top: 28px; display: grid; gap: 12px; }
.diag-points li { position: relative; padding-left: 32px; }
.diag-points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6L17.5 8.5' fill='none' stroke='%23AEB7FF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.diag-form {
  background: #fff; color: var(--ink); border-radius: var(--r-panel);
  padding: clamp(22px, 3vw, 40px); display: grid; gap: 18px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 30px 60px -24px rgba(0, 0, 0, .6);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.diag-form input[type="text"], .diag-form input[type="tel"], .diag-form input[type="email"], .diag-form select {
  width: 100%; height: 52px; padding: 0 14px; border-radius: var(--r-field); border: 0;
  background: #fff; color: var(--ink); font: 400 17px/1.2 var(--sans);
  box-shadow: inset 0 0 0 1.5px #D3D6E3;
  transition: box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.diag-form select {
  padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%2355557A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 20px no-repeat;
}
.diag-form input::placeholder { color: var(--ink-3); }
.diag-form input[type="text"]:focus, .diag-form input[type="tel"]:focus, .diag-form input[type="email"]:focus, .diag-form select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--cobalt), 0 0 0 4px rgba(51, 70, 240, .14); }
.diag-form [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--bad) !important; }
.opt { font-weight: 400; color: var(--ink-2); }
.err { font-size: 14px; color: var(--bad); font-weight: 500; display: none; align-items: center; gap: 6px; line-height: 1.35; }
.err.on { display: flex; }
.err.on::before { content: "!"; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.goals { border: 0; margin: 0; padding: 0; }
.goals legend { padding: 0; margin-bottom: 10px; }
.goal-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.goal { position: relative; display: flex; cursor: pointer; }
.goal input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.goal span {
  flex: 1; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px;
  border-radius: var(--r-field); font-size: 15.5px; font-weight: 500; line-height: 1.3;
  box-shadow: inset 0 0 0 1.5px #D3D6E3;
  transition: box-shadow .15s ease, background-color .15s ease;
}
.goal span::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px #B9BDD0; transition: box-shadow .15s ease; }
.goal input:checked + span { background: var(--cobalt-soft); box-shadow: inset 0 0 0 2px var(--cobalt); }
.goal input:checked + span::before { box-shadow: inset 0 0 0 5.5px var(--cobalt); }
.goal input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
@media (hover: hover) { .goal:hover span { box-shadow: inset 0 0 0 1.5px var(--ink-2); } .goal input:checked + span { box-shadow: inset 0 0 0 2px var(--cobalt); } }
.goals.is-invalid .goal span { box-shadow: inset 0 0 0 1.5px var(--bad); }
.form-foot { font-size: 14px; color: var(--ink-2); text-align: center; margin-top: -4px; }
.form-ok { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-field); background: #E3F5EA; color: #0F5A31; font-size: 15px; font-weight: 500; }
.form-ok[hidden] { display: none; }
.form-ok::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6L17.5 8.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.form-ok a { color: inherit; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.brand-footer .brand-word { font-size: 19px; }
.footer-legal { font-size: 14.5px; color: var(--ink-2); flex: 1 1 360px; }
.footer-cols {
  flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 32px;
  margin-top: 12px; padding-top: 24px; box-shadow: 0 -1px 0 var(--line);
}
.footer-col h2 { font-family: var(--sans); font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-underline-offset: 3px; }
@media (hover: hover) { .footer-col a:hover { color: var(--ink); } }

/* ---------- Prueba tu asistente (chat en vivo) ---------- */
.prueba-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.prueba-lead { margin-top: 18px; font-size: 18.5px; color: rgba(255, 255, 255, .78); max-width: 46ch; }
.prueba-setup { margin-top: 34px; display: grid; gap: 26px; }
.prueba-label { font-size: 15px; font-weight: 600; }
.prueba-copy, .prueba-field { min-width: 0; }
.prueba-setup { grid-template-columns: minmax(0, 1fr); }
.prueba-field .chips { margin-top: 12px; }
.chips-ink { max-width: 560px; }
.chips-ink .chip { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.chips-ink .chip[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
@media (hover: hover) { .chips-ink .chip[aria-checked="false"]:hover { background: rgba(255, 255, 255, .16); } }
.prueba-name { max-width: 420px; }
.prueba-name label { font-size: 15px; }
.prueba-name input {
  width: 100%; height: 52px; padding: 0 14px; border: 0; border-radius: var(--r-field);
  background: rgba(255, 255, 255, .06); color: #fff; font: 400 17px/1.2 var(--sans);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22);
  transition: box-shadow .15s ease, background-color .15s ease;
}
.prueba-name input::placeholder { color: rgba(255, 255, 255, .42); }
.prueba-name input:focus { outline: none; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px var(--on-ink-accent), 0 0 0 4px rgba(174, 183, 255, .18); }
.prueba .hint, .prueba .opt { color: rgba(255, 255, 255, .62); }
.prueba-fine { margin-top: 30px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .62); max-width: 52ch; }
.section-ink.prueba :focus-visible { outline-color: var(--on-ink-accent); }
.section-ink.prueba .phone-screen :focus-visible { outline-color: var(--cobalt); outline-offset: 2px; }

.prueba-demo { display: flex; flex-direction: column; align-items: center; }
.phone-live {
  --ph: 640px;
  background: linear-gradient(#30306A, #202050);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), 0 2px 4px rgba(0, 0, 0, .3), 0 30px 70px -24px rgba(0, 0, 0, .7), 0 50px 120px -40px rgba(51, 70, 240, .6);
}
.live-reset {
  margin-left: auto; flex-shrink: 0; width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .12s ease;
}
.live-reset:active { transform: scale(.94); }
@media (hover: hover) { .live-reset:hover { background: var(--panel); color: var(--ink); } }
.live-body { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(22, 22, 58, .2) transparent; padding-bottom: 10px; }
.live-body:focus-visible { outline-offset: -3px; border-radius: 0; }
.live-body .msg { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-yo { align-self: flex-end; background: var(--bubble-out); border-bottom-right-radius: 6px; }
.msg-bot { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 6px; }
.chat-state.is-offline .dot-ai { background: var(--warn); box-shadow: 0 0 0 3px rgba(180, 87, 10, .18); }
.live-body .msg-pay { white-space: normal; }
.live-body .msg-pay-btn { width: 100%; border: 0; cursor: pointer; font-family: var(--sans); transition: background-color .15s ease, transform .12s ease; }
.live-body .msg-pay-btn:active { transform: scale(.97); }
.live-body .msg-pay-btn:disabled { cursor: default; background: #E3F5EA; color: #0F5A31; transform: none; }
@media (hover: hover) { .live-body .msg-pay-btn:not(:disabled):hover { background: #FFDB66; } }
.live-note {
  align-self: center; max-width: 94%; padding: 6px 11px; border-radius: 10px;
  font-size: 12px; line-height: 1.4; text-align: center; font-weight: 500;
  background: rgba(22, 22, 58, .07); color: var(--ink-2);
}
.live-note.is-offline { background: #FCEBD7; color: #7A3B06; }
.live-note.is-human { background: var(--cobalt-soft); color: #2533B8; }
.live-end { align-self: stretch; margin-top: 4px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 1px 1px rgba(22, 22, 58, .08); display: grid; gap: 8px; font-size: 13.5px; line-height: 1.4; }
.live-end p { font-weight: 600; }
.live-end a { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; }
.live-end a:first-of-type { background: var(--cobalt); color: #fff; }
.live-end a + a { box-shadow: inset 0 0 0 1.5px rgba(22, 22, 58, .2); color: var(--ink); }
.phone-live .phone-screen { color: var(--ink); }
.live-suggest { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding: 2px 12px 8px; }
.live-suggest[hidden] { display: none; }
.live-suggest button {
  max-width: 92%; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 18px; cursor: pointer;
  background: #fff; color: #2533B8; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: left;
  box-shadow: inset 0 0 0 1px rgba(51, 70, 240, .28), 0 1px 1px rgba(22, 22, 58, .06);
  transition: background-color .15s ease, transform .12s ease;
}
.live-suggest button:active { transform: scale(.96); }
@media (hover: hover) { .live-suggest button:hover { background: var(--cobalt-soft); } }
.live-compose { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 4px 12px 16px; }
.live-compose input {
  flex: 1; min-width: 0; height: 42px; padding: 0 16px; border: 0; border-radius: 999px;
  background: #fff; color: var(--ink); font: 400 16px/1.2 var(--sans);
  box-shadow: 0 1px 1px rgba(22, 22, 58, .06);
  transition: box-shadow .15s ease;
}
.live-compose input::placeholder { color: var(--ink-3); }
.live-compose input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--cobalt), 0 1px 1px rgba(22, 22, 58, .06); }
.live-compose input:disabled { background: #F6F7FA; }
.live-send { width: 42px; height: 42px; border: 0; cursor: pointer; background: var(--cobalt); transition: background-color .15s ease, opacity .15s ease, transform .12s ease; }
.live-send:active { transform: scale(.94); }
.live-send:disabled { opacity: .45; cursor: default; transform: none; }
@media (hover: hover) { .live-send:not(:disabled):hover { background: var(--cobalt-press); } }
.live-turnos { margin-top: 18px; font-size: 14.5px; color: rgba(255, 255, 255, .72); text-align: center; min-height: 1.5em; }
.live-turnos.is-low { color: #fff; font-weight: 600; }

/* ---------- Quién está detrás ---------- */
.quien-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.quien-card {
  margin: 0; width: 300px; padding: 40px 28px 30px; border-radius: var(--r-panel); background: var(--panel);
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.quien-avatar, .quien-foto { width: 168px; height: 168px; border-radius: 50%; flex-shrink: 0; }
.quien-avatar {
  display: grid; place-items: center; background: var(--ink); color: #fff;
  font-family: var(--serif); font-size: 62px; line-height: 1; letter-spacing: .01em; padding-top: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 6px #fff, 0 20px 40px -18px rgba(22, 22, 58, .55);
}
.quien-foto { object-fit: cover; outline: 1px solid rgba(0, 0, 0, .08); outline-offset: -1px; box-shadow: 0 0 0 6px #fff, 0 20px 40px -18px rgba(22, 22, 58, .55); }
.quien-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.quien-nombre { font-family: var(--serif); font-size: 23px; line-height: 1.2; }
.quien-rol { font-size: 15px; color: var(--ink-2); }
.quien-lead { margin-top: 18px; font-size: 18.5px; color: var(--ink-2); max-width: 54ch; }
.quien-points { margin: 26px 0 32px; }
.quien-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Ejemplos por rubro ---------- */
.ejemplos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ejemplo-link {
  height: 100%; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: #fff; border-radius: var(--r-panel); padding: 10px; box-shadow: var(--sh-1);
  transition: box-shadow .22s ease, transform .22s var(--ease-out);
}
.ejemplo-link:focus-visible { outline-offset: 4px; border-radius: var(--r-panel); }
.ejemplo-shot { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--panel); }
.ejemplo-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; outline: 1px solid rgba(0, 0, 0, .06); outline-offset: -1px; border-radius: 14px; transition: transform .45s var(--ease-out); }
.ejemplo-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px 12px; }
.ejemplo-rubro { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ejemplo-nombre { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.ejemplo-desc { margin-top: 4px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.ejemplo-cta { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: 15.5px; color: var(--cobalt); text-decoration: underline; text-decoration-color: rgba(51, 70, 240, .35); text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (hover: hover) {
  .ejemplo-link:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
  .ejemplo-link:hover .ejemplo-shot img { transform: scale(1.025); }
  .ejemplo-link:hover .ejemplo-cta { text-decoration-color: currentColor; }
}
.ejemplo-link:active { transform: scale(.99); }
.rubros-nav { margin-top: clamp(40px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.rubros-nav h3 { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.rubros-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
.rubros-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px;
  background: #fff; color: var(--ink); font-weight: 500; font-size: 15.5px; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(22, 22, 58, .1);
  transition: box-shadow .15s ease, color .15s ease;
}
@media (hover: hover) { .rubros-nav a:hover { color: var(--cobalt-press); box-shadow: inset 0 0 0 1.5px var(--cobalt); } }

/* ---------- Videollamada y extras del formulario ---------- */
.call-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; color: var(--ink-2); }
.call-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--cobalt);
  text-decoration: underline; text-decoration-color: rgba(51, 70, 240, .35); text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.call-link svg { flex-shrink: 0; }
@media (hover: hover) { .call-link:hover { text-decoration-color: currentColor; } }
.diag-call { margin-top: 34px; padding-top: 26px; box-shadow: 0 -1px 0 rgba(255, 255, 255, .14); }
.diag-call p { margin: 0 0 12px; color: rgba(255, 255, 255, .78); font-size: 16px; }
.diag-call .btn { white-space: normal; text-align: left; line-height: 1.25; padding-block: 10px; }
.diag-call .btn svg { flex-shrink: 0; }
.form-foot a { color: var(--cobalt); font-weight: 600; text-underline-offset: 3px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.diag-form { position: relative; }
.form-ok strong { font-weight: 700; }
.form-ok:focus { outline: none; }

/* ---------- Botón flotante ---------- */
.fab {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: var(--z-fab);
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--cobalt); color: #fff;
  box-shadow: 0 1px 2px rgba(22, 22, 58, .3), 0 10px 24px -8px rgba(51, 70, 240, .7);
  transition: transform .2s var(--ease-out), opacity .2s ease, background-color .15s ease;
}
.fab:active { transform: scale(.94); }
.fab.is-hidden { opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; }
@media (hover: hover) { .fab:hover { background: var(--cobalt-press); } }

/* ---------- Responsive ---------- */
/* Escritorio con poca altura (1440×900, 1280×800): el pie de la demo cabe en pantalla */
@media (min-width: 961px) and (max-height: 920px) {
  .phone { --ph: 600px; }
  .hero { padding-top: calc(var(--header-h) + 20px); }
}
@media (min-width: 961px) and (max-height: 820px) {
  .phone { --ph: 590px; }
  .hero { padding-top: calc(var(--header-h) + 12px); }
  .demo-foot { margin-top: 14px; }
}
@media (max-width: 1080px) {
  /* En una columna se mantiene el orden Presencia, Ventas, Ventas + IA: "Todo lo de Presencia" se lee después de Presencia */
  .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .caso-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .diag-grid { grid-template-columns: 1fr; }
  .flow-panel { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-copy { display: contents; }
  /* el CTA principal queda arriba; los chips quedan pegados al teléfono que controlan */
  .hero h1 { order: 1; }
  .hero-sub { order: 2; }
  .hero-ctas { order: 3; margin-top: 24px; }
  /* precio desde, sin permanencia y cupos: en el primer pantallazo, bajo los botones */
  .hero-proof { order: 4; margin-top: 18px; }
  .chips-label { order: 5; }
  .chips { order: 6; max-width: none; }
  .hero-demo { order: 7; margin-top: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .chips {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter);
    scroll-snap-type: x proximity;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; scroll-snap-align: start; }
  .hero-sub { margin-top: 18px; }
  .brand-word { font-size: 19.5px; }
  .brand { gap: 8px; }
  .chips-label { margin-top: 24px; }
  .compare tbody th { width: 140px; min-width: 140px; font-size: 14.5px; }
  .compare th, .compare td { padding: 14px 14px; }
  .compare { min-width: 760px; }
  .section-head p { font-size: 17px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .phone { --pw: min(328px, calc(100vw - 2 * var(--gutter))); --ph: 600px; }
  .chat-body { padding: 8px 11px 6px; gap: 5px; }
  .demo-foot { width: min(328px, 100%); }
  .demo-tag { font-size: 18.5px; }

  /* flujo vertical */
  .flow-steps { grid-template-columns: 1fr; gap: 6px; }
  .flow-step { flex-direction: row; text-align: left; gap: 16px; padding: 0; }
  .flow-t { max-width: none; font-size: 16.5px; }
  .flow-stage { margin-top: 20px; }
  .flow-panel { min-height: 0; }
  .mini-pay { grid-template-columns: 1fr; }
  .cal-slots { grid-template-columns: repeat(4, 1fr); }

  .caso-visual { padding-right: 36px; padding-bottom: 36px; }
  .mini-phone { width: 34%; padding: 5px; border-radius: 22px; }
  .mini-phone img { border-radius: 17px; }

  .table-hint { display: block; }
  .compare th:first-child { box-shadow: 1px 0 0 var(--line); }
  .compare { font-size: 15px; }

  .ruler { gap: 3px; }
  .day { height: 46px; padding: 5px; font-size: 11.5px; border-radius: 7px; place-items: end center; }
  .phases { grid-template-columns: 1fr 1fr; gap: 24px 18px; }

  .calc-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .goal-opts { grid-template-columns: 1fr; }
  .founders { flex-direction: column; align-items: stretch; }
  .faq details p { padding-right: 0; }
}
@media (max-width: 440px) { .hide-xs { display: none; } }
@media (max-width: 480px) {
  .footer-links { flex-direction: column; gap: 0; margin-left: -10px; }
}
@media (max-width: 420px) {
  .phases { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}
/* Header en celulares chicos: va después del bloque de 760px para que no lo pise */
@media (max-width: 380px) {
  .header-inner { gap: 6px; }
  .site-header .brand { gap: 7px; }
  .site-header .brand-word { font-size: 17px; }
  .header-cta { padding: 0 12px; font-size: 14.5px; }
  .nav-toggle { width: 44px; margin-right: -4px; }
  .ruler { gap: 2px; }
  .day { padding: 4px 0; font-size: 10.5px; border-radius: 6px; }
}
@media (max-width: 339px) {
  .msg { font-size: 13px; }
  .chat-body { gap: 5px; }
  /* en pantallas muy angostas queda el isotipo; el nombre sigue en el aria-label del enlace */
  .site-header .brand-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Secciones nuevas: responsive ---------- */
.nav-list a:not(.btn) { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1100px) {
  .nav-list a:not(.btn) { padding: 0 10px; font-size: 15px; }
  .nav-cta-item { margin-left: 4px; }
}
/* Entre 861 y 1040 px no caben los cinco enlaces: "Preguntas" queda en el pie y en el menú móvil */
@media (min-width: 861px) and (max-width: 1040px) { .nav-opt { display: none; } }
@media (min-width: 961px) and (max-height: 820px) { .phone-live { --ph: 600px; } }
@media (max-width: 960px) {
  .prueba-grid { grid-template-columns: minmax(0, 1fr); }
  .prueba-demo { margin-top: 8px; }
  .quien-grid { grid-template-columns: 1fr; }
  .quien-card { width: auto; flex-direction: row; justify-content: flex-start; text-align: left; padding: 22px 24px; }
  .quien-avatar, .quien-foto { width: 104px; height: 104px; }
  .quien-avatar { font-size: 40px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 4px #fff, 0 14px 28px -14px rgba(22, 22, 58, .55); }
  .quien-card { order: 2; }
  .quien-copy { order: 1; }
  .ejemplos { grid-template-columns: 1fr; max-width: 720px; }
  .ejemplo-link { flex-direction: row; align-items: stretch; gap: 6px; }
  .ejemplo-shot { flex: 0 0 48%; aspect-ratio: auto; min-height: 200px; }
  .ejemplo-body { padding: 12px 12px 12px 14px; }
}
@media (max-width: 760px) {
  .phone-live { --pw: min(340px, calc(100vw - 2 * var(--gutter))); --ph: clamp(500px, calc(100svh - 110px), 600px); }
  .prueba-lead, .quien-lead { font-size: 17px; }
  .prueba-name { max-width: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols .footer-col:first-child { grid-row: span 2; }
}
@media (max-width: 600px) {
  .ejemplo-link { flex-direction: column; gap: 0; }
  .ejemplo-shot { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .ejemplo-body { padding: 16px 10px 10px; }
  .quien-card { padding: 18px; gap: 16px; }
  .quien-avatar, .quien-foto { width: 84px; height: 84px; }
  .quien-avatar { font-size: 32px; }
  .quien-ctas .btn { flex: 1 1 auto; }
  .rubros-nav { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-cols .footer-col:first-child { grid-row: auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .btn:active, .chip:active, .btn-replay:active, .fab:active, .live-send:active, .live-reset:active, .live-suggest button:active { transform: none; }
  .ejemplo-link:hover, .ejemplo-link:active, .ejemplo-link:hover .ejemplo-shot img { transform: none; }
}

/* ---------- Mejoras de conversión (v2) ---------- */
/* Cierre de sección: un solo paso siguiente hacia el diagnóstico */
.section-cta { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-weight: 600; font-size: 17px; }
.section-cta-stack { margin-top: 24px; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 16.5px; }
.section-cta .btn { white-space: normal; text-align: center; }
.caso-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: rgba(51, 70, 240, .45); text-underline-offset: 4px; text-decoration-thickness: 2px;
}
@media (hover: hover) { .text-link:hover { text-decoration-color: currentColor; } }

/* Planes: retorno con el ticket de la calculadora, total del primer año y lo que se suma aparte */
.plan-roi { margin-top: 10px; font-size: 14.5px; line-height: 1.4; color: var(--ok-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-roi[hidden] { display: none; }
.plan-featured .plan-roi { color: #9FE3BC; }
.plan-year { margin: -8px 0 18px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.plan-featured .plan-year { color: rgba(255, 255, 255, .72); }
.plan li.is-extra { color: var(--ink-2); }
.plan li.is-extra::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%2355557A' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.plan-featured li.is-extra { color: rgba(255, 255, 255, .72); }
.plan-featured li.is-extra::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%23AEB7FF' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.plan .btn { white-space: normal; text-align: center; }
.not-included { padding: 20px 24px; border-radius: var(--r-panel); box-shadow: inset 0 0 0 1.5px var(--line); }
.not-included h3 { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.not-included ul { margin-top: 10px; display: grid; gap: 8px; }
.not-included li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.not-included li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: #B9BDD0; }
.not-included b { color: var(--ink); font-weight: 600; }
.founders { scroll-margin-top: calc(var(--header-h) + 16px); }
.founders p { max-width: 70ch; }
.founders .btn[hidden] { display: none; }

/* Comparación: selector "Comparar con" en celular */
.vs { margin-bottom: 16px; }
.vs[hidden] { display: none; }
.vs-label { font-size: 15px; font-weight: 600; }
.vs-opts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.vs .chip { background: #fff; box-shadow: inset 0 0 0 1px rgba(22, 22, 58, .1); }
.vs .chip[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(22, 22, 58, .3); }
.compare.is-vs { min-width: 0; table-layout: fixed; }
.compare.is-vs :is(th, td):nth-child(n+3) { display: none; }
.compare.is-vs[data-vs="3"] :is(th, td):nth-child(3),
.compare.is-vs[data-vs="4"] :is(th, td):nth-child(4),
.compare.is-vs[data-vs="5"] :is(th, td):nth-child(5),
.compare.is-vs[data-vs="6"] :is(th, td):nth-child(6) { display: table-cell; }
.compare.is-vs tbody th { width: 34%; min-width: 0; }
.compare.is-vs th:first-child { position: static; box-shadow: none; }
.compare.is-vs th, .compare.is-vs td { padding: 13px 10px; font-size: 14.5px; overflow-wrap: break-word; }
.compare.is-vs .v { gap: 6px; }
.compare.is-vs .v::before { width: 18px; height: 18px; background-size: 12px; }
.table-hint[hidden] { display: none; }
.compare.is-vs thead th:not(.is-us) { color: var(--ink); }

/* Regla de días hábiles */
.ruler-cap { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }

/* Formulario: opcionales plegados y resultado de la calculadora */
.more { border-radius: var(--r-field); box-shadow: inset 0 0 0 1.5px #D3D6E3; }
.more summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 0 14px; font-weight: 600; font-size: 16px; border-radius: var(--r-field);
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%2316163A' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .22s var(--ease-out);
}
.more[open] summary::after { transform: rotate(45deg); }
.more-body { display: grid; gap: 16px; padding: 4px 14px 16px; }
.more[open] .more-body { animation: panelIn .22s var(--ease-out); }
.calc-attach { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; border-radius: var(--r-field); background: #FFF6D6; font-size: 14.5px; line-height: 1.4; }
.calc-attach[hidden] { display: none; }
.calc-attach-k { font-weight: 600; }
.calc-attach-x { flex-shrink: 0; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(22, 22, 58, .14); transition: background-color .15s ease, transform .12s ease; }
.calc-attach-x:active { transform: scale(.97); }
@media (hover: hover) { .calc-attach-x:hover { background: var(--panel); } }
.form-ok.is-warn { background: #FCEBD7; color: #7A3B06; }
.form-ok.is-warn::before { background: var(--warn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v6M12 16.5h.01' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.diag-form .hint { margin-top: -2px; }

@media (max-width: 760px) {
  .section-cta { flex-direction: column; align-items: stretch; }
  .section-cta .btn { width: 100%; }
  .caso-ctas .btn { flex: 1 1 100%; }
  .not-included { padding: 18px; }
  .calc-attach { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .calc-attach-x:active { transform: none; }
}
.diag-form .btn-block { white-space: normal; text-align: center; }

/* Objetivo del diagnóstico como chips: ocupa la mitad de alto en celular */
.goal-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.goal span { min-height: 44px; padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 15px; }
.hero-founders a { border-radius: 14px; padding-block: 8px; line-height: 1.35; }
