/* CeroGlosa · Landing
   Mismo sistema visual que el template del front (src/index.css):
   paleta del logo, Outfit, paneles de vidrio, tarjetas de cuenta y movimiento con resorte. */

:root {
  --ink: #062a30;      /* azul petróleo del logo */
  --pine: #097f57;     /* verde del logo (un punto más oscuro para AA) */
  --mint: #19e28c;     /* menta del logo */
  --ember: #c9401a;    /* alertas */
  --paper: #f3f6f4;
  --muted: #5f6f6c;
  --line: #dde6e2;
  --white: #ffffff;

  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-soft: 0 1px 2px rgb(6 42 48 / .05), 0 8px 24px -12px rgb(6 42 48 / .14);
  --shadow-lift: 0 2px 4px rgb(6 42 48 / .07), 0 24px 48px -16px rgb(6 42 48 / .3);
  --spring: cubic-bezier(.16, 1, .3, 1);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #eef3f1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Navegadores sin overflow: clip (iOS Safari < 16 y algunos navegadores integrados) */
/* (solo en html: si el body también lo tuviera, el encabezado dejaría de quedarse fijo) */
@supports not (overflow: clip) { html { overflow-x: hidden; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; }
.tabular { font-variant-numeric: tabular-nums; }
.text-ember { color: var(--ember); }
.text-pine { color: var(--pine); }

.container {
  position: relative;
  width: 100%; max-width: 1280px; margin-inline: auto;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
@media (min-width: 768px) { .container { padding-left: max(32px, var(--gutter-l)); padding-right: max(32px, var(--gutter-r)); } }
.narrow { max-width: 880px; }

/* ── Fondo vivo: manchas de color que se desplazan y luz que sigue al cursor ── */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.bg-blobs span:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: #c9f3dd; animation: drift 22s ease-in-out infinite; }
.bg-blobs span:nth-child(2) { width: 40vw; height: 40vw; right: -14vw; top: 20vh; background: #cfe5e9; animation: drift 26s ease-in-out -6s infinite reverse; }
.bg-blobs span:nth-child(3) { width: 34vw; height: 34vw; left: 30vw; bottom: -18vw; background: #dff3ea; animation: drift 30s ease-in-out -12s infinite; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(6vw, 4vh) scale(1.08); } 66% { transform: translate(-4vw, 6vh) scale(.95); } }
.cursor-light {
  position: fixed; z-index: 0; width: 520px; height: 520px; left: 0; top: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgb(25 226 140 / .16), transparent 62%);
  translate: -50% -50%; opacity: 0; transition: opacity .5s;
}

/* ── Primitivas ─────────────────────────────────────────── */
.glass {
  border-radius: 28px;
  background: rgb(255 255 255 / .6);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgb(255 255 255 / .75);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pine); margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgb(255 255 255 / .75); box-shadow: inset 0 0 0 1px rgb(6 42 48 / .06); font-size: 13px;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint); animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; overflow: hidden;
  transition: transform .45s var(--spring), background-color .2s, box-shadow .45s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.button::after { /* brillo que cruza al pasar el mouse */
  content: ""; position: absolute; inset: 0; translate: -120% 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%);
  transition: translate .7s var(--spring);
}
.button:hover { box-shadow: var(--shadow-lift); }
.button:hover::after { translate: 120% 0; }
.button:active { scale: .97; }
.button:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.button .arrow { display: inline-block; transition: transform .45s var(--spring); }
.button:hover .arrow { transform: translate(3px, -3px); }
.button-dark { background: var(--ink); color: var(--white); }
.button-ghost { background: rgb(255 255 255 / .8); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(6 42 48 / .08); }
.button-mint { background: var(--mint); color: var(--ink); }
.button-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.button-lg { min-height: 56px; padding: 0 26px; font-size: 16px; }

/* ── Barra de progreso, WhatsApp y barra fija en celular ── */
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--pine), var(--mint)); transform: scaleX(0); transform-origin: left; }

