/* ==========================================================================
   ADVERX · Estilos
   Sistema visual: fondo azul profundo con retícula, acento Palatinate blue
   para superficies/brillos y lima para acciones y palabras clave.
   ========================================================================== */

/* Fuentes alojadas en el propio dominio (sin enviar datos a terceros y más rápidas). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #000029;
  --bg-2: #000051;
  --blue: #173DED;
  --blue-text: #8FA3FF;          /* azul legible sobre fondo oscuro (el #173DED no alcanza contraste AA como texto) */
  --lime: #C5FF00;
  --ink: #0B0C10;
  --heading: #DCDEE2;
  --body: #BABABA;
  --line: rgba(143, 163, 255, 0.14);
  --line-strong: rgba(143, 163, 255, 0.28);
  --card: #000051;
  --danger: #FF8A80;

  --font-display: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(88px, 12vw, 160px);
  --header-h: 68px;

  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: inherit; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px);
  background: var(--bg);
}
html.dx-open, html.menu-open { overflow: hidden; }
body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: var(--heading); }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 20px;
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.08em; color: var(--blue-text);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(23, 61, 237, .25), 0 0 16px var(--blue); }
.t-heading { color: var(--heading); }
.t-accent { color: var(--lime); }
.display {
  font-size: clamp(2.3rem, 4.3vw, 3.7rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.display span, .h2 span { display: inline; }
.display .t-accent { display: block; margin-top: 0.12em; }
.h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.15rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 24px; text-wrap: balance;
}
.h2--stack .t-accent { display: block; margin-top: .1em; }
.h2--xl { font-size: clamp(2.1rem, 5.4vw, 4rem); }
.lede { font-size: clamp(1.06rem, 1.6vw, 1.22rem); max-width: 34em; color: var(--body); }
.strong { color: var(--heading); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }

/* ---------- Botones ---------- */
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn--primary { background: var(--lime); color: var(--ink); box-shadow: 0 8px 30px -8px rgba(197, 255, 0, .45); }
.btn--primary:active { transform: scale(.98); }
@media (hover: hover) { .btn--primary:hover { box-shadow: 0 10px 38px -6px rgba(197, 255, 0, .6); } }
.btn--secondary, .btn--ghost { background: transparent; color: #fff; border-color: var(--line-strong); }
@media (hover: hover) { .btn--secondary:hover, .btn--ghost:hover { border-color: var(--lime); } }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--heading); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[hidden] { visibility: hidden; display: inline-grid; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(0, 0, 41, .72);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; flex: none; min-height: 44px; text-decoration: none; }
.logo picture { display: block; }
.logo__img { display: block; height: 40px; width: auto; }
.site-footer .logo__img { height: 46px; }
.site-header__ig { margin-left: 4px; color: var(--heading); text-decoration: none; }
.site-nav__extra { display: none; }
.linklike { background: none; border: 0; padding: 8px 0; margin: 0; font: inherit; font-size: .9375rem; color: var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .linklike:hover { color: var(--heading); } }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav li a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--body); text-decoration: none; font-size: .9375rem; font-weight: 500; }
@media (hover: hover) { .site-nav li a:hover { color: var(--heading); background: rgba(143,163,255,.08); } }
.menu-toggle { display: none; }
.only-mobile { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .only-desktop { display: none; }
  .only-mobile { display: inline; }
  .site-header__cta { margin-left: auto; }
  .menu-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--heading); content: ""; position: relative; transition: transform .2s ease;
  }
  .menu-toggle__bars::before { position: absolute; top: -6px; }
  .menu-toggle__bars::after { position: absolute; top: 6px; }
  [aria-expanded="true"] .menu-toggle__bars { background: transparent; }
  [aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  [aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: fixed; left: 0; right: 0;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px));
    padding: 24px max(var(--gutter), env(safe-area-inset-left, 0px)) calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--bg); visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility .2s;
    overflow-y: auto;
  }
  .menu-open .site-nav { visibility: visible; opacity: 1; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav li a { padding: 16px 4px; border-radius: 0; font: 700 1.6rem/1.2 var(--font-display); color: var(--heading); border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(40px, 8vw, 96px));
  padding-bottom: clamp(64px, 9vw, 120px);
  display: flex; align-items: center;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 40%, rgba(23, 61, 237, .38), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(0, 0, 81, .9), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.hero__note { margin: 0; font-size: .9375rem; color: var(--body); }

.hero__visual { position: relative; aspect-ratio: 15 / 16; max-width: 560px; width: 100%; justify-self: center; }
.hero__paths { position: absolute; inset: -6% -12%; width: 124%; height: 112%; overflow: visible; }
.hero__paths path { fill: none; stroke: var(--lime); stroke-width: 1.5; opacity: .55; filter: drop-shadow(0 0 6px rgba(197, 255, 0, .6)); }
.hero__paths path + path { stroke: var(--blue); opacity: .9; filter: drop-shadow(0 0 8px rgba(23, 61, 237, .9)); }

.phone {
  position: absolute; left: 50%; top: 50%;
  width: 58%; aspect-ratio: 9 / 18.5;
  transform: translate(-50%, -50%) perspective(1600px) rotateY(-20deg) rotateX(10deg) rotateZ(3deg);
  border-radius: 42px; padding: 10px;
  background: linear-gradient(145deg, #2a2f63, #07072a 45%, #1b1f55);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.14),
    -30px 40px 80px -20px rgba(0, 0, 0, .8),
    0 0 90px -10px rgba(23, 61, 237, .65);
}
.phone__screen {
  position: relative; height: 100%; border-radius: 33px; overflow: hidden;
  background: linear-gradient(180deg, #03033a 0%, #000029 100%);
  padding: 18% 9% 10%;
}
.phone__screen::before { content: ""; position: absolute; top: 3%; left: 50%; width: 32%; height: 3.4%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.phone__bar { font: 600 .72rem/1.3 var(--font-body); color: var(--body); margin-bottom: 8%; }
.journey { position: relative; display: grid; gap: 9%; height: 76%; align-content: space-between; }
.journey::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), rgba(197,255,0,.8)); opacity: .55; }
.journey li { position: relative; display: grid; grid-template-columns: 16px 1fr; column-gap: 12px; align-items: center; }
.journey__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--blue); grid-row: span 2; animation: node 6s infinite; animation-delay: calc(var(--i) * .9s); }
.journey__label { font: 700 .82rem/1.2 var(--font-display); color: var(--heading); }
.journey__meta { font-size: .66rem; color: #8d8fa6; }
.journey__end .journey__dot { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 14px var(--lime); }
.journey__end .journey__label { color: var(--lime); }
.journey::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 12px 3px rgba(197, 255, 0, .8);
  animation: pulse 5.4s cubic-bezier(.6,.05,.4,.95) infinite;
}
@keyframes pulse { 0% { top: 3px; opacity: 0; } 6% { opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 13px); opacity: 0; } }
@keyframes node { 0%, 100% { box-shadow: none; background: var(--bg); } 4%, 18% { background: var(--blue); box-shadow: 0 0 14px var(--blue); } 30% { box-shadow: none; background: var(--bg); } }

