/* BlackBox landing — la caja negra que se abre */
:root {
  --ink: #06080C;
  --ink-2: #0B1017;
  --ink-3: #121A24;
  --ink-4: #1C2735;
  --line-d: #223042;
  --mist: #9DB0C4;
  --mist-2: #6F8399;
  --white: #FFFFFF;
  --snow: #F6F9FB;
  --paper: #E9F0F5;
  --line-l: #D3DEE7;
  --text: #0C141D;
  --text-2: #4A5B6D;
  --cyan: #2BD4F5;
  --cyan-d: #0A8FAE;
  --cyan-dd: #066A83;
  --lime: #5DC85A;
  --lime-d: #2E8B2C;
  --amber: #FFB224;
  --amber-d: #A86A00;

  --display: "Anybody", "Arial Black", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --receipt: "Cousine", "Courier New", ui-monospace, monospace;

  --gutter: clamp(18px, 5vw, 56px);
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
h1, h2 { font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; line-height: 1.04; }
h3 { font-weight: 700; font-stretch: 110%; letter-spacing: -0.01em; line-height: 1.15; font-size: 1.15rem; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -64px; z-index: 200; background: var(--cyan); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--cyan); color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(43, 212, 245, .55); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: .95rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-d); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: none; background: rgba(43, 212, 245, .08); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { box-shadow: 0 10px 28px -8px rgba(255, 255, 255, .45); }
.btn-ghost-l { background: transparent; color: var(--ink); border-color: rgba(6, 8, 12, .35); }
.btn-ghost-l:hover { background: rgba(6, 8, 12, .08); border-color: var(--ink); box-shadow: none; }

