:root {
  --green-900: #1d4d2c;
  --green-700: #2f7a3e;
  --green-500: #4caf50;
  --green-300: #8fd18f;
  --green-50: #eef7ee;
  --ink: #17231a;
  --ink-soft: #4b5a4f;
  --line: #dbe6dc;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 35, 26, .10);
  --nq: #7b2cbf;
  --bc: #f2b705;
  --bb: #1464a5;
  --dv: #d62828;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-700); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.lead--light { color: #dff2df; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--green-300); outline-offset: 2px; }
.btn--primary { background: linear-gradient(180deg, var(--green-500), var(--green-700)); color: #fff; }
.btn--ghost { background: #fff; color: var(--green-700); border-color: var(--green-500); }
.btn--light { background: #fff; color: var(--green-900); }
.btn--sm { padding: .55em 1.1em; font-size: .95rem; }
.btn--block { width: 100%; }

/* Encabezado (scroll.js lo esconde al bajar y lo muestra al subir) */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: transform .35s ease; }
.topbar.is-hidden { transform: translateY(-100%); }
.topbar__inner { display: flex; align-items: center; gap: 24px; padding: 10px 0; }
.brand { display: flex; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--green-700); }

/* Hero */
.hero { position: relative; overflow-x: clip; padding: 64px 0 56px; background: radial-gradient(1200px 500px at 85% 0%, var(--green-50), #fff 60%); }
.blob { position: absolute; z-index: 0; border-radius: 50%; filter: blur(50px); opacity: .5; pointer-events: none; }
.blob--a { width: 420px; height: 420px; right: -120px; top: -80px; background: var(--green-300); }
.blob--b { width: 300px; height: 300px; left: -110px; bottom: -40px; background: #c8ecc8; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--green-700); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; font-size: .9rem; font-weight: 600; }

/* Equipo (foto del producto con la pantalla animada encima) */
.device-wrap { display: grid; justify-items: center; }
.device__caption { margin-top: 14px; font-size: .9rem; text-align: center; }
.product {
  position: relative; width: min(420px, 100%); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow); container-type: inline-size;
}
.product img { display: block; width: 100%; height: auto; }
/* Coordenadas de la pantalla dentro de la foto (765 × 1024 px) */
.product__screen {
  position: absolute; left: 31.8%; top: 27.2%; width: 32.4%; height: 45.6%;
  border-radius: 6px; background: var(--green-50);
  display: grid; place-content: center; justify-items: center; text-align: center; padding: 6%;
  animation: aparecer .25s ease-out;
}
.product__screen[hidden] { display: none; }
.product__screen .screen__check { width: 15cqi; height: 15cqi; font-size: 8cqi; }
.product__screen .screen__amount { font-size: 7.5cqi; }
.product__screen .screen__bank { font-size: 3.6cqi; }
.waves { position: absolute; left: 48%; top: 49%; width: 0; height: 0; pointer-events: none; }
.waves i {
  position: absolute; left: -30cqi; top: -30cqi; width: 60cqi; height: 60cqi; border-radius: 50%;
  border: 3px solid rgba(143, 209, 143, .9); opacity: 0;
}
.product.is-ringing .waves i { animation: onda 1.6s ease-out 3; }
.product.is-ringing .waves i:nth-child(2) { animation-delay: .4s; }
.product.is-ringing .waves i:nth-child(3) { animation-delay: .8s; }
@keyframes onda { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
@keyframes aparecer { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.screen__check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; background: var(--green-500); color: #fff; font-size: 1.8rem; font-weight: 800; }
.screen__check.big { width: 80px; height: 80px; font-size: 2.6rem; }
.screen__amount { font-size: 2.2rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.screen__bank { margin: 0; color: var(--green-900); font-weight: 700; }

/* Secciones */
.section { padding: 72px 0; }
.section--soft { background: var(--green-50); }
.section--brand { background: linear-gradient(160deg, var(--green-700), var(--green-900)); color: #fff; }
.section__title { text-align: center; margin-bottom: 1.2em; }
.section__title--left { text-align: left; margin-bottom: .5em; }
.section__title--light { color: #fff; }

.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 0 rgba(23,35,26,.03); }
.card p:last-child { margin-bottom: 0; }
.features { margin-top: 32px; }
.feature__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green-50); color: var(--green-700); font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.feature__pronto { float: right; background: #fff7e0; color: #8a6100; border: 1px solid #f2b705; border-radius: 999px; font-size: .75rem; font-weight: 700; padding: .15em .7em; }

.step__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green-500); color: #fff; font-weight: 800; margin-bottom: 12px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green-500); color: #fff; font-size: .8rem; display: grid; place-items: center; }
.checks--center { width: fit-content; margin: 28px auto 12px; }

.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 8px; }
.panel__head strong { font-size: 1.6rem; }
.panel__list { list-style: none; padding: 0; margin: 0; }
.panel__list li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.panel__foot { margin: 10px 0 0; font-size: .8rem; text-align: right; }
.tag { justify-self: start; font-size: .8rem; font-weight: 700; padding: .2em .7em; border-radius: 999px; color: #fff; }
.tag--nq { background: var(--nq); }
.tag--bc { background: var(--bc); color: var(--ink); }
.tag--bb { background: var(--bb); }
.tag--dv { background: var(--dv); }

.demo-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 12px; }

.price { text-align: center; position: relative; }
.price--best { border: 2px solid var(--green-500); }
.price__main { font-size: 2rem; font-weight: 800; margin: 0; }
.price__main span, .price__sub { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.price__sub { margin-bottom: 1.2em; }
.badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--green-500); color: #fff; font-weight: 700; font-size: .8rem; padding: .25em .9em; border-radius: 999px; margin: 0; }

.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--green-700); font-size: 1.4rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); }

/* Formulario */
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 600; }
.field em { font-weight: 400; color: var(--ink-soft); font-style: normal; }
.field input, .field select, .field textarea {
  font: inherit; padding: .7em .8em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(76,175,80,.2); }
.field--error input { border-color: var(--dv); }
.field small, .form__error { color: var(--dv); font-weight: 600; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green-700); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.section--brand .btn--light { background: linear-gradient(180deg, var(--green-500), var(--green-700)); color: #fff; }

/* Video */
.section--dark { background: #121a14; color: #fff; }
.video { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: #000; }
.video video, .video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video__poster { position: relative; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.video__poster img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-500); color: #fff; font-size: 1.8rem; box-shadow: var(--shadow);
}

/* Frase grande que se «enciende» con el scroll */
.statement__text { font-size: clamp(1.9rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; text-align: center; max-width: 22ch; margin: 0 auto 1.4em; }
.hl { color: var(--green-700); }

/* «Cómo funciona»: el equipo queda fijo mientras los pasos pasan a su lado */
.story__grid { --avance: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.story__steps { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.story__steps::before, .story__steps::after { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: var(--line); }
.story__steps::after { background: var(--green-500); transform-origin: top; transform: scaleY(var(--avance)); }
.story__step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 24px 0; }
.story__step h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
.story__step p { font-size: 1.1rem; color: var(--ink-soft); max-width: 34ch; }
.js .story__step { opacity: .3; transition: opacity .4s ease; }
.js .story__step.is-active { opacity: 1; }
.story__stage { position: sticky; top: 90px; height: calc(100svh - 120px); display: grid; place-items: center; align-content: center; gap: 18px; }
.story__device { position: relative; width: min(380px, 100%, calc((100svh - 220px) * .747)); }
.story__device .product { width: 100%; }

.capa { opacity: 0; pointer-events: none; transition: opacity .45s ease, transform .45s ease; }
[data-estado="1"] [data-capa="1"], [data-estado="2"] [data-capa="2"],
[data-estado="3"] [data-capa="3"], [data-estado="4"] [data-capa="4"] { opacity: 1; transform: none; }
.story .product__screen { animation: none; }
/* Paso 1: línea que barre la pantalla, como un lector de QR */
.scan { position: absolute; left: 31.8%; top: 27.2%; width: 32.4%; height: 45.6%; overflow: hidden; border-radius: 6px; }
.scan::after { content: ""; position: absolute; left: 0; right: 0; height: 18%; background: linear-gradient(transparent, rgba(76,175,80,.45)); border-bottom: 2px solid var(--green-500); animation: barrido 2.2s ease-in-out infinite; }
@keyframes barrido { from { top: -18%; } to { top: 100%; } }
/* Paso 2: verificando */
.screen--verify { background: rgba(238,247,238,.96); }
.spinner { width: 14cqi; height: 14cqi; margin: 0 auto 4cqi; border-radius: 50%; border: 1.4cqi solid var(--line); border-top-color: var(--green-500); animation: girar .9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
/* Paso 3: ondas continuas */
[data-estado="3"] .waves i { animation: onda 1.6s ease-out infinite; }
[data-estado="3"] .waves i:nth-child(2) { animation-delay: .4s; }
[data-estado="3"] .waves i:nth-child(3) { animation-delay: .8s; }
/* Tarjetas que flotan junto al equipo */
.float-card { position: absolute; z-index: 2; background: #fff; border-radius: 14px; box-shadow: 0 14px 34px rgba(23,35,26,.18); padding: 12px 14px; font-size: .9rem; }
.float-card p { margin: 2px 0; }
.notif { left: -22%; top: 9%; max-width: 250px; display: flex; gap: 10px; align-items: flex-start; transform: translate(-24px, -8px); }
.notif small { color: var(--green-700); font-weight: 700; }
.notif__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bc); font-size: 1rem; }
.speech { right: -16%; top: 5%; max-width: 210px; background: var(--green-700); color: #fff; font-weight: 700; transform: translateY(12px) scale(.95); }
.speech::after { content: ""; position: absolute; left: 22px; bottom: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: var(--green-700); }
.ledger { right: -18%; bottom: 7%; width: 270px; transform: translateY(24px); }
.ledger__head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
.ledger__head strong { font-size: 1.25rem; }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px dashed var(--line); }
.ledger li.is-new { background: var(--green-50); border-radius: 8px; }
.story__dots { display: flex; gap: 8px; }
.story__dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .3s ease, background .3s ease; }
[data-estado="1"] .story__dots i:nth-child(1), [data-estado="2"] .story__dots i:nth-child(2),
[data-estado="3"] .story__dots i:nth-child(3), [data-estado="4"] .story__dots i:nth-child(4) { width: 24px; background: var(--green-500); }

/* Franja con foto de fondo en parallax */
.band { position: relative; overflow: hidden; min-height: 72vh; display: grid; place-items: center; text-align: center; color: #fff; background: var(--green-900); }
.band__bg { position: absolute; inset: -12% 0; display: block; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, rgba(29,77,44,.88), rgba(18,26,20,.72)); }
.band__copy { position: relative; z-index: 2; padding: 80px 0; }
.band__title { font-size: clamp(2.6rem, 9vw, 6rem); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; margin: 0 0 .3em; }
.band__title .hl { color: var(--green-300); }
.band__sub { font-size: 1.2rem; color: #dff2df; margin: 0; }

/* Animaciones con GSAP: palabras sueltas y ocultamiento previo a la entrada */
.w { display: inline-block; }
.precarga [data-entra], .precarga [data-palabras-entra], .precarga [data-hero-device] { opacity: 0; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

/* Aparición al hacer scroll (solo con JavaScript activo) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Botón flotante de WhatsApp */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 20;
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff; text-decoration: none; font-weight: 700;
  padding: 10px 16px 10px 12px; border-radius: 999px; box-shadow: var(--shadow);
}
.wa:hover { background: #1ebe5a; }
@media (max-width: 600px) { .wa span { display: none; } .wa { padding: 12px; } }

/* Texto largo */
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.note { background: #fff7e0; border: 1px solid #f2d27a; border-radius: 10px; padding: 10px 14px; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: 36px 0 24px; }
.footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__links { display: grid; gap: 6px; text-align: right; }
.footer__legal { font-size: .85rem; margin-top: 20px; }

@media (max-width: 900px) {
  .hero__grid, .split { grid-template-columns: 1fr; }
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .topbar__inner .btn { margin-left: auto; }
  /* «Cómo funciona» en celular: el equipo arriba y fijo; los pasos pasan por debajo */
  .story__grid { grid-template-columns: 1fr; gap: 0; }
  .story__stage { order: -1; z-index: 3; top: 58px; height: auto; padding: 10px 0 14px; gap: 10px; background: linear-gradient(#fff 88%, rgba(255,255,255,0)); }
  .story__device { width: min(54vw, calc(42svh * .747)); }
  .story__step { min-height: 55svh; justify-content: flex-end; padding-bottom: 6svh; }
  .float-card { font-size: .74rem; padding: 8px 10px; border-radius: 10px; }
  .notif { left: -30%; max-width: 170px; }
  .notif__icon { width: 26px; height: 26px; }
  .speech { right: -34%; max-width: 150px; }
  .ledger { right: -36%; width: 190px; }
  .ledger__head strong { font-size: 1rem; }
  .ledger li { gap: 6px; padding: 5px 2px; }
  .ledger .tag { font-size: .68rem; }
}
@media (max-width: 600px) {
  .cards--3, .cards--2, .form__grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding-top: 40px; }
  .footer__links { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .scan::after, .spinner, .waves i { animation: none !important; }
}