.whatsapp-float {
  position: fixed; z-index: 50; right: max(22px, var(--gutter-r)); bottom: max(22px, env(safe-area-inset-bottom, 0px));
  display: none; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: var(--ink); color: var(--white); text-decoration: none; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lift);
}
.whatsapp-float:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.wa-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mint); color: var(--ink); }
.wa-icon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgb(25 226 140 / .6); animation: halo 2.4s ease-out infinite; }
@keyframes halo { to { box-shadow: 0 0 0 14px rgb(25 226 140 / 0); } }
/* En celular solo el icono (círculo de 52 px); en escritorio, con el texto */
@media (max-width: 767px) {
  .whatsapp-float { display: inline-flex; padding: 6px; right: max(16px, var(--gutter-r)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
  .whatsapp-float .wa-label { display: none; }
}
@media (min-width: 768px) { .whatsapp-float { display: inline-flex; } }

/* ── Encabezado flotante que se compacta con el scroll ── */
.site-header { position: sticky; top: max(12px, env(safe-area-inset-top, 0px)); z-index: 40; padding-left: var(--gutter-l); padding-right: var(--gutter-r); margin-top: 12px; }
.header-bar {
  max-width: 1216px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: rgb(255 255 255 / .6); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: padding .5s var(--spring), max-width .5s var(--spring), box-shadow .5s, background-color .5s;
}
.site-header.is-compact .header-bar { max-width: 1060px; padding: 6px 6px 6px 16px; background: rgb(255 255 255 / .82); box-shadow: var(--shadow-lift), inset 0 0 0 1px rgb(255 255 255 / .8); }
.brand img { height: 32px; width: auto; transition: height .5s var(--spring); }
.site-header.is-compact .brand img { height: 28px; }
.nav { position: relative; display: none; gap: 2px; }
.nav a { position: relative; z-index: 1; padding: 9px 14px; border-radius: 999px; font-size: 14px; text-decoration: none; color: rgb(6 42 48 / .75); transition: color .25s; }
.nav a.on-pill { color: var(--white); } /* blanco solo donde está la píldora oscura */
.nav a:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.nav-pill { position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px; background: var(--ink); opacity: 0; transition: transform .55s var(--spring), width .55s var(--spring), opacity .25s; }
@media (min-width: 980px) { .nav { display: flex; } }
@media (max-width: 440px) { .header-bar .button-sm { display: none; } }

/* ── 1. Hero ───────────────────────────────────────────── */
.hero { display: grid; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
@media (min-width: 1024px) { .hero { grid-template-columns: 1.08fr 1fr; padding-top: 84px; min-height: min(780px, calc(100vh - 80px)); } }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.02; }
h1 .line { display: block; }
h1 .accent { color: var(--pine); }
.marker { position: relative; white-space: nowrap; }
.marker::before { /* subrayado menta que se dibuja */
  content: ""; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: .08em; height: .32em; border-radius: 6px;
  background: var(--mint); transform: scaleX(0); transform-origin: left; animation: mark .9s var(--spring) 1.1s forwards;
}
@keyframes mark { to { transform: scaleX(1); } }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); max-width: 40ch; }
.lead strong { color: var(--ink); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgb(9 127 87 / .12); color: var(--pine); font-style: normal; font-size: 11px; font-weight: 700; }