/* Navegación */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.solid { background: rgba(6, 8, 12, .78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line-d); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: 1.2rem; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; overflow: visible; }
.brand-logo { width: auto; height: 50px; margin: -4px 0; object-fit: contain; transition: transform .35s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a, .btn { white-space: nowrap; }
.nav-links a:not(.btn) { color: var(--mist); text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--white); }
.nav-cta-m { display: none; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.nav-cta { margin-left: 4px; }

/* Hero */
.hero { position: relative; background: var(--ink); color: var(--white); padding: 132px 0 96px; overflow: clip; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  mask-image: radial-gradient(70% 70% at 70% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 45%, #000 20%, transparent 75%);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line-d); border-radius: 999px; color: var(--mist); font-size: .9rem; margin-bottom: 26px; background: rgba(18, 26, 36, .6); }
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(93, 200, 90, .6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(93, 200, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(93, 200, 90, 0); } }
.hero h1 { font-size: clamp(2.35rem, 5.4vw, 4.25rem); max-width: 14ch; }
.lead { margin-top: 24px; max-width: 54ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--mist); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 26px; color: var(--mist-2); font-size: .95rem; max-width: 52ch; }
.hero-fade { position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(to bottom, transparent, var(--snow)); display: none; }

/* Escena de la caja */
.stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin-inline: auto; }
.stage-glow { position: absolute; left: 50%; top: 52%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(43, 212, 245, .28), transparent); filter: blur(10px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: translate(-50%, -50%) scale(1.08); } }
.box { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: box-in 1s var(--ease) both; }
@keyframes box-in { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
.flap { transform-box: fill-box; }
.flap-l { transform-origin: 100% 100%; animation: flap-l 1.1s .35s var(--ease) both; }
.flap-r { transform-origin: 0% 100%; animation: flap-r 1.1s .35s var(--ease) both; }
@keyframes flap-l { from { transform: translate(34px, 58px) scaleY(.1); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flap-r { from { transform: translate(-34px, 58px) scaleY(.1); opacity: 0; } to { transform: none; opacity: 1; } }
.box-glow { animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

.cube { position: absolute; left: 50%; top: 52%; width: 7%; aspect-ratio: 24 / 28; margin: -3.5% 0 0 -3.5%; opacity: 0; animation: eject 7s var(--ease) infinite; animation-delay: calc(var(--d) + 1.2s); filter: drop-shadow(0 0 10px rgba(43, 212, 245, .55)); }
.cube use { width: 100%; height: 100%; }
@keyframes eject {
  0% { opacity: 0; transform: translate(0, 0) scale(.35) rotate(0); }
  8% { opacity: 1; }
  38% { transform: translate(calc(var(--x) * .55), calc(var(--y) * 1.0)) scale(1) rotate(calc(var(--r) * .5)); }
  100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 70px)) scale(.9) rotate(var(--r)); }
}
.c1 { --x: -150px; --y: -190px; --r: -25deg; --d: 0s; width: 8%; }
.c2 { --x: 20px; --y: -250px; --r: 30deg; --d: .9s; width: 6%; }
.c3 { --x: 170px; --y: -170px; --r: 40deg; --d: 1.8s; width: 7.5%; }
.c4 { --x: -80px; --y: -140px; --r: 18deg; --d: 2.7s; width: 5%; }
.c5 { --x: 110px; --y: -260px; --r: -35deg; --d: 3.6s; width: 6%; }
.c6 { --x: -190px; --y: -90px; --r: 50deg; --d: 4.5s; width: 5.5%; }
.c7 { --x: 215px; --y: -80px; --r: -20deg; --d: 5.4s; width: 5%; }

.pill { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(18, 26, 36, .88); border: 1px solid var(--line-d); backdrop-filter: blur(8px); font-size: .82rem; font-weight: 500; color: #dbe6f0; white-space: nowrap; opacity: 0; animation: pill 9s var(--ease) infinite; }
.pill i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pill i.ok { background: var(--lime); }
.pill i.warn { background: var(--amber); }
.p1 { left: -2%; top: 20%; animation-delay: 2.4s; }
.p2 { right: -3%; top: 38%; animation-delay: 5.4s; }
.p3 { left: 4%; bottom: 8%; animation-delay: 8.4s; }
@keyframes pill {
  0% { opacity: 0; transform: translateY(14px); }
  6%, 28% { opacity: 1; transform: none; }
  36%, 100% { opacity: 0; transform: translateY(-10px); }
}

/* Secciones */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec.light { background: var(--snow); color: var(--text); }
.sec.paper { background: var(--paper); color: var(--text); }
.sec.dark { background: var(--ink-2); color: var(--white); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.sec-head p { margin-top: 18px; max-width: 60ch; color: var(--text-2); font-size: 1.1rem; }
.dark .sec-head p { color: var(--mist); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; padding: 28px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line-l); overflow: hidden;
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card::before { content: ""; position: absolute; inset: 0; opacity: 0; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(43, 212, 245, .16), transparent 60%); transition: opacity .3s; pointer-events: none; }
.card:hover { border-color: var(--cyan-d); transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(6, 32, 48, .45); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 8px; }
.card > p { color: var(--text-2); font-size: .98rem; max-width: 46ch; }
.mini { margin-top: 14px; font-size: .88rem; font-weight: 500; }
.warn-t { color: var(--amber-d); }

.bars { margin-top: 24px; display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: 8.5rem 1fr 3.2rem; align-items: center; gap: 12px; font-size: .92rem; }
.bars span { color: var(--text-2); }
.bars b { text-align: right; font-variant-numeric: tabular-nums; }
.bars i { display: block; height: 10px; border-radius: 99px; background: var(--paper); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--cyan-d); transition: width 1.2s var(--ease); }
.bars i.low::after { background: var(--amber); }
.in-view .bars i::after, .bars.go i::after { width: var(--w); }

.chat { margin-top: 22px; display: grid; gap: 10px; }
.bub { max-width: 88%; padding: 11px 15px; border-radius: 16px; font-size: .93rem; line-height: 1.4; }
.bub.in { background: var(--paper); border-bottom-left-radius: 4px; }
.bub.out { background: var(--ink); color: var(--white); border-bottom-right-radius: 4px; justify-self: end; }
.bub.tag { background: transparent; border: 1px dashed var(--line-l); color: var(--text-2); font-size: .85rem; }

.log { margin-top: 18px; display: grid; gap: 10px; }
.log li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: .9rem; padding-bottom: 10px; border-bottom: 1px solid var(--line-l); color: var(--text-2); }
.log li:last-child { border: 0; padding-bottom: 0; }
.log b { color: var(--text); }
.log em { grid-column: 2; font-style: normal; font-size: .82rem; color: var(--cyan-dd); }

