/* ==========================================================================
   StockFlow — landing
   1. Base            4. Dispositivos (tablet, teléfono, terminal)
   2. Navegación      5. Secciones
   3. Recorrido       6. Movimiento y adaptación
   Las maquetas de la app usan `em`: 1em = 1 % del ancho del dispositivo,
   así escalan sin transformaciones y el texto se mantiene nítido.
   ========================================================================== */

:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --soft: #f5f5f7;
  --night: #05070d;
  --on-night: #f5f5f7;
  --muted-night: #a1a6b4;
  --blue: #2f6bff;
  --blue-2: #6f9bff;
  --green: #0f9d63;
  --nav-h: 52px;
  --shell: min(1120px, 100% - 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Paleta de la app (Material 3) */
  --app-bg: #fbf8ff;
  --app-ink: #1c1b20;
  --app-muted: #5b5963;
  --app-line: #d6d3de;
  --app-tint: #dfe0f7;
  --app-card: #f3f0f8;
  --app-primary: #4a5596;
  --app-green: #12a36a;
  --app-red: #b3261e;
  interpolate-size: allow-keywords;
}

/* 1. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--night); font-family: var(--font); font-size: 1.0625rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
.shell { width: var(--shell); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { display: inline-block; flex: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 16px; border-radius: 10px; color: #fff; background: var(--blue); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.grad { color: transparent; background: linear-gradient(92deg, #8ec0ff, #6f9bff 45%, #b7a3ff); -webkit-background-clip: text; background-clip: text; }
.dim { color: #86868b; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; cursor: pointer; transition: transform .3s var(--ease), background .2s, box-shadow .3s; }
.btn .i { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-primary { color: #fff; background: var(--blue); box-shadow: 0 10px 30px -10px rgb(47 107 255 / .8); }
.btn-primary:hover { background: #4a7dff; }
.btn-glass { color: #fff; background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .2); }
.btn-glass:hover { background: rgb(255 255 255 / .18); }
.btn-ink { color: #fff; background: var(--ink); }
.btn-ink:hover { background: #3a3a3d; }
.btn-sm { min-height: 34px; padding: 0 16px; font-size: .82rem; box-shadow: none; }
.btn-block { width: 100%; }
.link-btn { padding: 6px 2px; border: 0; background: none; color: var(--blue-2); font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* 2. Navegación ---------------------------------------------------------- */
.nav { position: fixed; z-index: 50; inset: 0 0 auto; height: var(--nav-h); color: #f5f5f7; background: rgb(8 10 18 / .72); border-bottom: 1px solid rgb(255 255 255 / .08); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.05rem; font-weight: 650; letter-spacing: -.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .8rem; }
.nav-links a:not(.btn) { opacity: .74; transition: opacity .2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current] { opacity: 1; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; margin: 6px auto; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* 3. Recorrido (portada + venta) ----------------------------------------- */
.story { position: relative; color: var(--on-night); background: var(--night); }
.story-stage {
  --h: 0;
  --cap-top: clamp(14px, 3.4vh, 40px);
  --cap-h: 124px;
  --tw: min(900px, 86vw);
  --pw: calc(var(--tw) * .29);
  --mw: calc(var(--tw) * .2);
  position: relative; display: grid; justify-items: center; gap: 56px; padding: calc(var(--nav-h) + 64px) 0 72px; overflow: clip;
}
.story-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 44% at 50% 0%, rgb(47 107 255 / .3), transparent 70%); }
.hero-copy { position: relative; width: var(--shell); text-align: center; }
.eyebrow { margin: 0 0 18px; font-size: .95rem; font-weight: 600; color: var(--blue-2); }
h1 { margin: 0 0 22px; font-size: clamp(2.6rem, 7.4vw, 5.5rem); line-height: 1.04; font-weight: 700; letter-spacing: -.045em; }
.hero-lead { max-width: 590px; margin: 0 auto 30px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.42; color: var(--muted-night); text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-proof { margin: 22px 0 0; font-size: .82rem; color: #8b91a1; }

.story-captions { order: 3; width: var(--shell); margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.story-captions h2 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.15; letter-spacing: -.02em; }
.story-captions p { margin: 0; font-size: .94rem; line-height: 1.45; color: var(--muted-night); }
.story-devices { order: 2; position: relative; width: 100%; display: grid; place-items: center; }
.rise { position: relative; width: var(--tw); }
.rise::before { content: ""; position: absolute; z-index: -1; inset: -12% -16% -22%; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgb(64 118 255 / .42), transparent 70%); }
.tablet-wrap, .phone-wrap, .terminal { transition: transform 1.1s var(--ease), opacity .7s var(--ease); }
.tablet-wrap { transform: translateX(-9%) scale(.84); }
.phone-wrap { position: absolute; z-index: 2; top: 50%; right: calc(var(--tw) * -.01); transform: translateY(-50%); }
.terminal { opacity: 0; }
.story-note { order: 4; margin: 0; font-size: .72rem; color: #6b7180; }
.story-steps { display: flex; gap: 6px; }
.story-steps button { width: 46px; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.story-steps span { position: relative; display: block; height: 4px; overflow: hidden; border-radius: 2px; background: rgb(255 255 255 / .22); }
.story-steps span::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--f, 0)); }

