/* Frama · Landing «Sistemas de venta para e-commerce» (v2 · identidad «FRAMA en movimiento»)
   Misma familia que la home (css/site.css): marfil y tinta alternados, títulos en Comfortaa con punto coral,
   textos en Poppins, kicker con «/ » coral, enlaces con subrayado coral, botones en cápsula tinta.
   Sin cajitas decorativas: líneas finas, listas editoriales y tipografía grande. Móvil primero.
   Fuentes desde Google Fonts (<link> en el HTML; la CSP de sistemas/.htaccess las permite). */

:root {
  --purpura: #7A32FF;
  --lila: #C68CFF;
  --coral: #FF6B57;
  --lima: #D6FF45;
  --amarillo: #FFC400;
  --marfil: #F7F3EA;
  --marfil-2: #EFE9DC;
  --ink: #17001B;
  --body: #3B2F3E;
  --muted: #8A7F8C;
  --line: rgba(23, 0, 27, .12);
  --line-strong: rgba(23, 0, 27, .22);
  --line-dark: rgba(247, 243, 234, .14);
  --on-dark: #F7F3EA;
  --on-dark-muted: rgba(247, 243, 234, .62);
  --error: #B3321F;
  --font-display: "Comfortaa", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --gutter: clamp(20px, 3.4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--marfil);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img, svg, video, iframe { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--marfil);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Piezas de la identidad ---------- */
/* El punto coral de .FRAMA al final de los títulos */
.dot { display: inline-block; width: .17em; height: .17em; margin-left: .06em; border-radius: 50%; background: var(--coral); vertical-align: baseline; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 104px);
  line-height: .98;
  letter-spacing: -.045em;
  color: var(--ink);
  text-wrap: balance;
}
.display-md { font-size: clamp(40px, 6.4vw, 96px); }
.second { display: block; color: var(--muted); }
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.8vw, 70px);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 18ch;
}
.lead {
  margin-top: 22px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 33em;
}
.body-lg { margin-top: 20px; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.55; max-width: 30em; color: var(--body); }

/* Kicker: mayúsculas pequeñas con «/ » coral */
.eyebrow {
  display: block;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: "/ "; color: var(--coral); }

/* ---------- Botones: cápsula tinta, hover púrpura ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 30px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 250ms var(--ease), color 250ms var(--ease), border-color 250ms var(--ease), transform 250ms var(--ease);
}
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-light, .btn-azul { background: var(--ink); color: var(--marfil); border-color: var(--ink); }
.btn-light:hover, .btn-azul:hover { background: var(--purpura); border-color: var(--purpura); transform: translateY(-2px); }
.btn-line { color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--marfil); transform: translateY(-2px); }
.btn-ghost { color: var(--muted); padding-left: 10px; padding-right: 10px; }
.btn-ghost:hover { color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Enlaces con subrayado coral (como .ulink de la home) */
.ulink, .link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(var(--coral), var(--coral)) left bottom / 100% 2px no-repeat;
}
.link::after { content: "→"; display: inline-block; transition: transform 400ms var(--ease-io); }
.ulink:hover, .link:hover { animation: subrayar 700ms var(--ease-io); }
.link:hover::after { transform: translateX(5px); }
@keyframes subrayar {
  0% { background-size: 100% 2px; background-position: right bottom; }
  45% { background-size: 0% 2px; background-position: right bottom; }
  46% { background-size: 0% 2px; background-position: left bottom; }
  100% { background-size: 100% 2px; background-position: left bottom; }
}

:focus-visible { outline: 2px solid var(--purpura); outline-offset: 4px; border-radius: 2px; }

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
  padding: 0 var(--gutter);
  background: rgba(247, 243, 234, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: block; line-height: 0; }
.logo img { height: 20px; width: auto; }
.top-cta { font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 44px 0 72px;
  background: var(--marfil);
}
.hero-grid { position: relative; display: grid; gap: 32px; }
.hero .lead { margin-top: 0; }
.hero .display { max-width: 11ch; }
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: 32px;
}
.hero .actions .btn { width: 100%; }
/* Datos: una línea editorial separada por barras, sin píldoras */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts li:not(:last-child)::after { content: "/"; margin: 0 12px; color: var(--coral); }