.chips li {
  position: absolute; left: var(--l, auto); right: var(--r, auto); top: var(--y);
  padding: 8px 14px; border-radius: 999px;
  background: rgba(0, 0, 81, .78); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .8125rem; font-weight: 500; color: var(--heading); white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
}
.chips li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--lime); vertical-align: middle; }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; margin-top: 8px; }
  .chips li { font-size: .75rem; padding: 6px 11px; }
}
@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
  .btn--lg { padding-inline: 18px; }
  .diag-card { padding: 24px 20px; }
  .hero__note { width: 100%; text-align: center; }
  .phone { width: 62%; border-radius: 34px; }
  .phone__screen { border-radius: 26px; }
  .journey__label { font-size: .74rem; }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(0, 0, 81, .55) 18%, rgba(0, 0, 81, .55) 82%, transparent); }
.center-head { max-width: 780px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.center-head .eyebrow { justify-content: center; }
.center-note { max-width: 36em; margin: 40px auto 0; text-align: center; color: var(--heading); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.split__head p { max-width: 32em; }
.split__head--sticky { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 40px); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__head--sticky { position: static; } }

.badge {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(197, 255, 0, .35); color: var(--lime);
  background: radial-gradient(circle, rgba(197,255,0,.08), transparent 70%);
}
.badge svg { width: 22px; height: 22px; }

/* Problema */
.problems li {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  color: var(--heading); font-size: 1.0625rem;
}
.problems li:first-child { border-top: 1px solid var(--line); }
.closing {
  margin: clamp(48px, 7vw, 88px) 0 0;
  font: 700 clamp(1.5rem, 3vw, 2.2rem)/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--lime);
}

