/* Vortex landing — paleta Zimtech (zt-teal, zt-ink, zt-azul, zt-orange) */
:root {
  --ink-900: #050608;
  --ink-800: #14171D;
  --ink-700: #262A33;
  --ink-600: #3D4350;
  --ink-500: #5C6473;
  --ink-400: #8B93A3;
  --ink-300: #B8BFCC;
  --ink-200: #DDE1E8;
  --ink-100: #EEF0F4;
  --ink-50:  #F7F8FA;
  --teal-50: #E6F7FA;
  --teal-100:#C2ECF2;
  --teal-200:#8FDBE5;
  --teal-300:#5BC6D5;
  --teal-400:#2DAEC2;
  --teal-500:#039FB3;
  --teal-600:#027F8F;
  --teal-700:#02606C;
  --teal-800:#014049;
  --teal-900:#002327;
  --azul-500:#005CDC;
  --orange-500:#F97316;
  --orange-600:#EA580C;
  --thermal: #EEF1EE;

  --bg: var(--ink-50);
  --fg: var(--ink-800);
  --muted: var(--ink-500);
  --line: var(--ink-200);

  --display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", "Inter", system-ui, sans-serif;
  --receipt: "Cousine", "Courier New", ui-monospace, monospace;

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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-stretch: 85%; margin: 0; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink-900); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- progreso de lectura ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 90; background: linear-gradient(90deg, var(--teal-500), var(--azul-500)); transform: scaleX(0); transform-origin: left; }

/* ---------- botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; background: var(--teal-700); color: #fff;
  font: 600 1rem/1 var(--body); text-decoration: none;
  border-radius: 999px; border: 2px solid var(--teal-700);
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
  will-change: transform;
}
.btn:hover { background: var(--teal-800); border-color: var(--teal-800); transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(2, 96, 108, .8); }
.btn:active { transform: translateY(0); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--ink-800); border-color: var(--ink-300); }
.btn-ghost:hover { background: #fff; border-color: var(--ink-500); box-shadow: 0 10px 22px -12px rgba(5,6,8,.35); }
.btn-light { background: #fff; color: var(--teal-800); border-color: #fff; }
.btn-light:hover { background: var(--teal-50); border-color: var(--teal-50); box-shadow: 0 12px 26px -10px rgba(0,0,0,.5); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* brillo que cruza el botón principal una vez cada tanto */
.btn[data-cta]:not(.btn-light):not(.btn-small)::after, .btn-lg:not(.btn-ghost):not(.btn-outline-light):not(.btn-light)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  background-size: 250% 100%; background-position: 120% 0;
  animation: sheen 5s ease-in-out 2.5s infinite;
}
@keyframes sheen { 0%, 60% { background-position: 120% 0; } 100% { background-position: -40% 0; } }