.trail { position: absolute; pointer-events: none; z-index: 1; }
.trail svg { width: 100%; height: 100%; overflow: visible; }

/* Video VSL */
.vsl-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink);
}
.vsl-video { width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.vsl-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 18px;
  border: 0;
  background: transparent;
  color: var(--on-dark);
  text-align: left;
  cursor: pointer;
}
.vsl-cover[disabled] { cursor: default; }
.vsl-play {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--coral);
  transition: transform 300ms var(--ease);
}
.vsl-play::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 14px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--ink);
}
.vsl-cover:not([disabled]):hover .vsl-play { transform: scale(1.08) rotate(-8deg); }
.vsl[data-estado="pendiente"] .vsl-play { opacity: .55; }
.vsl-meta { display: grid; gap: 2px; }
.vsl-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.25; letter-spacing: -.02em; }
.vsl-sub { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); }
.vsl-notice {
  position: absolute;
  top: 16px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.vsl-notice .dot { width: 7px; height: 7px; margin: 0; background: var(--lima); }
.vsl[data-estado="listo"] .vsl-notice { display: none; }
.vsl[data-estado="reproduciendo"] .vsl-cover,
.vsl[data-estado="reproduciendo"] .vsl-notice { display: none; }

/* ---------- Secciones: marfil y tinta alternados ---------- */
.section { position: relative; padding: clamp(88px, 11vw, 160px) 0; }
.section-nieve { background: var(--marfil); color: var(--body); }
.section-gris { background: var(--marfil-2); color: var(--body); }
.section-azul, .section-profundo { background: var(--ink); color: var(--on-dark-muted); }
.section-azul .h2, .section-profundo .h2 { color: var(--on-dark); }
.section-azul .second, .section-profundo .second { color: rgba(247, 243, 234, .42); }
.section-azul .eyebrow, .section-profundo .eyebrow { color: var(--on-dark-muted); }
.section-azul .body-lg, .section-profundo .body-lg { color: var(--on-dark); }

/* Dolores: lista editorial numerada con líneas finas */
.pains { display: grid; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-strong); counter-reset: dolor; }
.pain {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 6px 14px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: dolor;
}
.pain::before {
  content: counter(dolor, decimal-leading-zero);
  grid-row: span 2;
  padding-top: .35em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--coral);
}
.pain h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.pain p { color: var(--body); max-width: 26em; }
.punch {
  margin-top: clamp(64px, 8vw, 110px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 68px);
  line-height: 1.08;
  letter-spacing: -.045em;
  max-width: 17ch;
  color: var(--muted);
  text-wrap: balance;
}
/* Resaltado tipo marcador lima */
.punch strong {
  font-weight: 700;
  color: var(--ink);
  padding: 0 .12em;
  background: linear-gradient(transparent 14%, var(--lima) 14%, var(--lima) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.punch-sub { margin-top: 22px; font-size: clamp(15px, 1.3vw, 18px); color: var(--ink); max-width: 32em; }

/* Cómo funciona (tinta) */
.steps { position: relative; display: grid; gap: 40px; margin-top: clamp(48px, 6vw, 80px); padding-left: 36px; }
.step-line {
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line-dark);
}
.step-line-fill {
  position: absolute;
  inset: 0;
  background: var(--coral);
  transform-origin: 50% 0;
}
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px var(--ink);
}
.step-n { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--coral); }
.step h3 { margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 42px); line-height: 1.02; letter-spacing: -.04em; color: var(--on-dark); }
.step p { margin-top: 10px; color: var(--on-dark-muted); max-width: 26em; }
.after {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.3;
  letter-spacing: -.025em;
  color: var(--on-dark);
  max-width: 34em;
}

