/* BioPay · sitio público (rediseño fintech premium, octubre 2026).
   Tokens tomados de la app (app_colors.dart): fondo verde-gris claro, verde de marca,
   esmeralda profundo para énfasis. Sombras siempre tintadas de verde, nunca negras. */
:root {
  --bg: #F2F6F3;
  --bg-2: #E8F1EC;
  --surface: #FFFFFF;
  --fg: #0B1F16;
  --muted: #4A5D53;
  --faint: #A5B5AA;
  --line: #DCE7E0;
  --primary: #2BC866;
  --primary-dark: #1E9F57;
  --primary-light: #6EE08F;
  --emerald: #0A4A2C;
  --emerald-2: #13854B;
  --lime: #CFF56E;
  --glow: #B7F5C8;
  --money: #00A86B;
  --co2: #4DA8F7;
  --amber: #F2B53C;
  --amber-ink: #7A5200;
  --amber-bg: #FCF1D6;
  --success-bg: #DAF5E4;
  --success-ink: #0C6A38;
  --info-bg: #E1F0FE;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow-card: 0 1px 2px rgba(8, 40, 26, .06), 0 10px 28px rgba(8, 40, 26, .09);
  --shadow-float: 0 24px 60px -20px rgba(10, 74, 44, .35);
  --shadow-btn: 0 10px 24px rgba(43, 200, 102, .30);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1120px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-dark);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--primary); border-radius: 2px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Botones ── */
.btn {
  --bg-btn: var(--surface);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 18px; border: 1px solid transparent;
  font-weight: 800; font-size: 15px; cursor: pointer; white-space: nowrap;
  background: var(--bg-btn); color: var(--fg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, border-color .25s;
  overflow: hidden; isolation: isolate;
}
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.btn-primary { --bg-btn: linear-gradient(135deg, #2BC866, #6EE08F); color: #052E1B; box-shadow: var(--shadow-btn); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, #22B85C, #4CD57C); opacity: 0; transition: opacity .3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(43, 200, 102, .38); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-ghost { background: rgba(255, 255, 255, .7); border-color: var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--primary); background: #fff; transform: translateY(-2px); }
.btn-dark { --bg-btn: var(--fg); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(11, 31, 22, .3); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14px; border-radius: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(242, 246, 243, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(220, 231, 224, .7);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(10, 74, 44, .25); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--emerald); }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; filter: drop-shadow(0 6px 12px rgba(10, 74, 44, .3)); }
.brand-mark img { width: 38px; height: 38px; }
.nav-links { display: none; gap: 28px; font-weight: 700; font-size: 14.5px; color: var(--muted); }
.nav-links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--primary); border-radius: 2px; transition: right .3s var(--ease); }
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { right: 0; }
.nav-actions { display: none; gap: 10px; }
.nav-burger { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-burger span + span { margin-top: 5px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; padding: 8px 0 18px; border-top: 1px solid var(--line); }
.mobile-menu.open { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a, .mobile-menu button { padding: 12px 4px; font-weight: 700; color: var(--fg); background: none; border: 0; text-align: left; font-size: 16px; }
@media (min-width: 900px) {
  .nav-links, .nav-actions { display: flex; }
  .nav-burger, .mobile-menu { display: none !important; }
}

/* ── Hero ── */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 999px; filter: blur(80px); opacity: .55; }
.blob-1 { width: 560px; height: 560px; top: -200px; left: -160px; background: var(--glow); }
.blob-2 { width: 460px; height: 460px; top: 60px; right: -140px; background: #D8F3E5; }
.blob-3 { width: 360px; height: 360px; bottom: -120px; left: 38%; background: rgba(77, 168, 247, .25); }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 32px; } }
.hero h1 {
  font-size: clamp(42px, 7.2vw, 88px); font-weight: 800; line-height: .98; letter-spacing: -.045em; margin-top: 22px;
}
.hero h1 .accent { color: var(--primary-dark); }
.hero-sub { margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 520px; }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--primary-dark); }

