:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #14151a;
  --muted: #4f5562;
  --line: #e4e1d8;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --soft: #eaf4f1;
  --radius: 16px;
  --danger: #b42318;
  --deep: #062f2c;
  --deep-2: #0b4a45;
  --mint: #5eead4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --surface: #161920;
    --ink: #f2f3f5;
    --muted: #a8aeba;
    --line: #272b35;
    --accent: #2dd4bf;
    --accent-ink: #06201d;
    --soft: #11201e;
    --danger: #ff8a80;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.mark { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.mark span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a.link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.nav a.link:hover { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none; border: 2px solid var(--accent);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }

section { padding: 84px 0; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.7rem); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 20px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 58ch; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero oscuro con ilustración */
.hero {
  position: relative; overflow: hidden; padding: 72px 0 88px; color: #eafaf7;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(45,212,191,.22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(15,118,110,.55), transparent 60%),
    linear-gradient(160deg, var(--deep) 0%, #08403b 55%, var(--deep-2) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 28px; align-items: center; }
.hero .eyebrow { color: var(--mint); }
.hero h1 { color: #ffffff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero .lead { color: #c8e9e4; }
.hero .btn { background: var(--mint); border-color: var(--mint); color: #04201d; }
.hero .btn.ghost { background: transparent; color: #eafaf7; border-color: rgba(255,255,255,.35); }
.hero .badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.hero .badges li { font-size: .9rem; color: #bfe6e0; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 4px 12px; background: rgba(255,255,255,.05); }
.art { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 50px rgba(0,0,0,.35)); }
.art .link-line { stroke: var(--mint); stroke-width: 1.6; stroke-dasharray: 5 7; opacity: .75; animation: flow 3.2s linear infinite; }
.art .halo { transform-origin: 280px 240px; animation: pulso 3.6s ease-in-out infinite; }
.art .node-ring { fill: rgba(255,255,255,.07); stroke: rgba(94,234,212,.55); stroke-width: 1.5; }
.art .ico { fill: none; stroke: #b9f3ea; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.art .lbl { fill: #d7f3ee; font-size: 14px; font-weight: 600; text-anchor: middle; font-family: inherit; }
.art .core-t { fill: #04201d; font-size: 17px; font-weight: 800; text-anchor: middle; font-family: inherit; }
.art .core-s { fill: #0b4a45; font-size: 11px; font-weight: 700; text-anchor: middle; letter-spacing: .08em; font-family: inherit; }
.art .dot { fill: var(--mint); animation: parpadeo 2.4s ease-in-out infinite; }
@keyframes flow { to { stroke-dashoffset: -48; } }
@keyframes pulso { 0%,100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.18); opacity: .15; } }
@keyframes parpadeo { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* Franja de hechos */
.facts { padding: 0; margin-top: -34px; position: relative; z-index: 2; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(6,47,44,.12); overflow: hidden; }
.facts li { padding: 20px 20px; display: grid; gap: 4px; border-right: 1px solid var(--line); }
.facts li:last-child { border-right: 0; }
.facts b { font-size: 1.5rem; letter-spacing: -0.02em; color: var(--accent); line-height: 1.1; }
.facts span { color: var(--muted); font-size: .95rem; }

/* Antes y después */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.vs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.vs-card.good { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: linear-gradient(180deg, var(--soft), var(--surface)); }
.vs-card svg { width: 100%; height: auto; display: block; margin-bottom: 14px; }
.vs-card h3 { display: flex; align-items: center; gap: 8px; }
.vs-card p { margin: 0; color: var(--muted); }
.tagchip { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 2px 10px; background: var(--line); color: var(--muted); }
.vs-card.good .tagchip { background: var(--accent); color: var(--accent-ink); }

/* Qué hace + teléfono */
.feature { display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: center; margin-top: 28px; }
.cards { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.card p { margin: 0; color: var(--muted); }
.ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--accent); }
.ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phone { width: 100%; max-width: 340px; margin: 0 auto; border-radius: 38px; padding: 12px; background: linear-gradient(160deg, #0d3b37, #062f2c); box-shadow: 0 30px 60px rgba(6,47,44,.35); }
.phone-in { background: #0e1d1c; border-radius: 28px; padding: 16px 14px 18px; min-height: 440px; display: flex; flex-direction: column; gap: 10px; }
.phone-top { display: flex; align-items: center; gap: 10px; color: #d7f3ee; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.phone-top i { width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: #04201d; display: grid; place-items: center; font-style: normal; font-size: .8rem; font-weight: 800; }
.phone-top small { display: block; font-weight: 400; color: #8fc7bf; font-size: .72rem; }
.msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: .9rem; line-height: 1.4; color: #eafaf7; }
.msg.you { align-self: flex-end; background: #0f766e; border-bottom-right-radius: 4px; }
.msg.brain { align-self: flex-start; background: #1a2b29; border: 1px solid rgba(255,255,255,.08); border-bottom-left-radius: 4px; }
.msg b { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #8fc7bf; margin-bottom: 2px; }
.msg .ok { display: inline-block; margin-top: 6px; font-size: .75rem; color: #04201d; background: var(--mint); border-radius: 999px; padding: 1px 9px; font-weight: 700; }
.fine { font-size: .82rem; color: var(--muted); text-align: center; margin: 14px 0 0; }

/* Pasos en línea de tiempo */
.band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
ol.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); opacity: .55; }
ol.steps li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 18px; }
ol.steps li::before { content: counter(step); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 1.2rem; margin: -48px 0 12px; box-shadow: 0 0 0 6px var(--soft); }
ol.steps strong { display: block; margin-bottom: 4px; }
ol.steps span { color: var(--muted); font-size: .97rem; }

/* Límites y datos */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h3 { display: flex; align-items: center; gap: 10px; }
.panel h3 .ic { width: 40px; height: 40px; border-radius: 12px; }
.panel h3 .ic svg { width: 22px; height: 22px; }
ul.plain { margin: 0; padding-left: 1.2rem; color: var(--muted); }
ul.plain li { margin-bottom: 10px; }
.shield { background: linear-gradient(160deg, var(--deep), var(--deep-2)); color: #eafaf7; border: 0; }
.shield h3 { color: #fff; }
.shield .ic { background: rgba(94,234,212,.16); color: var(--mint); }
.shield p { color: #c8e9e4; margin: 0 0 12px; }
.shield a { color: var(--mint); font-weight: 700; }

/* Quién */
.who { display: grid; grid-template-columns: 120px 1fr; gap: 26px; align-items: center; }
.avatar { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; color: #04201d; background: radial-gradient(circle at 30% 25%, #99f6e4, var(--accent)); box-shadow: 0 0 0 8px var(--soft), 0 14px 30px rgba(15,118,110,.3); }
.who .lead { margin-bottom: 14px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; margin-bottom: 10px; }
details[open] { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
details p { margin: 0 0 16px; color: var(--muted); }

/* Llamado final y formulario */
.cta { background: radial-gradient(800px 400px at 50% 0%, var(--soft), transparent 70%); }
.placeholder { font-size: .95rem; color: var(--muted); margin-top: 16px; }
.form-wrap { max-width: 640px; margin: 28px auto 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 20px 50px rgba(6,47,44,.1); }
.field { margin-bottom: 16px; }
.form-wrap label { display: block; font-weight: 700; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: .92rem; }
.form-wrap input[type="text"], .form-wrap select, .form-wrap textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit;
}
.form-wrap textarea { min-height: 110px; resize: vertical; }
.form-wrap input:focus-visible, .form-wrap select:focus-visible, .form-wrap textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--accent); }
.form-wrap .check label { font-weight: 400; margin: 0; color: var(--muted); font-size: .95rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.btn { cursor: pointer; font: inherit; font-weight: 700; width: 100%; }
button.btn:disabled { opacity: .6; cursor: wait; }
.status { margin: 14px 0 0; min-height: 1.5em; font-weight: 600; }
.status.ok { color: var(--accent); }
.status.err { color: var(--danger); }

/* Pie */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: .95rem; }
footer h2 { font-size: 1.05rem; letter-spacing: 0; color: var(--ink); }
footer p { margin: 0 0 10px; max-width: 72ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; padding: 0; list-style: none; }
.foot-links a { font-weight: 600; }

/* Páginas de texto (guía y política) */
.doc { padding: 56px 0 72px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); max-width: none; }
.doc h2 { margin-top: 40px; font-size: clamp(1.35rem, 2.8vw, 1.8rem); }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); }
.doc .meta { font-size: .92rem; color: var(--muted); margin-bottom: 26px; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .98rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.doc th { color: var(--ink); }
.callout { background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 18px; margin: 22px 0; color: var(--ink); }
.callout p { margin: 0; color: var(--ink); }
.tree { background: #0e1d1c; color: #d7f3ee; border-radius: 14px; padding: 18px 20px; overflow-x: auto; font: .92rem/1.55 ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; }
.crumbs { font-size: .92rem; margin-bottom: 18px; }

@media (max-width: 900px) {
  section { padding: 56px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-grid, .feature, .two, .versus { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .art { max-width: 460px; margin: 0 auto; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(2) { border-right: 0; }
  .facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  ol.steps { grid-template-columns: 1fr; gap: 34px; }
  ol.steps::before { display: none; }
  .who { grid-template-columns: 1fr; justify-items: start; }
  .nav a.link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art .link-line, .art .halo, .art .dot { animation: none; }
  .btn { transition: none; }
}