/* Dos caminos: dos columnas separadas por una línea */
.paths { display: grid; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-strong); }
.path {
  display: flex;
  flex-direction: column;
  padding: 36px 0 44px;
}
.path-b { border-top: 1px solid var(--line-strong); }
.path-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coral);
}
.path-title { margin-top: 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.02; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
.path-lead { margin-top: 14px; color: var(--ink); max-width: 28em; font-size: clamp(15px, 1.2vw, 17px); }
.path .checks { margin-top: 28px; flex: 1; }
.path-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.path-actions .btn { flex: 1 1 200px; }

/* Listas con línea fina entre ítems */
.checks, .crosses { display: grid; border-top: 1px solid var(--line); }
.checks li, .crosses li { position: relative; padding: 13px 0 13px 32px; border-bottom: 1px solid var(--line); line-height: 1.45; color: var(--ink); }
.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 6px;
  height: 11px;
  border: solid var(--coral);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.crosses li { color: var(--body); }
.crosses li::before, .crosses li::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 23px;
  width: 13px;
  height: 2px;
  background: var(--muted);
  transform: rotate(45deg);
}
.crosses li::after { transform: rotate(-45deg); }

/* Complementos: índice editorial a dos columnas */
.split { display: grid; gap: 48px; }
.addons { display: grid; border-top: 1px solid var(--line-strong); }
.addon { padding: 24px 0; border-bottom: 1px solid var(--line); }
.addon h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(21px, 2vw, 26px); letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.addon p { margin-top: 6px; color: var(--body); font-size: 15px; max-width: 26em; }

/* Casos (tinta) */
.cases { display: grid; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-dark); }
.case { padding: 36px 0 44px; border-bottom: 1px solid var(--line-dark); }
.case-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5.6vw, 84px); line-height: 1; letter-spacing: -.045em; color: var(--on-dark); }
.case-kind { margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
.case > p:not(.case-kind) { margin-top: 18px; color: var(--on-dark); max-width: 34em; font-size: clamp(15px, 1.2vw, 17px); }
/* Piezas del sistema: texto en línea separado por barras, sin píldoras */
.tags { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 24px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.tags li:not(:last-child)::after { content: "/"; margin: 0 10px; color: var(--lima); }

/* Para quién */
.fit { display: grid; gap: 48px; margin-top: clamp(48px, 6vw, 80px); }
.fit-col h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.035em; color: var(--ink); margin-bottom: 20px; }
.fit-no h3 { color: var(--muted); }

/* Preguntas frecuentes: filas con línea fina */
.faq { display: grid; border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { font-size: inherit; }
.faq-q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.25;
  letter-spacing: -.025em;
  text-align: left;
  cursor: pointer;
  transition: color 250ms var(--ease);
}
.faq-q button:hover { color: var(--purpura); }
.faq-icon { position: relative; flex: none; width: 20px; height: 20px; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 16px;
  height: 2px;
  background: var(--coral);
  transition: transform 300ms var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-q button[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-a { overflow: hidden; }
.faq-a p { padding-right: 40px; color: var(--body); max-width: 40em; }
.faq-a p + p { margin-top: 10px; }
.faq-a p:last-child { padding-bottom: 26px; }

/* ---------- Registro (tinta, con el formulario en una hoja marfil) ---------- */
.reg { display: grid; gap: 48px; }
.reg-steps { display: grid; margin-top: 36px; border-top: 1px solid var(--line-dark); counter-reset: paso; }
.reg-steps li {
  position: relative;
  padding: 16px 0 16px 40px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
  counter-increment: paso;
}
.reg-steps li::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
}
body[data-voz="off"] .solo-voz { display: none; }
body[data-voz="on"] .sin-voz { display: none; }

.reg-box {
  padding: 28px 20px;
  border-radius: 22px;
  background: var(--marfil);
  color: var(--body);
}
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-row { display: grid; gap: 18px; }
fieldset.field { margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 7px; }
.opt-tag { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317001B' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field select option { color: var(--ink); background: #fff; }
.field input::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field.invalid input, .field.invalid select { border-color: var(--coral); }
.field-error { font-size: 13px; color: var(--error); }
.phone { display: grid; grid-template-columns: 124px 1fr; gap: 8px; }
.phone select { padding-left: 14px; padding-right: 34px; background-position: right 14px center; }

/* Formulario por pasos */
.wiz { gap: 24px; }
.wiz-head { display: flex; align-items: center; gap: 16px; }
.wiz-count { white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wiz-bar { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--marfil-2); overflow: hidden; }
.wiz-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--coral);
  transform: scaleX(.142857);
  transform-origin: 0 50%;
  transition: transform 400ms var(--ease);
}
.wiz-step { display: grid; gap: 16px; min-width: 0; }
.wiz-step.is-entering { opacity: 0; transform: translateX(var(--wiz-dx, 14px)); }
.wiz-step.is-moving { transition: opacity 240ms var(--ease), transform 240ms var(--ease); }
.wiz-q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--ink);
  text-wrap: balance;
}
.wiz-q:focus { outline: none; }
.wiz-q label { cursor: text; }
.wiz-hint { margin-top: -8px; font-size: 14px; color: var(--muted); }
.wiz-note { font-size: 13px; line-height: 1.45; color: var(--muted); }
.wiz-sub { margin-top: 4px; }
.wiz-fields { display: grid; gap: 18px; }