.aging { margin-top: 18px; height: 120px; display: flex; align-items: flex-end; gap: 12px; }
.aging div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-2); }
.aging i { display: block; width: 100%; border-radius: 8px 8px 3px 3px; background: var(--cyan-d); height: 0; transition: height 1s var(--ease); }
.aging .hot i { background: var(--amber); }
.in-view .aging i { height: calc(92px * var(--hn, 1)); }
.aging div:nth-child(1) { --hn: .78; } .aging div:nth-child(2) { --hn: .48; } .aging div:nth-child(3) { --hn: .26; } .aging div:nth-child(4) { --hn: .14; }

.lot { margin-top: 20px; display: flex; align-items: center; gap: 16px; }
.lot-ring { position: relative; width: 76px; height: 76px; flex: none; }
.lot-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lot-ring circle { fill: none; stroke: var(--paper); stroke-width: 4; }
.lot-ring .fg { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: 113; transition: stroke-dashoffset 1.4s var(--ease); }
.in-view .lot-ring .fg { stroke-dashoffset: 71; }
.lot-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 1.5rem; font-weight: 800; }
.lot strong { display: block; }
.lot small { color: var(--text-2); font-size: .88rem; }

.perms { margin-top: 18px; display: grid; gap: 4px; }
.perms li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-l); font-size: .96rem; }
.perms li:last-child { border: 0; }
.sw { position: relative; flex: none; width: 46px; height: 26px; border-radius: 99px; border: 0; background: #c3cfda; cursor: pointer; transition: background .25s; padding: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .3s var(--ease); }
.sw[aria-checked="true"] { background: var(--cyan-d); }
.sw[aria-checked="true"]::after { transform: translateX(20px); }
.sw-fake { pointer-events: none; }

.xls { margin-top: 20px; display: grid; gap: 14px; }
.xls-file { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 9px 14px; border: 1px solid var(--line-l); border-radius: 10px; font-family: var(--receipt); font-size: .88rem; background: var(--snow); }
.xls-prog { height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.xls-prog i { display: block; height: 100%; width: 0; background: var(--cyan-d); border-radius: inherit; transition: width 1.6s var(--ease); }
.in-view .xls-prog i { width: 100%; }
.xls-res { font-size: .95rem; color: var(--text-2); }
.xls-res b { color: var(--text); font-size: 1.15rem; }
.xls-res span { margin-left: 8px; color: var(--amber-d); font-weight: 500; }

/* Flujo del pedido */
.flow { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.flow::before { content: ""; position: absolute; left: 12px; top: 11px; height: 3px; width: calc(80% + 16px); background: var(--line-l); border-radius: 3px; }
.flow::after { content: ""; position: absolute; left: 12px; top: 11px; height: 3px; width: calc((80% + 16px) * var(--p, 0)); background: var(--cyan-d); border-radius: 3px; transition: width .6s var(--ease); }
.flow li { position: relative; padding-top: 44px; }
.flow i { position: absolute; left: 0; top: 0; width: 25px; height: 25px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line-l); transition: background .4s, border-color .4s, transform .4s var(--ease); z-index: 1; }
.flow li.on i { background: var(--cyan-d); border-color: var(--cyan-d); transform: scale(1.12); }
.flow li:last-child.on i { background: var(--lime-d); border-color: var(--lime-d); }
.flow h3 { margin-bottom: 6px; }
.flow p { color: var(--text-2); font-size: .95rem; max-width: 22ch; }

/* Simulador */
.sim { background: var(--ink-3); border: 1px solid var(--line-d); border-radius: 24px; padding: clamp(16px, 3vw, 28px); }
.sim-ctl { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--ink); border: 1px solid var(--line-d); }
.seg button { border: 0; background: none; padding: 10px 22px; border-radius: 999px; cursor: pointer; color: var(--mist); font-weight: 600; transition: background .25s, color .25s; }
.seg button[aria-checked="true"] { background: var(--cyan); color: var(--ink); }
.net { display: inline-flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; border-radius: 999px; background: var(--ink); border: 1px solid var(--line-d); cursor: pointer; color: var(--white); }
.net-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); transition: background .3s; }
.net[aria-checked="false"] .net-dot { background: #ff5a5f; }
.net b { font-weight: 600; }
.net .sw-fake { background: var(--lime-d); }
.net[aria-checked="false"] .sw-fake { background: #3a4556; }
.net[aria-checked="false"] .sw-fake::after { transform: none; }
.net[aria-checked="true"] .sw-fake::after { transform: translateX(20px); }

.sim-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 48px); align-items: stretch; }
.till { background: var(--ink); border: 1px solid var(--line-d); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; min-height: 392px; }
.till-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; padding-bottom: 14px; border-bottom: 1px solid var(--line-d); }
.st { font-style: normal; font-size: .8rem; padding: 4px 10px; border-radius: 99px; font-weight: 600; }
.st.ok { background: rgba(93, 200, 90, .16); color: #8be288; }
.st.warn { background: rgba(255, 178, 36, .16); color: var(--amber); }
.st.bad { background: rgba(255, 90, 95, .16); color: #ff8b8f; }
.till-banner { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: .88rem; background: rgba(255, 178, 36, .12); color: #ffd27a; border: 1px solid rgba(255, 178, 36, .3); animation: pop .4s var(--ease); }
.till-banner.bad { background: rgba(255, 90, 95, .12); color: #ffa3a6; border-color: rgba(255, 90, 95, .35); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.tickets { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 0; overflow: hidden; }
.tk { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-radius: 10px; background: var(--ink-3); font-family: var(--receipt); font-size: .86rem; animation: tk-in .45s var(--ease); }
@keyframes tk-in { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
.tk b { font-weight: 700; }
.tk small { grid-column: 1 / -1; font-family: var(--body); font-size: .78rem; color: var(--mist-2); display: flex; align-items: center; gap: 6px; }
.tk small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.tk.q small { color: var(--amber); }
.tk.q small::before { background: var(--amber); }
.tk.flip { animation: flip .6s var(--ease); }
@keyframes flip { 40% { background: rgba(93, 200, 90, .22); } }
.till-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-d); font-size: .88rem; color: var(--mist); }
.till-foot b { color: var(--white); font-variant-numeric: tabular-nums; margin-left: 4px; }
.sim-side { align-self: center; }
.sim-side h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-stretch: 120%; font-weight: 800; }
.sim-side > p { margin-top: 14px; color: var(--mist); max-width: 46ch; }
.ticks { margin-top: 22px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: #d3deea; }
.ticks svg { width: 22px; height: 22px; flex: none; color: var(--lime); margin-top: 2px; }
.ticks.bad svg { color: #ff8b8f; }
.fadeswap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.compare .col { padding: 30px; border-radius: 20px; border: 1px solid var(--line-d); background: var(--ink-3); }
.compare .feat { border-color: var(--cyan-dd); background: linear-gradient(160deg, rgba(43, 212, 245, .1), var(--ink-3) 55%); }
.compare ul { margin-top: 18px; display: grid; gap: 10px; color: #cbd8e5; font-size: .98rem; }
.compare li { padding-left: 22px; position: relative; }
.compare li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 2px; background: var(--cyan); transform: rotate(45deg) scale(.8); }
.compare .for { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-d); color: var(--mist); font-size: .95rem; }

/* Funciones */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-l); border-left: 1px solid var(--line-l); }
.feat-grid li { padding: 28px 24px 32px; border-right: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); transition: background .3s; }
.feat-grid li:hover { background: var(--white); }
.feat-grid h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feat-grid p { color: var(--text-2); font-size: .95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 900px; }
.chips li { padding: 11px 20px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-l); font-weight: 500; transition: transform .3s var(--ease), background .25s, color .25s, border-color .25s; cursor: default; }
.chips li:hover { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-3px) rotate(-1deg); }

