/* =========================================================
   Campañas Publicitarias · estilos v2
   Colores sacados del logo. Mobile-first.
   ========================================================= */

:root {
  /* Marca (logo) */
  --blue: #0366d0;
  --blue-l: #4ea3ff;      /* azul claro para texto sobre fondo oscuro */
  --yellow: #f7b500;
  --yellow-d: #d99d00;
  --ink: #0b2f4f;         /* azul marino del texto del logo */
  --navy-950: #050f1f;
  --navy-900: #081b34;
  --navy-800: #0c2747;
  --navy-700: #12365f;

  /* Tema claro */
  --bg: #ffffff;
  --bg-tint: #f1f6fc;
  --surface: #ffffff;
  --text: #0b2f4f;
  --muted: #4d6380;
  --line: #d9e4f0;
  --head: #0b2f4f;
  --shadow: 0 14px 40px rgba(8, 27, 52, .12);

  --radius: 22px;
  --gutter: 16px;
  --topbar: 64px;
  --font: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061326; --bg-tint: #0a1b33; --surface: #0e2341; --text: #e6eef8;
    --muted: #a2b5cd; --line: #1d3557; --head: #eef4fb; --shadow: 0 14px 40px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  --bg: #061326; --bg-tint: #0a1b33; --surface: #0e2341; --text: #e6eef8;
  --muted: #a2b5cd; --line: #1d3557; --head: #eef4fb; --shadow: 0 14px 40px rgba(0,0,0,.4);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Imanes de scroll: cada mensaje se queda quieto tras un deslizamiento */
html.snap { scroll-snap-type: y proximity; }
body { margin: 0; font: 400 17px/1.5 var(--font); color: var(--text); background: var(--bg); overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.05; letter-spacing: -.02em; color: var(--head); }
h2 { font-size: clamp(2.2rem, 8vw, 3.6rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 800; }
p { margin: 0 0 1em; }
svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.wa { fill: currentColor; stroke: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }
.section { padding: 96px 0; background: var(--bg); scroll-margin-top: var(--topbar); }
.section--tint { background: var(--bg-tint); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--blue); margin-bottom: 12px; }
.eyebrow--light { color: var(--yellow); }
.sub { color: var(--muted); font-size: 1.05rem; margin: 0; }
.fine { color: var(--muted); font-size: .88rem; margin: 0; text-align: center; }

/* Interruptor oculto para la vibración en iPhone */
.haptic-ios { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font: 800 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: scale(.96); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn--accent { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 26px rgba(247,181,0,.35); }
.btn--accent:hover { background: #ffc21f; }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--line { color: var(--head); border-color: currentColor; }
.btn--line:hover { background: var(--head); color: var(--bg); }
.btn--block { width: 100%; }
.btn--xl { min-height: 60px; font-size: 1.1rem; padding: 0 30px; }

/* ---------- Cabecera ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--topbar); color: #fff;
  background: rgba(5, 15, 31, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: transform .35s cubic-bezier(.2,.8,.2,1); will-change: transform; }
/* Se esconde al bajar y vuelve al subir */
.topbar.is-hidden { transform: translateY(-110%); }
.topbar__in { height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.nav { display: none; }
@media (max-width: 370px) { .brand img { height: 28px; } }
@media (min-width: 960px) {
  .nav { display: flex; gap: 2px; margin-left: 24px; }
  .nav a { color: #fff; text-decoration: none; padding: 8px 12px; font-size: .95rem; border-radius: 8px; }
  .nav a:hover { background: rgba(255,255,255,.08); }
  .brand img { height: 40px; }
}

/* "Habla con Pedro" arriba a la derecha */
.talk { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px;
  color: #fff; text-decoration: none; background: linear-gradient(90deg, var(--navy-700), var(--blue)); box-shadow: 0 6px 18px rgba(3,102,208,.35);
  -webkit-tap-highlight-color: transparent; transition: transform .15s; }
.talk:active { transform: scale(.96); }
.talk__av { width: 36px; height: 36px; border-radius: 50%; background: #fff; padding: 4px; object-fit: contain; flex: none; }
.talk__txt { line-height: 1.15; white-space: nowrap; }
.talk__txt b { display: block; font-size: .86rem; }
.talk__txt small { color: var(--yellow); font-size: .7rem; }
@media (max-width: 360px) { .talk__txt small { display: none; } }

/* Botón de menú flotante, junto al pulgar */
.fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 70; width: 60px; height: 60px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer; background: var(--yellow); color: var(--ink);
  box-shadow: 0 12px 30px rgba(5,15,31,.45), 0 0 0 4px rgba(255,255,255,.12); -webkit-tap-highlight-color: transparent; transition: transform .2s; }
.fab:active { transform: scale(.92); }
.fab__icon { position: absolute; inset: 0; display: grid; place-content: center; gap: 5px; }
.fab__icon i { display: block; width: 22px; height: 2.6px; border-radius: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
.fab[aria-expanded="true"] { background: #fff; }
.fab[aria-expanded="true"] .fab__icon i:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.fab[aria-expanded="true"] .fab__icon i:nth-child(2) { opacity: 0; }
.fab[aria-expanded="true"] .fab__icon i:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }
/* Ondas de agua */
.fab__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--yellow); opacity: 0; pointer-events: none; }
.fab.wave .fab__ring { animation: wave 1.4s cubic-bezier(.2,.6,.3,1) forwards; }
.fab.wave .fab__ring--2 { animation-delay: .22s; }
.fab.wave .fab__ring--3 { animation-delay: .44s; }
.fab.wave--blue .fab__ring { border-color: var(--blue-l); }
@keyframes wave { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.8); opacity: 0; } }

/* Menú que sube desde abajo */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(5,15,31,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.sheet-backdrop.open { opacity: 1; }
.sheet { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 65; max-width: 460px; margin-left: auto;
  background: var(--navy-950); color: #fff; border-radius: 26px; padding: 10px 14px calc(92px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; box-shadow: 0 -10px 50px rgba(0,0,0,.5);
  transform: translateY(110%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.sheet.open { transform: none; }
.sheet__grip { width: 44px; height: 5px; border-radius: 4px; background: rgba(255,255,255,.25); margin: 4px auto 10px; }
.sheet a { color: #fff; text-decoration: none; font-size: 1.25rem; font-weight: 700; padding: 12px 10px; border-radius: 12px; }
.sheet a:active, .sheet a:hover { background: rgba(255,255,255,.07); }
.sheet__theme { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 14px 10px; border: 0; border-top: 1px solid rgba(255,255,255,.1);
  background: none; color: #cddbee; font: 600 1rem var(--font); cursor: pointer; text-align: left; }
.sheet__theme svg { width: 22px; height: 22px; }
.sheet__theme-l { flex: 1; }
.sheet__theme .moon { display: none; }
.toggle { width: 46px; height: 26px; border-radius: 26px; background: rgba(255,255,255,.2); position: relative; transition: background .25s; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s; }
:root[data-theme="dark"] .sheet__theme .sun { display: none; }
:root[data-theme="dark"] .sheet__theme .moon { display: block; }
:root[data-theme="dark"] .toggle { background: var(--blue); }
:root[data-theme="dark"] .toggle i { transform: translateX(20px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sheet__theme .sun { display: none; }
  :root:not([data-theme="light"]) .sheet__theme .moon { display: block; }
  :root:not([data-theme="light"]) .toggle { background: var(--blue); }
  :root:not([data-theme="light"]) .toggle i { transform: translateX(20px); }
}

/* =========================================================
   MOTOR DE SECCIONES FIJADAS (portada, medición, planes)
   Sin JS o con movimiento reducido: todo se ve en orden normal.
   Con JS (.pin-on): la etapa se queda fija y cambia con el scroll.
   ========================================================= */
[data-pin] { position: relative; }
.pin-on > .pin__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.snap-mark { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; scroll-snap-align: start; scroll-snap-stop: always; }

/* Indicador de progreso */
.progress { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.progress li { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.22); overflow: hidden; position: relative; }
.progress li::after { content: ""; position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.progress--dark li { background: var(--line); }
.progress--dark li::after { background: var(--blue); }
[data-active="0"] .progress li:nth-child(-n+1)::after,
[data-active="1"] .progress li:nth-child(-n+2)::after,
[data-active="2"] .progress li:nth-child(-n+3)::after,
[data-active="3"] .progress li:nth-child(-n+4)::after { transform: scaleX(1); }

/* ---------- PORTADA ---------- */
.hero { background: var(--navy-900); color: #fff; }
.hero__stage { position: relative; min-height: 100vh; min-height: 100svh; }
.hero__bg { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(120% 80% at 80% 0%, #123f7a 0%, var(--navy-900) 50%, var(--navy-950) 100%); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.hero__video.ready { opacity: .45; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); transition: transform 1.2s cubic-bezier(.2,.8,.2,1), opacity 1.2s; }
.orb--blue { width: 80vmax; height: 80vmax; background: var(--blue); opacity: .45; left: -30vmax; top: -40vmax; }
.orb--yellow { width: 50vmax; height: 50vmax; background: var(--yellow); opacity: .18; right: -25vmax; bottom: -20vmax; }
.hero__grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 25%, transparent 70%); mask-image: radial-gradient(ellipse at 60% 30%, #000 25%, transparent 70%); }
.hero__mark { position: absolute; width: min(70vw, 340px); height: auto; right: -6vw; top: calc(var(--topbar) + 4vh);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.4)); transition: transform 1.1s cubic-bezier(.2,.8,.2,1), opacity .8s; }
/* El fondo cambia con cada mensaje */
[data-active="1"] .orb--blue { transform: translate(30vw, 20vh); }
[data-active="1"] .orb--yellow { transform: translate(-20vw, -30vh); opacity: .3; }
[data-active="1"] .hero__mark { transform: rotate(-12deg) scale(.85) translateX(-10vw); }
[data-active="2"] .orb--blue { transform: translate(50vw, 50vh) scale(.8); }
[data-active="2"] .orb--yellow { transform: translate(-50vw, -10vh) scale(1.3); opacity: .25; }
[data-active="2"] .hero__mark { transform: rotate(8deg) scale(1.1) translateY(4vh); }
[data-active="3"] .orb--blue { transform: translate(10vw, 60vh); }
[data-active="3"] .orb--yellow { transform: translate(-30vw, -60vh) scale(1.5); opacity: .35; }
[data-active="3"] .hero__mark { transform: rotate(0) scale(.7) translate(10vw, -4vh); opacity: .6; }

.hero__slides { position: relative; }
.slide { padding: calc(var(--topbar) + 32px) var(--gutter) 48px; max-width: 1180px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 12vw, 5.6rem); font-weight: 900; max-width: 11ch; }
.hero h2 { color: #fff; font-size: clamp(2.8rem, 12vw, 5.6rem); font-weight: 900; }
.hl { color: var(--yellow); }
.slide__lead { font-size: clamp(1.15rem, 3.4vw, 1.5rem); color: #cddbee; max-width: 26ch; font-weight: 300; }
.slide__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.slide__ctas .btn { flex: 1 1 150px; }
@media (min-width: 640px) { .slide__ctas .btn { flex: 0 0 auto; } }
.seal { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--yellow); color: var(--ink); margin-bottom: 22px; box-shadow: 0 14px 30px rgba(247,181,0,.35); }
.seal svg { width: 32px; height: 32px; stroke-width: 2.2; }

.hero .progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; max-width: 1148px; margin: 0 auto; }
.hint { position: absolute; left: 0; right: 0; bottom: 40px; text-align: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity .4s; }
.hint__mouse { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; position: relative; }
.hint__mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s infinite; }
@keyframes wheel { to { transform: translateY(12px); opacity: 0; } }
.hero__stage:not([data-active="0"]) .hint { opacity: 0; }
@media (max-width: 899px) { .hint { display: none !important; } }
.js:not(.pin-ready) .hint, .hero:not(.pin-on) .hint, .hero:not(.pin-on) .progress { display: none; }

/* Con el motor activo: los mensajes se superponen y se cruzan */
.pin-on .hero__slides { position: absolute; inset: 0; }
.pin-on .slide { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 92px;
  opacity: 0; visibility: hidden; transform: translateY(40px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1), visibility 0s .6s; }
.pin-on .slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease .1s, transform .6s cubic-bezier(.2,.8,.2,1) .1s, visibility 0s; }
.pin-on .slide.is-past { transform: translateY(-40px); }
@media (min-width: 900px) {
  .pin-on .slide { bottom: auto; top: 50%; transform: translateY(-40%); padding: 0 var(--gutter); }
  .pin-on .slide.is-active { transform: translateY(-50%); }
  .pin-on .slide.is-past { transform: translateY(-60%); }
  .hero__mark { width: 420px; right: 8vw; top: 50%; margin-top: -210px; }
  .slide > * { max-width: 640px; }
  .hero h2 { font-size: 5rem; }
  [data-active="1"] .hero__mark { transform: rotate(-12deg) scale(.85); }
  [data-active="3"] .hero__mark { transform: scale(.8) translate(4vw, 0); opacity: .7; }
}

/* ---------- PLANES (horizontal en móvil) ---------- */
.plans { scroll-margin-top: 0; }
.plans--light { background: var(--bg); }
.plans--dark { background: var(--navy-900); color: #e6eef8; --head: #fff; --muted: #a9bcd4; --line: rgba(255,255,255,.12); --surface: #0f2a4d; }
.hpin__stage { padding: calc(var(--topbar) + 40px) 0 56px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.hpin__head h2 { margin-bottom: 6px; }
.hpin__track { display: grid; gap: 16px; padding: 0 var(--gutter); }
.hpin__foot { display: grid; gap: 12px; justify-items: center; }
.dots { display: none; gap: 8px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 10px; border: 0; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.dots button.on { width: 28px; background: var(--yellow); }

.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan h3 { font-size: 1.6rem; margin-bottom: 2px; }
.plan__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(78,163,255,.14); color: var(--blue-l); margin-bottom: 12px; }
.plan__icon svg { width: 24px; height: 24px; }
.price { display: flex; align-items: flex-start; gap: 4px; margin: 6px 0 2px; color: var(--head); }
.price b { font-size: 4rem; font-weight: 900; line-height: .9; letter-spacing: -.03em; }
.price span { font-size: 1.6rem; font-weight: 800; line-height: 1; display: flex; flex-direction: column; }
.price small { font-size: .9rem; font-weight: 700; }
.price .from { align-self: flex-end; font-size: .95rem; font-weight: 700; color: var(--muted); margin-right: 4px; }
.price-plus { margin: 4px 0 0; font-weight: 800; color: var(--yellow-d); font-size: 1.1rem; }
.plans--dark .price-plus { color: var(--yellow); }
.ticks { list-style: none; margin: 16px 0 20px; padding: 0; flex: 1; }
.ticks li { position: relative; padding: 7px 0 7px 32px; border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/13px no-repeat; }
.plans--dark .btn--line { color: #fff; }
.plans--dark .btn--line:hover { background: #fff; color: var(--ink); }

.plan--featured { background: linear-gradient(160deg, var(--blue), #024a99); color: #fff; border: 0; --head: #fff; --line: rgba(255,255,255,.18); }
.plan--featured .ticks li::before { background-color: var(--yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2f4f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); }
.badge { position: absolute; top: -13px; right: 20px; background: var(--yellow); color: var(--ink); font-weight: 900; font-size: .8rem; padding: 6px 12px; border-radius: 8px; letter-spacing: .02em; }

/* Móvil con motor: carrusel que avanza al deslizar hacia arriba */
.pin-on .hpin__viewport { overflow: visible; padding-top: 14px; touch-action: pan-y; }
.pin-on .hpin__track.settling { transition: transform .42s cubic-bezier(.2,.8,.2,1); }
.pin-on .hpin__track.settling .plan { transition: transform .42s, opacity .42s; }
.pin-on .hpin__track { display: flex; gap: 14px; padding: 0 var(--side, 8vw); width: max-content; will-change: transform; }
.pin-on .plan { width: var(--card, 84vw); flex: none; transform-origin: center; will-change: transform, opacity; }
.pin-on .dots { display: flex; }
.pin-on .ticks li { padding-top: 6px; padding-bottom: 6px; }
@media (max-height: 700px) {
  .pin-on .hpin__stage { padding-top: calc(var(--topbar) + 14px); padding-bottom: 20px; gap: 12px; }
  .pin-on .hpin__head h2 { font-size: 2rem; }
  .pin-on .price b { font-size: 3.2rem; }
  .pin-on .plan { padding: 20px 18px 16px; }
  .pin-on .ticks { margin: 10px 0 14px; font-size: .95rem; }
  .pin-on .ticks li { padding-top: 4px; padding-bottom: 4px; }
  .pin-on .plan__icon { display: none; }
}

/* Escritorio: los tres planes en fila */
@media (min-width: 900px) {
  .hpin__track { grid-template-columns: repeat(3, 1fr); max-width: 1180px; margin: 0 auto; gap: 22px; align-items: stretch; }
  .hpin__stage { padding: 110px 0 96px; }
  .plan { padding: 32px 28px 26px; transition: transform .3s, box-shadow .3s; }
  .plan:hover { transform: translateY(-6px); }
  .plan--featured { transform: scale(1.04); }
  .plan--featured:hover { transform: scale(1.04) translateY(-6px); }
}

/* ---------- CÓMO SE MIDE ---------- */
.measure { background: var(--bg-tint); }
.measure__stage { padding: calc(var(--topbar) + 28px) 0 40px; }
.measure__grid { display: grid; gap: 28px; align-items: center; }
.pin-on .measure__grid { gap: 18px; align-content: center; }
.msteps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.mstep { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; }
.mstep h3 { margin: 0; font-size: 1.5rem; }
.mstep svg { width: 30px; height: 30px; color: var(--blue); }
.mstep__n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--yellow); color: var(--ink); }

/* Con motor: solo se ve el paso activo, grande */
.pin-on .measure__stage { display: flex; align-items: center; padding-bottom: 24px; }
.pin-on .msteps { position: relative; height: 104px; margin-bottom: 10px; }
.pin-on .mstep { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(26px); transition: opacity .45s, transform .55s cubic-bezier(.2,.8,.2,1); grid-template-columns: auto 1fr; grid-template-rows: auto auto; }
.pin-on .mstep.is-active { opacity: 1; transform: none; }
.pin-on .mstep.is-past { transform: translateY(-26px); }
.pin-on .mstep svg { display: none; }
.pin-on .mstep__n { width: 52px; height: 52px; font-size: 1.4rem; grid-row: span 2; }
.pin-on .mstep h3 { font-size: clamp(1.9rem, 8vw, 3rem); }
.measure .progress { max-width: 320px; }
.measure:not(.pin-on) .progress { display: none; }

.phone { position: relative; width: 230px; height: 400px; margin: 0 auto; border-radius: 36px; background: var(--navy-950); border: 7px solid #1c3150; box-shadow: 0 30px 70px rgba(8,27,52,.35); color: #fff; overflow: hidden; }
.phone__notch { position: absolute; top: 8px; left: 50%; width: 64px; height: 8px; margin-left: -32px; border-radius: 6px; background: #1c3150; z-index: 2; }
.scr { position: absolute; inset: 26px 14px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  opacity: 0; transform: scale(.94); transition: opacity .45s, transform .55s cubic-bezier(.2,.8,.2,1); }
.scr.is-active { opacity: 1; transform: none; }
.measure:not(.pin-on) .scr { position: static; opacity: 1; transform: none; margin-bottom: 18px; }
.measure:not(.pin-on) .phone { height: auto; padding: 28px 14px; }
.scr__h { font-weight: 800; margin-bottom: 12px; }
.scr__h small { font-weight: 400; color: #9fb3d1; font-size: .7rem; }
.scr__code { margin-top: 10px; color: var(--yellow); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.ad { width: 100%; background: #fff; color: var(--ink); border-radius: 16px; padding: 10px; text-align: left; }
.ad__img { display: grid; place-items: center; height: 120px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), #6fb6ff); margin-bottom: 10px; }
.ad__img img { width: 70px; filter: brightness(0) invert(1); }
.ad b { display: block; }
.ad small { color: #6b7c96; font-size: .72rem; }
.ad__btn { display: block; margin-top: 10px; background: var(--yellow); border-radius: 999px; padding: 8px; text-align: center; font-weight: 800; font-size: .85rem; }
.qr { width: 140px; height: 140px; background: #fff; border-radius: 14px; padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qr i { background: var(--ink); border-radius: 3px; }
.qr i:nth-child(3n) { background: transparent; border: 3px solid var(--ink); }
.qr i:nth-child(5n) { background: transparent; }
.scan { width: 170px; height: 170px; border: 3px solid var(--yellow); border-radius: 22px; position: relative; display: grid; place-content: center; overflow: hidden; }
.scan b { color: #5ff0a0; font-size: 1.5rem; }
.scan small { color: #b8c8de; font-size: .75rem; }
.scan__line { position: absolute; left: 10px; right: 10px; height: 3px; top: 12%; background: var(--yellow); box-shadow: 0 0 16px var(--yellow); animation: scan 2s ease-in-out infinite alternate; }
@keyframes scan { to { top: 86%; } }
.report { width: 100%; margin: 0; display: grid; gap: 8px; }
.report div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.07); }
.report dt { font-size: .8rem; color: #b8c8de; text-align: left; }
.report dd { white-space: nowrap; }
.report dd { margin: 0; font-weight: 900; font-size: 1.2rem; }
.report__hl { background: var(--yellow) !important; color: var(--ink); }
.report__hl dt { color: var(--ink) !important; font-weight: 700; }
@media (max-height: 700px) { .phone { width: 200px; height: 330px; } .pin-on .msteps { height: 100px; } .ad__img { height: 80px; } }
@media (min-width: 900px) {
  .measure__grid { grid-template-columns: 1.1fr 1fr; gap: 60px; }
  .phone { width: 270px; height: 480px; }
  .pin-on .msteps { height: 200px; }
  .pin-on .mstep h3 { font-size: 3.6rem; }
}

/* ---------- CASOS ---------- */
.cases { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 800px) { .cases { grid-template-columns: 1fr 1fr; } }
.case { display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s; }
a.case:hover { transform: translateY(-6px); }
.case__img { height: 240px; position: relative; display: grid; place-items: center; overflow: hidden; }
.case__img--lemon { background: linear-gradient(135deg, var(--yellow), #ffd966); }
.case__img--fleet { background: linear-gradient(135deg, var(--blue), #5aa9ff); }
.case__txt { padding: 22px 22px 24px; }
.case__txt h3 { font-size: 1.6rem; margin-bottom: 4px; }
.case__txt p { color: var(--muted); margin: 0 0 6px; font-size: 1.1rem; }
.case__who { font-size: .8rem !important; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--blue) !important; }
.link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 800; color: var(--head); border-bottom: 2px solid var(--yellow); }
.link svg { width: 16px; height: 16px; }
.mini-phone { width: 130px; height: 210px; border-radius: 22px; background: var(--navy-950); border: 5px solid #1c3150; padding: 18px 10px 10px; color: #fff; transform: rotate(-6deg) translateX(-30px); position: relative; }
.mini-phone p { margin: 0 0 8px; font-weight: 800; font-size: .8rem; }
.mini-phone span { display: block; height: 30px; border-radius: 8px; background: rgba(255,255,255,.08); margin-bottom: 6px; position: relative; }
.mini-phone span::before { content: ""; position: absolute; left: 6px; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle, #ffcf6b 0 40%, #e0573b 41% 60%, #f4c27a 61%); }
.mini-phone em { position: absolute; left: 10px; right: 10px; bottom: 10px; font-style: normal; text-align: center; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 5px; font-size: .65rem; font-weight: 900; }
.mini-phone em.red { background: #ff6b6b; color: #fff; }
.mini-phone--fleet b { display: block; text-align: center; margin-top: 40px; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.ticket { position: absolute; right: 18%; bottom: 22px; width: 110px; background: #fff; color: var(--ink); border-radius: 10px; padding: 10px; transform: rotate(6deg); box-shadow: 0 16px 30px rgba(0,0,0,.2); font-size: .75rem; }
.ticket small { display: block; letter-spacing: .14em; font-weight: 900; color: #6b7c96; font-size: .6rem; }
.ticket b { display: block; font-size: 1rem; }
.ticket i { display: inline-block; margin-top: 6px; font-style: normal; background: #fff3d6; color: #b07c00; border-radius: 6px; padding: 2px 6px; font-weight: 800; font-size: .62rem; }
.heat { position: absolute; right: 16%; bottom: 26px; width: 110px; padding: 8px; border-radius: 10px; background: #fff; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; transform: rotate(5deg); box-shadow: 0 16px 30px rgba(0,0,0,.2); }
.heat i { aspect-ratio: 1; border-radius: 4px; background: rgba(247, 181, 0, var(--o)); }

/* ---------- PREGUNTAS ---------- */
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 20px; font-weight: 800; font-size: 1.15rem; color: var(--head); position: relative; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: 1.05rem; }

/* ---------- CONTACTO ---------- */
.contact { background: radial-gradient(120% 90% at 50% 0%, #123f7a, var(--navy-900) 60%); color: #fff; text-align: center; }
.contact h2 { color: #fff; font-size: clamp(3rem, 14vw, 6rem); font-weight: 900; }
.contact p { color: #cddbee; font-size: 1.2rem; }
.contact__in { display: flex; flex-direction: column; align-items: center; }
.contact__mark { width: 96px; margin-bottom: 20px; }
.contact__btns { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; margin-top: 10px; }
.contact__mail { margin-top: 18px; font-size: .95rem !important; color: #9fb3d1 !important; word-break: break-all; }
@media (min-width: 700px) { .contact__btns { flex-direction: row; max-width: none; justify-content: center; } }

/* ---------- PIE ---------- */
.footer { background: var(--navy-950); color: #cddbee; padding: 56px 0 120px; }
.footer__grid { display: grid; gap: 26px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer img { height: 44px; width: auto; margin-bottom: 12px; }
.footer nav a { display: block; color: #cddbee; text-decoration: none; padding: 5px 0; }
.footer nav a:hover { color: #fff; text-decoration: underline; }
.footer__copy { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #8ea3be; }

/* ---------- Aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Páginas legales ---------- */
.legal { padding: calc(var(--topbar) + 48px) 0 80px; }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal .back { display: inline-block; margin-bottom: 22px; font-weight: 800; color: var(--blue); text-decoration: none; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Dejar sitio al botón flotante en móvil */
@media (max-width: 899px) {
  .hero .progress { right: 92px; }
  .pin-on .hpin__foot { justify-items: start; padding-right: 92px; }
  .pin-on .hpin__foot .fine { text-align: left; }
  .measure .progress { margin-right: 80px; }
}