/* Tarjeta en vivo */
.hero-visual { position: relative; perspective: 1400px; }
.live-card { position: relative; z-index: 2; max-width: 460px; margin-inline: auto; padding: 22px; transform-style: preserve-3d; transition: transform .6s var(--spring); }
.lc-top { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.lc-actions { display: inline-flex; align-items: center; gap: 6px; }
.lc-tag { padding: 2px 8px; border-radius: 999px; background: rgb(6 42 48 / .06); }
.lc-pause { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgb(6 42 48 / .06); color: var(--ink); fill: currentColor; transition: background-color .2s; }
.lc-pause:hover { background: rgb(6 42 48 / .12); }
.lc-pause:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.lc-pause .i-play { display: none; }
.lc-pause[aria-pressed="true"] .i-pause { display: none; }
.lc-pause[aria-pressed="true"] .i-play { display: block; }
.lc-stepper { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; padding: 4px; border-radius: 999px; background: rgb(6 42 48 / .05); font-size: 13px; text-align: center; }
.lc-stepper span[data-s] { position: relative; z-index: 1; padding: 8px 0; color: var(--muted); transition: color .4s; }
.lc-stepper span.is-on { color: var(--white); }
.lc-indicator { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: var(--ink); transition: transform .7s var(--spring), background-color .5s; }
.live-card[data-step="0"] .lc-indicator { background: var(--ink); }
.live-card[data-step="1"] .lc-indicator { transform: translateX(100%); background: var(--ember); }
.live-card[data-step="2"] .lc-indicator { transform: translateX(200%); background: var(--pine); }
.lc-risk { margin-top: 20px; }
.lc-risk > span { font-size: 12px; color: var(--muted); }
.lc-risk strong { display: block; margin-top: 2px; font-size: clamp(34px, 4vw, 44px); font-weight: 500; letter-spacing: -.02em; transition: color .5s; }
.live-card[data-step="2"] .lc-risk strong { color: var(--pine); }
.lc-meter { height: 8px; margin-top: 10px; border-radius: 99px; background: rgb(6 42 48 / .07); overflow: hidden; }
.lc-meter i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ember), #e8733f); transition: width 1s var(--spring), background .6s; }
.live-card[data-step="2"] .lc-meter i { background: var(--pine); }
.lc-findings { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.lc-findings li {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 10px 12px 10px 38px; border-radius: 16px;
  position: relative; background: rgb(201 64 26 / .08); font-size: 13px; transition: background-color .5s, opacity .5s, transform .6s var(--spring);
}
.lc-findings li::before { content: "!"; position: absolute; left: 10px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ember); color: var(--white); font-size: 12px; font-weight: 700; transition: background-color .4s; }
.lc-findings b { grid-column: 1 / -1; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ember); transition: color .4s; }
.lc-findings span { grid-column: 1 / -1; color: var(--ink); }
.lc-findings li.is-fixed { background: rgb(9 127 87 / .09); transform: translateX(6px); }
.lc-findings li.is-fixed::before { content: "✓"; background: var(--pine); }
.lc-findings li.is-fixed b { color: var(--pine); }
.lc-findings li.is-fixed span { text-decoration: line-through; text-decoration-color: rgb(9 127 87 / .5); color: var(--muted); }
.lc-status { margin-top: 16px; padding: 10px 14px; border-radius: 14px; background: var(--ink); color: var(--white); font-size: 14px; text-align: center; transition: background-color .5s, color .5s; }
.live-card[data-step="2"] .lc-status { background: var(--mint); color: var(--ink); font-weight: 500; }

.float-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  background: rgb(255 255 255 / .9); box-shadow: var(--shadow-lift); font-size: 13px; white-space: nowrap;
  animation: drift-chip 7s ease-in-out infinite; transition: translate .3s ease-out; will-change: transform;
}
.float-chip b { font-size: 15px; }
.chip-a { left: -6%; top: -5%; color: var(--ember); }
.chip-b { right: -6%; top: 46%; animation-duration: 8.5s; animation-delay: -3s; animation-direction: alternate-reverse; }
.chip-c { left: 2%; bottom: -4%; animation-duration: 9.5s; animation-delay: -5s; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pine); box-shadow: 0 0 0 4px rgb(9 127 87 / .15); }
/* Flotan siguiendo una trayectoria suave: suben, se desplazan y se inclinan levemente */
@keyframes drift-chip {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(8px, -14px) rotate(-2deg); }
  50% { transform: translate(-4px, -22px) rotate(1.5deg); }
  75% { transform: translate(-10px, -8px) rotate(-1deg); }
}
@media (max-width: 640px) { .chip-a { left: 0; top: -4%; } .chip-b { right: 0; top: auto; bottom: 28%; } .chip-c { display: none; } }

/* ── Cinta de criterios ─────────────────────────────────── */
.marquee-wrap { overflow: hidden; padding: 24px 0; }
.marquee {
  overflow: hidden; padding: 18px 0; background: var(--ink); color: var(--white);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  rotate: -1.2deg; width: 104%; margin-left: -2%; box-shadow: var(--shadow-lift);
}
/* Dos grupos idénticos: al desplazar exactamente un grupo (-50 %) el bucle no tiene costura */
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; font-size: 18px; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--mint); font-size: 14px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Secciones ─────────────────────────────────────────── */
.section { padding-top: 88px; padding-bottom: 88px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2, .pilot h2, .calc h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; }
.section-head p:not(.kicker) { margin-top: 14px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } .split .section-head { margin-bottom: 0; } }