/* Opciones: tarjetas seleccionables (como .opt de la home) */
.opts { display: grid; gap: 10px; }
.opt {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease), transform 200ms var(--ease);
}
.opt:hover { border-color: rgba(23, 0, 27, .35); }
.opt:active { transform: scale(.99); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt span { display: flex; align-items: center; gap: 12px; width: 100%; }
.opt span::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(23, 0, 27, .3);
  background: #fff;
  box-sizing: border-box;
  transition: background-color 200ms, border-color 200ms, box-shadow 200ms;
}
.opts-multi .opt span::before { border-radius: 5px; }
.opt:has(input:checked) { border-color: var(--ink); }
.opt input:checked + span::before { background: var(--coral); border-color: var(--coral); box-shadow: inset 0 0 0 3px #fff; }
.opt:has(input:focus-visible) { outline: 2px solid var(--purpura); outline-offset: 2px; }
.opts.invalid .opt { border-color: var(--coral); }

.wiz-nav { display: flex; gap: 12px; align-items: center; }
.wiz-nav .btn { min-height: 54px; }
.wiz-back { flex: none; }
.wiz-next { flex: 1; }
@media (max-width: 479px) {
  .wiz.is-last .wiz-nav { flex-direction: column-reverse; }
  .wiz.is-last .wiz-back { width: 100%; }
}

.success-second { display: block; color: var(--muted); }
.result-actions { margin-top: 26px; }

.consents { display: grid; gap: 14px; margin-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--body); cursor: pointer; }
.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--coral);
}
.check a { color: var(--ink); text-decoration-color: var(--coral); text-underline-offset: 2px; }
.check.invalid input { outline: 2px solid var(--coral); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 107, 87, .12);
  font-size: 14px;
  color: var(--error);
}
.form-error strong { color: var(--error); }
.form-error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 12px; }
.form-error .link { margin-top: 0; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }

.btn-label { display: inline-flex; align-items: center; gap: 10px; }
.is-sending .btn-label::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(247, 243, 234, .3);
  border-top-color: var(--marfil);
  animation: girar .8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* Éxito */
.success:focus { outline: none; }
.success-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.04em; color: var(--ink); }
.success-text { margin-top: 12px; color: var(--body); max-width: 30em; }
.calling-pulse { margin-bottom: 18px; }
.calling-pulse span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255, 107, 87, .6);
  animation: latido 1.6s ease-out infinite;
}
@keyframes latido { to { box-shadow: 0 0 0 22px rgba(255, 107, 87, 0); } }
.booking { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.booking-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; color: var(--ink); margin-bottom: 16px; }
.booking-frame {
  width: 100%;
  height: 900px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

/* ---------- Cierre: banda lima ---------- */
.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 14vw, 200px) 0 220px;
  background: var(--lima);
  color: var(--ink);
  isolation: isolate;
}
.closing-inner { position: relative; z-index: 2; }
.closing .display { max-width: 13ch; color: var(--ink); }
.closing .lead { color: var(--ink); }
.closing .actions .btn { width: 100%; }
.trail-close { right: 0; bottom: 0; width: 100%; height: 200px; }
.trail-close circle:first-of-type { display: none; } /* sin halo: sobre lima se ve sucio */

