/* =========================================================
   HORIZON · estilos
   Móvil primero. Sin dependencias externas.
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060608;
  --bg-2: #0c0c10;
  --card: #0f0f14;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #f4f4f2;
  --ink-2: #b9b9bf;
  --muted: #8c8c96;
  --dim: #6f6f78;
  --glow: #cfd8ff;
  --ok: #25d366;
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1120px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
p { margin: 0; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

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

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

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.h2 { font-size: clamp(30px, 8.4vw, 56px); max-width: 18ch; }
.dim { color: var(--dim); }
.lead { color: var(--ink-2); font-size: 17px; margin-top: 18px; max-width: 56ch; }
.small { font-size: 13px; color: var(--muted); margin-top: 14px; }
.small a { color: var(--ink-2); }
.num { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 15px/1 var(--font); letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--light { background: var(--ink); color: #0a0a0c; }
.btn--light:hover { background: #fff; }
.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: rgba(255,255,255,.35); }
.btn--line { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--line:hover { background: rgba(255,255,255,.06); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Cabecera ---------- */
.nav { position: fixed; inset: 12px 0 auto; z-index: 50; padding: 0 12px; pointer-events: none; }
.nav__bar {
  pointer-events: auto;
  max-width: var(--wrap); margin: 0 auto; height: 60px; padding: 0 10px 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(10, 10, 13, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .14em; font-size: 14px; }
.brand img { width: 32px; height: 32px; }
.nav__links { display: none; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav__links a { text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  padding: 112px 0 72px; text-align: center;
}
.hero__sky {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(120, 140, 255, .08), transparent 70%),
    linear-gradient(to bottom, transparent 0 55%, rgba(6,6,8,0) 55%);
}
/* La línea del horizonte: un arco de luz en la parte baja */
.hero__sky::before {
  content: ""; position: absolute; left: 50%; bottom: calc(-200vw + 64px); width: 260vw; height: 200vw;
  transform: translateX(-50%); border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 -1px 0 rgba(220, 228, 255, .55), 0 -18px 60px -10px rgba(170, 190, 255, .35), 0 -60px 140px -20px rgba(120, 140, 255, .18);
}
.hero__sky::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .25;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 35%, #000, transparent 75%); mask-image: radial-gradient(70% 55% at 50% 35%, #000, transparent 75%);
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__logo {
  width: 112px; height: 112px; margin-bottom: 28px;
  filter: drop-shadow(0 0 24px rgba(200, 210, 255, .25));
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__title { font-size: clamp(44px, 13.5vw, 96px); letter-spacing: -.045em; line-height: .98; }
.hero__lead { color: var(--ink-2); font-size: 17px; max-width: 34ch; margin-top: 22px; }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 360px; margin-top: 32px; }
.hero__facts {
  list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  font-size: 13px; color: var(--muted);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); }
.hero__interest {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05);
  font-size: 14px; text-decoration: none; color: var(--ink-2);
}
.hero__interest-go { color: var(--ink); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(37, 211, 102, .18); }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; position: relative; }
.section--tight { padding-top: 0; }
.section--tight-top { padding-top: 24px; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
}