/* Pasos */
.steps-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); }
.steps-wrap .sec-head { margin: 0; position: sticky; top: 110px; align-self: start; }
.steps { display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line-l); }
.steps li:first-child { padding-top: 0; }
.steps .n { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--cyan); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.steps h3 { margin-bottom: 6px; font-size: 1.2rem; }
.steps p { color: var(--text-2); max-width: 50ch; }

/* FAQ */
.faq-wrap { max-width: 880px; }
.faq details { border-bottom: 1px solid #c4d2de; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2.5px solid var(--cyan-dd); border-bottom: 2.5px solid var(--cyan-dd); transform: rotate(45deg) translate(-3px, -3px); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .ans { padding: 0 0 24px; color: var(--text-2); max-width: 64ch; }
.faq details[open] .ans { animation: swap .45s var(--ease); }

/* CTA */
.cta { background: var(--cyan); color: var(--ink); padding: clamp(64px, 9vw, 112px) 0; position: relative; overflow: clip; }
.cta::before, .cta::after { content: ""; position: absolute; width: 220px; aspect-ratio: 24 / 28; background: var(--ink); opacity: .07; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.cta::before { right: 6%; top: -40px; transform: rotate(14deg); }
.cta::after { right: 18%; bottom: -70px; width: 150px; transform: rotate(-20deg); }
.cta-in { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); max-width: 20ch; }
.cta p { margin-top: 16px; font-size: 1.12rem; max-width: 46ch; color: rgba(6, 8, 12, .8); }
.cta .btn-light { background: var(--ink); color: var(--white); }
.cta .btn-light:hover { box-shadow: 0 12px 30px -10px rgba(6, 8, 12, .6); }

/* Dev */
.dev { background: var(--ink); position: relative; isolation: isolate; overflow: clip; }
.dev::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 15% 50%, rgba(43, 212, 245, .12), transparent 70%); }
.dev-in { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.dev-photo { position: relative; max-width: 380px; width: 100%; }
.dev-photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1.5px solid var(--cyan); border-radius: 26px; opacity: .6; transition: transform .5s var(--ease); }
.dev-photo:hover::before { transform: translate(6px, 6px); }
.dev-photo img { position: relative; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 26px; filter: grayscale(.2) contrast(1.05); }
.dev-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); max-width: 18ch; }
.dev-copy > p { margin-top: 18px; color: var(--mist); max-width: 58ch; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.stack li { padding: 7px 14px; border-radius: 8px; background: var(--ink-3); border: 1px solid var(--line-d); font-size: .9rem; color: #d3deea; }
.figs { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 32px; }
.figs dt { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; color: var(--cyan); font-variant-numeric: tabular-nums; }
.figs dd { margin-top: 6px; color: var(--mist); font-size: .92rem; max-width: 16ch; }
.dev-cta { margin-top: 34px; font-weight: 600; color: var(--white); }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-d); text-decoration: none; font-weight: 500; color: #d3deea; transition: transform .25s var(--ease), border-color .25s, background .25s, color .25s; }
.social a:hover { transform: translateY(-3px); border-color: var(--cyan); background: rgba(43, 212, 245, .1); color: var(--white); }
.social svg { width: 20px; height: 20px; }

/* Footer */
.foot { background: var(--ink); border-top: 1px solid var(--line-d); padding: 40px 0 48px; color: var(--mist); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 32px; }
.social-icons { margin: 0; }
.social-icons a { padding: 0; width: 44px; height: 44px; justify-content: center; }
.foot .copy { flex-basis: 100%; font-size: .9rem; color: var(--mist-2); }
.foot .copy a { color: var(--mist); text-decoration-color: var(--line-d); text-underline-offset: 3px; }
.foot .copy a:hover { color: var(--cyan); }

/* Volver arriba */
.gotop { position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 90; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--ink); color: var(--cyan); cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), background .2s; }
.gotop[hidden] { display: none; }
.gotop.show { opacity: 1; transform: none; pointer-events: auto; }
.gotop:hover { background: var(--cyan); color: var(--ink); }
.gotop:hover .chev { transform: translateY(-3px); }
.gotop .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.gotop .ring circle { fill: none; stroke-width: 2.5; stroke: var(--line-d); }
.gotop .ring .prog { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; }
.gotop:hover .ring .prog { stroke: var(--ink); }
.gotop .chev { width: 24px; height: 24px; transition: transform .25s var(--ease); }