/* Enfoque: recorrido en 5 etapas */
.track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.track li {
  position: relative; padding: 28px 22px 26px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line);
}
.track li:not(:last-child)::after {
  content: ""; position: absolute; top: 44px; right: -17px; width: 18px; height: 2px; background: var(--lime); opacity: .6;
}
.track__n { display: block; margin-bottom: 36px; font: 700 .875rem/1 var(--font-display); color: var(--blue-text); }
.track h3 { margin-bottom: 10px; }
.track p { margin: 0; font-size: .9688rem; }
.is-highlight { background: var(--blue) !important; border-color: transparent !important; box-shadow: 0 30px 70px -20px rgba(23, 61, 237, .7); }
.is-highlight p, .is-highlight .track__n { color: #E9ECFF; }
.is-highlight .badge { border-color: rgba(255,255,255,.5); color: #fff; }
@media (max-width: 1000px) {
  .track { grid-template-columns: 1fr; gap: 12px; }
  .track li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 22px; }
  .track li:not(:last-child)::after { top: auto; bottom: -13px; right: auto; left: 42px; width: 2px; height: 14px; }
  .track__n { margin: 3px 0 0; grid-row: span 2; }
}

/* Sistema */
.system__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.system__grid li { padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.system__grid .badge { margin-bottom: 22px; }
.system__grid h3 { margin-bottom: 8px; }
.system__grid p { margin: 0; font-size: .9688rem; }
.system__grid .is-highlight p { color: #E9ECFF; }
@media (max-width: 900px) { .system__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .system__grid { grid-template-columns: 1fr; } .system__grid li { padding: 22px; } }

.flowline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 0; margin-top: 40px; }
.flowline li {
  display: flex; align-items: center;
  font: 600 .875rem/1 var(--font-body); color: var(--heading);
}
.flowline li::before { content: ""; }
.flowline li { padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(0,0,41,.6); }
.flowline li:not(:last-child) { margin-right: 30px; position: relative; }
.flowline li:not(:last-child)::after {
  content: ""; position: absolute; right: -24px; top: 50%; width: 18px; height: 2px; background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}
.flowline .is-end { background: var(--lime); color: var(--ink); border-color: var(--lime); }
@media (max-width: 600px) {
  .flowline { flex-direction: column; align-items: stretch; gap: 22px; }
  .flowline li { justify-content: center; margin-right: 0 !important; }
  .flowline li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -17px; width: 2px; height: 12px; }
}

/* Qué hacemos */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.services > div { padding: 24px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(0, 0, 41, .55); }
.services dt { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font: 700 1.05rem/1.25 var(--font-display); color: var(--heading); }
.services dt svg { width: 22px; height: 22px; color: var(--lime); flex: none; }
.services dd { margin: 0; font-size: .9688rem; }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }
.statement {
  margin: clamp(56px, 8vw, 104px) 0 0; max-width: 22em;
  font: 700 clamp(1.6rem, 3.6vw, 2.8rem)/1.15 var(--font-display); letter-spacing: -0.025em;
}
.statement--center { margin-inline: auto; text-align: center; }

/* Cómo funciona */
.steps { position: relative; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: linear-gradient(var(--blue), rgba(23, 61, 237, .25)); }
.steps li:nth-last-child(2)::before { background: linear-gradient(var(--blue), var(--lime)); }
.steps li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding-bottom: 36px; }
.steps li:last-child { padding-bottom: 0; }
.steps__n {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--blue);
  font: 700 .95rem/1 var(--font-display); color: var(--heading);
  box-shadow: 0 0 22px -4px rgba(23, 61, 237, .8);
}
.steps li:last-child .steps__n { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 22px -4px rgba(197, 255, 0, .6); }
.steps h3 { margin: 14px 0 8px; font-size: 1.3rem; }
.steps p { margin: 0; max-width: 34em; }
.split__head .btn { margin-top: 12px; }