/* ---------- cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  background: rgba(247, 248, 250, .9);
  border-bottom: 1px solid transparent;
  transition: padding .25s var(--ease), border-color .25s, box-shadow .25s, background .25s;
}
.top.scrolled { padding-top: 8px; padding-bottom: 8px; border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(5,6,8,.5); background: rgba(247,248,250,.96); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.35rem/1 var(--display); font-stretch: 85%; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.top nav { display: flex; gap: 6px; margin-left: auto; }
.top nav a { position: relative; text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink-600); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.top nav a:hover { color: var(--teal-700); background: var(--teal-50); }
.top nav a.active { color: var(--teal-800); background: var(--teal-100); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; border-radius: 12px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--ink-800); border-radius: 2px; transition: transform .25s var(--ease), top .25s 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); }

/* ---------- hero ---------- */
.hero {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) var(--gutter) clamp(56px, 8vw, 104px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-bg { position: absolute; inset: -10% -20% 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.o1 { width: 520px; height: 520px; left: 2%; top: 4%; background: radial-gradient(circle, var(--teal-200), transparent 65%); animation: drift1 16s ease-in-out infinite alternate; }
.o2 { width: 460px; height: 460px; right: 4%; top: 28%; background: radial-gradient(circle, #9bbcff, transparent 65%); opacity: .4; animation: drift2 19s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(90px, 50px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-80px, -40px) scale(1.1); } }

.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); font-weight: 750; line-height: .98; letter-spacing: -0.035em; }
/* titular: cada palabra sube desde una máscara, una sola vez al cargar */
.js .hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .hero h1 .w > span { display: inline-block; transform: translateY(110%); animation: wordup .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes wordup { to { transform: none; } }
.hero .lead { margin-top: 24px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-600); max-width: 34em; }
.hero .actions { margin-top: 32px; }
.hero-note { margin-top: 22px; font-size: .95rem; color: var(--muted); }
.js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--rd, 0) * 1ms + 700ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-stage { position: relative; isolation: isolate; padding: clamp(28px, 4vw, 44px) clamp(16px, 3vw, 36px) 0; background: var(--teal-800); border-radius: 28px; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(1, 64, 73, .9); }
.stage-glow { position: absolute; z-index: -1; width: 380px; height: 380px; left: 50%; top: 18%; margin-left: -190px; border-radius: 50%; background: radial-gradient(circle, rgba(45,174,194,.55), transparent 65%); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
.ticket-wrap { position: relative; display: flex; justify-content: center; min-height: 440px; perspective: 900px; }

/* ticket térmico */
.ticket {
  position: relative; width: min(100%, 340px); padding: 22px 22px 34px;
  background: var(--thermal); color: #1b1f24; font: 400 13.5px/1.55 var(--receipt);
  transform: rotate(-1.4deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-origin: top center; transition: transform .25s ease-out;
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .55);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 100% repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 100% repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat;
}
.ticket .tl { display: flex; justify-content: space-between; gap: 12px; }
.ticket .tl span:last-child { white-space: nowrap; }
.ticket .tc { text-align: center; }
.ticket .tb { font-weight: 700; }
.ticket .rule { border-top: 1.5px dashed #8a9290; margin: 8px 0; height: 0; }
.ticket .total { font-size: 17px; font-weight: 700; margin-top: 2px; }
.ticket .gap { height: 8px; }
.ticket .block { margin-top: 10px; padding: 8px 10px; border: 1.5px solid currentColor; font-size: 12.5px; line-height: 1.45; }
.ticket .block-warn { background: var(--orange-500); border-color: var(--orange-500); color: #1b1000; }
.ticket .block-off { background: #1b1f24; border-color: #1b1f24; color: var(--thermal); }
.ticket .dim { opacity: .38; }
.ticket .tl, .ticket .tc, .ticket .rule, .ticket .block, .ticket .gap { animation: feed .3s ease-out both; animation-delay: calc(var(--i, 0) * 85ms + var(--base, 0ms)); }
.js .ticket { --base: 900ms; }
.js .ticket.reprint { --base: 0ms; }
@keyframes feed { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* fichas flotantes */
.chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--teal-900); border: 1px solid var(--teal-500); color: #fff; font: 600 .85rem/1 var(--body); box-shadow: 0 12px 24px -10px rgba(0,0,0,.7); animation: bob 5s ease-in-out infinite; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-300); box-shadow: 0 0 0 0 rgba(91,198,213,.6); animation: ping 2.4s ease-out infinite; }
.chip-a { left: -4px; top: 12%; }
.chip-b { right: 0; top: 38%; animation-delay: -1.7s; }
.chip-c { left: 0; bottom: 8%; animation-delay: -3.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(91,198,213,.6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(91,198,213,0); } }

/* simulador */
.sim { margin: 28px calc(clamp(16px, 3vw, 36px) * -1) 0; padding: 22px clamp(16px, 3vw, 36px) 26px; background: var(--teal-900); color: #fff; display: grid; gap: 16px; position: relative; z-index: 3; }
.seg { border: 0; margin: 0; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.08); border-radius: 999px; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 10px 8px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--teal-200); transition: background .2s, color .2s; }
.seg input:checked + span { background: #fff; color: var(--teal-800); }
.seg input:focus-visible + span { outline: 3px solid var(--teal-200); outline-offset: 2px; }
.switch-row { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.switch-row > span:first-child { margin-right: auto; }
.switch { width: 58px; height: 32px; padding: 3px; border: 0; border-radius: 999px; background: var(--teal-500); cursor: pointer; transition: background .2s; flex: none; }
.switch .knob { display: block; width: 26px; height: 26px; border-radius: 50%; background: #fff; transform: translateX(26px); transition: transform .25s var(--ease); }
.switch[aria-checked="false"] { background: var(--ink-600); }
.switch[aria-checked="false"] .knob { transform: none; }
.net-state { width: 6.5em; font-size: .95rem; color: var(--teal-200); }
.sim-status { min-height: 4.6em; font-size: .98rem; line-height: 1.5; color: #fff; }

/* ---------- títulos de sección ---------- */
.features, .versions, .start, .faq { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 9vw, 112px) var(--gutter); }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2, .final h2, .bio h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 720; }
.sec-head p { margin-top: 18px; color: var(--ink-600); max-width: 34em; }

/* ---------- revelado al scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--rd, 0) * 1ms); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { position: relative; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(2, 96, 108, .55); border-color: var(--teal-200); }
.tile h3 { font-size: 1.5rem; font-weight: 700; }
.tile > p { margin-top: 8px; color: var(--ink-600); font-size: 1rem; max-width: 30em; }
.t-pay { grid-column: span 5; background: var(--teal-800); border-color: var(--teal-800); }
.t-pay h3 { color: #fff; } .t-pay > p { color: var(--teal-100); }
.t-arca { grid-column: span 4; }
.t-cash { grid-column: span 3; }
.t-price, .t-debt, .t-team { grid-column: span 4; }
.t-weight { grid-column: span 6; background: var(--ink-800); border-color: var(--ink-800); }
.t-weight h3 { color: #fff; } .t-weight > p { color: #cfd5df; }
.t-more { grid-column: span 6; background: var(--teal-50); border-color: var(--teal-100); }
.viz { margin-top: auto; padding-top: 22px; }

/* cobro: los medios de pago entran uno a uno y se repite */
.viz-pay { display: grid; gap: 8px; }
.viz-pay span, .pay-total { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font-size: .95rem; }
.viz-pay b { font-variant-numeric: tabular-nums; }
.pay-total { background: var(--teal-300); color: var(--teal-900); font-weight: 700; }
.in .viz-pay span, .in .pay-total { animation: payin 7s var(--ease) infinite; animation-delay: calc(var(--d) * .45s); }
@keyframes payin { 0% { opacity: 0; transform: translateX(-26px); } 8%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateX(14px); } }

/* ARCA: el sello CAE cae sobre la factura */
.viz-arca { position: relative; height: 140px; }
.doc { position: absolute; left: 0; top: 0; width: 62%; padding: 14px; background: var(--ink-50); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 9px; }
.doc i { display: block; height: 7px; border-radius: 4px; background: var(--ink-200); }
.doc i.short { width: 55%; }
.stamp { position: absolute; right: 2px; bottom: 6px; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--teal-600); color: var(--teal-700); background: rgba(255,255,255,.9); transform: rotate(-12deg); opacity: 0; }
.stamp b { font: 800 1.5rem/1 var(--display); letter-spacing: .02em; }
.stamp span { font-size: .72rem; font-weight: 600; margin-top: -26px; }
.in .stamp { animation: stamp 5s var(--ease) infinite; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-12deg) scale(2.4); } 14% { opacity: 1; transform: rotate(-12deg) scale(1); } 20% { transform: rotate(-12deg) scale(1.08); } 26%, 82% { opacity: 1; transform: rotate(-12deg) scale(1); } 94%, 100% { opacity: 0; transform: rotate(-12deg) scale(1); } }

/* caja: barras que crecen */
.viz-cash { display: flex; align-items: flex-end; gap: 7px; height: 130px; }
.viz-cash i { flex: 1; height: 0; border-radius: 6px 6px 0 0; background: linear-gradient(var(--teal-400), var(--teal-600)); }
.in .viz-cash i { animation: grow 1.1s var(--ease) forwards; }
.viz-cash i:nth-child(2) { animation-delay: .08s !important; } .viz-cash i:nth-child(3) { animation-delay: .16s !important; } .viz-cash i:nth-child(4) { animation-delay: .24s !important; }
.viz-cash i:nth-child(5) { animation-delay: .32s !important; } .viz-cash i:nth-child(6) { animation-delay: .4s !important; } .viz-cash i:nth-child(7) { animation-delay: .48s !important; }
@keyframes grow { to { height: var(--h); } }

/* precios */
.viz-price { display: grid; gap: 8px; position: relative; padding-top: 58px; }
.pct { position: absolute; right: 0; top: 16px; padding: 4px 12px; border-radius: 999px; background: var(--orange-500); color: #1b1000; font: 700 1rem var(--display); }
.in .pct { animation: pop 4s var(--ease) infinite; }
@keyframes pop { 0%, 100% { transform: scale(1); } 8% { transform: scale(1.25) rotate(-4deg); } 16% { transform: scale(1); } }
.pr { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: var(--ink-50); font-variant-numeric: tabular-nums; }
.pr s { color: var(--ink-400); }
.pr b { color: var(--teal-700); }
.in .pr b { animation: newprice 4s var(--ease) infinite; }
@keyframes newprice { 0%, 6% { opacity: .15; transform: translateY(8px); } 18%, 100% { opacity: 1; transform: none; } }

/* deuda por antigüedad */
.viz-debt { display: grid; gap: 10px; }
.viz-debt div { display: grid; grid-template-columns: 6.2em 1fr; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-500); }
.viz-debt i { display: block; height: 14px; width: 0; border-radius: 99px; background: var(--teal-500); }
.viz-debt i.hot { background: var(--orange-500); }
.in .viz-debt i { animation: widen 1.2s var(--ease) forwards; }
.viz-debt div:nth-child(2) i { animation-delay: .12s !important; } .viz-debt div:nth-child(3) i { animation-delay: .24s !important; } .viz-debt div:nth-child(4) i { animation-delay: .36s !important; }
@keyframes widen { to { width: var(--w); } }

/* roles + PIN */
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.roles span { padding: 7px 14px; border-radius: 999px; background: var(--ink-100); font-weight: 600; font-size: .9rem; }
.in .roles span { animation: rolepulse 6s ease-in-out infinite; animation-delay: calc(var(--n, 0) * 1s); }
.roles span:nth-child(1) { --n: 0; } .roles span:nth-child(2) { --n: 1; } .roles span:nth-child(3) { --n: 2; } .roles span:nth-child(4) { --n: 3; }
@keyframes rolepulse { 0%, 22%, 100% { background: var(--ink-100); color: inherit; } 6%, 16% { background: var(--teal-600); color: #fff; } }
.pin { display: flex; gap: 10px; margin-top: 18px; }
.pin i { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--ink-300); }
.in .pin i { animation: pinfill 4.4s steps(1) infinite; }
.pin i:nth-child(2) { animation-delay: .35s; } .pin i:nth-child(3) { animation-delay: .7s; } .pin i:nth-child(4) { animation-delay: 1.05s; }
@keyframes pinfill { 0% { background: transparent; border-color: var(--ink-300); } 10%, 80% { background: var(--teal-600); border-color: var(--teal-600); } 90%, 100% { background: transparent; border-color: var(--ink-300); } }

/* balanza */
.viz-weight { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lcd { display: flex; align-items: baseline; gap: 8px; padding: 12px 20px; border-radius: 14px; background: #0b1a14; border: 1px solid #1d3a2e; color: #7dffb4; font: 700 clamp(2rem, 4vw, 3rem)/1 var(--receipt); text-shadow: 0 0 14px rgba(125,255,180,.55); font-variant-numeric: tabular-nums; }
.lcd small { font-size: 1rem; }
.lcd-price { font: 700 clamp(1.5rem, 3vw, 2.2rem)/1 var(--receipt); color: #fff; font-variant-numeric: tabular-nums; }

.more-chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.more-chips span { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--teal-100); color: var(--teal-800); font-weight: 600; font-size: .92rem; transition: transform .2s var(--ease), background .2s, color .2s; }
.more-chips span:hover { transform: translateY(-3px) rotate(-1.5deg); background: var(--teal-700); color: #fff; }

/* ---------- versiones ---------- */
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.panel { padding: clamp(24px, 3.4vw, 40px); border-radius: 24px; display: flex; flex-direction: column; }
.panel h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 720; }
.panel-sub { margin-top: 10px; font-size: 1.05rem; }
.panel ul { margin-top: 22px; display: grid; gap: 12px; }
.panel li { position: relative; padding-left: 26px; }
.panel li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 12px; height: 7px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg) scale(.95); opacity: .85; }
.panel .ideal { margin-top: auto; padding-top: 28px; }
.panel-online { background: #fff; border: 1px solid var(--line); }
.panel-online .panel-sub, .panel-online li { color: var(--ink-600); }
.panel-online li::before { color: var(--teal-600); }
.panel-desktop { background: var(--ink-800); color: #fff; }
.panel-desktop .panel-sub, .panel-desktop li { color: #cfd5df; }
.panel-desktop li::before { color: var(--teal-200); }
.panel-desktop .ideal strong { color: var(--teal-200); }
.panel-online .ideal strong { color: var(--teal-700); }

.topo { margin: 48px 0 0; padding: clamp(18px, 3vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.topo figcaption { margin-top: 18px; color: var(--ink-600); max-width: 46em; font-size: 1rem; }
.net { display: grid; grid-template-columns: minmax(90px, 1fr) 56px minmax(150px, 1.5fr) minmax(80px, .9fr) 40px minmax(160px, 1.6fr); align-items: stretch; min-height: 230px; }
.net-terms, .net-out { display: grid; grid-template-rows: repeat(3, 1fr); }
.net-out { grid-template-rows: repeat(2, 1fr); }
.node { margin: 6px 0; display: grid; place-items: center; text-align: center; padding: 10px 12px; min-height: 52px; border-radius: 12px; background: var(--ink-100); border: 1.5px solid var(--ink-300); font-weight: 600; font-size: .98rem; }
.node-out { background: var(--teal-50); border-color: var(--teal-200); }
.node-server { align-self: center; margin: 0; min-height: 104px; background: var(--teal-800); border-color: var(--teal-800); color: #fff; gap: 2px; align-content: center; box-shadow: 0 0 0 0 rgba(3,159,179,.5); animation: ping2 3s ease-out infinite; }
.node-server b { font: 700 1.35rem/1.1 var(--display); letter-spacing: -0.01em; }
.node-server span { font-size: .9rem; font-weight: 500; color: var(--teal-200); }
@keyframes ping2 { 0% { box-shadow: 0 0 0 0 rgba(3,159,179,.45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(3,159,179,0); } }
.bus { position: relative; }
.arm, .vl, .wl { position: absolute; display: block; }
.arm, .wl { height: 3px; transform: translateY(-50%); background: repeating-linear-gradient(90deg, var(--teal-500) 0 6px, transparent 6px 14px); background-size: 14px 3px; animation: dashx 0.9s linear infinite; }
.vl { width: 3px; transform: translateX(-50%); background: repeating-linear-gradient(180deg, var(--teal-500) 0 6px, transparent 6px 14px); background-size: 3px 14px; }
.a1, .a2, .a3, .out { left: 0; width: 50%; }
.a1 { top: 16.666%; } .a2, .out { top: 50%; } .a3 { top: 83.333%; }
.out { left: 50%; }
.bus-lan .vl { left: 50%; top: 16.666%; bottom: 16.666%; }
.cap { font-size: .85rem; font-weight: 600; color: var(--ink-500); text-align: center; }
.bus-lan .cap { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); white-space: nowrap; }
.wan { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; position: relative; }
.wan .wl { position: static; transform: none; width: 100%; height: 3px; background: repeating-linear-gradient(90deg, var(--orange-600) 0 7px, transparent 7px 14px); animation-duration: 1.6s; }
.cap.warn { color: var(--orange-600); }
.bus-wan .in { left: 0; width: 50%; top: 50%; background: repeating-linear-gradient(90deg, var(--orange-600) 0 7px, transparent 7px 14px); animation-duration: 1.6s; }
.bus-wan .vl { left: 50%; top: 25%; bottom: 25%; background: repeating-linear-gradient(180deg, var(--orange-600) 0 7px, transparent 7px 14px); }
.bus-wan .b1, .bus-wan .b2 { left: 50%; width: 50%; background: repeating-linear-gradient(90deg, var(--orange-600) 0 7px, transparent 7px 14px); animation-duration: 1.6s; }
.b1 { top: 25%; } .b2 { top: 75%; }
@keyframes dashx { to { background-position-x: 14px; } }
@media (max-width: 760px) {
  .net { grid-template-columns: 1fr; min-height: 0; }
  .net-terms { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .net-terms .node, .net-out .node { margin: 0; }
  .net-out { grid-template-rows: none; gap: 8px; }
  .bus { height: 44px; }
  .bus .arm, .bus .cap { display: none; }
  .bus .vl, .bus-wan .vl { left: 50%; top: 4px; bottom: 4px; height: auto; }
  .wan { padding: 6px 0; }
  .wan .wl { width: 3px; height: 34px; background: repeating-linear-gradient(180deg, var(--orange-600) 0 7px, transparent 7px 14px); }
  .node-server { margin: 0; }
}

/* ---------- rubros: marquee ---------- */
.trades { background: var(--teal-800); color: #fff; padding: clamp(40px, 6vw, 80px) 0; overflow: hidden; display: grid; gap: clamp(8px, 1.4vw, 18px); }
.marq { display: flex; overflow: hidden; }
.marq-track { display: flex; flex: none; min-width: max-content; animation: marq 46s linear infinite; }
.marq-rev .marq-track { animation-direction: reverse; animation-duration: 54s; }
.marq:hover .marq-track { animation-play-state: paused; }
.marq-track span { flex: none; padding-right: .6em; font: 700 clamp(2.4rem, 7vw, 5.6rem)/1.1 var(--display); font-stretch: 78%; letter-spacing: -0.035em; color: #fff; white-space: nowrap; }
.marq-track span::after { content: "•"; margin-left: .6em; color: var(--teal-400); }
.marq-rev .marq-track span { color: transparent; -webkit-text-stroke: 1.5px var(--teal-300); }
@keyframes marq { to { transform: translateX(-100%); } }

/* ---------- empezar ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.steps li { counter-increment: s; padding: 4px 24px 4px 0; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal-700); color: #fff; font: 700 1.1rem var(--display); margin-bottom: 16px; position: relative; z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 44px; right: 8px; top: 24px; border-top: 2px solid var(--teal-300); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .3s; }
.js .steps li.in:not(:last-child)::after { transform: scaleX(1); }
.steps h3 { font-size: 1.35rem; font-weight: 680; line-height: 1.15; }
.steps p { margin-top: 8px; color: var(--ink-600); font-size: 1rem; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq .sec-head { position: sticky; top: 100px; margin: 0; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.1rem; position: relative; transition: color .2s; }
.faq-list summary:hover { color: var(--teal-700); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--teal-700); border-bottom: 2.5px solid var(--teal-700); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details[open] p { animation: fadedown .35s var(--ease) both; }
.faq-list details p { padding: 0 40px 22px 0; color: var(--ink-600); max-width: 38em; }
@keyframes fadedown { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- cta final ---------- */
.final { position: relative; overflow: hidden; isolation: isolate; background: var(--teal-700); color: #fff; padding: clamp(64px, 10vw, 120px) var(--gutter); }
.final > :not(.final-glow) { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.final-glow { position: absolute; z-index: -1; width: 620px; height: 620px; right: -120px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(91,198,213,.55), transparent 65%); animation: drift2 14s ease-in-out infinite alternate; }
.final h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.final p { margin-top: 18px; max-width: 34em; color: var(--teal-50); font-size: 1.15rem; }
.final .actions { margin-top: 32px; }

/* ---------- dev ---------- */
.author { background: var(--ink-900); color: #eef2f7; padding: clamp(64px, 10vw, 128px) var(--gutter); overflow: hidden; }
.author-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.portrait { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; }
.glow2 { position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(3,159,179,.5), transparent 62%); animation: breathe 5s ease-in-out infinite; }
.tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.ring { position: absolute; inset: -5px; border-radius: 42%; background: conic-gradient(from 0deg, var(--teal-500), var(--azul-500), var(--orange-500), var(--teal-500)); animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.photo { position: absolute; inset: 0; border-radius: 42%; overflow: hidden; background: var(--ink-800); border: 6px solid var(--ink-900); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.fchip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(20,23,29,.92); border: 1px solid var(--ink-700); font: 600 .85rem/1 var(--body); color: #fff; animation: bob 5s ease-in-out infinite; }
.fchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); }
.c1 { left: -8%; top: 6%; } .c2 { right: -6%; top: 14%; animation-delay: -1.2s; } .c3 { left: -12%; top: 48%; animation-delay: -2.5s; }
.c4 { right: -10%; top: 54%; animation-delay: -3.7s; } .c5 { left: 2%; bottom: 0; animation-delay: -.8s; } .c6 { right: 4%; bottom: -3%; animation-delay: -2s; }

.bio h2 { color: #fff; }
.quote { margin-top: 20px; font: 600 clamp(1.15rem, 2vw, 1.4rem)/1.35 var(--display); letter-spacing: -0.01em; color: var(--teal-200); max-width: 28em; }
.bio p { max-width: 36em; }
.bio p + p { margin-top: 14px; }
.bio p:not(.quote) { color: #cfd5df; }
.bio .quote + p { margin-top: 20px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin-top: 30px; }
.facts b { display: block; font: 750 clamp(2rem, 4vw, 2.8rem)/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 6px; font-size: .9rem; color: var(--ink-400); max-width: 11em; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.social a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border: 1px solid var(--ink-600); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: #fff; transition: transform .25s var(--ease), background .2s, border-color .2s, color .2s; }
.social a:hover { transform: translateY(-3px); background: var(--teal-500); border-color: var(--teal-500); color: var(--ink-900); }
.social svg, .foot-social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.other { display: block; margin-top: 22px; padding: 16px 20px; border-radius: 16px; background: var(--ink-800); border: 1px solid var(--ink-700); text-decoration: none; max-width: 30em; transition: border-color .2s, transform .25s var(--ease); }
.other:hover { border-color: var(--teal-500); transform: translateX(6px); }
.other span { display: block; font-size: .85rem; color: var(--ink-400); }
.other b { display: block; margin-top: 2px; font-weight: 600; color: #fff; }

/* ---------- pie ---------- */
.foot { max-width: var(--maxw); margin: 0 auto; padding: 36px var(--gutter) 40px; display: grid; gap: 20px; color: var(--muted); font-size: .95rem; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand-foot { font-size: 1.15rem; color: var(--fg); }
.foot-social { display: flex; gap: 8px; }
.foot-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-600); transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s; }
.foot-social a:hover { transform: translateY(-3px); background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.foot a:not([aria-label]) { color: var(--teal-700); font-weight: 600; }

/* ---------- volver arriba ---------- */
.totop {
  position: fixed; right: 24px; bottom: 24px; z-index: 70; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); background: var(--ink-900); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s, transform .25s, visibility .25s, background .15s;
  box-shadow: 0 14px 28px -12px rgba(5,6,8,.7);
}
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop.show:hover { background: var(--teal-700); transform: translateY(-3px); }
.totop .ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); background: none; border-radius: 0; animation: none; }
.totop .ring circle { fill: none; stroke-width: 3; }
.totop .ring .bg { stroke: rgba(255,255,255,.14); }
.totop .ring .pg { stroke: var(--teal-400); stroke-linecap: round; stroke-dasharray: 157.08; stroke-dashoffset: 157.08; }
.totop .arrow { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; position: relative; transition: transform .2s; }
.totop:hover .arrow { transform: translateY(-2px); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero, .faq, .author-inner { grid-template-columns: 1fr; }
  .faq .sec-head { position: static; }
  .panels { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .steps li:nth-child(2)::after { display: none; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .t-pay, .t-arca, .t-cash, .t-price, .t-debt, .t-team { grid-column: span 3; }
  .t-weight, .t-more { grid-column: span 6; }
  .top { gap: 12px; }
  .burger { display: block; margin-left: 4px; }
  .top .top-cta { margin-left: auto; }
  .top nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 18px; background: rgba(247,248,250,.98); border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px -24px rgba(5,6,8,.5); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
  .top nav.open { opacity: 1; visibility: visible; transform: none; }
  .top nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .bento { grid-template-columns: 1fr; }
  .bento .tile { grid-column: auto !important; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none !important; }
  .ticket-wrap { min-height: 0; }
  .chip { display: none; }
  .actions .btn { width: 100%; }
  .net-state { width: auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .top .top-cta { display: none; }
  .burger { margin-left: auto; }
  .totop { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .fchip.c1 { left: 0; } .fchip.c2 { right: 0; } .fchip.c3 { left: -2%; } .fchip.c4 { right: -2%; }
}

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js [data-rise] { opacity: 1; transform: none; }
  .js .hero h1 .w > span { transform: none; }
  .marq-track { animation: none !important; }
  .viz-cash i { height: var(--h); } .viz-debt i { width: var(--w); } .stamp { opacity: 1; }
}