/* 2. Problema */
.pains { display: grid; gap: 14px; }
@media (min-width: 820px) { .pains { grid-template-columns: repeat(3, 1fr); } }
.pain { padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; transition: transform .6s var(--spring), box-shadow .6s var(--spring); }
.pain-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: rgb(201 64 26 / .1); color: var(--ember); font-size: 22px; }
.pain h3 { font-size: 22px; margin-top: auto; }
.pain p { color: var(--muted); line-height: 1.5; }

.compare { margin-top: 24px; padding: 22px; }
.compare-toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgb(6 42 48 / .06); margin-bottom: 22px; }
.compare-toggle button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 18px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .3s; }
.compare-toggle button[aria-selected="true"] { color: var(--white); }
.compare-toggle button:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.ct-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--pine); transform: translateX(100%); transition: transform .6s var(--spring), background-color .4s; }
.compare[data-mode="before"] .ct-pill { transform: translateX(0); background: var(--ember); }
.flow[hidden] { display: none; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow li {
  position: relative; display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow-soft); font-size: 15px;
  animation: pop .6s var(--spring) both; animation-delay: calc(var(--n, 0) * 90ms);
}
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; color: var(--muted); font-size: 14px; }
.flow li:not(:last-child) { margin-right: 10px; }
.flow li.bad { background: rgb(201 64 26 / .1); color: var(--ember); font-weight: 500; }
.flow li.good { background: rgb(9 127 87 / .1); color: var(--pine); font-weight: 500; }
.flow li.good:last-child { background: var(--pine); color: var(--white); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.92); } }

