/* stackbotglobal.com — landing (rediseño 2026-09-30).
   Cálido y local: fondo arena, tinta profunda, el morado de la app como acento (no como degradado
   de fondo). Primero el teléfono: la mayoría entra desde iPhone. */
:root {
  --bg: #fbf7f1;
  --bg-2: #f4ede2;
  --card: #ffffff;
  --ink: #16131f;
  --ink-2: #4b4658;
  --ink-3: #847d90;
  --line: #e7dfd2;
  --brand: #5504f6;
  --brand-2: #3d02b5;
  --brand-soft: #ece4ff;
  --mint: #d8f2e4;
  --sun: #ffcb5c;
  --radius: 22px;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121017;
    --bg-2: #19161f;
    --card: #1e1a26;
    --ink: #f6f3fb;
    --ink-2: #c8c1d6;
    --ink-3: #8e879c;
    --line: #2c2735;
    --brand: #8a63ff;
    --brand-2: #5504f6;
    --brand-soft: rgba(138, 99, 255, 0.16);
    --mint: rgba(64, 199, 128, 0.16);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* Idioma: <span class="es">…</span><span class="en">…</span> */
html[lang='es'] .en, html[lang='en'] .es { display: none !important; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.05; margin: 0; font-weight: 700; }
h1 { font-size: clamp(40px, 7.2vw, 76px); }
h2 { font-size: clamp(30px, 4.6vw, 50px); }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 34em; }
.kicker { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.hl { color: var(--brand); }
.u { background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 88%, transparent 88%); padding: 0 .08em; }
@media (prefers-color-scheme: dark) { .u { background: linear-gradient(transparent 62%, rgba(255, 203, 92, .35) 62%, rgba(255, 203, 92, .35) 88%, transparent 88%); } }