/* Métricas */
.metrics { position: relative; }
.metrics__line { display: block; width: 100%; height: clamp(70px, 10vw, 120px); overflow: visible; }
.metrics__line path { fill: none; stroke: url(#mline); stroke-width: 3; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 10px rgba(23, 61, 237, .9)); }
.metrics__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.metrics__list li {
  position: relative; padding-top: 22px; text-align: center;
  font: 600 .875rem/1.3 var(--font-body); letter-spacing: .02em; color: var(--heading);
}
.metrics__list li::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 12px var(--blue);
}
.metrics__list li:last-child::before { background: var(--lime); box-shadow: 0 0 14px var(--lime); }
.metrics__list li:last-child { color: var(--lime); }
@media (max-width: 760px) {
  .metrics__line { display: none; }
  .metrics__list { grid-template-columns: 1fr; gap: 0; max-width: 340px; margin-inline: auto; position: relative; }
  .metrics__list::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), var(--lime)); opacity: .6; }
  .metrics__list li { text-align: left; padding: 12px 0 12px 30px; font-size: 1rem; }
  .metrics__list li::before { top: 50%; left: 0; margin: -5px 0 0; }
}

/* Diagnóstico (sección) */
.diag-card {
  position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 5vw, 64px); border-radius: 32px;
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(23, 61, 237, .55), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -40px rgba(23, 61, 237, .8);
}
.diag-card__list { display: grid; gap: 14px; align-content: center; }
.diag-card__list li { padding: 20px 22px; border-radius: var(--r-md); background: rgba(0, 0, 41, .6); border: 1px solid var(--line); }
.diag-card__list strong { display: block; margin-bottom: 4px; font: 700 1rem/1.3 var(--font-display); color: var(--lime); }
.diag-card__list span { font-size: .9688rem; }
.noscript { margin-top: 16px; color: var(--danger); }
@media (max-width: 900px) { .diag-card { grid-template-columns: 1fr; border-radius: 26px; } }

/* Por qué ADVERX */
.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.points li { padding: 28px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.points h3 { margin-bottom: 12px; }
.points p { margin: 0; font-size: .9688rem; }
.points .is-highlight p { color: #E9ECFF; }
@media (max-width: 1000px) { .points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .points { grid-template-columns: 1fr; } }

/* Para quién */
.checks li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--heading); }
.checks li:first-child { border-top: 1px solid var(--line); }
.checks svg { width: 24px; height: 24px; flex: none; color: var(--lime); margin-top: 1px; }

/* Objetivo */
.outcomes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: o; }
.outcomes li {
  position: relative; padding: 26px 20px; border-radius: var(--r-md); text-align: center;
  font: 700 1.05rem/1.25 var(--font-display); color: var(--heading);
  background: rgba(0, 0, 41, .65); border: 1px solid var(--line-strong);
}
.outcomes li:last-child { background: var(--lime); color: var(--ink); border-color: var(--lime); }
@media (max-width: 760px) { .outcomes { grid-template-columns: 1fr 1fr; } }
.disclaimer { max-width: 50em; margin: 40px auto 0; text-align: center; font-size: .875rem; color: #9a9cb0; }

/* CTA final */
.final { text-align: center; overflow: hidden; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(23, 61, 237, .45), transparent 62%); z-index: -1;
}
.final { isolation: isolate; }
.final__inner { max-width: 880px; }
.final .eyebrow { justify-content: center; }
.final p { max-width: 36em; margin-inline: auto; }
.final .btn { margin-top: 16px; }
.final .hero__note { margin-top: 14px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font: 600 1.0625rem/1.35 var(--font-display); color: var(--heading);
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--lime); font: 500 1.2rem/1 var(--font-body); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; max-width: 42em; }

