:root {
  --bg: #111114;
  --surface: #1A1A1F;
  --surface-2: #232329;
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.16);
  --fg: #F4F4F8;
  --fg-2: #9A9AA8;
  --fg-3: #8A8A99;
  --accent: #6600FF;
  --accent-hover: #8533FF;
  --accent-text: #A67CFF;
  --ok: #00CC66;
  --bad: #EE6B6F;
  --bad-bg: rgba(229,72,77,0.10);
  --ok-bg: rgba(0,204,102,0.08);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: 48px;
  --section-pad: 104px;
  --container: 1200px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #C4A5FF; outline-offset: 3px; border-radius: 3px; }
.skip-link { position: absolute; left: 16px; top: -64px; background: var(--fg); color: #111; padding: 10px 16px; border-radius: 4px; font-family: var(--font-display); font-weight: 600; z-index: 400; }
.skip-link:focus { top: 12px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
p + p { margin-top: 1.1em; }
.prose p { color: #D6D6E0; max-width: 62ch; }
.prose strong { color: var(--fg); font-weight: 600; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .18s, border-color .18s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.4); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Nav */
.nav { border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.nav__logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__wa { width: 46px; padding: 0; }

/* Hero */
.hero { padding: 56px 0 var(--section-pad); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 468px; column-gap: 72px; row-gap: 40px;
  grid-template-areas: "copy form" "ficha form"; align-items: start;
}
.hero__copy { grid-area: copy; }
.hero__title { font-size: clamp(34px, 4.1vw, 54px); line-height: 1.07; letter-spacing: -0.03em; max-width: 17ch; }
.hero__sub { margin-top: 22px; font-size: 19px; color: #D0D0DB; max-width: 54ch; }
.hero__form { grid-area: form; }
.hero__ficha { grid-area: ficha; }

/* Formulario */
.form-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 30px 28px 26px; }
.form-card h2 { font-size: 24px; margin-bottom: 4px; }
.form-card__hint { font-family: var(--font-display); font-size: 13px; color: var(--fg-3); margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; min-width: 0; }
.field label { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--fg); }
.field .req { color: var(--fg-2); }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 10px 12px; background: var(--bg); color: var(--fg);
  border: 1px solid var(--line-strong); border-radius: 6px; font-family: var(--font-display); font-size: 16px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field input::placeholder { color: #7A7A89; }
.field input:focus, .field select:focus { outline: 2px solid #C4A5FF; outline-offset: 1px; border-color: transparent; }
.field__error { display: none; margin-top: 5px; font-family: var(--font-display); font-size: 13px; color: var(--bad); }
.field.has-error .field__error { display: block; }
.field.has-error input { border-color: var(--bad); }
.form-note { margin-top: 12px; font-family: var(--font-display); font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.form-or { margin-top: 14px; }
.form-error { display: none; margin-bottom: 14px; padding: 12px 14px; border: 1px solid rgba(229,72,77,.5); background: var(--bad-bg); border-radius: 6px; font-family: var(--font-display); font-size: 14px; line-height: 1.5; }
.form-error.is-visible { display: block; }
.form-error a { color: #fff; font-weight: 600; }
.form-success { display: none; padding: 8px 0; }
.form-success.is-visible { display: block; }
.form-success h3 { font-size: 22px; margin-bottom: 10px; color: var(--ok); }
.form-success p { color: #D6D6E0; font-size: 17px; }

/* Ficha de versiones: el elemento memorable */
.ficha { border: 1px solid var(--line-strong); border-radius: 4px 14px 4px 14px; background: var(--surface); overflow: hidden; }
.ficha table { width: 100%; border-collapse: collapse; }
.ficha caption { text-align: left; padding: 16px 20px 12px; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.ficha thead th { text-align: left; padding: 8px 20px; font-family: var(--font-display); font-weight: 500; font-size: 13px; color: var(--fg-3); background: var(--surface-2); border-top: 1px solid var(--line); }
.ficha tbody th, .ficha tbody td { padding: 0 20px; height: 38px; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.ficha tbody th { font-family: var(--font-mono); font-size: 14px; font-weight: 500; width: 7.5em; position: relative; }
.ficha tbody td { font-family: var(--font-display); font-size: 14px; }
.ficha tr.is-bad th::before, .ficha tr.is-ok th::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; transform-origin: top; }
.ficha tr.is-bad { background: var(--bad-bg); }
.ficha tr.is-ok { background: var(--ok-bg); }
.ficha tr.is-bad th::before { background: var(--bad); }
.ficha tr.is-ok th::before { background: var(--ok); }
.ficha tr.is-bad td { color: var(--bad); }
.ficha tr.is-ok td { color: var(--ok); }
.ficha td span { display: inline-flex; align-items: center; gap: 9px; }
.ficha td svg { width: 14px; height: 14px; flex: none; }
.ficha__foot { padding: 14px 20px 16px; border-top: 1px solid var(--line-strong); font-family: var(--font-display); font-size: 14px; color: #D0D0DB; line-height: 1.5; }
/* La animacion corre al entrar la ficha en pantalla (en movil queda bajo el formulario) */
.js .ficha:not(.is-run) tbody tr, .js .ficha:not(.is-run) tbody tr th::before { animation-play-state: paused; }
@keyframes ficha-row { from { background-color: transparent; } }
@keyframes ficha-bar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.ficha tbody tr { animation: ficha-row .45s ease-out both; animation-delay: calc(var(--i) * 170ms + 250ms); }
.ficha tbody tr th::before { animation: ficha-bar .45s ease-out both; animation-delay: calc(var(--i) * 170ms + 250ms); }

/* Secciones */
section { padding: var(--section-pad) 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; row-gap: 28px; align-items: start; }
.tech-line { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; color: var(--fg-2); line-height: 1.7; max-width: 62ch; }
.tech-line b { color: var(--fg); font-weight: 500; }

/* Quien esta expuesto */
.exposed h2 { max-width: 20ch; }
.exposed__list { list-style: none; margin-top: 44px; max-width: 820px; }
.exposed__list li { display: grid; grid-template-columns: 14px 1fr; column-gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); color: #D6D6E0; }
.exposed__list li::before { content: ""; width: 7px; height: 7px; background: var(--fg-2); margin-top: .72em; }
.exposed__list li:last-child { border-bottom: 1px solid var(--line); }
.exposed__list strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--fg); letter-spacing: -0.01em; }
.exposed__close { margin-top: 36px; max-width: 62ch; font-size: 20px; color: var(--fg); }

/* Terreno */
.field-notes__lead { font-family: var(--font-body); font-size: 22px; line-height: 1.5; color: var(--fg); max-width: 22ch; }
.field-notes__list { list-style: none; }
.field-notes__list li { padding: 0 0 22px 20px; margin-bottom: 22px; border-left: 2px solid var(--line-strong); color: #D6D6E0; max-width: 60ch; }
.field-notes__list li:last-child { margin-bottom: 0; padding-bottom: 0; }
.field-notes__list li.is-key { border-left-color: var(--accent-hover); }

/* Etapas */
.steps h2 { max-width: 18ch; }
.steps__list { list-style: none; margin-top: 48px; max-width: 880px; }
.step { display: grid; grid-template-columns: 56px 1fr; column-gap: 24px; position: relative; padding-bottom: 36px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 6px; width: 1px; background: var(--line-strong); }
.step:last-child::before { display: none; }
.step__n { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; font-size: 16px; background: var(--bg); position: relative; }
.step:first-child .step__n { border-color: var(--accent-hover); color: #fff; }
.step h3 { font-size: 22px; margin-bottom: 8px; padding-top: 8px; }
.step h3 small { font-family: var(--font-display); font-weight: 500; font-size: 14px; color: var(--accent-text); margin-left: 8px; letter-spacing: 0; }
.step p { color: #D6D6E0; max-width: 60ch; }
.steps__note { margin-top: 44px; padding: 18px 22px; border: 1px solid var(--line-strong); border-radius: 4px 12px 4px 12px; max-width: 880px; font-family: var(--font-display); font-size: 16px; color: var(--fg); }

/* No prometemos */
.promise { text-align: left; }
.promise__text { font-family: var(--font-body); font-size: clamp(24px, 3vw, 34px); line-height: 1.4; max-width: 30em; font-weight: 400; }

/* FAQ */
.faq { max-width: 820px; margin-top: 36px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; background: none; border: 0; color: var(--fg); font-family: var(--font-display); font-weight: 500; font-size: 18px; text-align: left; cursor: pointer; min-height: 56px; }
.faq-item__icon { width: 16px; height: 16px; flex: none; position: relative; }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; background: var(--fg-2); left: 0; right: 0; top: 7px; height: 2px; transition: transform .2s; }
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-item__icon::after { transform: rotate(0deg); }
.faq-item__panel { display: none; padding: 0 40px 22px 0; color: #D6D6E0; max-width: 64ch; }
.faq-item.is-open .faq-item__panel { display: block; }

/* CTA final */
.cta-final h2 { max-width: 20ch; }
.cta-final p { margin-top: 16px; color: #D0D0DB; max-width: 52ch; }
.cta-final__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

footer { padding: 32px 0 40px; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 14px; color: var(--fg-2); }
footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* WhatsApp flotante (solo movil) */
.sticky-wa { display: none; position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 200; }
.sticky-wa__btn { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; background: var(--ok); color: #04210F; border-radius: 100px; font-family: var(--font-display); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.45); }
.sticky-wa__btn svg { width: 20px; height: 20px; }
.sticky-wa { transition: opacity .2s ease, visibility .2s; }
.sticky-wa.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sticky-wa { transition: none; } }

@media (max-width: 1100px) {
  :root { --pad: 32px; --section-pad: 80px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 420px; column-gap: 44px; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "form" "ficha"; row-gap: 32px; }
  .hero__title { max-width: 20ch; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .field-notes__lead { max-width: none; }
}
@media (max-width: 640px) {
  :root { --pad: 20px; --section-pad: 60px; }
  body { font-size: 17px; padding-bottom: 76px; }
  .hero { padding-top: 32px; }
  .hero__title { font-size: 30px; }
  .hero__sub { font-size: 16px; line-height: 1.55; margin-top: 12px; }
  .hero__grid { row-gap: 24px; }
  .form-card { padding: 20px 16px 18px; }
  .form-card h2 { font-size: 21px; }
  .form-card__hint { margin-bottom: 14px; }
  .field { margin-bottom: 10px; }
  .field label { margin-bottom: 4px; }
  .field input, .field select { min-height: 44px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .nav .btn--primary { padding: 0 14px; font-size: 14px; }
  .nav__logo { font-size: 18px; }
  .ficha caption, .ficha thead th, .ficha tbody th, .ficha tbody td, .ficha__foot { padding-left: 14px; padding-right: 14px; }
  .ficha tbody th { width: 5.6em; }
  .ficha tbody td { font-size: 13px; line-height: 1.25; }
  .ficha tbody tr { height: 44px; }
  .step { grid-template-columns: 44px 1fr; column-gap: 16px; }
  .step::before { left: 21px; }
  .faq-item__trigger { font-size: 17px; }
  .sticky-wa { display: block; }
  .cta-final__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ficha tbody tr, .ficha tbody tr th::before { animation: none; }
  .faq-item__icon::before, .faq-item__icon::after { transition: none; }
}

/* Subpaginas (sitelinks): lista de puntos del hero y enlaces a otras secciones */
.hero__points { list-style: none; max-width: 54ch; }
.hero__points li { display: grid; grid-template-columns: 14px 1fr; column-gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); color: #D6D6E0; font-size: 17px; }
.hero__points li::before { content: ""; width: 7px; height: 7px; background: var(--accent-text); margin-top: .62em; }
.hero__points li:last-child { border-bottom: 1px solid var(--line); }
.prose p a, .exposed__close a, .step p a, .steps__note a { color: var(--fg); text-underline-offset: 3px; }
.related h2 { max-width: 20ch; }
.related__list { list-style: none; margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.related__list a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 4px 12px 4px 12px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 17px; background: var(--surface); transition: border-color .18s; }
.related__list a:hover { border-color: rgba(255,255,255,0.4); }
.related__list a span { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--fg-2); }
@media (max-width: 640px) { .hero__points li { font-size: 16px; } }