/* ---------- Servicios interactivos ---------- */
.svc-tabs {
  position: sticky; top: 80px; z-index: 10;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
  margin: 28px 0 18px; padding: 4px; border-radius: 999px;
  background: rgba(15, 15, 20, .88); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.svc-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 10px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer;
  font: 600 14px/1 var(--font); transition: background-color .2s, color .2s; -webkit-tap-highlight-color: transparent;
}
.svc-tab svg { width: 16px; height: 16px; flex: none; }
.svc-tab[aria-selected="true"] { background: var(--ink); color: #0a0a0c; }

.svc { display: grid; gap: 18px; }
.svc > *, .svc__side > * { min-width: 0; }
.svc + .svc { margin-top: 48px; }                /* sin JS se ven los tres seguidos */
.js .svc + .svc { margin-top: 0; }
.svc__head h3 { font-size: 28px; margin-bottom: 8px; }
.svc__problem { color: var(--ink-2); }
.svc__problem strong { display: block; margin-top: 6px; font-weight: 500; font-size: 14px; color: var(--muted); }
.svc .svc__flag { display: none; margin-bottom: 10px; }
.svc.is-featured .svc__flag { display: inline-flex; }
.svc__side { display: grid; gap: 18px; }
.svc__buy { display: grid; gap: 16px; }
.svc__alt { font-size: 14px; color: var(--muted); margin-top: -8px; }
.svc__alt a { color: var(--ink); }

/* Demo "sin / con HORIZON" */
.demo { margin: 16px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 12px; }
.demo__bar { display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.demo__bar .cmp { flex: 1 1 220px; }
.demo__bar .cmp__btn { flex: 1; }
.demo__note {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffd666;
  border: 1px solid rgba(255, 214, 102, .35); border-radius: 999px; padding: 5px 8px; white-space: nowrap;
}
.cmp { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.cmp__btn {
  border: 0; background: transparent; color: var(--muted); font: 600 12px/1 var(--font); cursor: pointer;
  min-height: 34px; padding: 0 11px; border-radius: 999px; white-space: nowrap; transition: background-color .25s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
.cmp__btn[aria-pressed="true"][data-state="off"] { background: rgba(239, 68, 68, .2); color: #ffb4b4; }
.cmp__btn[aria-pressed="true"][data-state="on"] { background: rgba(34, 197, 94, .22); color: #a7f3c4; }
.demo__stage { border-radius: 16px; overflow: hidden; }
.demo__cap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
.demo__txt { flex-basis: 100%; }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 9px; height: 9px; border-radius: 50%; }
.lg--g { background: #22c55e; } .lg--a { background: #f59e0b; } .lg--r { background: #ef4444; }

/* Geogrid */
.geo { width: 100%; height: auto; }
.gp circle { fill: var(--off); transition: fill .5s ease var(--d); stroke: rgba(0,0,0,.35); stroke-width: 2; }
.gp text { font: 700 12px var(--font); fill: #0a0a0c; text-anchor: middle; dominant-baseline: central; transition: opacity .35s ease var(--d); }
.gp .on { opacity: 0; }
.demo.is-on .gp circle { fill: var(--on); }
.demo.is-on .gp .off { opacity: 0; }
.demo.is-on .gp .on { opacity: 1; }

/* Perfil de redes */
.ig { background: #0b0b0f; padding: 16px; display: grid; gap: 12px; }
.ig__top { display: flex; align-items: center; gap: 12px; }
.ig__av {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: none;
  border: 2px solid #2a2a32; transition: border-color .4s;
}
.demo.is-on .ig__av { border-color: #e1306c; box-shadow: 0 0 0 2px #0b0b0f, 0 0 0 4px #f59e0b; }
.ig__id { display: grid; line-height: 1.25; }
.ig__id small { color: var(--muted); font-size: 12px; }
.ig__status { position: relative; height: 30px; }
.ig__s {
  position: absolute; inset: 0 auto 0 0; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; transition: opacity .35s, transform .35s var(--ease);
}
.ig__s--off { background: rgba(239,68,68,.14); color: #ffb4b4; border: 1px solid rgba(239,68,68,.35); }
.ig__s--on { background: rgba(34,197,94,.14); color: #a7f3c4; border: 1px solid rgba(34,197,94,.35); opacity: 0; transform: translateY(6px); }
.demo.is-on .ig__s--off { opacity: 0; transform: translateY(-6px); }
.demo.is-on .ig__s--on { opacity: 1; transform: none; }
.ig__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.ig__grid span {
  aspect-ratio: 3 / 2; display: grid; place-items: center; border-radius: 4px; background: #16161c; color: #3a3a44;
  transition: background .5s, color .5s; transition-delay: calc(var(--i, 0) * 60ms);
}
.ig__grid span:nth-child(2) { --i: 1; } .ig__grid span:nth-child(3) { --i: 2; } .ig__grid span:nth-child(4) { --i: 3; } .ig__grid span:nth-child(5) { --i: 4; } .ig__grid span:nth-child(6) { --i: 5; }
.ig__grid svg { width: 18px; height: 18px; }
.demo.is-on .ig__grid span { background: linear-gradient(160deg, #2b3350, #15151c 70%); color: #f4f4f2; }
.ig__chart { position: relative; }
.ig__lbl { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.ig__chart svg { width: 100%; height: 70px; margin-top: 6px; overflow: visible; }
.ig__line { stroke-width: 3; stroke-linecap: round; }
.ig__line--off { stroke: #ef4444; transition: opacity .3s; }
.ig__line--on { stroke: #22c55e; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) .15s; }
.demo.is-on .ig__line--off { opacity: .18; }
.demo.is-on .ig__line--on { stroke-dashoffset: 0; }

/* Web vieja vs nueva + velocidad */
.demo__stage--web { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; align-items: center; background: #0b0b0f; padding: 14px; }
.phone { border: 2px solid #2a2a32; border-radius: 22px; padding: 6px; background: #050507; }
.phone__scr { position: relative; aspect-ratio: 9 / 17; border-radius: 16px; overflow: hidden; }
.old, .new { position: absolute; inset: 0; transition: opacity .5s, transform .5s var(--ease); }
.old { background: #f1efe6; color: #222; font-family: "Times New Roman", Times, serif; padding: 6px 5px; font-size: 5.5px; line-height: 1.3; }
.old__nav { background: #1d3f8f; color: #ffef6b; padding: 2px; font-size: 4.5px; white-space: nowrap; overflow: hidden; }
.old__h { color: #b30000; font-size: 8px; font-weight: 700; margin: 5px 0; text-decoration: underline; }
.old__row { display: grid; grid-template-columns: 34% 1fr; gap: 4px; }
.old__img { background: repeating-linear-gradient(45deg, #b9b3a0 0 3px, #cfc9b6 3px 6px); aspect-ratio: 1; }
.old__foot { margin-top: 6px; color: #666; font-size: 4.5px; }
.new { background: linear-gradient(180deg, #13151c, #0a0a0e); display: flex; flex-direction: column; gap: 6px; padding: 10px; opacity: 0; transform: scale(1.04); }
.new__img { height: 34%; border-radius: 10px; background: linear-gradient(135deg, #3b4a6b, #1a2033 60%, #2f2a22); }
.new__h { font-size: 15px; letter-spacing: -.02em; }
.new__sub { font-size: 9px; color: var(--ink-2); line-height: 1.3; }
.new__wa { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 26px; border-radius: 999px; background: var(--ok); color: #fff; font-size: 9px; font-weight: 700; }
.new__wa svg { width: 11px; height: 11px; }
.new__map { flex: 1; border-radius: 10px; background: #1b1f28; position: relative; overflow: hidden; }
.new__map::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 45%, #262b36 45% 52%, transparent 52%), linear-gradient(0deg, transparent 40%, #262b36 40% 48%, transparent 48%); }
.new__map i { position: absolute; left: 50%; top: 44%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.25); }
.demo.is-on .old { opacity: 0; transform: scale(.96); }
.demo.is-on .new { opacity: 1; transform: none; }
.gauge { display: grid; justify-items: center; gap: 4px; text-align: center; }
.gauge svg { width: 100%; max-width: 150px; }
.gauge__needle { transform-origin: 60px 62px; transform: rotate(-62deg); transition: transform 1s cubic-bezier(.3, 1.5, .5, 1); }
.demo.is-on .gauge__needle { transform: rotate(62deg); }
.gauge__lbl { font-size: 11px; color: var(--muted); }
.gauge__v { position: relative; height: 22px; width: 100%; }
.gauge__v b { position: absolute; inset: 0; font-size: 17px; transition: opacity .3s; }
.gauge__off { color: #ff8a8a; }
.gauge__on { color: #4ade80; opacity: 0; }
.demo.is-on .gauge__off { opacity: 0; }
.demo.is-on .gauge__on { opacity: 1; }

/* Reproductor de vídeo */
.vplayer { position: relative; width: min(100%, 236px); margin: 0 auto; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.vplayer__v { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.vplayer__sound {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.55); color: #fff; cursor: pointer;
  font: 600 13px/1 var(--font); white-space: nowrap; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.vplayer__sound svg { width: 18px; height: 18px; }
.vplayer__play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.vplayer__play svg { width: 28px; height: 28px; margin-left: 4px; }

.tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: var(--ink); color: #0a0a0c;
}

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(-45deg);
}

.tiers { margin: 4px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.tiers div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tiers dt { color: var(--ink-2); }
.tiers dd { margin: 0; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }

.price { display: flex; align-items: baseline; gap: 6px; }
.price__n { font-size: 40px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.price__u { color: var(--muted); font-size: 15px; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step .num { padding-top: 6px; }
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { color: var(--ink-2); }

/* ---------- Calculadora ---------- */
.section--calc { background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.calc { margin-top: 40px; display: grid; gap: 28px; }
.calc fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.calc__label { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; padding: 0; }

.presets { display: grid; gap: 10px; }
.preset {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
  min-height: 60px; padding: 14px 18px; border-radius: var(--radius-sm); cursor: pointer; text-align: left;
  font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  transition: border-color .2s, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.preset:hover { border-color: var(--line-2); }
.preset[aria-pressed="true"] { border-color: var(--ink); background: rgba(255,255,255,.06); }
.preset__name { font-weight: 600; }
.preset__price { color: var(--muted); font-size: 14px; white-space: nowrap; }
.preset__price b { color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
.preset__badge {
  position: absolute; top: -9px; left: 14px; height: 20px; padding: 0 8px; border-radius: 999px;
  display: inline-flex; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--ink); color: #0a0a0c;
}
.preset:has(.preset__badge) { margin-top: 6px; }

.calc__items { display: grid; gap: 10px; }
.item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); transition: border-color .2s, background-color .2s; }
.item.is-on { border-color: var(--line-2); background: rgba(255,255,255,.05); }
.item__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; }
.item__text { display: grid; gap: 2px; }
.item__name { font-weight: 600; }
.item__sub { font-size: 13px; color: var(--muted); }
.item__price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Interruptor */
.sw {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none; cursor: pointer;
  width: 46px; height: 28px; border-radius: 999px; position: relative;
  background: rgba(255,255,255,.12); border: 1px solid var(--line-2); transition: background-color .2s, border-color .2s;
}
.sw::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink-2); transition: transform .25s var(--ease), background-color .2s;
}
.sw:checked { background: var(--ink); border-color: var(--ink); }
.sw:checked::after { transform: translateX(18px); background: #0a0a0c; }

/* Selector de cantidad */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 18px 16px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: baseline; justify-content: center; gap: 3px; min-height: 44px; padding-top: 12px;
  border-radius: 10px; border: 1px solid var(--line); font-weight: 700; font-size: 16px; transition: all .2s;
}
.seg small { font-weight: 500; font-size: 12px; color: var(--muted); }
.seg input:checked + span { background: var(--ink); color: #0a0a0c; border-color: var(--ink); }
.seg input:checked + span small { color: #44444c; }
.seg input:focus-visible + span { outline: 2px solid var(--glow); outline-offset: 2px; }
.item:not(.is-on) .seg { opacity: .45; }

/* Resumen */
.summary {
  position: sticky; bottom: 10px; z-index: 5;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(14, 14, 19, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 20px; box-shadow: 0 -10px 40px rgba(0,0,0,.5);
}
.summary__lines { display: grid; gap: 4px; }
.summary__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.summary__row--disc { color: var(--ok); }
.summary__total { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 2px; }
.summary__total-n { font-size: 46px; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.summary__total-u { color: var(--muted); }
.summary__hint { font-size: 13px; color: var(--ink-2); min-height: 1.4em; margin-bottom: 14px; }
.summary__fine { font-size: 12px; color: var(--muted); margin-top: -14px; }
@media (max-width: 899px) {
  /* En móvil el resumen va fijo abajo: lo dejamos compacto */
  .summary { padding: 14px 16px 16px; }
  .summary__lines { display: none; }
  .summary__total { margin-top: 0; }
  .summary__total-n { font-size: 38px; }
  .summary__hint { margin-bottom: 10px; }
}
.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.06); } }

.founder {
  margin-top: 24px; padding: 18px 20px; border-radius: var(--radius-sm);
  border: 1px dashed rgba(220, 228, 255, .35); background: rgba(150, 170, 255, .05);
  display: grid; gap: 8px; color: var(--ink-2); font-size: 15px;
}
.founder__tag { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--glow); }

/* Extras */
.extras { display: grid; gap: 16px; }
.extra { display: flex; flex-direction: column; gap: 14px; }
.extra .eyebrow { margin-bottom: 0; }
.extra h3 { font-size: 24px; }
.extra > p { color: var(--ink-2); }
.extra .btn { margin-top: auto; }
.extra .small { margin-top: 0; }

/* Auditoría */
.audit { display: grid; gap: 36px; }
.audit .checks { margin-top: 24px; }
.audit__form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; }
.field input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 12px;
  font: 16px var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2);
  transition: border-color .2s;
}
.field input::placeholder { color: var(--dim); }
.field input:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: #ff7a7a; }
.field__err { font-size: 13px; color: #ff9a9a; }

/* FAQ */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--ink-2); padding: 0 0 22px; max-width: 62ch; }

/* Cierre */
.final { text-align: center; overflow: hidden; padding: 80px 0 72px; }
.final__sky { position: absolute; inset: 0; pointer-events: none; }
.final__sky::before {
  content: ""; position: absolute; left: 50%; top: -150vw; width: 260vw; height: 200vw; transform: translateX(-50%); border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(220, 228, 255, .4), 0 18px 60px -10px rgba(170, 190, 255, .25);
}
.final__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final__logo { width: 56px; height: 56px; margin-bottom: 26px; opacity: .9; }
.final .h2 { margin-inline: auto; }
.final .lead { margin-inline: auto; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: 40px 0 110px; }
.footer__inner { display: grid; gap: 14px; justify-items: start; }
.footer__claim { color: var(--muted); font-size: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-2); }
.footer__copy { font-size: 13px; color: var(--dim); }

/* Botón flotante */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ok); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: transform .3s var(--ease), opacity .3s;
}
.fab svg { width: 30px; height: 30px; }
.fab.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }

/* ---------- Aparición suave ----------
   Va ligada al propio scroll (no a un temporizador), así que el contenido
   nunca se queda en negro aunque se baje rápido. Si el navegador no lo
   soporta, simplemente no hay animación. */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}
@keyframes rise { from { opacity: .35; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Páginas legales ---------- */
.legal { padding: 120px 0 80px; }
.legal h1 { font-size: clamp(34px, 9vw, 54px); margin-bottom: 10px; }
.legal h2 { font-size: 21px; letter-spacing: -.02em; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.legal mark { background: rgba(255, 214, 102, .16); color: #ffd666; padding: 0 4px; border-radius: 4px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.legal th { color: var(--ink); }
.legal-back { display: inline-flex; margin-bottom: 30px; color: var(--ink-2); text-decoration: none; font-size: 14px; }

/* ---------- Pantallas grandes ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero__ctas { flex-direction: row; justify-content: center; max-width: none; width: auto; }
  .svc-tabs { max-width: 480px; }
  .extras { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer__claim { grid-column: 1; }
  .footer__links { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .section { padding: 110px 0; }
  .section--tight { padding-top: 0; }
  .section--tight-top { padding-top: 40px; }
  .hero__logo { width: 140px; height: 140px; }
  .hero__lead { font-size: 19px; max-width: 46ch; }
  .svc-tabs { top: 88px; }
  .svc { grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
  .demo { max-width: 440px; }
  .svc__side { grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
  .steps { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 24px; }
  .step { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--line-2); padding-top: 22px; }
  .calc { grid-template-columns: 1.25fr 1fr; grid-template-areas: "presets summary" "items summary"; align-items: start; column-gap: 40px; }
  .calc__presets { grid-area: presets; }
  .calc__items { grid-area: items; }
  .summary { grid-area: summary; position: sticky; top: 100px; bottom: auto; padding: 30px; }
  .summary__total-n { font-size: 64px; }
  .audit { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .fab { display: none; }
  .footer { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  /* Solo se paran los movimientos continuos; el resto de la web sigue viva */
  .hero__logo { animation: none; }
  html { scroll-behavior: auto; }
  /* Las comparativas cambian al instante, sin recorridos largos */
  .demo *, .demo *::before, .demo *::after { transition-duration: .01s !important; transition-delay: 0s !important; }
}