/* Revelado (solo donde aporta) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .3s, box-shadow .35s; transition-delay: var(--dl, 0s); }
.js .rv.in-view { opacity: 1; transform: none; }
.js .card.rv.in-view:hover { transform: translateY(-3px); }

/* Responsive */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; }
  .stage { max-width: 440px; }
  .hero { padding-top: 112px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3 { grid-column: span 1; }
  .c-stock, .c-pre { grid-column: span 2; }
  .sim-body, .compare, .steps-wrap, .dev-in { grid-template-columns: 1fr; }
  .steps-wrap .sec-head { position: static; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .dev-photo { max-width: 280px; }
}
@media (max-width: 1080px) {
  .nav-cta { display: none; }
  .burger { display: block; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--gutter) 24px; background: rgba(6, 8, 12, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-d); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-d); }
  .nav-cta-m { display: inline-flex; margin-top: 16px; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow::before { left: 11px; right: auto; top: 12px; bottom: 30px; width: 3px; height: auto; }
  .flow::after { display: none; }
  .flow li { padding: 0 0 28px 44px; }
  .flow li.on:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 25px; bottom: -2px; width: 3px; background: var(--cyan-d); }
  .flow p { max-width: 40ch; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .c-stock, .c-pre { grid-column: span 1; }
  .feat-grid { grid-template-columns: 1fr; }
  .bars li { grid-template-columns: 6.6rem 1fr 3rem; }
  .pill { font-size: .74rem; padding: 7px 11px; }
  .p1 { left: 0; } .p2 { right: 0; }
  .steps li { grid-template-columns: 44px 1fr; gap: 14px; }
  .steps .n { width: 42px; height: 42px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .cube { display: none; }
  .pill { opacity: 1; position: static; display: none; }
  .js .rv { opacity: 1; transform: none; }
}

/* App móvil */
.app { background: var(--ink); position: relative; isolation: isolate; overflow: clip; }
.app::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 55% at 82% 50%, rgba(79, 70, 229, .22), transparent 70%), radial-gradient(35% 45% at 70% 70%, rgba(43, 212, 245, .1), transparent 70%); }
.app-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.app-copy h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.app-lead { margin-top: 18px; max-width: 56ch; color: var(--mist); font-size: 1.1rem; }
.app-feats { margin-top: 34px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 32px; }
.app-feats h3 { font-size: 1.02rem; margin-bottom: 6px; color: var(--white); }
.app-feats p { color: var(--mist); font-size: .95rem; }
.store { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.play { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 16px; border-radius: 14px; background: #000; border: 1.5px solid #7b8794; text-decoration: none; color: #fff; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.play:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 14px 32px -12px rgba(43, 212, 245, .5); }
.play svg { width: 28px; height: 30px; flex: none; }
.play span { display: grid; line-height: 1.1; }
.play small { font-size: .7rem; letter-spacing: .02em; color: #d0d7de; }
.play b { font-family: var(--body); font-size: 1.28rem; font-weight: 600; letter-spacing: -.01em; }
.store-note { color: var(--mist-2); font-size: .9rem; max-width: 34ch; }

.app-demo { display: grid; justify-items: center; gap: 26px; }
.phone-wrap { position: relative; }
.phone-wrap::before { content: ""; position: absolute; inset: 8% -14% 4% -14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(79, 70, 229, .4), transparent); filter: blur(24px); z-index: -1; }
.phone { position: relative; width: min(272px, 74vw); aspect-ratio: 9 / 18.4; border-radius: 40px; background: #05070a; border: 9px solid #1b2634; box-shadow: 0 0 0 1.5px #324357, 0 40px 80px -30px #000; overflow: hidden; animation: phone-float 6s ease-in-out infinite; }
@keyframes phone-float { 50% { transform: translateY(-8px); } }
.notch { position: absolute; top: 7px; left: 50%; width: 74px; height: 20px; transform: translateX(-50%); background: #05070a; border-radius: 99px; z-index: 3; }
.scr { position: absolute; inset: 0; padding: 40px 14px 16px; background: #f4f6fb; color: #121826; display: flex; flex-direction: column; gap: 10px; font-size: .78rem; animation: scr-in .5s var(--ease); }
.scr[hidden] { display: none; }
@keyframes scr-in { from { opacity: 0; transform: translateX(16px); } }
.ph-bar { display: grid; gap: 1px; padding: 12px 12px; border-radius: 14px; background: #4f46e5; color: #fff; }
.ph-bar b { font-family: var(--display); font-stretch: 110%; font-size: .95rem; }
.ph-bar i { font-style: normal; font-size: .72rem; opacity: .85; }
.ph-list { display: grid; gap: 6px; }
.ph-list li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 9px 10px; background: #fff; border-radius: 11px; box-shadow: 0 1px 0 #e3e8f1; }
.ph-list span { display: grid; font-weight: 600; }
.ph-list small { font-weight: 400; color: #6a768a; font-size: .68rem; }
.ph-list b { font-variant-numeric: tabular-nums; font-size: .78rem; }
.ph-list b.ok { color: #1b8a3a; }
.ph-list b.low { color: #c25b00; }
.ph-total { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding: 4px 4px 0; }
.ph-total b { font-family: var(--display); font-size: 1.1rem; font-stretch: 110%; }
.swipe { position: relative; height: 44px; border-radius: 99px; background: #e0e3fb; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #4f46e5; overflow: hidden; }
.swipe i { position: absolute; left: 4px; top: 4px; width: 36px; height: 36px; border-radius: 50%; background: #4f46e5; animation: swipe 2.8s var(--ease) infinite; }
.swipe i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border-right: 2.5px solid #fff; border-top: 2.5px solid #fff; transform: rotate(45deg) translate(-1px, 1px); }
@keyframes swipe { 0%, 15% { transform: none; } 70%, 100% { transform: translateX(158px); } }
.ph-search { padding: 10px 12px; border-radius: 11px; background: #fff; color: #8892a4; border: 1px solid #dfe5ef; }
.finder { position: relative; flex: 1; border-radius: 16px; background: linear-gradient(160deg, #1d2735, #0b1119); overflow: hidden; }
.finder u { position: absolute; width: 26px; height: 26px; border: 3px solid #2BD4F5; }
.finder u:nth-child(1) { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.finder u:nth-child(2) { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.finder u:nth-child(3) { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.finder u:nth-child(4) { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.finder em { position: absolute; left: 22px; right: 22px; height: 2px; background: #2BD4F5; box-shadow: 0 0 14px 3px rgba(43, 212, 245, .7); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 24%; } 50% { top: 74%; } }
.scan-res { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 #e3e8f1; }
.scan-res b { font-family: var(--display); font-stretch: 110%; font-size: 1rem; }
.scan-res span { color: #c25b00; font-weight: 600; }
.scan-res small { color: #6a768a; }
.ph-chat { display: grid; gap: 8px; align-content: start; flex: 1; }
.ph-chat p { max-width: 82%; padding: 9px 12px; border-radius: 14px; line-height: 1.35; }
.ph-chat .in { background: #fff; border-bottom-left-radius: 4px; }
.ph-chat .out { background: #4f46e5; color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.ph-chat .note { max-width: 100%; text-align: center; font-size: .7rem; color: #6a768a; background: none; }

.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--ink-3); border: 1px solid var(--line-d); }
.tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; cursor: pointer; color: var(--mist); font-weight: 600; font-size: .92rem; transition: background .25s, color .25s; }
.tabs button:hover { color: var(--white); }
.tabs button[aria-selected="true"] { background: var(--cyan); color: var(--ink); }

@media (max-width: 980px) {
  .app-in { grid-template-columns: 1fr; }
  .app-demo { order: -1; }
}
@media (max-width: 600px) {
  .app-feats { grid-template-columns: 1fr; }
  .play { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .phone { animation: none; }
  .swipe i, .finder em { animation: none; }
}

/* Enlace a la landing de Vortex */
.vlink { margin-top: 28px; padding: 22px 26px; border: 1px dashed var(--line-d); border-radius: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.vlink p { color: var(--mist); max-width: 52ch; }
.vlink .btn svg { transition: transform .25s var(--ease); }
.vlink .btn:hover svg { transform: translate(3px, -3px); }
@media (max-width: 600px) { .vlink .btn { width: 100%; } }