/* Escena 3D */
.scene { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin-inline: auto; }
@media (max-width: 899px) { .scene { max-width: 400px; } }
.scene canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.scene-fallback {
  /* Sin WebGL: el símbolo del logo 2026 (billetera con brote). */
  position: absolute; inset: 16%;
  background: url(../img/simbolo.svg?v=20261123) center / contain no-repeat;
  filter: drop-shadow(0 30px 40px rgba(8, 57, 22, .35));
}
.scene.has-webgl .scene-fallback { display: none; }
.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 18px 40px -16px rgba(10, 74, 44, .35);
  will-change: transform;
}
.chip-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.chip-ico svg { width: 20px; height: 20px; }
.chip b { display: block; font-size: 15px; letter-spacing: -.01em; }
.chip small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
/* Tarjetas en las esquinas libres: la billetera 3D ocupa el centro (2026-11-23). */
.chip-1 { left: -6%; top: 2%; }
.chip-2 { right: -6%; bottom: 3%; }
.chip-3 { left: -4%; bottom: 3%; }
.chip-1 { animation: flotar 6s ease-in-out infinite; }
.chip-2 { animation: flotar 7s ease-in-out -2s infinite; }
.chip-3 { animation: flotar 8s ease-in-out -4s infinite; }
@keyframes flotar { 50% { translate: 0 -10px; } }
.scene canvas { opacity: 0; transition: opacity 1.2s var(--ease); }
.scene.ready canvas { opacity: 1; }
@media (max-width: 480px) {
  .chip-3 { display: none; }
  .chip { padding: 9px 12px; gap: 9px; border-radius: 14px; }
  .chip-ico { width: 30px; height: 30px; border-radius: 10px; }
  .chip b { font-size: 13.5px; }
  .chip small { font-size: 11px; }
  .chip-1 { left: 0; top: 0; }
  .chip-2 { right: 0; bottom: 0; }
}