/* Con movimiento: la escena queda fija y el scroll avanza la venta. */
.motion .story { height: 560vh; }
.motion .story-stage {
  --tw: min(900px, 86vw, calc((100svh - var(--nav-h) - var(--cap-top) - var(--cap-h) - 96px) * 1.56));
  position: sticky; top: 0; display: block; height: 100vh; height: 100svh; padding: 0;
}
.motion .hero-copy { position: absolute; top: calc(var(--nav-h) + clamp(22px, 6vh, 70px)); left: 50%; translate: -50% 0; opacity: calc(1 - var(--h) * 1.7); transform: translate3d(0, calc(var(--h) * -70px), 0) scale(calc(1 - var(--h) * .05)); }
.motion .story-stage:not(.s0) .hero-copy { visibility: hidden; }
.motion .story-captions { position: absolute; top: calc(var(--nav-h) + var(--cap-top)); left: 50%; translate: -50% 0; display: block; width: min(700px, 100% - 40px); height: var(--cap-h); text-align: center; }
.motion .story-captions li { position: absolute; inset: 0; display: grid; align-content: center; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .7s var(--ease); pointer-events: none; }
.motion .story-captions li.on { opacity: 1; transform: none; transition-delay: .12s; }
.motion .story-captions h2 { margin-bottom: 10px; font-size: clamp(1.65rem, 3.4vw, 2.6rem); line-height: 1.08; letter-spacing: -.035em; }
.motion .story-captions p { font-size: clamp(.94rem, 1.3vw, 1.1rem); text-wrap: balance; }
.motion .story-devices { position: absolute; inset: calc(var(--nav-h) + var(--cap-top) + var(--cap-h)) 0 62px; perspective: 1700px; }
.motion .rise { transform-origin: 50% 0; transform: translate3d(0, calc((1 - var(--h)) * var(--rise0, 34vh)), 0) rotateX(calc((1 - var(--h)) * 24deg)) scale(calc(1.05 - var(--h) * .05)); will-change: transform; }
.motion .tablet-wrap { transform: none; }
.motion .phone-wrap { opacity: 0; transform: translate(34%, -46%) scale(.92); }
.motion .s4 .tablet-wrap { transform: translateX(-9%) scale(.84); }
.motion .s4 .phone-wrap { opacity: 1; transform: translateY(-50%); }
.motion .terminal { transform: translate(34%, 30%) rotate(14deg); }
.motion .b5 .terminal { opacity: 1; transform: rotate(5deg); }
.motion .b7 .terminal { opacity: 0; transform: translate(34%, 30%) rotate(14deg); }
.motion .story-steps { position: absolute; bottom: 14px; left: 50%; translate: -50% 0; opacity: 0; transition: opacity .4s; }
.motion .story-stage:not(.s0) .story-steps { opacity: 1; }
.motion .story-note { position: absolute; left: 24px; bottom: 22px; opacity: 0; transition: opacity .4s; }
.motion .story-stage:not(.s0) .story-note { opacity: 1; }