/* 3. Cómo funciona */
.story-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .story-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.story-sticky { display: none; }
@media (min-width: 1024px) { .story-sticky { display: block; } }
.story-card {
  position: sticky; top: 120px; height: 340px; padding: 30px; border-radius: 36px; box-shadow: var(--shadow-lift);
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  transition: background-color .7s var(--spring), color .7s;
}
.story-card.tone-mint { background: var(--mint); color: var(--ink); }
.story-card.tone-ember { background: var(--ember); color: var(--white); }
.story-card.tone-pine { background: var(--pine); color: var(--white); }
.sc-n { font-size: 15px; opacity: .7; }
.sc-title { font-size: clamp(52px, 6vw, 80px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.sc-text { margin-top: auto; font-size: 20px; max-width: 22ch; }
.sc-bars { display: flex; gap: 8px; margin-top: 12px; }
.sc-bars i { height: 6px; flex: 1; border-radius: 99px; background: currentColor; opacity: .2; transition: opacity .6s; }
.story-card[data-step="0"] .sc-bars i:nth-child(-n+1),
.story-card[data-step="1"] .sc-bars i:nth-child(-n+2),
.story-card[data-step="2"] .sc-bars i { opacity: 1; }
.story-card .swap { animation: swap .6s var(--spring); }
@keyframes swap { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
.story-steps { display: grid; gap: 14px; align-content: start; }
.story-step { padding: 28px; border-radius: 28px; background: rgb(255 255 255 / .55); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7); transition: opacity .5s, transform .6s var(--spring), box-shadow .6s; }
@media (min-width: 1024px) {
  .story-step { opacity: .35; }
  .story-step.is-active { opacity: 1; transform: translateX(8px); box-shadow: var(--shadow-soft), inset 0 0 0 1px rgb(255 255 255 / .7); }
}
.ss-n { font-size: 14px; color: var(--muted); }
.story-step h3 { font-size: 30px; margin: 4px 0 8px; }
.story-step p { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 42ch; }

/* 4. Demo de revisión */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pills span { padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .75); box-shadow: inset 0 0 0 1px rgb(6 42 48 / .06); font-size: 14px; }
.scan-card { padding: 24px; display: grid; gap: 18px; transition: transform .6s var(--spring); }
.scan-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .08em; color: var(--muted); }
#scan-status { color: var(--pine); font-weight: 600; }
.scan-ring { position: relative; width: 176px; height: 176px; margin-inline: auto; }
.scan-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgb(6 42 48 / .08); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--pine); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset .5s var(--spring); }
.scan-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.scan-center strong { font-size: 42px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; }
.scan-center span { font-size: 12px; color: var(--muted); }
.scan-sweep { position: absolute; inset: 14px; border-radius: 50%; opacity: 0; background: conic-gradient(from 0deg, transparent 0 70%, rgb(25 226 140 / .45)); -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%); mask: radial-gradient(circle, transparent 58%, #000 59%); }
.scan-card.is-scanning .scan-sweep { opacity: 1; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.scan-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgb(255 255 255 / .65); font-size: 14px; color: var(--muted); transition: color .3s, background-color .3s, transform .5s var(--spring); }
.scan-list i { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgb(6 42 48 / .15); display: grid; place-items: center; transition: background-color .3s, box-shadow .3s; }
.scan-list li.is-checking { color: var(--ink); background: rgb(25 226 140 / .16); transform: translateX(6px); }
.scan-list li.is-checking i { box-shadow: inset 0 0 0 2px var(--pine); animation: blink .5s ease-in-out infinite alternate; }
.scan-list li.is-done { color: var(--ink); }
.scan-list li.is-done i { background: var(--pine); box-shadow: none; }
.scan-list li.is-done i::after { content: ""; width: 9px; height: 5px; border: solid var(--white); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
@keyframes blink { to { background: rgb(9 127 87 / .25); } }
.scan-btn { justify-self: start; }
.scan-btn:disabled { opacity: .55; cursor: progress; box-shadow: none; }
.scan-result { min-height: 3em; font-size: 15px; line-height: 1.45; }
.scan-note { font-size: 12px; color: var(--muted); }

/* 5. Calculadora */
.calc { display: grid; gap: 28px; padding: 28px; }
@media (min-width: 960px) { .calc { grid-template-columns: 1.1fr 1fr; padding: 40px; gap: 40px; } }
.calc-copy > p:not(.kicker) { margin-top: 14px; color: var(--muted); line-height: 1.55; }
.field { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 28px; font-size: 15px; }
.field output { font-size: 22px; font-weight: 500; color: var(--ink); }
.calc-hint { margin-top: 14px; font-size: 13px; color: var(--muted); }
input[type="range"] { width: 100%; margin-top: 12px; height: 28px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --fill: 10%; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--pine) var(--fill), rgb(6 42 48 / .1) var(--fill)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: rgb(6 42 48 / .1); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--pine); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 6px var(--ink) inset, var(--shadow-lift); transition: transform .3s var(--spring); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 6px var(--ink) inset, var(--shadow-lift); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }
input[type="range"]:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 99px; }
.calc-result {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 30px; border-radius: 30px;
  background: var(--ink); color: var(--white);
}
.calc-result::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%; background: rgb(25 226 140 / .25); filter: blur(50px); }
.calc-result > * { position: relative; }
.cr-label { font-size: 14px; color: rgb(255 255 255 / .7); }
.cr-month { font-size: clamp(36px, 5vw, 58px); font-weight: 500; letter-spacing: -.03em; color: var(--mint); line-height: 1.05; }
.cr-month.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.04); } }
.cr-sub { font-size: 14px; color: rgb(255 255 255 / .7); }
.cr-year { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: rgb(255 255 255 / .08); }
.cr-year span { font-size: 14px; color: rgb(255 255 255 / .75); }
.cr-year b { font-size: 22px; font-weight: 500; }
.cr-bar { height: 8px; margin: 14px 0 6px; border-radius: 99px; background: rgb(255 255 255 / .12); overflow: hidden; }
.cr-bar i { display: block; height: 100%; width: 26%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), #8ff2c2); transition: width .7s var(--spring); }
.calc-result p { font-size: 15px; line-height: 1.5; color: rgb(255 255 255 / .8); margin: 6px 0 14px; }
.calc-result .button { align-self: flex-start; }