/* Marquesina de confianza */
.ticker { border-block: 1px solid var(--line); background: rgba(255, 255, 255, .5); overflow: hidden; }
.ticker-track { display: flex; gap: 48px; width: max-content; padding: 16px 0; animation: ticker 34s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; }
.ticker-track span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ── Secciones ── */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head { max-width: 680px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; margin-top: 16px; }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--muted); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* Precios */
.price-grid { margin-top: 44px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.price-card {
  position: relative; background: var(--surface); border-radius: var(--radius); padding: 20px 18px 18px;
  box-shadow: var(--shadow-card); border: 1px solid rgba(220, 231, 224, .7);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  transform-style: preserve-3d;
}
.price-card:hover { box-shadow: var(--shadow-float); }
.price-card.hot { background: linear-gradient(160deg, #0A4A2C, #13854B); color: #fff; border-color: transparent; }
.price-card.hot .muted { color: rgba(255, 255, 255, .75); }
.price-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-2); }
.price-card.hot .price-ico { background: rgba(255, 255, 255, .14); }
.price-ico svg { width: 22px; height: 22px; }
.price-name { margin-top: 16px; font-weight: 800; font-size: 14.5px; }
.price-value { margin-top: 2px; font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.03em; color: var(--money); }
.price-card.hot .price-value { color: var(--lime); }
.price-card.hot .price-unit { color: rgba(255, 255, 255, .72); }
.price-unit { font-size: 12px; font-weight: 700; color: var(--muted); }
.price-badge { position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; background: var(--lime); color: var(--emerald); }
.price-note { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--success-ink); }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 rgba(43, 200, 102, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(43, 200, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 200, 102, 0); } }
.skeleton { background: linear-gradient(90deg, var(--bg-2) 25%, #F4F8F5 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; color: transparent !important; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Cómo funciona: celular fijo + pasos */
.how { background: var(--surface); }
.how-grid { margin-top: 48px; display: grid; gap: 40px; }
@media (min-width: 900px) { .how-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.how-sticky { position: sticky; top: 90px; display: flex; justify-content: center; }

.steps { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 900px) { .steps { padding-block: 10vh; gap: 28vh; } }
.step { position: relative; padding-left: 64px; opacity: .35; transition: opacity .4s; }
.step.active { opacity: 1; }
.step-n {
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  font-weight: 800; background: var(--bg-2); color: var(--emerald); transition: background .3s, color .3s, transform .3s var(--ease);
}
.step.active .step-n { background: var(--fg); color: #fff; transform: scale(1.06); }
.step h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
.step p { margin-top: 8px; color: var(--muted); font-size: 16px; max-width: 420px; }
.step-line { position: absolute; left: 22px; top: 54px; bottom: -28vh; width: 2px; background: var(--line); }
.step-line::after { content: ''; position: absolute; inset: 0; background: var(--primary); transform: scaleY(var(--p, 0)); transform-origin: top; }
.step:last-child .step-line { display: none; }
@media (max-width: 899px) { .step-line { bottom: -22px; } }

/* Mockup del celular: pantallas en HTML, no imágenes */
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 300 / 620; border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #0B1F14, #14301F 55%, #0B1F14);
  box-shadow: 0 40px 80px -30px rgba(5, 46, 27, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 99px; background: #0B1F14; z-index: 3; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg); }
.screen { position: absolute; inset: 0; padding: 54px 16px 16px; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s var(--ease), transform .6s var(--ease); font-size: 12.5px; }
.screen.active { opacity: 1; transform: none; }
.s-top { font-size: 11px; color: var(--muted); font-weight: 600; }
.s-title { font-size: 18px; font-weight: 800; margin-top: 2px; letter-spacing: -.02em; }
.s-card { margin-top: 12px; background: var(--surface); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-card); }
.s-card.hero { background: linear-gradient(135deg, #0A4A2C, #13854B); color: #fff; }
.s-card.hero .s-muted { color: rgba(255, 255, 255, .7); }
.s-muted { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.s-big { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.s-row { display: flex; align-items: center; gap: 10px; }
.s-row + .s-row { margin-top: 10px; }
.s-ico { width: 34px; height: 34px; border-radius: 11px; background: var(--bg-2); display: grid; place-items: center; flex: none; }
.s-ico svg { width: 17px; height: 17px; }
.s-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 800; background: var(--success-bg); color: var(--success-ink); }
.s-pill.blue { background: var(--info-bg); color: #1D5FA8; }
.s-pill.amber { background: var(--amber-bg); color: var(--amber-ink); }
.s-btn { margin-top: 12px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, #2BC866, #6EE08F); color: #052E1B; box-shadow: var(--shadow-btn); }
.s-btn.ghost { background: var(--surface); color: var(--fg); box-shadow: none; border: 1px solid var(--line); }
.s-bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin-top: 8px; }
.s-bar i { display: block; height: 100%; width: var(--w, 40%); background: var(--primary); border-radius: 99px; transition: width 1.2s var(--ease); }
.s-map { height: 120px; border-radius: 14px; margin-top: 12px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #E6F0E9, #DCE7E0); }
.s-map::before, .s-map::after { content: ''; position: absolute; background: #fff; opacity: .9; }
.s-map::before { left: 0; right: 0; top: 48%; height: 12px; transform: rotate(-12deg); }
.s-map::after { top: 0; bottom: 0; left: 55%; width: 10px; transform: rotate(18deg); }
.s-pin { position: absolute; left: 44%; top: 34%; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--primary-dark); box-shadow: 0 6px 14px rgba(10, 74, 44, .4); z-index: 1; }
.s-truck { position: absolute; left: 22%; top: 58%; width: 26px; height: 26px; border-radius: 50%; background: var(--fg); display: grid; place-items: center; z-index: 1; animation: ride 3s var(--ease) infinite alternate; }
.s-truck svg { width: 14px; height: 14px; color: #fff; }
@keyframes ride { to { transform: translate(60px, -26px); } }
.s-scale { font-size: 42px; font-weight: 800; letter-spacing: -.04em; text-align: center; margin-top: 8px; }
.s-scale small { font-size: 16px; color: var(--muted); font-weight: 700; }
.s-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.s-keys span { height: 36px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow-card); }
.s-check { width: 64px; height: 64px; border-radius: 50%; margin: 10px auto 0; display: grid; place-items: center; background: linear-gradient(135deg, #2BC866, #6EE08F); box-shadow: var(--shadow-btn); }
.s-check svg { width: 30px; height: 30px; color: #052E1B; }

/* Calculadora */
.calc { background: linear-gradient(180deg, var(--bg) 0%, #E9F3EC 100%); }
.calc-grid { margin-top: 44px; display: grid; gap: 20px; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; } }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); border: 1px solid rgba(220, 231, 224, .7); }
.card-dark { background: linear-gradient(160deg, #0B1F16, #0A4A2C); color: #fff; border-color: transparent; }
.card-dark .muted { color: rgba(255, 255, 255, .7); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field + .field { margin-top: 22px; }
.field label { font-weight: 800; font-size: 14px; display: flex; justify-content: space-between; }
.field output { color: var(--primary-dark); font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--primary); height: 32px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 8px 14px; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: all .25s; }
.seg button[aria-pressed="true"] { background: var(--fg); color: #fff; border-color: var(--fg); }
.calc-out { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; margin-top: 8px; }
.calc-out b { display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.calc-out small { display: block; margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .7); font-weight: 600; }
.bars { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.bar { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; }
.bar i { display: block; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.bar i::after { content: ''; display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, #2BC866, #CFF56E); border-radius: 99px; transition: width 1s var(--ease); }
.bar span:last-child { font-variant-numeric: tabular-nums; min-width: 60px; text-align: right; }
.calc-note { margin-top: 20px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }

/* Para quién */
.who-grid { margin-top: 44px; display: grid; gap: 18px; }
@media (min-width: 900px) { .who-grid { grid-template-columns: repeat(3, 1fr); } }
.who { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-height: 360px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.who:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.who-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-2); color: var(--emerald); }
.who-ico svg { width: 26px; height: 26px; }
.who h3 { font-size: 24px; font-weight: 800; }
.who ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 15px; }
.who li { display: flex; gap: 10px; align-items: flex-start; }
.who li svg { width: 18px; height: 18px; flex: none; color: var(--primary-dark); margin-top: 3px; }
.who .btn { margin-top: auto; align-self: flex-start; }
.who-featured { background: linear-gradient(160deg, #0A4A2C, #13854B); color: #fff; border-color: transparent; }
.who-featured .who-ico { background: rgba(255, 255, 255, .14); color: #fff; }
.who-featured ul { color: rgba(255, 255, 255, .8); }
.who-featured li svg { color: var(--lime); }
.who-featured .ribbon { position: absolute; top: 18px; right: 18px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--lime); color: var(--emerald); padding: 5px 10px; border-radius: 99px; }

/* Confianza */
.trust-grid { margin-top: 44px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trust { display: flex; gap: 14px; align-items: flex-start; padding: 22px; }
.trust-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--success-bg); color: var(--success-ink); flex: none; }
.trust-ico svg { width: 22px; height: 22px; }
.trust h3 { font-size: 16.5px; font-weight: 800; }
.trust p { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { max-width: 760px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border-radius: 18px; border: 1px solid rgba(220, 231, 224, .8); box-shadow: var(--shadow-card); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; font-weight: 800; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--ease); flex: none; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

/* CTA final */
.final { position: relative; overflow: hidden; }
.final-card {
  position: relative; border-radius: 32px; padding: clamp(36px, 6vw, 72px);
  background: radial-gradient(120% 140% at 20% 0%, #13854B 0%, #0A4A2C 50%, #07301C 100%); color: #fff; overflow: hidden;
  box-shadow: var(--shadow-float);
}
.final-card::before { content: ''; position: absolute; width: 520px; height: 520px; right: -200px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(207, 245, 110, .35), transparent 60%); }
.final-card h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; max-width: 640px; position: relative; }
.final-card p { margin-top: 16px; font-size: 17px; color: rgba(255, 255, 255, .78); max-width: 560px; position: relative; }
.final-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; position: relative; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px 0 14px; border-radius: 16px; background: #fff; color: var(--fg); font-weight: 800; transition: transform .3s var(--ease), box-shadow .3s; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.store-badge span { display: block; font-size: 15px; line-height: 1.1; }
.store-badge.soon { opacity: .6; cursor: default; pointer-events: none; }

/* Footer */
.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h4 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--muted); }
.footer-grid nav a:hover { color: var(--fg); }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }

/* Modal de descarga */
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(11, 31, 22, .45); backdrop-filter: blur(6px); }
.modal-box { position: relative; width: min(100%, 400px); background: var(--surface); border-radius: 28px; padding: 28px; box-shadow: var(--shadow-float); animation: pop .4s var(--ease); }
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--bg-2); cursor: pointer; display: grid; place-items: center; }
.modal-box h3 { font-size: 22px; font-weight: 800; }
.modal-box .stores { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.modal-box .store-badge { border: 1px solid var(--line); justify-content: flex-start; }
.modal-web { margin-top: 16px; font-size: 13.5px; color: var(--muted); text-align: center; }
.modal-web a { font-weight: 800; color: var(--primary-dark); }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 14px 30px rgba(37, 211, 102, .4);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
.wa-float svg { width: 28px; height: 28px; }

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .s-truck, .live-dot::before, .chip { animation: none; }
  .btn, .price-card, .who { transition: none; }
}

/* Cómo funciona en celular: el teléfono queda fijo arriba (más pequeño) y cada paso
   aparece en la franja de abajo; va al final para ganarle a las reglas base. */
@media (max-width: 899px) {
  .how-grid { gap: 0; }
  /* El teléfono se escala completo (pantalla incluida) y la caja fija mide lo que ocupa. */
  .how-sticky { --s: .6; top: 76px; z-index: 2; height: calc(620px * var(--s)); align-items: flex-start; }
  .phone { width: 300px; transform: scale(var(--s)); transform-origin: top center; }
  @media (max-height: 720px) { .how-sticky { --s: .5; } }
  .steps { padding-top: 20px; padding-bottom: 34vh; gap: 0; }
  .step { min-height: 44vh; padding-top: 12px; padding-left: 56px; }
  .step:not(.active) { opacity: 0; }
  .step-n { width: 40px; height: 40px; border-radius: 13px; }
  .step h3 { font-size: 21px; }
  .step p { font-size: 15px; }
  .step-line { display: none; }
}

/* Salida Web + PWA (2026-11-23): aviso de tiendas "muy pronto" y cómo instalar la app web. */
.hero-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); max-width: 520px; line-height: 1.5; }
.hero-note a { color: var(--primary-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pill-soon { display: inline-block; padding: 2px 10px; margin-right: 4px; border-radius: 999px; background: var(--success-bg); color: var(--success-ink); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.install-hint { margin-top: 18px !important; font-size: 14px !important; color: rgba(255, 255, 255, .7) !important; }
.install-hint b { color: #fff; }
.modal-cta { margin-top: 18px; width: 100%; justify-content: center; }
.install-steps { margin: 14px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--muted); display: grid; gap: 6px; }
.install-steps b { color: var(--fg); }
.stores-t { margin-top: 18px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.modal-box .stores-t + .stores { margin-top: 10px; }
