/* Tab — portada larga y animaciones. Usa los tokens de styles.css. */
.hero2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center; padding-block: 8px 4px; }
.hero2 h1 { font-size: clamp(42px, 5.8vw, 72px); font-weight: 700; letter-spacing: -.03em; margin-top: 12px; }
.hero2 h1 em { font-style: normal; color: var(--blue); }
.rotline { font: 600 18px var(--body); margin-top: 18px; color: var(--fg); }
.rot { display: inline-block; font-family: var(--mono); color: var(--orange); border-bottom: 2px dashed var(--orange); padding-bottom: 1px; transition: opacity .25s, transform .25s; }
.rot.out { opacity: 0; transform: translateY(-6px); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.chips li { font: 600 12px var(--mono); padding: 5px 10px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--slate); background: var(--card); }

/* Escenario del hero: espiga + impresora */
.stage { position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; align-items: end; padding: 26px 22px 18px; border-radius: 26px;
  background: radial-gradient(circle at 1px 1px, #C6CEF2 1.1px, transparent 0) 0 0 / 16px 16px, var(--blue-soft); min-height: 470px; overflow: hidden; }
.spikebox { position: relative; display: grid; justify-items: center; align-self: stretch; align-content: end; gap: 8px; }
.spikebox img { width: 120px; height: auto; }
.spikecount { font: 11px var(--mono); color: var(--slate); text-align: center; letter-spacing: .04em; }
.spikecount b { display: block; font: 700 18px var(--display); color: var(--fg); }
.spikebox.bump img { animation: bump .45s ease; }
@keyframes bump { 30% { transform: translateY(5px); } 60% { transform: translateY(-2px); } }
.printer { position: relative; align-self: start; }
.printer .slot { display: block; height: 22px; border-radius: 11px; background: var(--ink); box-shadow: inset 0 -6px 0 var(--ink-2); position: relative; z-index: 2; }
.paperwrap { margin: -8px 14px 0; filter: drop-shadow(0 10px 14px rgb(13 19 48 / .16)); }
.paper { position: relative; background: var(--receipt); padding: 22px 18px 84px; font-family: var(--mono); font-size: 13px; color: var(--ink);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
  transform-origin: 50% 0; }
.paper.fly { animation: fly .8s cubic-bezier(.5, 0, .75, 0) forwards; }
@keyframes fly { to { transform: translate(-150px, 40px) rotate(-14deg) scale(.35); opacity: 0; } }
.paper.enter { animation: enter .5s ease-out; }
@keyframes enter { from { transform: translateY(-40%); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(0 0 0 0); } }
.p-head { display: grid; gap: 2px; }
.p-head b { font-size: 16px; letter-spacing: .06em; }
.p-head span, .p-agent span, .p-foot { font-size: 10.5px; color: var(--slate); letter-spacing: .04em; }
.p-agent { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding-bottom: 12px; border-bottom: 1.5px dashed var(--ink); }
.p-mark svg { width: 38px; height: 38px; display: block; }
.p-agent b { display: block; font-size: 13px; }
.p-lines { list-style: none; margin: 10px 0 0; padding: 0; min-height: 132px; display: grid; align-content: start; gap: 9px; }
.p-lines li { display: flex; justify-content: space-between; gap: 10px; }
.p-lines li.print { animation: print .35s steps(6, end); }
@keyframes print { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.p-total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1.5px dashed var(--ink); font-weight: 700; font-size: 14px; }
.p-foot { margin-top: 6px; }
.bigstamp { position: absolute; right: 18px; bottom: 18px; display: grid; justify-items: center; padding: 6px 14px; border: 4px double var(--orange); border-radius: 10px;
  color: var(--orange); transform: rotate(-13deg); opacity: 0; filter: url(#stamp); pointer-events: none; }
.bigstamp b { font: 800 30px var(--mono); letter-spacing: .14em; line-height: 1; }
.bigstamp span { font: 700 11px var(--mono); letter-spacing: .2em; }
.bigstamp.on { opacity: 1; }
.bigstamp.slam { animation: slam .32s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes slam { from { opacity: 0; transform: rotate(-13deg) scale(2.2); } to { opacity: 1; transform: rotate(-13deg) scale(1); } }

/* Franja de recibos que se desliza */
.marquee { display: flex; align-items: stretch; overflow: hidden; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--card); box-shadow: 4px 5px 0 var(--ink); }
.mq-label { flex: none; display: grid; place-items: center; padding: 0 16px; background: var(--ink); color: #fff; font: 700 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.mq-view { overflow: hidden; flex: 1; min-width: 0; }
.track { display: flex; gap: 34px; width: max-content; padding-block: 12px; animation: slide 40s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.mq { display: inline-flex; align-items: center; gap: 9px; font: 600 13px var(--mono); white-space: nowrap; }
.mq svg { width: 22px; height: 22px; }
.mq .amt { color: var(--slate); }

/* Bloques */
.block2 { display: grid; gap: 22px; }
.head2 { display: grid; gap: 10px; max-width: 760px; }
.head2 h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.02em; }
.head2 .lead { margin-top: 0; }

/* Flujo del dinero */
.flowbox { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
svg.flow { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--body); }
.flow .wires use { fill: none; stroke: #B9C3F5; stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.flow .node rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.flow .node text { text-anchor: middle; font-size: 15px; font-weight: 700; fill: var(--ink); }
.flow .node text.sub { font-size: 11.5px; font-weight: 500; fill: var(--slate); font-family: var(--mono); }
.flow .node.dark rect { fill: var(--ink); } .flow .node.dark text { fill: #fff; } .flow .node.dark text.sub { fill: #AEB6D6; }
.flow .node.blue rect { fill: var(--blue); stroke: var(--blue); } .flow .node.blue text { fill: #fff; } .flow .node.blue text.sub { fill: #D6DCFF; }
.flow .node.paid rect { fill: var(--orange-soft); stroke: var(--orange); stroke-width: 2; } .flow .node.paid text.sub { fill: var(--orange); font-weight: 700; }
.flow .dots circle { fill: var(--orange); }

/* Herramientas */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 8px; align-content: start; transition: transform .2s, box-shadow .2s; }
.tool:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgb(13 19 48 / .35); }
.tool h3 { font-size: 20px; }
.tool p { font-size: 14.5px; color: var(--slate); }
.tstamp { justify-self: start; font: 800 13px var(--mono); letter-spacing: .12em; color: var(--blue); border: 2.5px solid var(--blue); border-radius: 7px; padding: 4px 9px; transform: rotate(-4deg); filter: url(#stamp); margin-bottom: 6px; }
.tprice { font: 600 12.5px var(--mono); color: var(--fg); background: var(--blue-soft); border-radius: 6px; padding: 4px 8px; justify-self: start; margin-top: 4px; }

/* Vista del panel */
.frame { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -34px rgb(13 19 48 / .4); }
.chrome { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: #C8CEDD; display: block; }
.chrome .url { flex: 1; min-width: 0; margin-left: 6px; font: 12px var(--mono); color: var(--slate); background: var(--bg); border-radius: 6px; padding: 4px 10px; }
.pv { padding: 20px; display: grid; gap: 14px; }
.pv-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pv-kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 2px; }
.pv-kpis span, .pv-kpis small { font-size: 12.5px; color: var(--slate); }
.pv-kpis b { font: 700 26px var(--display); }
.pv-agents { display: grid; gap: 10px; }
.pv-agent { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.pv-agent.off { opacity: .6; }
.pv-mark svg { width: 44px; height: 44px; display: block; }
.pv-agent b { font: 700 16px var(--display); }
.pv-agent small { font-size: 12.5px; color: var(--slate); }
.pv-state { font: 600 12px var(--mono); color: var(--mint); }
.pv-agent.off .pv-state { color: var(--slate); }
.w62 { width: 62%; } .w28 { width: 28%; } .w0 { width: 0; }

/* Seguridad */
.safe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.safe div { background: var(--deep); color: #fff; border-radius: 16px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.safe b { font: 700 19px var(--display); }
.safe b::before { content: "\2713"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mint); color: var(--fg); font-size: 13px; margin-right: 10px; vertical-align: 2px; }
.safe p { font-size: 14.5px; color: #C9D0F0; }

/* Token */
.tokbar { display: flex; height: 56px; border-radius: 14px; overflow: hidden; font: 700 14px var(--mono); }
.tokbar i { display: flex; align-items: center; padding: 0 16px; font-style: normal; color: #fff; white-space: nowrap; overflow: hidden; }
.t70 { width: 70%; background: var(--blue); } .t20 { width: 20%; background: var(--orange); } .t10 { width: 10%; background: var(--deep); }
.tokfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tokfacts div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 4px; }
.tokfacts b { font: 700 30px var(--display); }
.tokfacts span { color: var(--slate); font-size: 14.5px; }

/* Hoja de ruta */
.road { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.road li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; display: grid; gap: 6px; align-content: start; }
.road li::before { content: ""; position: absolute; top: 26px; right: -13px; width: 14px; border-top: 2px dashed #B9C3F5; }
.road li:last-child::before { display: none; }
.road .st { font: 700 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.road li.now { border: 2px solid var(--blue); }
.road li.now .st { color: var(--blue); }
.road b { font: 700 17px var(--display); }
.road p { font-size: 14px; color: var(--slate); }

/* Preguntas */
.faqwrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.faqwrap .head2 { position: sticky; top: 90px; }
.faq { display: grid; gap: 10px; }
@media (max-width: 860px) { .faqwrap { grid-template-columns: minmax(0, 1fr); gap: 20px; } .faqwrap .head2 { position: static; } }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font: 700 17px var(--display); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 22px var(--mono); color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 16px; color: var(--slate); max-width: 70ch; }

/* Cierre */
.final { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 28px; align-items: center; background: var(--blue); color: #fff; border-radius: 24px; padding: 32px; }
.final img { width: 120px; height: 120px; }
.final h2 { font-size: clamp(28px, 3.6vw, 40px); }
.final p { color: #D6DCFF; margin-top: 8px; }
.final .btn { background: var(--deep); color: #fff; }
.btn.line.light { color: #fff; border-color: #fff; background: transparent; }

/* Cifras de la semana dentro del hero */
.hstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 26px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-width: 560px; }
.hstats div { background: var(--surface); padding: 12px 14px; display: grid; gap: 2px; }
.hstats dt { font: 11px var(--mono); color: var(--slate); letter-spacing: .03em; order: 2; }
.hstats dd { margin: 0; font: 700 20px var(--display); font-variant-numeric: tabular-nums; order: 1; }

/* Máquina de tubos (ilustrada, mismo estilo que la espiga y los recibos) */
.machine { background: radial-gradient(circle at 1px 1px, #C6CEF2 1.1px, transparent 0) 0 0 / 16px 16px, var(--blue-soft); border-radius: 26px; padding: 22px 18px 16px; display: grid; gap: 14px; }
.scroll { overflow-x: auto; }
svg.tubes { display: block; width: 100%; min-width: 820px; height: auto; font-family: var(--body); }
.pipe-o { fill: none; stroke: #0D1330; stroke-linecap: round; }
.pipe-i { fill: none; stroke: #FFFFFF; stroke-linecap: round; }
.coin { fill: var(--orange); stroke: #0D1330; stroke-width: 1.6; } .coin.blue { fill: var(--blue); } .coin.grey { fill: #8E97B4; }
.tk { font: 700 11.5px var(--mono); fill: #0D1330; }
.tk-s { font: 10px var(--mono); fill: #5B6488; }
.t-sub { font: 700 11px var(--mono); fill: #5B6488; letter-spacing: .08em; }
.ringtxt { font: 700 8.6px var(--mono); fill: #FF6A3D; letter-spacing: .06em; }
.big2 { font: 800 19px var(--mono); fill: #FFFFFF; }
.jarpct { font: 800 17px var(--mono); fill: #FFFFFF; }
.jarpct.sm { font-size: 13px; }
.tag-t { font: 700 10.5px var(--mono); fill: #5B6488; letter-spacing: .06em; }
.tag-v { font: 800 13.5px var(--mono); fill: #0D1330; }
.rc-h { font: 800 12px var(--mono); fill: #0D1330; letter-spacing: .04em; }
.rc-s { font: 10.5px var(--mono); fill: #5B6488; }
.rc-big { font: 800 26px var(--mono); fill: #2E4BFF; }
.stampt { font: 800 15px var(--mono); fill: #FF6A3D; letter-spacing: .1em; }
.mctrl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px 16px; align-items: center; padding: 8px 10px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 16px; box-shadow: 4px 5px 0 var(--ink); }
.mctrl label { font: 600 14px var(--body); white-space: nowrap; }
.mctrl output { font: 700 14px var(--mono); color: var(--orange); margin-left: 6px; }
.mctrl input { width: 100%; accent-color: var(--orange); }
.mine { background: var(--blue); color: #fff; border-radius: 12px; padding: 10px 14px; display: grid; gap: 2px; }
.mine span, .mine small { font-size: 12.5px; color: #D6DCFF; }
.mine b { font: 700 24px var(--mono); font-variant-numeric: tabular-nums; }
.mnote { font-size: 13px; color: var(--slate); padding-inline: 6px; }

/* Seguridad en una línea */
.guard { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.guard li { font: 600 14px var(--body); display: flex; align-items: center; gap: 8px; }
.guard li::before { content: "\2713"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--deep); font-size: 12px; }

@media (max-width: 980px) {
  .mctrl { grid-template-columns: auto minmax(0, 1fr); }
  .mine { grid-column: 1 / -1; }
  .hero2 { grid-template-columns: minmax(0, 1fr); }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road { grid-template-columns: minmax(0, 1fr); }
  .road li::before { display: none; }
  .final { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
@media (max-width: 600px) {
  .stage { grid-template-columns: 78px minmax(0, 1fr); padding: 18px 12px 14px; min-height: 430px; }
  .spikebox img { width: 72px; }
  .paperwrap { margin-inline: 6px; }
  .paper { padding-inline: 12px; font-size: 12px; }
  .tools, .safe, .tokfacts, .pv-kpis { grid-template-columns: minmax(0, 1fr); }
  .tokbar i { padding: 0 8px; font-size: 12px; }
  .hstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mctrl { grid-template-columns: minmax(0, 1fr); }
  .mctrl label { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; flex-wrap: wrap; width: auto; }
  .flow .dots, .coins { display: none; }
  .paper.fly, .paper.enter, .bigstamp.slam, .p-lines li.print, .spikebox.bump img { animation: none; }
  .tool, .rot { transition: none; }
}