/* 6. Beneficios */
.benefits { display: grid; gap: 14px; }
@media (min-width: 820px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit {
  position: relative; min-height: 260px; padding: 26px; border-radius: 28px; display: flex; flex-direction: column; gap: 8px;
  background: rgb(255 255 255 / .6); box-shadow: var(--shadow-soft), inset 0 0 0 1px rgb(255 255 255 / .75);
  transition: transform .6s var(--spring), box-shadow .6s var(--spring);
}
.benefit:hover { box-shadow: var(--shadow-lift); }
.benefit h3 { font-size: 30px; margin-top: auto; }
.benefit p { font-size: 16px; color: var(--muted); line-height: 1.5; }
.benefit-dark { background: var(--ink); color: var(--white); }
.benefit-dark p { color: rgb(255 255 255 / .75); }
.benefit-dark b { color: var(--mint); font-weight: 600; }
.benefit-icon { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 12px; background: rgb(9 127 87 / .1); }
.icon-down i { width: 8px; border-radius: 3px; background: var(--pine); animation: shrink 2.8s var(--spring) infinite; }
.icon-down i:nth-child(1) { height: 30px; } .icon-down i:nth-child(2) { height: 20px; animation-delay: .15s; } .icon-down i:nth-child(3) { height: 10px; animation-delay: .3s; }
@keyframes shrink { 0%, 100% { transform: scaleY(1); transform-origin: bottom; } 50% { transform: scaleY(.45); transform-origin: bottom; } }
.icon-speed { align-items: center; overflow: hidden; }
.icon-speed i { width: 26px; height: 6px; border-radius: 99px; background: var(--pine); box-shadow: -14px -8px 0 -1px rgb(9 127 87 / .4), -10px 8px 0 -1px rgb(9 127 87 / .4); animation: dash 1.4s ease-in-out infinite; }
@keyframes dash { 0% { transform: translateX(-24px); opacity: 0; } 40%, 60% { opacity: 1; } 100% { transform: translateX(24px); opacity: 0; } }
.icon-ring { align-items: center; background: rgb(255 255 255 / .1); }
.icon-ring svg { width: 32px; height: 32px; transform: rotate(-90deg); }
.icon-ring circle { fill: none; stroke: var(--mint); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100.6; stroke-dashoffset: 100.6; transition: stroke-dashoffset 1.6s var(--spring) .3s; }
.benefit.is-visible .icon-ring circle, html:not(.js) .icon-ring circle { stroke-dashoffset: 0; }

/* 7. Piloto y formulario */
.pilot {
  position: relative; overflow: hidden; padding: 36px; border-radius: 36px; background: var(--ink); color: var(--white);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px; --x: 70%; --y: 20%;
}
.pilot-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--x) var(--y), rgb(25 226 140 / .28), transparent 60%); transition: background-position .2s; }
.pilot::after { content: ""; position: absolute; width: 320px; height: 320px; left: -100px; bottom: -150px; border-radius: 50%; background: rgb(9 127 87 / .5); filter: blur(60px); pointer-events: none; }
.pilot > *:not(.pilot-glow) { position: relative; z-index: 1; }
.pilot .kicker { color: var(--mint); margin-bottom: 0; }
.pilot > p:not(.kicker):not(.pilot-note) { font-size: 18px; line-height: 1.55; color: rgb(255 255 255 / .82); max-width: 42ch; }
.pilot-logo { height: 32px; width: auto; margin-bottom: 12px; }
.pilot-steps { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; }
.pilot-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgb(255 255 255 / .9); }
.pilot-steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(25 226 140 / .16); color: var(--mint); font-size: 13px; }
.pilot-note { font-size: 13px; color: rgb(255 255 255 / .6); }
.form-card { padding: 26px; }
.form-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.form-mark { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--mint); font-size: 22px; animation: spinIn 1s var(--spring); }
@keyframes spinIn { from { transform: rotate(-180deg) scale(.4); } }
.form-head h3 { font-size: 22px; }
.form-head p { font-size: 15px; color: var(--muted); margin-top: 4px; }
.hs-form-frame { min-height: 120px; }
.form-fallback { margin-top: 14px; font-size: 13px; color: var(--muted); }
.form-fallback a { color: var(--pine); }