/* Pie */
.site-footer { padding: 48px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.site-footer p { margin: 6px 0 0; font-size: .875rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { font-size: .9375rem; color: var(--body); text-decoration: none; padding: 8px 0; display: inline-block; }
@media (hover: hover) { .site-footer nav a:hover { color: var(--heading); } }
.site-footer__copy { margin: 0 !important; }

/* Barra de CTA fija en móvil */
.cta-dock { display: none; }
@media (max-width: 900px) {
  .cta-dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px max(16px, env(safe-area-inset-left, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px));
    background: linear-gradient(180deg, rgba(0,0,41,0), rgba(0,0,41,.92) 35%);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .cta-dock.is-visible { transform: translateY(0); }
  .dx-open .cta-dock, .menu-open .cta-dock { transform: translateY(110%); }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}

/* Banner y panel de cookies (primera y segunda capa) */
.cookie-banner {
  position: fixed; z-index: 70; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 620px; margin-inline: auto; padding: 18px 20px;
  border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line-strong);
  box-shadow: 0 24px 70px -10px rgba(0, 0, 0, .85);
  max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); overflow-y: auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title { margin: 0 0 6px; font: 700 1rem/1.3 var(--font-display); color: var(--heading); }
.cookie-banner p { margin: 0 0 14px; font-size: .9375rem; line-height: 1.5; }
.cookie-banner a { color: var(--lime); }
.cookie-banner__actions, .cookie-panel__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
/* Mismo peso visual para aceptar, rechazar y configurar (Guía de cookies AEPD). */
.btn--cookie { min-height: 48px; padding: 0 14px; background: transparent; color: var(--heading); border-color: var(--line-strong); font-size: .9375rem; }
@media (hover: hover) { .btn--cookie:hover { border-color: var(--lime); } }
@media (max-width: 480px) {
  .cookie-banner { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding: 14px 14px 12px; }
  .cookie-banner p { font-size: .875rem; margin-bottom: 12px; }
  .cookie-banner__actions { gap: 8px; }
  .btn--cookie { min-height: 46px; padding: 0 6px; font-size: .875rem; }
  .cookie-panel__actions { grid-template-columns: 1fr; }
}
.cookie-panel {
  width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; border-radius: 22px;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--body);
}
.cookie-panel::backdrop { background: rgba(0, 0, 20, .8); }
.cookie-panel__inner { padding: 24px 22px calc(22px + env(safe-area-inset-bottom, 0px)); }
.cookie-panel__title { font: 700 1.3rem/1.2 var(--font-display); margin-bottom: 8px; }
.cookie-panel p { font-size: .9375rem; }
.cc-cat { padding: 14px 0; border-top: 1px solid var(--line); }
.cc-cat p { margin: 6px 0 0; font-size: .875rem; }
.cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--heading); }
.cc-cat__head label { cursor: pointer; }
.cc-always { font-size: .8125rem; color: var(--lime); }
.cc-switch {
  -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 52px; height: 32px; margin: 0;
  border-radius: 999px; background: var(--bg-2); border: 1.5px solid var(--line-strong); cursor: pointer; transition: background .2s ease;
}
.cc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: var(--heading); transition: transform .2s ease; }
.cc-switch:checked { background: var(--lime); border-color: var(--lime); }
.cc-switch:checked::after { transform: translateX(20px); background: var(--ink); }
.cookie-panel__actions { margin-top: 18px; }

/* ==========================================================================
   Diagnóstico (diálogo)
   ========================================================================== */