/* 4. Dispositivos -------------------------------------------------------- */
.tablet { position: relative; width: 100em; padding: 1.5em; font-size: calc(var(--tw) / 100); border-radius: 3.7em; background: linear-gradient(145deg, #2c2d33, #0c0c0e 32%, #000); box-shadow: inset 0 0 0 .14em #3b3c42, 0 5em 10em -3em rgb(0 0 0 / .75); }
.tablet-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 2.3em; color: var(--app-ink); background: var(--app-bg); }

.pos { position: absolute; inset: 0; display: grid; grid-template: "top top top" 6.4em "rail main cart" minmax(0, 1fr) / 7em minmax(0, 1fr) 32.5em; font-family: Roboto, "Segoe UI", system-ui, sans-serif; line-height: 1.2; text-align: left; letter-spacing: 0; user-select: none; -webkit-user-select: none; }
.pos-top { grid-area: top; display: flex; align-items: center; justify-content: space-between; padding: 0 2.2em 0 1.8em; }
.pos-top b { display: block; font-size: 2.3em; font-weight: 400; }
.pos-top small { display: block; font-size: 1.25em; color: var(--app-muted); }
.pos-top .i { width: 2.4em; height: 2.4em; }
.pos-rail { grid-area: rail; display: flex; flex-direction: column; align-items: center; gap: 1.5em; padding-top: .4em; border-right: .1em solid var(--app-line); }
.pos-rail > span { display: grid; justify-items: center; gap: .3em; font-size: 1.12em; color: #3b3a42; }
.pos-rail span i { display: grid; place-items: center; width: 4.6em; height: 2.6em; border-radius: 1.3em; }
.pos-rail span.on i { background: var(--app-tint); }
.pos-rail span .i { width: 1.9em; height: 1.9em; }
.pos-rail .pos-logo { display: flex; align-items: flex-end; justify-content: center; gap: .32em; width: 3.4em; height: 3.4em; padding-bottom: .8em; border-radius: .85em; background: linear-gradient(145deg, #3b82f6, #1e3a8a); }
.pos-logo i { width: .5em; border-radius: .12em; background: #fff; }
.pos-logo i:nth-child(1) { height: .8em; opacity: .6; }
.pos-logo i:nth-child(2) { height: 1.3em; opacity: .8; }
.pos-logo i:nth-child(3) { height: 1.8em; }
.pos-main { grid-area: main; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1.5em; padding: .9em 1.6em 0; position: relative; }
.pos-search { display: flex; gap: 1em; }
.pos-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 1.2em; height: 5em; padding: 0 1.9em; border: .12em solid #7b7983; border-radius: 2.5em; }
.pos-field .i { width: 2.1em; height: 2.1em; }
.pos-field span, .pos-field input { font-size: 1.5em; color: var(--app-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-field input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: none; font-family: inherit; color: var(--app-ink); user-select: text; -webkit-user-select: text; }
.pos-field:focus-within { border-color: var(--app-primary); box-shadow: 0 0 0 .14em var(--app-primary); }
.pos-scan { display: grid; place-items: center; width: 5em; height: 5em; border-radius: 50%; background: var(--app-tint); }
.pos-scan .i { width: 2.3em; height: 2.3em; }
.pos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3em; align-content: start; }
.pos-none { margin: 0; position: absolute; inset: 9em 2em auto; font-size: 1.5em; text-align: center; color: var(--app-muted); }
.pos-card { position: relative; display: grid; overflow: hidden; border: .1em solid #cdcad6; border-radius: 1.6em; background: var(--app-card); }
.pos-thumb { display: grid; place-items: center; height: 11.6em; }
.pos-thumb .i { width: 4.6em; height: 4.6em; stroke-width: 1.4; }
.pos-name { padding: .6em .85em 0; font-size: 1.42em; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-price { padding: .32em .72em 0; font-size: 1.65em; font-weight: 700; }
.pos-stock { padding: .12em 1.05em .9em; font-size: 1.15em; color: var(--app-muted); }
.pos-add { position: absolute; right: 1em; bottom: 1em; display: grid; place-items: center; width: 2.7em; height: 2.7em; border: .17em solid var(--app-primary); border-radius: 50%; color: var(--app-primary); }
.pos-add .i { width: 1.5em; height: 1.5em; stroke-width: 2.2; }
.pos-flag { position: absolute; top: .7em; right: .7em; padding: .3em .8em; border-radius: 1em; font-size: 1.05em; font-weight: 700; color: var(--app-red); background: #fde2e1; }
.pos-card.is-out .pos-thumb { filter: grayscale(1) brightness(.62); }
.pos-card.is-out .pos-stock { color: var(--app-red); }
.pos-card.is-out .pos-add { opacity: .3; }
.pos-card.is-out .pos-flag { color: #fff; background: var(--app-red); }
.t-blue { color: #2f5fd0; background: #dbe6ff; }
.t-rose { color: #c2416b; background: #ffdfe9; }
.t-amber { color: #b26a00; background: #ffecc7; }
.t-teal { color: #0d7f79; background: #d2f3ef; }
.t-violet { color: #6b47c9; background: #e8defc; }
.t-slate { color: #4d5566; background: #dfe3ea; }

.pos-cart { grid-area: cart; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-left: .1em solid var(--app-line); }
.pos-cart-head { display: flex; align-items: center; gap: 1em; padding: 1.5em 1.8em; border-bottom: .1em solid var(--app-line); }
.pos-cart-head .i { width: 2.1em; height: 2.1em; }
.pos-cart-head b { font-size: 1.6em; font-weight: 500; }
.pos-count { margin-left: auto; padding: .3em .9em; border-radius: 1em; font-size: 1.15em; color: #3b4279; background: var(--app-tint); }
.pos-rows { grid-area: 2 / 1; padding: 0 1em; overflow: hidden; }
.pos-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1em; padding: 1.5em .8em; border-bottom: .1em solid #dedbe6; animation: row-in .5s var(--ease) backwards; }
.pos-row-info b { display: block; font-size: 1.5em; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-row-info small { font-size: 1.2em; color: var(--app-muted); }
.pos-qty { display: flex; align-items: center; gap: .8em; }
.pos-qty b { min-width: 1.1em; font-size: 1.45em; font-weight: 500; text-align: center; }
.pos-step { display: grid; place-items: center; width: 2.3em; height: 2.3em; padding: 0; border: .16em solid #3b3a42; border-radius: 50%; background: none; font-size: 1em; }
.pos-step .i { width: 1.3em; height: 1.3em; stroke-width: 2.2; }
.pos-line { min-width: 4.7em; font-size: 1.5em; font-weight: 700; text-align: right; }
.pos-empty { grid-area: 2 / 1; display: grid; place-content: center; justify-items: center; gap: 1em; opacity: 0; transition: opacity .4s; pointer-events: none; }
.pos-empty .i { width: 5.4em; height: 5.4em; stroke-width: 1.3; }
.pos-empty span { font-size: 1.5em; font-weight: 500; }
.pos.is-empty .pos-empty { opacity: 1; }
.pos-pay { display: grid; gap: 1.5em; padding: 1.6em 1.6em 1.8em; border-top: .1em solid var(--app-line); background: #efecf5; }
.pos-methods { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: .7em; }
.pos-method { display: flex; align-items: center; justify-content: center; gap: .45em; padding: .68em .2em; border: .1em solid #8b8993; border-radius: 1.6em; font-size: 1.15em; transition: background .3s, border-color .3s; }
.pos-method .i { width: 1.35em; height: 1.35em; }
.pos-method.on { border-color: transparent; background: var(--app-tint); font-weight: 500; }
.pos-total-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1em; }
.pos-total small { display: block; font-size: 1.2em; }
.pos-total b { font-size: 2.7em; font-weight: 700; font-variant-numeric: tabular-nums; }
.pos-charge { display: flex; align-items: center; gap: .5em; padding: .92em 1.5em; border-radius: 2em; font-size: 1.5em; font-weight: 500; color: #fff; background: var(--app-primary); transition: opacity .3s, transform .2s; }
.pos-charge .i { width: 1.3em; height: 1.3em; }
.pos.is-empty .pos-charge { opacity: .4; }
.pos-overlay { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; background: rgb(22 20 32 / .48); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.pos[data-phase="waiting"] .pos-overlay, .pos[data-phase="approved"] .pos-overlay { opacity: 1; visibility: visible; }
.pos-dialog { display: grid; justify-items: center; gap: 1em; width: 36em; padding: 3.2em 3em 2.8em; border-radius: 2.8em; text-align: center; background: var(--app-card); box-shadow: 0 2em 6em rgb(0 0 0 / .3); transform: scale(.94); transition: transform .45s var(--ease); }
.pos[data-phase="waiting"] .pos-dialog, .pos[data-phase="approved"] .pos-dialog { transform: none; }
.pos-dialog b { font-size: 2em; font-weight: 500; }
.pos-dialog small { font-size: 1.4em; color: var(--app-muted); }
.pos-spinner { width: 5em; height: 5em; margin-bottom: .6em; border: .5em solid var(--app-tint); border-top-color: var(--app-primary); border-radius: 50%; animation: spin .9s linear infinite; }
.pos-ok { display: none; place-items: center; width: 5.6em; height: 5.6em; margin-bottom: .4em; border-radius: 50%; color: #fff; background: var(--app-green); animation: pop .5s var(--ease); }
.pos-ok .i { width: 3em; height: 3em; stroke-width: 2.6; }
.pos[data-phase="approved"] .pos-spinner { display: none; }
.pos[data-phase="approved"] .pos-ok { display: grid; }
.pos-dialog-btn { margin-top: .8em; padding: .75em 1.7em; border: 0; border-radius: 2em; font-size: 1.4em; font-weight: 500; color: #fff; background: var(--app-primary); cursor: pointer; }
.pos-toast { position: absolute; z-index: 1; left: 36%; bottom: 2.4em; display: flex; align-items: center; gap: .5em; padding: .8em 1.4em; border-radius: 2em; font-size: 1.35em; white-space: nowrap; color: #fff; background: #322f37; opacity: 0; transform: translate(-50%, 1em); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.pos-toast .i { width: 1.2em; height: 1.2em; color: #6ee7a8; stroke-width: 2.6; }
.pos[data-phase="done"] .pos-toast { opacity: 1; transform: translate(-50%, 0); }
.bump { animation: bump .6s var(--ease); }
.pos-card.added { animation: tap .4s var(--ease); }
.pos-card.added .pos-add { animation: pop .45s var(--ease); }
.pos-card.changed .pos-stock { animation: flash-text 1.4s var(--ease); }
.pos-card.denied { animation: shake .4s; }

/* Demo: la misma maqueta, pero se puede tocar. */
.pos:not(.is-static) .pos-card, .pos:not(.is-static) .pos-method, .pos:not(.is-static) .pos-charge, .pos:not(.is-static) .pos-step { cursor: pointer; }
.pos:not(.is-static) .pos-card { transition: transform .25s var(--ease), box-shadow .25s; }
.pos:not(.is-static) .pos-card.is-out { cursor: not-allowed; }
.pos:not(.is-static) .pos-step:hover { background: var(--app-tint); }
.pos:not(.is-static):not(.is-empty) .pos-charge:hover { transform: scale(1.04); }
.pos.is-empty:not(.is-static) .pos-charge { cursor: not-allowed; }
.pos :focus-visible { outline: .3em solid var(--blue); outline-offset: .2em; border-radius: inherit; }
.pos.is-hint .pos-card:first-child .pos-add::after { content: ""; position: absolute; inset: -.5em; border: .2em solid var(--app-primary); border-radius: 50%; animation: ping 1.5s var(--ease) infinite; }

.phone { width: 100em; padding: 3em; font-size: calc(var(--pw) / 100); border-radius: 15em; background: linear-gradient(145deg, #2c2d33, #0b0b0d 35%, #000); box-shadow: inset 0 0 0 .45em #3b3c42, 0 16em 40em -10em rgb(0 0 0 / .8); }
.phone-screen { aspect-ratio: 9 / 18.4; overflow: hidden; display: flex; flex-direction: column; gap: 4.5em; padding: 9em 5.5em 0; border-radius: 12em; font-family: Roboto, "Segoe UI", system-ui, sans-serif; line-height: 1.2; text-align: left; color: var(--app-ink); background: var(--app-bg); }
.ph-top { display: flex; align-items: center; justify-content: space-between; }
.ph-top b { font-size: 6.2em; font-weight: 400; }
.ph-top span { display: flex; align-items: center; gap: .5em; font-size: 3.9em; }
.ph-cloud { width: 1.8em; height: 1.8em; color: var(--app-green); }
.ph-hello b { display: block; font-size: 7.4em; font-weight: 700; }
.ph-hello small { font-size: 4.6em; color: var(--app-muted); }
.ph-card { display: grid; gap: 4em; padding: 5em; border: .3em solid var(--app-line); border-radius: 5em; background: var(--app-card); }
.ph-card-h { display: flex; align-items: center; gap: 2.4em; }
.ph-card-h > .i { width: 6.5em; height: 6.5em; color: var(--app-primary); }
.ph-card-h b { display: block; font-size: 4.8em; font-weight: 700; }
.ph-card-h small { font-size: 3.6em; color: var(--app-muted); }
.ph-kpis { display: grid; grid-template-columns: 1fr 1.5fr; text-align: center; }
.ph-kpis div + div { border-left: .3em solid var(--app-line); }
.ph-kpis b { display: block; font-size: 7.6em; font-weight: 700; font-variant-numeric: tabular-nums; }
.ph-kpis small { font-size: 4em; color: var(--app-muted); }
.phone .g { color: var(--app-green); }
.ph-branch { display: flex; align-items: center; gap: 3em; }
.ph-branch > i { display: grid; place-items: center; width: 9em; height: 9em; border-radius: 50%; color: var(--app-primary); background: var(--app-tint); }
.ph-branch > i .i { width: 5em; height: 5em; }
.ph-branch div { flex: 1; min-width: 0; }
.ph-branch div b { display: block; font-size: 4.2em; font-weight: 500; }
.ph-branch small { font-size: 3.5em; color: var(--app-muted); }
.ph-branch > b { font-size: 4.4em; font-weight: 700; font-variant-numeric: tabular-nums; }
.ph-nav { display: grid; grid-template-columns: repeat(5, 1fr); margin: auto -5.5em 0; padding: 3em 2em 5.5em; text-align: center; background: #efecf5; }
.ph-nav span { display: grid; justify-items: center; gap: .5em; font-size: 3.1em; }
.ph-nav span i { display: grid; place-items: center; width: 5.2em; height: 2.7em; border-radius: 1.4em; }
.ph-nav span.on i { background: var(--app-tint); }
.ph-nav span .i { width: 1.9em; height: 1.9em; }
.ph-card.flash { animation: flash-card 1.5s var(--ease); }

.terminal { position: absolute; z-index: 3; right: calc(var(--tw) * -.045); bottom: calc(var(--tw) * -.035); display: grid; gap: 7em; width: 100em; padding: 7em 7em 9em; font-size: calc(var(--mw) / 100); border-radius: 13em; background: linear-gradient(160deg, #3157b4, #12275a); box-shadow: inset 0 0 0 .7em rgb(255 255 255 / .08), 0 22em 44em -12em rgb(0 0 0 / .8); }
.terminal-screen { aspect-ratio: 3 / 3.5; display: grid; align-content: center; justify-items: center; gap: 3em; padding: 6em; border-radius: 7em; text-align: center; color: #141824; background: #f6f8fc; transition: background .4s; }
.terminal-screen small { font-size: 8em; color: #5b6272; }
.terminal-screen b { font-size: 16em; letter-spacing: -.03em; }
.terminal-wave { width: 22em; height: 22em; color: var(--blue); }
.terminal-wave .i { width: 100%; height: 100%; }
.terminal-screen em { font-size: 7.4em; font-style: normal; color: #5b6272; }
.terminal-screen .terminal-ok { display: none; align-items: center; gap: .3em; font-size: 10em; font-weight: 700; color: #0a8a55; }
.terminal-ok .i { stroke-width: 2.8; }
.b6 .terminal-wave, .b6 .terminal-wait { display: none; }
.b6 .terminal-screen .terminal-ok { display: flex; animation: pop .5s var(--ease); }
.b6 .terminal-screen { background: #e4f8ee; }
.terminal-keys { display: flex; justify-content: center; gap: 6em; }
.terminal-keys i { width: 15em; height: 5em; border-radius: 3em; background: rgb(255 255 255 / .2); }
.terminal-keys i:first-child { background: #f0625d; }
.terminal-keys i:last-child { background: #3fcf8e; }

/* 5. Secciones ----------------------------------------------------------- */
.section { padding: clamp(84px, 11vw, 150px) 0; background: #fff; }
.section-soft { background: var(--soft); }
.section-night { color: var(--on-night); background: var(--night); }
.head { max-width: 800px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.head-left { margin-inline: 0; text-align: left; }
.kicker { margin: 0 0 14px; font-size: .95rem; font-weight: 600; color: var(--blue); }
.section-night .kicker, .cta .kicker { color: var(--blue-2); }
.head h2, .cta h2 { margin: 0 0 18px; font-size: clamp(2.05rem, 5.2vw, 3.75rem); line-height: 1.06; font-weight: 700; letter-spacing: -.04em; text-wrap: balance; }
.head p:last-child { max-width: 560px; margin: 0 auto; font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.45; color: var(--muted); text-wrap: balance; }
.section-night .head p:last-child { color: var(--muted-night); }

.statement { padding: clamp(96px, 15vw, 190px) 0 clamp(72px, 10vw, 120px); background: #fff; }
.statement-text { max-width: 980px; margin: 0 auto; font-size: clamp(1.9rem, 5vw, 3.9rem); line-height: 1.12; font-weight: 700; letter-spacing: -.04em; }
.statement-text .w { color: #d2d2d7; transition: color .4s; }
.statement-text .w.on { color: var(--ink); }
.pillars { max-width: 980px; margin: clamp(56px, 8vw, 96px) auto 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pillars li { display: grid; gap: 4px; align-content: start; font-size: .92rem; line-height: 1.4; color: var(--muted); }
.pillars .i { width: 28px; height: 28px; margin-bottom: 10px; color: var(--blue); }
.pillars strong { font-size: 1.05rem; color: var(--ink); }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 20px; }
.card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 28px; min-width: 0; padding: 32px; border-radius: 28px; background: #fff; }
.card::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: 0; background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgb(47 107 255 / .1), transparent 60%); transition: opacity .4s; }
.card:hover::before { opacity: 1; }
.card-dark { color: #f5f5f7; background: linear-gradient(160deg, #111a2c, #05070d); }
.card-dark::before { background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgb(111 155 255 / .2), transparent 60%); }
.card > :last-child { margin-top: auto; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; flex-direction: row; align-items: stretch; }
.span-4 .card-copy { flex: 0 0 40%; }
.span-4 > :last-child { flex: 1; min-width: 0; margin-top: 0; }
.card-kicker { margin: 0 0 10px; font-size: .82rem; font-weight: 600; color: var(--blue); }
.card-dark .card-kicker { color: var(--blue-2); }
.card h3 { margin: 0 0 10px; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.card-copy p:last-child { margin: 0; font-size: .98rem; line-height: 1.45; color: var(--muted); }
.card-dark .card-copy p:last-child { color: var(--muted-night); }

.offline { display: grid; align-content: center; gap: 18px; padding: 22px; border: 1px solid rgb(255 255 255 / .1); border-radius: 20px; background: rgb(255 255 255 / .06); }
.switch { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; font-weight: 600; cursor: pointer; }
.switch-track { width: 52px; height: 32px; padding: 3px; border-radius: 16px; background: #4a4f5e; transition: background .3s; }
.switch-thumb { display: block; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .3); transition: transform .4s var(--ease); }
.switch[aria-checked="true"] .switch-track { background: #30d158; }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(20px); }
.offline-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.offline-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: .9rem; background: rgb(255 255 255 / .06); }
.offline-list em { font-size: .8rem; font-style: normal; color: #30d158; transition: color .3s; }
.offline-list em.pending { color: #ffb340; }

.nip { display: grid; justify-items: center; gap: 14px; }
.nip-status { min-height: 1.4em; margin: 0; font-size: .85rem; color: var(--muted); }
.nip.ok .nip-status { font-weight: 600; color: var(--green); }
.nip-dots { display: flex; gap: 10px; }
.nip-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); transition: background .2s, transform .3s var(--ease); }
.nip-dots i.on { background: var(--ink); transform: scale(1.18); }
.nip.ok .nip-dots i { background: var(--green); }
.nip-pad { display: grid; grid-template-columns: repeat(3, 54px); gap: 8px; }
.nip-pad button { display: grid; place-items: center; height: 44px; border: 0; border-radius: 14px; font-size: 1.1rem; font-weight: 600; background: var(--soft); cursor: pointer; transition: background .15s, transform .2s var(--ease); }
.nip-pad button:hover { background: #e8e8ed; }
.nip-pad button:active { transform: scale(.92); background: #dcdce2; }
.nip-pad .i { width: 22px; height: 22px; }

.variants { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 22px; }
.variants-art { aspect-ratio: 1; display: grid; place-items: center; border-radius: 24px; color: var(--c, #d83a4b); background: color-mix(in srgb, var(--c, #d83a4b) 14%, #fff); transition: color .4s, background .4s; }
.variants-art .i { width: 64%; height: 64%; fill: currentColor; stroke-width: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chips button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 600; background: #fff; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .2s var(--ease); }
.chips button:active { transform: scale(.94); }
.chips button[aria-pressed="true"] { color: #fff; border-color: var(--ink); background: var(--ink); }
.chips-color i { width: 12px; height: 12px; border-radius: 50%; background: var(--sw, var(--line)); box-shadow: 0 0 0 1.5px #fff; }
.variants-out { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 8px 0 0; }
.variants-out strong { font-size: 1.5rem; letter-spacing: -.02em; }
.variants-out span { font-size: .9rem; font-weight: 600; color: var(--green); }
.variants-out span.out { color: #d1373f; }
.variants-out small { flex-basis: 100%; font-size: .8rem; color: var(--muted); }

.layaway { display: grid; gap: 14px; padding: 22px; border-radius: 20px; background: var(--soft); }
.layaway-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.meter { height: 10px; overflow: hidden; border-radius: 5px; background: #e3e3e8; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #5ac8fa); transform-origin: left; transform: scaleX(var(--v, .4286)); transition: transform .8s var(--ease); }
.layaway.done .meter span { background: var(--green); }
.layaway-nums { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--muted); }
.layaway-nums b { color: var(--ink); font-variant-numeric: tabular-nums; }
.layaway .btn { justify-self: start; }

.report { display: grid; gap: 18px; min-width: 0; padding: 22px; border-radius: 20px; background: var(--soft); }
.report-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #e3e3e8; }
.seg button { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--muted); background: none; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.seg button[aria-pressed="true"] { color: var(--ink); background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .14); }
.report-total { margin: 0; text-align: right; }
.report-total small { display: block; font-size: .78rem; color: var(--muted); }
.report-total strong { font-size: 1.6rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.report-bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.bar { flex: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; height: 100%; font-size: .72rem; text-align: center; color: var(--muted); }
.bar i { align-self: end; height: calc(var(--v) * 100%); min-height: 4px; border-radius: 8px 8px 3px 3px; background: linear-gradient(#6f9bff, var(--blue)); opacity: .5; transition: height .8s var(--ease), opacity .2s; }
.bar:hover i, .bar.peak i { opacity: 1; }

.cut { display: grid; margin: 0; font-size: .92rem; }
.cut div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #e8e8ed; }
.cut dt { color: var(--muted); }
.cut dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.cut .cut-ok { border: 0; }
.cut-ok dd { display: flex; align-items: center; gap: 6px; color: var(--green); }
.cut-ok .i { width: 18px; height: 18px; stroke-width: 2.6; }

.tags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--soft); }
.pages { position: relative; display: grid; place-items: center; height: 150px; }
.pages span { position: absolute; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 96px; height: 128px; padding: 10px; border-radius: 10px; background: #fff; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .28), 0 0 0 1px rgb(0 0 0 / .06); transition: transform .7s var(--ease); }
.pages i { border-radius: 5px; }
.pages span:nth-child(1) { transform: translateX(-46px) rotate(-9deg); }
.pages span:nth-child(2) { z-index: 1; }
.pages span:nth-child(3) { transform: translateX(46px) rotate(9deg); }
.card:hover .pages span:nth-child(1) { transform: translateX(-72px) rotate(-14deg); }
.card:hover .pages span:nth-child(2) { transform: translateY(-8px); }
.card:hover .pages span:nth-child(3) { transform: translateX(72px) rotate(14deg); }
.label { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 8px; padding: 18px; border-radius: 16px; background: var(--soft); }
.label-name { font-size: .8rem; font-weight: 600; }
.label-bars { width: 100%; max-width: 220px; height: 56px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 8px, var(--ink) 8px 11px, transparent 11px 13px); }
.label-code { font-size: .75rem; letter-spacing: .2em; color: var(--muted); }
.label::after { content: ""; position: absolute; top: 46px; left: 10%; right: 10%; height: 2px; background: #ff3b30; box-shadow: 0 0 12px 2px rgb(255 59 48 / .6); }

.giros-tabs { position: relative; display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 28px; padding: 5px; overflow-x: auto; border-radius: 999px; background: var(--soft); scrollbar-width: none; }
.giros-tabs::-webkit-scrollbar { display: none; }
.giros-pill { position: absolute; top: 5px; bottom: 5px; left: 0; width: var(--w, 0); border-radius: 999px; background: var(--ink); transform: translateX(var(--x, 0)); transition: transform .55s var(--ease), width .55s var(--ease); }
.giros-tabs button { position: relative; flex: none; min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; font-size: .92rem; font-weight: 600; white-space: nowrap; color: var(--muted); background: none; cursor: pointer; transition: color .3s; }
.giros-tabs button[aria-selected="true"] { color: #fff; background: var(--ink); }
.js .giros-tabs button[aria-selected="true"] { background: none; }
.giro-panel { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 40px; padding: clamp(24px, 4vw, 56px); border-radius: 28px; background: var(--soft); }
.giro-intro h3 { margin: 0 0 12px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -.03em; }
.giro-intro p { margin: 0; font-size: 1.05rem; line-height: 1.45; color: var(--muted); }
.giro-points { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.giro-points li { display: grid; align-content: start; gap: 6px; padding: 22px; border-radius: 20px; font-size: .92rem; line-height: 1.45; color: var(--muted); background: #fff; }
.giro-points .i { width: 26px; height: 26px; margin-bottom: 6px; color: var(--blue); }
.giro-points strong { font-size: 1rem; color: var(--ink); }

.demo { overflow: clip; }
.demo-stage { --pw: 240px; display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 40px; }
.demo-tablet { container-type: inline-size; }
.demo-tablet .tablet { --tw: 100cqw; }
.demo-side { display: grid; justify-items: center; gap: 16px; text-align: center; }
.demo-hint { min-height: 2.9em; margin: 4px 0 0; font-size: .95rem; line-height: 1.45; color: var(--on-night); text-wrap: balance; }
.demo-note { margin: 36px 0 0; font-size: .8rem; text-align: center; color: #6b7180; }

.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 32px; border-radius: 28px; background: #fff; }
.steps span { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 50%; font-weight: 700; color: #fff; background: var(--ink); }
.steps h3 { margin: 0 0 8px; font-size: 1.3rem; letter-spacing: -.02em; }
.steps p { margin: 0; line-height: 1.45; color: var(--muted); }

.price { display: grid; grid-template-columns: 1.15fr .85fr; max-width: 940px; margin: 0 auto; overflow: hidden; border-radius: 32px; background: var(--soft); }
.price-main { display: grid; justify-items: start; gap: 18px; padding: clamp(26px, 4.5vw, 56px); }
.seg-lg button { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.seg-lg em { margin-left: 8px; padding: 3px 8px; border-radius: 999px; font-size: .7rem; font-style: normal; color: #0a7a4c; background: #d8f5e6; }
.price-amount { display: flex; align-items: flex-end; gap: 14px; margin: 8px 0 0; }
.price-figure { display: flex; align-items: flex-start; line-height: .9; }
.price-figure sup { margin-top: .5rem; font-size: 2rem; font-weight: 700; }
.price-figure strong { font-size: clamp(4.5rem, 11vw, 7rem); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.price-unit { padding-bottom: .5rem; font-weight: 700; line-height: 1.3; }
.price-unit small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.price-tax { margin: 0; font-size: .92rem; color: var(--muted); }
.price-calc { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-top: 6px; padding: 14px 16px 14px 20px; border-radius: 18px; font-size: .95rem; font-weight: 600; background: #fff; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--soft); cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.stepper button:hover { background: #e8e8ed; }
.stepper button:active { transform: scale(.9); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 2.2ch; font-size: 1.2rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.price-sum { margin: 0; font-size: 1.05rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.price-save { margin: -10px 0 6px; font-size: .9rem; font-weight: 600; color: #0a7a4c; }
.price-list { margin: 0; padding: clamp(26px, 4.5vw, 56px); list-style: none; display: grid; align-content: center; gap: 18px; font-size: .98rem; color: #f5f5f7; background: var(--night); }
.price-list li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.35; }
.price-list .i { width: 20px; height: 20px; margin-top: 2px; color: #30d158; stroke-width: 2.6; }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 48px; }
.faq .head { position: sticky; top: calc(var(--nav-h) + 32px); margin: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; flex: none; width: 22px; height: 22px; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; top: 10px; left: 3px; right: 3px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .4s var(--ease); }
.faq-mark::after { transform: rotate(90deg); }
details[open] .faq-mark::after { transform: none; }
.faq-list details p { margin: 0; padding: 0 40px 24px 0; line-height: 1.55; color: var(--muted); }
.faq-list details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.faq-list details[open]::details-content { height: auto; }

.cta { position: relative; overflow: clip; padding: clamp(96px, 13vw, 170px) 0; text-align: center; color: #f5f5f7; background: var(--night); }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 110%, rgb(47 107 255 / .5), transparent 70%); }
.cta-inner { position: relative; display: grid; justify-items: center; }
.cta img { margin-bottom: 28px; border-radius: 18px; box-shadow: 0 20px 60px -10px rgb(47 107 255 / .7); }
.cta h2 { margin-bottom: 34px; }

.footer { padding: 36px 0 44px; font-size: .85rem; color: var(--muted-night); background: var(--night); border-top: 1px solid rgb(255 255 255 / .08); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 32px; }
.footer .brand { color: #f5f5f7; }
.footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a:hover { color: #fff; }
.footer small { grid-column: 1 / -1; color: #6b7180; }

.wa { position: fixed; z-index: 40; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px; font-size: .92rem; font-weight: 650; color: #06240f; background: #25d366; box-shadow: 0 12px 32px -8px rgb(0 0 0 / .5); transition: transform .3s var(--ease); }
.wa:hover { transform: translateY(-3px); }

/* 6. Movimiento y adaptación --------------------------------------------- */
.motion-init *, .motion-init *::before, .motion-init *::after { transition: none !important; }
.motion .reveal { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .card:not(.in) .bar i { height: 4px; }
.motion .giro-panel { animation: rise-in .6s var(--ease); }
.motion .giro-points li { animation: rise-in .7s var(--ease) backwards; }
.motion .giro-points li:nth-child(2) { animation-delay: .06s; }
.motion .giro-points li:nth-child(3) { animation-delay: .12s; }
.motion .giro-points li:nth-child(4) { animation-delay: .18s; }
.motion .label::after { animation: scan 2.4s ease-in-out infinite alternate; }
.motion .terminal-wave { animation: pulse 1.4s ease-in-out infinite; }

@keyframes spin { to { transform: rotate(1turn); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); } }
@keyframes bump { 35% { transform: scale(1.16); } }
@keyframes tap { 40% { transform: scale(.95); } }
@keyframes shake { 25% { transform: translateX(-.5em); } 75% { transform: translateX(.5em); } }
@keyframes ping { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes row-in { from { opacity: 0; transform: translateX(2.4em); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes scan { from { transform: translateY(-10px); } to { transform: translateY(42px); } }
@keyframes pulse { 50% { opacity: .35; transform: scale(.94); } }
@keyframes flash-text { 0%, 60% { color: var(--blue); font-weight: 700; } }
@keyframes flash-card { 0%, 40% { box-shadow: 0 0 0 1em rgb(18 163 106 / .28); border-color: var(--app-green); } }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2, .span-3 { grid-column: span 1; }
  .span-4, .bento > :last-child { grid-column: span 2; }
  .demo-stage { grid-template-columns: minmax(0, 1fr); }
  .giro-panel { grid-template-columns: 1fr; gap: 28px; }
  .faq { grid-template-columns: 1fr; gap: 0; }
  .faq .head { position: static; margin-bottom: 28px; }
  .story-captions { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 24px 28px; font-size: 1.05rem; background: rgb(8 10 18 / .97); visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .3s, transform .4s var(--ease), visibility .3s; }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; }
  .nav-links a:not(.btn) { padding: 15px 0; border-bottom: 1px solid rgb(255 255 255 / .08); opacity: 1; }
  .nav-links .btn { min-height: 48px; margin-top: 20px; font-size: 1rem; }
  .price { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --shell: min(1120px, 100% - 40px); }
  .story-stage { --cap-h: 156px; --tw: 92vw; gap: 40px; padding-top: calc(var(--nav-h) + 40px); }
  .tablet-wrap { transform: none; }
  .phone-wrap { display: none; }
  .story-captions { grid-template-columns: 1fr; gap: 22px; }
  .hero-actions .btn { width: 100%; max-width: 340px; }
  /* Recorrido en teléfono: la tablet va en vertical y completa, con solo los
     dos productos de la venta, para que quepa entera sin acercamientos. */
  .motion .story-stage {
    --tw: min(86vw, calc((100svh - var(--nav-h) - var(--cap-top) - var(--cap-h) - 78px) / 1.446));
    --pw: min(56vw, calc((100svh - var(--nav-h) - var(--cap-top) - var(--cap-h) - 100px) * .47));
    --mw: calc(var(--tw) * .4);
  }
  .motion .story-devices .tablet { border-radius: 4.6em; }
  .motion .story-devices .tablet-screen { aspect-ratio: 10 / 14.6; border-radius: 3.2em; }
  .motion .story-devices .pos { grid-template: "top" 6.4em "main" auto "cart" minmax(0, 1fr) / minmax(0, 1fr); font-size: 2.2em; }
  .motion .story-devices .pos-rail { display: none; }
  .motion .story-devices .pos-main { padding-bottom: 1.4em; }
  .motion .story-devices .pos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .motion .story-devices .pos-card:nth-child(n + 3) { display: none; }
  .motion .story-devices .pos-cart { border-left: 0; border-top: .1em solid var(--app-line); }
  .motion .story-devices .pos-dialog { width: 34em; }
  .motion .story-devices .pos-toast { left: 50%; bottom: 14.5em; }
  .motion .story-devices .pos-empty { display: none; }
  .motion .tablet-wrap { transform: none; }
  .motion .s4 .tablet-wrap { transform: scale(.82); opacity: .22; }
  .motion .phone-wrap { display: block; top: 50%; left: 50%; right: auto; transform: translate(-50%, -30%) scale(.9); }
  .motion .s4 .phone-wrap { transform: translate(-50%, -50%); }
  .motion .terminal { right: calc(var(--tw) * -.08); bottom: calc(var(--tw) * .12); }
  .motion .story-steps { bottom: 22px; }
  .motion .story-note { left: 20px; right: 84px; bottom: 6px; text-align: left; }
  .span-4 { flex-direction: column; }
  .span-4 .card-copy { flex: none; }

  /* Demo en teléfono: sin marco de tablet y con el carrito debajo. */
  .demo-tablet .tablet { width: auto; padding: 1.2em; font-size: calc(100cqw / 46); border-radius: 3.2em; }
  .demo-tablet .tablet-screen { aspect-ratio: auto; }
  .demo-tablet .pos { position: relative; grid-template: "top" 6.4em "main" auto "cart" auto / minmax(0, 1fr); }
  .demo-tablet .pos-rail { display: none; }
  .demo-tablet .pos-main { padding-bottom: 1.6em; }
  .demo-tablet .pos-thumb { height: 8.4em; }
  .demo-tablet .pos-name { white-space: normal; min-height: 3em; }
  .demo-tablet .pos-cart { border-left: 0; border-top: .1em solid var(--app-line); }
  .demo-tablet .pos-rows, .demo-tablet .pos-empty { min-height: 11em; }
  .demo-tablet .pos-empty .i { width: 3.6em; height: 3.6em; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .span-4, .bento > :last-child { grid-column: auto; }
  .card { padding: 26px; }
  .giro-points { grid-template-columns: 1fr; }
  .variants { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .price-calc { flex-direction: column; align-items: flex-start; }
  .faq-list details p { padding-right: 0; }
  .wa { width: 52px; padding: 0; justify-content: center; }
  .wa span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