/* 8. Preguntas frecuentes */
.faq { display: grid; gap: 10px; }
.faq-item { border-radius: 22px; background: rgb(255 255 255 / .6); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .75); transition: background-color .3s, box-shadow .4s; }
.faq-item[open] { background: rgb(255 255 255 / .85); box-shadow: var(--shadow-soft); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 22px; }
.faq-plus { position: relative; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: rgb(6 42 48 / .06); transition: transform .5s var(--spring), background-color .3s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--ink); translate: -50% -50%; }
.faq-plus::after { rotate: 90deg; }
.faq-item[open] .faq-plus { transform: rotate(45deg); background: var(--mint); }
.faq-body { display: grid; grid-template-rows: 1fr; }
.js .faq-body { grid-template-rows: 0fr; transition: grid-template-rows .5s var(--spring); }
.js .faq-item.is-open .faq-body { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }
.faq-body p { padding: 0 22px 20px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.faq-body a { color: var(--pine); }

/* Pie */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 120px; border-top: 1px solid var(--line); margin-top: 24px; }
.footer img { height: 28px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer small { color: var(--muted); font-size: 13px; }

/* ── Animaciones de entrada (solo con JS y movimiento permitido) ── */
.js .reveal { opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity .9s var(--spring), transform .9s var(--spring), filter .9s var(--spring); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
.tilt { transform-style: preserve-3d; will-change: transform; }
.split-title .char { display: inline-block; opacity: 0; transform: translateY(100%); filter: blur(6px); animation: charIn .9s var(--spring) forwards; }
.split-title .word { display: inline-block; white-space: nowrap; }
.split-title .line { padding-bottom: .06em; }
@keyframes charIn { to { opacity: 1; transform: none; filter: none; } }

/* "Reducir movimiento" (p. ej. Windows con los efectos de animación apagados):
   se mantienen las demostraciones del producto —cuenta en vivo, revisión, comparador, cinta y etiquetas,
   más lentas— y se quitan los desplazamientos grandes, desenfoques y efectos decorativos. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; filter: none; transition: opacity .6s ease; }
  .bg-blobs span, .pulse::after, .wa-icon::before, .icon-down i, .icon-speed i, .form-mark { animation: none; }
  .button::after { display: none; }
  .cursor-light { display: none; }
  .marquee-track { animation-duration: 70s; }
  .float-chip { animation-duration: 14s; }
  .chip-b { animation-duration: 17s; }
  .chip-c { animation-duration: 20s; }
}

/* ── Cero, el búho mascota (cero.js) ── */
/* Capa del tamaño de la pantalla: nada de Cero (vuelo de entrada, globo) puede ensanchar la página;
   en iPhone un elemento fijo fuera de la pantalla genera scroll horizontal */
.cero-layer { position: fixed; inset: 0; z-index: 45; overflow: hidden; pointer-events: none; }
.cero { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 1; pointer-events: none; transform-origin: 0 0; opacity: 0; will-change: transform; }
.cero-body { position: absolute; transform-origin: 50% 100%; transition: scale .18s var(--spring); }
.cero.is-puff .cero-body { scale: 1.12; }
.cero-body svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 10px rgb(6 42 48 / .25)); }
.cero .c-ink { fill: var(--ink); }
.cero .c-pine { fill: var(--pine); }
.cero .c-paper { fill: var(--paper); }
.cero .c-white { fill: var(--white); }
.cero-hit {
  position: absolute; left: 12%; right: 12%; top: 2%; bottom: 0; padding: 0; border: 0; border-radius: 45%; background: none;
  pointer-events: auto; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent;
}
.cero-hit:active { cursor: grabbing; }
.cero-hit:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
/* Caminar y volar: saltitos y aleteo */
.cero.is-walking .cero-body { animation: cero-bob .32s ease-out infinite; }
.cero.is-flying .cero-body { animation: cero-hover .22s ease-out infinite; }
@keyframes cero-bob { 50% { translate: 0 -5px; } }
@keyframes cero-hover { 50% { translate: 0 -3px; } }
.cero .wing { transform-box: view-box; transition: transform .3s; }
.cero .wing-back { transform-origin: 16px 36px; transform: rotate(10deg); }
.cero .wing-front { transform-origin: 48px 36px; transform: rotate(-10deg); }
.cero.is-walking .wing-back { animation: cero-flap-b .4s infinite; }
.cero.is-walking .wing-front { animation: cero-flap-f .4s infinite; }
.cero.is-flying .wing-back { animation: cero-flap-b .18s infinite; }
.cero.is-flying .wing-front { animation: cero-flap-f .18s infinite; }
@keyframes cero-flap-b { 50% { transform: rotate(60deg); } }
@keyframes cero-flap-f { 50% { transform: rotate(-60deg); } }
.cero .tuft { transform-box: view-box; }
.cero .tuft-l { transform-origin: 20px 12px; }
.cero .tuft-r { transform-origin: 44px 12px; }
.cero.is-wiggle .tuft-l { animation: cero-tuft .6s; }
.cero.is-wiggle .tuft-r { animation: cero-tuft .6s reverse; }
@keyframes cero-tuft { 25% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } 75% { transform: rotate(-12deg); } }