/* ---------- Pie ---------- */
.foot { background: var(--ink); color: var(--on-dark-muted); padding: clamp(56px, 7vw, 88px) 0 104px; font-size: 13px; }
.foot-grid { display: grid; gap: 28px; }
.foot .logo img { height: 22px; }
.foot-desc { margin-top: 16px; max-width: 26em; font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.25; letter-spacing: -.025em; color: var(--on-dark); }
.foot-info { display: grid; gap: 6px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.foot a { color: var(--on-dark); text-decoration: none; background: linear-gradient(var(--coral), var(--coral)) left bottom / 0% 1.5px no-repeat; transition: background-size 500ms var(--ease-io); }
.foot a:hover, .foot a:focus-visible { background-size: 100% 1.5px; }
.foot .logo, .foot .logo:hover { background: none; }

/* CTA fijo en móvil */
.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 40;
  transform: translateY(160%);
  transition: transform 300ms var(--ease), background-color 250ms var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta:hover { transform: translateY(0); }

/* ---------- Tableta ---------- */
@media (min-width: 640px) {
  .addons { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .hero .actions .btn, .closing .actions .btn { width: auto; }
  .reg-box { padding: 36px 32px; }
  .opts-2 { grid-template-columns: 1fr 1fr; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 960px) {
  body { font-size: 16px; }
  .top { height: 76px; }
  .logo img { height: 22px; }
  .hero { padding: 72px 0 120px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-areas: "top vsl" "bottom vsl";
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    row-gap: 28px;
    align-items: start;
  }
  .hero-top { grid-area: top; align-self: end; }
  .hero-bottom { grid-area: bottom; }
  .vsl { grid-area: vsl; align-self: center; }
  .vsl-cover { padding: 26px; }
  .vsl-play { width: 64px; height: 64px; }
  .vsl-play::after { left: 26px; top: 22px; }
  .vsl-title { font-size: 20px; }
  .vsl-notice { top: 22px; left: 26px; }

  .pains { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .pain { grid-template-columns: 1fr; align-content: start; gap: 14px; padding: 30px 28px 36px; border-bottom: 0; border-left: 1px solid var(--line); }
  .pain:first-child { border-left: 0; padding-left: 0; }
  .pain::before { grid-row: auto; padding-top: 0; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 36px; padding-left: 0; padding-top: 48px; }
  .step-line { left: 7px; right: 7px; top: 6px; bottom: auto; width: auto; height: 2px; }
  .step-line-fill { transform-origin: 0 50%; }
  .step::before { left: 0; top: -48px; }

  .paths { grid-template-columns: 1fr 1fr; }
  .path { padding: 44px 48px 52px 0; }
  .path-b { border-top: 0; border-left: 1px solid var(--line-strong); padding: 44px 0 52px 48px; }

  .split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
  .split-head { position: sticky; top: 120px; }

  .cases { grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line-dark); }
  .case { padding: 44px 48px 52px 0; border-bottom: 0; }
  .case + .case { border-left: 1px solid var(--line-dark); padding: 44px 0 52px 48px; }

  .fit { grid-template-columns: 1.15fr 1fr; gap: 0; }
  .fit-col { padding-right: 48px; }
  .fit-no { padding: 0 0 0 48px; border-left: 1px solid var(--line-strong); }

  .reg { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
  .reg-copy { position: sticky; top: 120px; }
  .reg-box { padding: 44px; }
  .booking-frame { height: 760px; }

  .closing { padding: 180px 0 200px; }
  .trail-close { width: 56%; height: 320px; }

  .foot { padding-bottom: 48px; }
  .foot-grid { grid-template-columns: 1fr 1fr; align-items: end; }
  .foot-info { text-align: right; padding-top: 0; border-top: 0; }

  .sticky-cta { display: none; }
}

/* ---------- Página legal ---------- */
.legal { max-width: 800px; }
.legal .h2 { max-width: none; font-size: clamp(34px, 4.4vw, 60px); }
.legal-date { margin-top: 14px; color: var(--muted); font-size: 14px; }
.legal h2 { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.03em; color: var(--ink); }
.legal p, .legal ul { margin-top: 12px; color: var(--body); }
.legal ul { display: grid; gap: 6px; padding-left: 20px; list-style: disc; }
.legal ul li::marker { color: var(--coral); }
.legal a { color: var(--ink); text-decoration-color: var(--coral); text-underline-offset: 2px; }
.legal strong { color: var(--ink); }
.legal-page .foot { padding-bottom: 48px; }

/* Quien no califica no ve más llamados a agendar */
body.no-califica .sticky-cta,
body.no-califica .closing .btn,
body.no-califica .closing .lead { display: none !important; }