.dx {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--body);
  overscroll-behavior: contain;
}
.dx::backdrop { background: rgba(0, 0, 20, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dx[open] { display: flex; align-items: center; justify-content: center; }
.dx__panel {
  position: relative; display: flex; flex-direction: column;
  width: min(680px, calc(100% - 32px)); height: min(820px, calc(100dvh - 48px));
  border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(90% 50% at 100% 0%, rgba(23, 61, 237, .35), transparent 60%),
    var(--bg);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 120px -20px rgba(23, 61, 237, .55);
}
@media (max-width: 700px) {
  .dx[open] { align-items: flex-start; }
  .dx__panel {
    width: 100%; height: 100vh; height: var(--vvh, 100dvh); border-radius: 0; border: 0;
    transform: translateY(var(--vvtop, 0px));
  }
}
.dx__top {
  position: relative; flex: none;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 14px max(14px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line);
}
@media (min-width: 701px) { .dx__top { padding: 14px 18px 16px; } }
.dx__row { display: flex; align-items: center; gap: 12px; }
.dx__meta { flex: 1; min-width: 0; text-align: center; }
.dx__title { margin: 0; font: 700 .95rem/1.2 var(--font-display); color: var(--heading); }
.dx__step { margin: 2px 0 0; font-size: .8125rem; color: var(--blue-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx__progress { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.dx__track { flex: 1; height: 8px; border-radius: 999px; background: rgba(143, 163, 255, .14); overflow: hidden; }
.dx__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--lime)); box-shadow: 0 0 12px rgba(197, 255, 0, .55); transform-origin: left; transform: scaleX(0); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.dx__pct { flex: none; min-width: 3.2em; text-align: right; font: 700 .875rem/1 var(--font-display); color: var(--lime); font-variant-numeric: tabular-nums; }

.dx__stage {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: clamp(24px, 5vw, 44px) max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
}
@media (min-width: 701px) { .dx__stage { padding-inline: 44px; } }
.dx-step { display: flex; flex-direction: column; min-height: 100%; }
.dx-step.is-entering-fwd { animation: dxFwd .32s cubic-bezier(.2,.7,.2,1); }
.dx-step.is-entering-back { animation: dxBack .32s cubic-bezier(.2,.7,.2,1); }
@keyframes dxFwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes dxBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

.dx-lead { font-size: 1rem; color: var(--body); margin-bottom: 18px; }
.dx-q { font: 700 clamp(1.4rem, 4.8vw, 1.85rem)/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--heading); margin-bottom: 26px; outline: none; }
.dx-q:focus-visible { outline: none; }
.dx-options { display: grid; gap: 10px; margin-top: auto; }
@media (min-width: 701px) { .dx-options { margin-top: 0; } }
.dx-opt {
  -webkit-appearance: none; appearance: none;
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 60px; padding: 14px 18px; text-align: left;
  border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--bg-2);
  font: 500 1.0625rem/1.3 var(--font-body); color: var(--heading); cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}
.dx-opt:active { transform: scale(.99); }
@media (hover: hover) { .dx-opt:hover { border-color: rgba(197, 255, 0, .55); } }
.dx-opt__dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; }
.dx-opt[aria-pressed="true"] { border-color: var(--lime); background: rgba(197, 255, 0, .09); }
.dx-opt[aria-pressed="true"] .dx-opt__dot { border-color: var(--lime); background: var(--lime); box-shadow: inset 0 0 0 4px var(--bg-2); }
.dx-foot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.dx-next {
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--lime);
  background: transparent; color: var(--lime); font: 600 1rem/1 var(--font-body); cursor: pointer;
}