/* Globo: burbuja con cola hacia Cero (nube de pensamiento si duerme) */
.cero-bubble { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; pointer-events: none; }
.cero-bubble[hidden] { display: none; }
.cero-bubble-box {
  position: absolute; width: max-content; max-width: 230px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--white); box-shadow: var(--shadow-lift); color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.35; text-align: center;
}
.cero-bubble-box.is-in { animation: cero-pop .4s var(--spring); }
@keyframes cero-pop { from { opacity: 0; scale: .6; } }
.cero-bubble[data-side="above"] .cero-bubble-box { bottom: 0; left: 0; translate: -50% 0; transform-origin: 50% 100%; }
.cero-bubble[data-side="below"] .cero-bubble-box { top: 0; left: 0; translate: -50% 0; transform-origin: 50% 0; }
.cero-bubble[data-side="left"] .cero-bubble-box { top: 0; right: 0; translate: 0 -50%; transform-origin: 100% 50%; }
.cero-bubble[data-side="right"] .cero-bubble-box { top: 0; left: 0; translate: 0 -50%; transform-origin: 0 50%; }
.cero-tail { position: absolute; width: 12px; height: 12px; background: var(--white); border: 1px solid var(--line); rotate: 45deg; }
.cero-bubble[data-side="above"] .cero-tail { top: 100%; left: calc(50% + var(--tail, 0px) - 6px); margin-top: -6px; border-width: 0 1px 1px 0; }
.cero-bubble[data-side="below"] .cero-tail { bottom: 100%; left: calc(50% + var(--tail, 0px) - 6px); margin-bottom: -6px; border-width: 1px 0 0 1px; }
.cero-bubble[data-side="left"] .cero-tail { left: 100%; top: calc(50% + var(--tail, 0px) - 6px); margin-left: -6px; border-width: 1px 1px 0 0; }
.cero-bubble[data-side="right"] .cero-tail { right: 100%; top: calc(50% + var(--tail, 0px) - 6px); margin-right: -6px; border-width: 0 0 1px 1px; }
.cero-bubble.is-thought .cero-tail { border-width: 1px; border-radius: 50%; width: 9px; height: 9px; margin: 4px; }
.cero-bubble.has-cta .cero-bubble-box { pointer-events: auto; }
.cero-bubble-cta { display: block; margin-top: 8px; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 12px; text-decoration: none; }
.cero-bubble-cta:empty { display: none; }
.cero-bubble-cta:hover { background: var(--pine); }
.cero-bubble-cta:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.cero-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Con "reducir movimiento" no hay saltitos ni penachos, pero al volar sigue aleteando (más pausado) */
@media (prefers-reduced-motion: reduce) {
  .cero.is-walking .cero-body, .cero.is-walking .wing, .cero .tuft { animation: none !important; }
  .cero.is-flying .wing-back { animation-duration: .3s; }
  .cero.is-flying .wing-front { animation-duration: .3s; }
}