/* ── Cabecera ─────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.brand img { width: 34px; height: 34px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav .dl { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; margin-left: 6px; }
.nav .dl:hover { background: var(--brand); color: #fff; }
.lang { min-width: 44px; min-height: 40px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; font: 700 13px var(--text); cursor: pointer; margin-left: 6px; }
@media (max-width: 860px) { .nav a.d { display: none; } }

/* ── Botones ──────────────────────────────────────────────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 18px 8px 14px; border-radius: 14px; background: #111; color: #fff; text-decoration: none; border: 1px solid #2a2a2a; transition: transform .15s; }
.store:active { transform: scale(.98); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; opacity: .78; line-height: 1.1; }
.store b { display: block; font-size: 18px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, background .15s; }
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-light { background: #fff; color: #16131f; }
.btn svg { width: 18px; height: 18px; }
.textlink { font-weight: 700; color: var(--brand); text-decoration: none; }
.textlink:hover { text-decoration: underline; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 28px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { margin: 14px 0 20px; }
.hero .lead { margin-bottom: 28px; }
.hero .meta { margin-top: 18px; color: var(--ink-3); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero .meta svg { width: 16px; height: 16px; color: var(--brand); }
.stage { position: relative; min-height: 600px; }
.stage .photo { position: absolute; inset: 40px 0 40px 60px; border-radius: 34px; background: #cfe7f2 url('/assets/banner.jpg') center/cover; }
.stage .phone { position: absolute; left: 0; top: 0; }
.stage .tag { position: absolute; right: 18px; bottom: 76px; background: var(--card); color: var(--ink); border-radius: 18px; padding: 14px 16px; box-shadow: 0 18px 40px rgba(22, 19, 31, .18); display: flex; gap: 12px; align-items: center; max-width: 260px; }
.stage .tag b { font-family: var(--display); font-size: 26px; line-height: 1; display: block; }
.stage .tag small { color: var(--ink-3); font-size: 13px; line-height: 1.3; display: block; }
.stage .tag .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; color: #148a4c; flex: none; }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .stage { min-height: 0; height: 520px; }
  .stage .photo { inset: 60px 0 0 90px; }
}
@media (max-width: 480px) {
  .hero { padding-top: 12px; }
  .stage { height: 470px; }
  .stage .photo { inset: 70px -16px 0 70px; border-radius: 28px 0 0 28px; }
  .stage .tag { right: 12px; bottom: 26px; }
}

/* iPhone (marco dibujado; la captura es real) */
.phone { width: 280px; aspect-ratio: 9 / 19.5; border-radius: 46px; background: #0d0c10; padding: 10px; box-shadow: 0 30px 70px rgba(22, 19, 31, .28), inset 0 0 0 2px #2b2833; }
.phone .scr { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #fff; }
/* Captura a lo ancho completo, pegada abajo (sin recortar los lados = sin zoom); arriba queda la franja de la barra de estado. */
.phone .scr img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; display: block; }
.phone .scr::before { content: '9:41'; position: absolute; top: 9px; left: 26px; font: 600 14px var(--text); color: #111; z-index: 2; }
.phone .scr::after { content: ''; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 20px; background: #0d0c10; z-index: 2; }
.phone.dark .scr::before { color: #fff; }
.phone .scr .sb { position: absolute; inset: 0; background: var(--sbc, #fff); }
@media (max-width: 480px) { .phone { width: 240px; border-radius: 40px; padding: 9px; } .phone .scr { border-radius: 32px; } }

/* ── Logos de negocios reales ─────────────────────────────────────────── */
.logos { padding: 34px 0 46px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos p { text-align: center; color: var(--ink-3); font-size: 14.5px; margin-bottom: 20px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .row { display: flex; gap: 22px; width: max-content; animation: slide 60s linear infinite; }
.marquee img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: var(--card); border: 1px solid var(--line); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Cómo funciona ────────────────────────────────────────────────────── */
.how { padding: 90px 0; }
.how .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.how .phone { margin: 0 auto; }
.how h2 { margin: 10px 0 34px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.steps li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: start; }
.steps .n { font-family: var(--display); font-size: 58px; line-height: .9; color: var(--brand); font-weight: 800; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); }
@media (max-width: 920px) { .how { padding: 64px 0; } .how .wrap { grid-template-columns: 1fr; gap: 40px; } .how .phone { order: 2; } }

/* ── Bandas de negocios / repartidores ────────────────────────────────── */
.bands { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 0 90px; }
.band { border-radius: 30px; padding: 40px; display: flex; flex-direction: column; gap: 18px; min-height: 440px; position: relative; overflow: hidden; }
.band.ink { background: #16131f; color: #f6f3fb; }
.band.purple { background: var(--brand-2); color: #fff; }
@media (prefers-color-scheme: dark) { .band.ink { background: #221d2c; } }
.band .kicker { color: var(--sun); }
.band p { color: rgba(255, 255, 255, .78); max-width: 30em; }
.band ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; }
.band li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.band li svg { width: 22px; height: 22px; flex: none; color: var(--sun); margin-top: 1px; }
.band .btn { align-self: flex-start; margin-top: auto; }
.band .glyph { position: absolute; right: -30px; top: -30px; width: 170px; height: 170px; opacity: .08; color: #fff; }
@media (max-width: 860px) { .bands { grid-template-columns: 1fr; padding-bottom: 64px; } .band { padding: 30px 24px; min-height: 0; border-radius: 26px; } }

/* ── Ciudades ─────────────────────────────────────────────────────────── */
.cities { padding: 0 0 90px; }
.cities .box { background: var(--bg-2); border-radius: 30px; padding: 44px 40px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 15.5px; }
.chip svg { width: 16px; height: 16px; color: var(--brand); }
@media (max-width: 860px) { .cities { padding-bottom: 64px; } .cities .box { grid-template-columns: 1fr; padding: 30px 22px; border-radius: 26px; } }

/* ── Preguntas ────────────────────────────────────────────────────────── */
.faq { padding: 0 0 90px; }
.faq .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 18px; position: relative; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--ink-3); border-bottom: 2.5px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { color: var(--ink-2); padding: 0 30px 20px 0; }
@media (max-width: 860px) { .faq { padding-bottom: 64px; } .faq .wrap { grid-template-columns: 1fr; gap: 10px; } }

/* ── Llamado final ────────────────────────────────────────────────────── */
.final { margin: 0 20px 20px; border-radius: 34px; overflow: hidden; position: relative; background: #16131f url('/assets/banner.jpg') center/cover; color: #fff; }
.final::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(22, 19, 31, .92) 20%, rgba(22, 19, 31, .45) 70%, rgba(22, 19, 31, .2)); }
.final .wrap { position: relative; padding-top: 90px; padding-bottom: 90px; }
.final h2 { max-width: 12em; margin-bottom: 14px; }
.final p { color: rgba(255, 255, 255, .8); max-width: 30em; margin-bottom: 28px; }
@media (max-width: 480px) { .final { margin: 0 10px 10px; border-radius: 26px; } .final .wrap { padding-top: 56px; padding-bottom: 56px; } }

/* ── Páginas interiores ───────────────────────────────────────────────── */
.page-head { padding: 50px 0 30px; }
.page-head h1 { font-size: clamp(38px, 6vw, 62px); margin: 12px 0 16px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; padding-bottom: 80px; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 28px; padding-bottom: 56px; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h3 { margin-bottom: 14px; }
.panel + .panel { margin-top: 16px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ticks svg { width: 22px; height: 22px; flex: none; color: #148a4c; margin-top: 1px; }
.numbered { list-style: none; margin: 22px 0 30px; padding: 0; counter-reset: s; display: grid; gap: 18px; }
.numbered li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.numbered li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 20px; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.numbered b { font-weight: 700; }
.muted { color: var(--ink-3); font-size: 14.5px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.contact { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; text-decoration: none; min-height: 76px; }
.contact:hover { border-color: var(--brand); }
.contact .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.contact .ico svg { width: 22px; height: 22px; }
.contact small { display: block; color: var(--ink-3); font-size: 13.5px; }
.contact b { font-weight: 700; word-break: break-word; }

/* Documentos (políticas, nosotros) */
.doc { max-width: 760px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(36px, 5.5vw, 56px); margin: 14px 0 10px; }
.doc h2 { font-size: 26px; margin: 40px 0 12px; }
.doc h3 { font-size: 19px; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--brand); font-weight: 600; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; margin-top: 10px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }

/* Tienda compartida */
.shop-cover { height: clamp(160px, 30vw, 280px); border-radius: 26px; background: var(--bg-2) center/cover no-repeat; }
.shop-head { display: flex; gap: 18px; align-items: flex-end; margin-top: -44px; padding: 0 20px; }
.shop-head img { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; background: var(--card); border: 4px solid var(--bg); }
.shop-head h1 { font-size: clamp(30px, 5vw, 46px); padding-bottom: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag { background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }

/* ── Pie ──────────────────────────────────────────────────────────────── */
footer { padding: 50px 0 calc(40px + var(--safe-b)); color: var(--ink-3); font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
footer h4 { margin: 0 0 12px; color: var(--ink); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; color: var(--ink-2); }
footer a:hover { color: var(--ink); }
footer .legal { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > :first-child { grid-column: 1 / -1; } }

/* ── Barra fija de descarga (solo teléfono) ───────────────────────────── */
.dlbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); z-index: 30; display: none; align-items: center; gap: 12px; background: var(--ink); color: var(--bg); border-radius: 20px; padding: 10px 10px 10px 14px; box-shadow: 0 16px 40px rgba(22, 19, 31, .35); transform: translateY(140%); transition: transform .3s ease; }
.dlbar.on { transform: translateY(0); }
.dlbar img { width: 38px; height: 38px; border-radius: 10px; }
.dlbar div { flex: 1; line-height: 1.2; }
.dlbar b { display: block; font-size: 15px; }
.dlbar small { font-size: 12.5px; opacity: .7; }
.dlbar a { background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; border-radius: 12px; padding: 0 18px; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 760px) { .dlbar { display: flex; } body.has-dlbar footer { padding-bottom: calc(110px + var(--safe-b)); } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Logos de pago y contacto en el pie (requisito de AZUL, 2026-10-14) */
footer .paysafe { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; font-size: 14px; }
.paybadges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.paybadges img { height: 30px; width: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; box-sizing: content-box; }
footer .contactline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 14px; }
footer .paysafe + .contactline + .legal { margin-top: 16px; }
.doc .paybadges { margin: 14px 0 22px; }
.offer { padding: 56px 0 8px; }
.offer h2 { margin: 10px 0 22px; }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 20px; }
.offer-grid > div { border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.offer-grid h3 { margin: 0 0 6px; font-size: 17px; }
.offer-grid p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .offer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .offer-grid { grid-template-columns: 1fr; } }