.dx-form .dx-q { margin-bottom: 10px; }
.dx-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; margin-top: 8px; }
@media (max-width: 560px) { .dx-fields { grid-template-columns: 1fr; } }
.dx-field--wide { grid-column: 1 / -1; }
.dx-label { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; color: var(--heading); }
.dx-optional { font-weight: 400; color: var(--body); }
.dx-input {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; min-height: 52px; padding: 13px 16px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line-strong);
  background: var(--bg-2); color: #fff;
  font: 400 16px/1.4 var(--font-body); /* 16px evita el zoom automático de iOS */
}
textarea.dx-input { resize: vertical; min-height: 96px; }
.dx-input:focus { border-color: var(--lime); outline: none; box-shadow: 0 0 0 3px rgba(197, 255, 0, .2); }
.has-error .dx-input { border-color: var(--danger); }
.dx-error { margin: 6px 0 0; min-height: 0; font-size: .875rem; color: var(--danger); }
.dx-error:empty { display: none; }
.dx-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dx-consent { margin-top: 20px; }
.dx-consent__row { display: flex; gap: 12px; align-items: flex-start; }
.dx-consent input {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 24px; height: 24px; margin: 1px 0 0; border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--bg-2);
  display: grid; place-items: center; cursor: pointer;
}
.dx-consent input:checked { background: var(--lime); border-color: var(--lime); }
.dx-consent input:checked::after { content: ""; width: 7px; height: 12px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.dx-consent input:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.has-error .dx-consent__row input { border-color: var(--danger); }
.dx-consent label { font-size: .9375rem; color: var(--heading); line-height: 1.45; }
.dx-consent a { color: var(--lime); }
.dx-legal { margin: 10px 0 0; font-size: .8125rem; color: #9a9cb0; line-height: 1.5; }
.dx-submit { width: 100%; }
@media (min-width: 701px) { .dx-submit { width: auto; } }

.dx-state { align-items: flex-start; justify-content: center; }
.dx-state__icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 22px; border-radius: 50%; color: var(--ink); background: var(--lime); box-shadow: 0 0 40px -6px rgba(197, 255, 0, .7); }
.dx-state--error .dx-state__icon { background: transparent; color: var(--danger); border: 1.5px solid var(--danger); box-shadow: none; }
.dx-next-step { color: var(--lime); font-weight: 600; }
.dx-note { font-size: .875rem; color: #9a9cb0; }
.dx-state .dx-foot { justify-content: flex-start; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .journey::after { display: none; }
  .journey__dot { background: var(--blue); }
}



/* ==========================================================================
   Diagnóstico: fases finales y resultado
   ========================================================================== */
.dx-fields--single { grid-template-columns: 1fr; }
.dx-foot--sticky {
  position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom, 0px)); z-index: 2;
  margin: 22px -20px calc(-24px - env(safe-area-inset-bottom, 0px));
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(0,0,41,0), var(--bg) 28%);
}
@media (min-width: 701px) { .dx-foot--sticky { margin-inline: -44px; padding-inline: 44px; } }
.kb-open .dx-foot--sticky { padding-bottom: 12px; }
.dx-consent__row--opt { margin-top: 14px; }
.dx-consent__row--opt label { color: var(--body); }
.dx-input::placeholder { color: #6f7390; }

.dx-result { gap: 0; }
.dx-result__top { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.dx-gauge { position: relative; flex: none; width: 128px; height: 128px; }
.dx-gauge__svg { width: 100%; height: 100%; overflow: visible; }
.dx-gauge__track { fill: none; stroke: rgba(143, 163, 255, .16); stroke-width: 10; }
.dx-gauge__arc { fill: none; stroke: var(--lime); stroke-width: 10; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(197, 255, 0, .55)); }
.dx-gauge__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dx-gauge__num { font: 800 2.4rem/1 var(--font-display); color: var(--heading); font-variant-numeric: tabular-nums; }
.dx-gauge__of { font-size: .8125rem; color: var(--body); margin-top: 2px; }
.dx-result__intro { min-width: 0; }
.dx-result__kicker { margin: 0 0 4px; font-size: .8125rem; font-weight: 600; color: var(--blue-text); overflow-wrap: anywhere; }
.dx-level { display: inline-block; margin: 0 0 8px; padding: 5px 12px; border-radius: 999px; background: rgba(197, 255, 0, .12); color: var(--lime); font-size: .8125rem; font-weight: 600; }
.dx-result__title { margin: 0; font-size: clamp(1.2rem, 4.4vw, 1.55rem); overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .dx-result__top { flex-direction: column; align-items: flex-start; gap: 16px; }
}
.dx-h3 { margin: 26px 0 12px; font-size: 1.02rem; color: var(--heading); }
.dx-areas { display: grid; gap: 14px; }
.dx-area__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: .9375rem; color: var(--heading); }
.dx-area__head strong { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.dx-area__bar { height: 8px; border-radius: 999px; background: rgba(143, 163, 255, .14); overflow: hidden; }
.dx-area__fill { display: block; height: 100%; border-radius: inherit; background: var(--blue); transform-origin: left; }
.dx-area.is-weak .dx-area__fill { background: var(--lime); }
.dx-area.is-weak .dx-area__head strong { color: var(--lime); }
.dx-list { display: grid; gap: 10px; }
.dx-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--heading); font-size: .9688rem; }
.dx-list svg { flex: none; color: var(--lime); margin-top: 1px; }
.dx-tips { display: grid; gap: 12px; }
.dx-tips li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.dx-tips__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--lime); color: var(--lime); font: 700 .875rem/1 var(--font-display); }
.dx-tips strong { display: block; margin-bottom: 4px; font: 700 1rem/1.3 var(--font-display); color: var(--heading); }
.dx-tips p { margin: 0; font-size: .9375rem; }
.dx-nextbox { margin-top: 24px; padding: 18px; border-radius: var(--r-md); background: var(--blue); color: #E9ECFF; }
.dx-nextbox strong { display: block; margin-bottom: 4px; font: 700 1.05rem/1.3 var(--font-display); color: #fff; }
.dx-nextbox p { margin: 0; font-size: .9375rem; }
.dx-disclaimer { margin: 16px 0 0; font-size: .8125rem; color: #9a9cb0; }
.dx-foot--result { flex-wrap: wrap; justify-content: flex-start; padding-bottom: 8px; }
.dx-foot--result .btn { gap: 10px; }
@media (max-width: 560px) { .dx-foot--result .btn { width: 100%; } }

/* ==========================================================================
   Experiencia móvil
   ========================================================================== */
html { -webkit-tap-highlight-color: transparent; }
button, .btn, .dx-opt, summary { -webkit-user-select: none; user-select: none; }
.hero { min-height: min(100vh, 980px); }
@supports (height: 100svh) { .hero { min-height: min(100svh, 980px); } }
.hero h1 { margin: 0; font: inherit; color: inherit; }
.hero h1 .eyebrow { display: flex; font-family: var(--font-body); }
.hero h1 .display { display: block; font-family: var(--font-display); }

/* La barra de CTA fija no compite con el teclado, el menú ni el banner de cookies. */
.kb-open .cta-dock, .cookie-open .cta-dock { transform: translateY(110%) !important; }

@media (max-width: 900px) {
  .site-header__ig { display: none; }
  .site-nav__extra { display: grid; gap: 12px; margin-top: 28px; }
  .site-nav__extra .btn { gap: 10px; }
  .logo__img { height: 34px; }
  .site-header__inner { gap: 10px; }
  .site-footer__brand p { max-width: 30em; }
  .site-footer__ig { margin-top: 16px; gap: 8px; }
}
@media (min-width: 901px) { .site-footer__ig { margin-top: 16px; gap: 8px; } }

/* Móviles medianos (iPhone 12–16, 390–430 px) */
@media (max-width: 480px) {
  :root { --gutter: 20px; --section-y: 76px; }
  body { font-size: 1rem; }
  .lede { font-size: 1.0625rem; }
  .hero { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 28px); padding-bottom: 56px; }
  .hero__actions { margin-top: 26px; }
  .hero__visual { max-width: 340px; aspect-ratio: 1 / 1.02; }
  .chips li { font-size: .6875rem; padding: 5px 10px; }
  .problems li, .checks li { gap: 14px; padding: 15px 0; font-size: 1rem; }
  .badge { width: 40px; height: 40px; }
  .center-head { text-align: left; }
  .center-head .eyebrow { justify-content: flex-start; }
  .statement--center, .center-note, .disclaimer { text-align: left; }
  .final { text-align: left; }
  .final .eyebrow { justify-content: flex-start; }
  .final p { margin-inline: 0; }
  .final .btn { width: 100%; }
  .outcomes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .outcomes li { padding: 20px 14px; font-size: .9688rem; }
  .faq summary { font-size: 1rem; min-height: 60px; }
  .site-header__cta { padding-inline: 16px; }
  .dx-opt { min-height: 58px; font-size: 1rem; }
  .dx-q { margin-bottom: 20px; }
}

/* Móviles pequeños (iPhone SE, 320–375 px) */
@media (max-width: 374px) {
  :root { --gutter: 16px; }
  .display { font-size: 2.05rem; }
  .h2 { font-size: 1.7rem; }
  .logo__img { height: 30px; }
  .site-header__cta { min-height: 40px; padding-inline: 12px; font-size: .875rem; }
  .menu-toggle { width: 40px; height: 40px; }
  .chips li:nth-child(n+5) { display: none; }
  .outcomes { grid-template-columns: 1fr; }
  .track li { grid-template-columns: 36px 1fr; padding: 18px; }
  .dx-gauge { width: 112px; height: 112px; }
}

/* Móvil en horizontal: el diagnóstico aprovecha el alto disponible. */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .dx__top { padding-top: 8px; padding-bottom: 10px; }
  .dx__progress { margin-top: 8px; }
  .dx-options { grid-template-columns: 1fr 1fr; margin-top: 0; }
  .dx-lead { display: none; }
}

/* Dispositivos táctiles: sin efectos hover pegados tras tocar. */
@media (hover: none) {
  .dx-opt:active { background: rgba(197, 255, 0, .06); }
  .btn--primary:active { box-shadow: 0 6px 20px -8px rgba(197, 255, 0, .5); }
}

/* Páginas legales */
.legal { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 48px); }
.legal .wrap { max-width: 820px; }
.legal h2 { margin: 36px 0 10px; font-size: 1.25rem; }
.legal h3 { margin: 22px 0 8px; font-size: 1.05rem; }
.legal a { color: var(--lime); }
.legal ul { list-style: disc; padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal__updated { color: var(--blue-text); font-size: .9375rem; }
.legal__todo { padding: 14px 18px; border-radius: var(--r-sm); border: 1px dashed var(--lime); color: var(--heading); }
.fill { background: rgba(197, 255, 0, .14); color: var(--lime); padding: 0 4px; border-radius: 4px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.legal table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .875rem; }
.legal th, .legal td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal th { color: var(--heading); background: var(--bg-2); }
.legal-header .site-header__inner { justify-content: space-between; }
