/* Lubrix · página de presentación. Mismo look "glass" oscuro que el software. */
:root {
  --ink-950: #05070d;
  --ink-900: #0b1020;
  --ink-800: #141a2e;
  --amber: #f59e0b;
  --amber-300: #fcd34d;
  --violet: #7c3aed;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --ring: rgba(255, 255, 255, 0.1);
  --ok: #34d399;
  --wa: #25d366;
  --font: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --display: 'Space Grotesk', 'Inter', ui-sans-serif, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--ink-950);
  background-image:
    radial-gradient(900px 600px at 0% 0%, rgba(245, 158, 11, 0.16), transparent 60%),
    radial-gradient(800px 600px at 100% 100%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(14, 165, 233, 0.1), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-height: 1.55;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  z-index: 0;
}
main,
header,
footer {
  position: relative;
  z-index: 1;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4,
h6 {
  margin: 0;
  line-height: 1.1;
}
p {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.font-display {
  font-family: var(--display);
  letter-spacing: -0.02em;
}
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Brillos que se mueven al fondo */
.glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.glow-a {
  background: var(--amber);
  top: -160px;
  left: -120px;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-b {
  background: var(--violet);
  bottom: -200px;
  right: -140px;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  to {
    transform: translate(120px, 80px) scale(1.15);
  }
}

/* ---------- Piezas comunes ---------- */
.glass {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--ring);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
    0 20px 50px -20px rgba(0, 0, 0, 0.6);
}
.glass-strong {
  border-radius: 24px;
  background: rgba(11, 16, 32, 0.78);
  border: 1px solid var(--ring);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
    0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.text-gradient {
  background: linear-gradient(90deg, #fcd34d, #fb923c, #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plate {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: linear-gradient(#fff, #e2e8f0);
  padding: 2px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-950);
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 3px 0 0 var(--amber);
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  font-weight: 700;
  border: 0;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    background 0.18s;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}
.btn-sm {
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 12px;
}
.btn-lg {
  padding: 16px 24px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}
.btn-glow {
  background: linear-gradient(135deg, #fcd34d, #fbbf24 40%, #f97316);
  color: var(--ink-950);
  box-shadow:
    0 10px 30px -8px rgba(245, 158, 11, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px -8px rgba(245, 158, 11, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-glow:disabled {
  opacity: 0.4;
  transform: none;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ring);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-ghost .ico {
  color: var(--wa);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: live 1.6s infinite;
}
@keyframes live {
  to {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-300);
  margin-bottom: 14px;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head h2,
.tv-copy h2,
.origin h2,
.final h2 {
  font-size: clamp(30px, 4.6vw, 52px);
}
.sub {
  color: var(--muted);
  font-size: 17px;
  margin-top: 16px;
}
section {
  padding-top: 110px;
}
.chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
}
.chip-violet {
  background: rgba(124, 58, 237, 0.18);
  color: #c4b5fd;
}
.chip-amber {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-300);
}

/* Aparecer al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Barra superior ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition:
    background 0.3s,
    border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--ring);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
}
.brand img {
  border-radius: 10px;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a:hover {
  color: #fff;
}

/* ---------- Portada ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  min-height: calc(100vh - 70px);
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 78px);
  margin: 22px 0 22px;
  line-height: 1.02;
}
.lead {
  font-size: 18px;
  color: #cbd5e1;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-ticks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
}
.hero-ticks li::before {
  content: '✓';
  color: var(--amber);
  font-weight: 800;
  margin-right: 7px;
}

.scene {
  position: relative;
  padding-bottom: 150px;
}
.scene-stage {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 2;
}
.bay {
  display: block;
  width: 100%;
  height: 100%;
}
.bay-sign {
  font: 700 11px var(--display);
  letter-spacing: 0.3em;
  fill: #fbbf24;
  opacity: 0.6;
}
.bay-mini {
  font: 700 10px var(--font);
  fill: #94a3b8;
}
.spot {
  opacity: 0.4;
  transition: opacity 0.6s;
}
.lift-glow {
  opacity: 0;
  transition: opacity 0.5s;
  filter: drop-shadow(0 0 8px #fbbf24);
}

/* Movimiento del carro, controlado por clases desde main.js */
.car {
  transform: translate(-720px, 43px) scale(0.82);
}
.scene.s-enter .car {
  transform: translate(0, 43px) scale(0.82);
  transition: transform 1.8s cubic-bezier(0.15, 0.7, 0.25, 1);
}
.scene.s-park .car {
  transform: translate(0, 43px) scale(0.82);
}
.scene.s-exit .car {
  transform: translate(760px, 43px) scale(0.82);
  transition: transform 1.4s cubic-bezier(0.6, 0, 0.8, 0.5);
}
.scene.s-enter .wheel,
.scene.s-exit .wheel {
  animation: spin 0.45s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.scene.s-park .spot {
  opacity: 1;
}
.scene.s-park .lift-glow {
  opacity: 0.9;
}
.headlight {
  filter: drop-shadow(0 0 6px #fef3c7);
}

.tag-plate,
.tag-status,
.tag-wa {
  position: absolute;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition:
    opacity 0.45s,
    transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.tag-plate {
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
}
.tag-plate b {
  display: block;
}
.tag-plate small {
  color: var(--muted);
  font-size: 11px;
}
.tag-status {
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.4);
}
.st-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: live 1.4s infinite;
}
.tag-status.ok {
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.4);
}
.tag-wa {
  left: 14px;
  max-width: 330px;
  top: 74px;
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  background: #0b3b2a;
  border: 1px solid rgba(37, 211, 102, 0.4);
  box-shadow: 0 14px 40px -10px rgba(37, 211, 102, 0.4);
}
.tag-wa .ico {
  color: var(--wa);
  width: 26px;
  height: 26px;
}
.tag-wa small {
  display: block;
  color: #86efac;
  font-size: 11px;
  font-weight: 700;
}
.scene.show-plate .tag-plate,
.scene.show-status .tag-status,
.scene.show-wa .tag-wa {
  opacity: 1;
  transform: none;
}

.ticket {
  position: absolute;
  right: -18px;
  bottom: 0;
  width: 240px;
  padding: 16px;
  border-radius: 20px;
  font-size: 13px;
  transform: rotate(2deg);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: rotate(2deg) translateY(-8px);
  }
}
.ticket-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 10px;
}
.ticket-items {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 84px;
}
.ticket-items li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.ticket-items li span:first-child {
  color: #cbd5e1;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ticket-sum {
  margin-top: 8px;
  color: var(--muted);
}
.ticket-sum div {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}
.t-total-row {
  color: #fff;
  font-weight: 700;
  margin-top: 4px;
}
.t-total {
  font-size: 22px;
  color: var(--amber-300);
}

/* ---------- Cinta ---------- */
.marquee {
  padding: 28px 0;
  margin-top: 40px;
  border-block: 1px solid var(--ring);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: slide 38s linear infinite;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  color: #e2e8f0;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Recorrido ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.step {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.28;
  transition: opacity 0.5s;
}
.step.active {
  opacity: 1;
}
.step-n {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--amber);
  margin-bottom: 12px;
}
.step h3 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 14px;
}
.step p {
  color: #cbd5e1;
  font-size: 17px;
  max-width: 460px;
}
.story-device {
  position: relative;
}
.device {
  position: sticky;
  top: calc(50vh - 240px);
  height: 480px;
  border-radius: 34px;
  padding: 14px;
  background: linear-gradient(160deg, #1e253d, #0b1020);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 40px 100px -30px rgba(0, 0, 0, 0.9),
    0 0 0 8px rgba(255, 255, 255, 0.03),
    0 0 120px -40px rgba(245, 158, 11, 0.4);
}
.device-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 12px;
}
.device-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.device-bar b {
  margin-left: auto;
  font-family: var(--display);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.screens {
  position: relative;
  height: calc(100% - 30px);
  border-radius: 22px;
  overflow: hidden;
  background: var(--ink-950);
  background-image:
    radial-gradient(400px 300px at 0% 0%, rgba(245, 158, 11, 0.14), transparent 60%),
    radial-gradient(400px 300px at 100% 100%, rgba(124, 58, 237, 0.16), transparent 60%);
}
.screen {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition:
    opacity 0.5s,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.screen.on {
  opacity: 1;
  transform: none;
}
.s-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.s-input {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(251, 191, 36, 0.6);
  font: 800 22px ui-monospace, monospace;
  letter-spacing: 0.08em;
}
.typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
}
.screen.on .typing {
  animation: type 1.1s steps(8) 0.2s forwards;
}
@keyframes type {
  to {
    width: 8.6ch;
  }
}
.caret {
  width: 2px;
  height: 24px;
  margin-left: 3px;
  background: var(--amber);
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.s-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ring);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
}
.screen.on .s-card {
  animation: pop 0.5s 1.3s forwards;
}
.s-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.s-big {
  font-size: 18px;
  margin-top: 6px;
}
.s-muted {
  color: var(--muted);
  font-size: 13px;
}
.s-hist {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
}
.hd {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}
.hd-a {
  background: var(--amber);
}
.hd-v {
  background: #a78bfa;
}
.hd-s {
  background: #64748b;
}
.s-tabs {
  display: flex;
  gap: 8px;
  font-size: 13px;
}
.s-tabs span {
  padding: 7px 13px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}
.s-tabs .on {
  background: rgba(245, 158, 11, 0.18);
  color: var(--amber-300);
  font-weight: 700;
}
.s-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}
.s-tile {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ring);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #cbd5e1;
}
.s-tile b {
  color: #fff;
  font-size: 15px;
  margin-top: auto;
}
.screen.on .tap {
  animation: tap 0.6s 0.6s;
}
.screen.on .tap2 {
  animation: tap 0.6s 1.3s;
}
@keyframes tap {
  40% {
    transform: scale(0.94);
    border-color: var(--amber);
    background: rgba(245, 158, 11, 0.18);
  }
}
.ti {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: linear-gradient(160deg, #fbbf24, #ea580c);
  -webkit-mask: var(--m) center / 70% no-repeat;
  mask: var(--m) center / 70% no-repeat;
}
.ti-oil {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2s-7 8.5-7 13a7 7 0 0 0 14 0c0-4.5-7-13-7-13z'/%3E%3C/svg%3E");
}
.ti-oil.v {
  background: linear-gradient(160deg, #60a5fa, #1d4ed8);
}
.ti-oil.c {
  background: linear-gradient(160deg, #4ade80, #15803d);
}
.ti-filter {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='3' width='14' height='18' rx='4'/%3E%3C/svg%3E");
  background: linear-gradient(160deg, #a78bfa, #6d28d9);
}
.s-total {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ring);
  font-size: 13px;
  color: var(--muted);
}
.s-total b {
  font-size: 24px;
  color: #fff;
  margin-left: auto;
}
.s-pay {
  padding: 9px 16px;
  border-radius: 12px;
  font-weight: 800;
  color: var(--ink-950);
  background: linear-gradient(135deg, #fcd34d, #f97316);
}
.kanban {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}
.kcol {
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ring);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kcol h6 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.kcard {
  padding: 10px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(124, 58, 237, 0.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  font-size: 12px;
}
.kcard small {
  color: #cbd5e1;
}
.kcard.ok {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
}
.screen.on .kcard.move {
  animation: tomove 2.4s 0.6s cubic-bezier(0.6, 0, 0.3, 1) forwards;
}
@keyframes tomove {
  45% {
    transform: translate(0, -6px) rotate(-3deg);
  }
  100% {
    transform: translate(calc(100% + 30px), 0);
    background: rgba(52, 211, 153, 0.18);
    border-color: rgba(52, 211, 153, 0.5);
  }
}
.s-stock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  font-size: 13px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.s-stock .ti {
  width: 24px;
  height: 24px;
  margin: 0;
}
.s-stock span {
  margin-left: auto;
  font-weight: 800;
  color: var(--amber-300);
}
.wa-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -22px -22px 0;
  padding: 14px 18px;
  background: #0b3b2a;
}
.wa-head small {
  display: block;
  color: #86efac;
  font-size: 11px;
}
.wa-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  background: #1f6f4f;
}
.wa-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}
.wa-msg {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  opacity: 0;
}
.wa-msg small {
  display: block;
  text-align: right;
  font-size: 10px;
  opacity: 0.6;
  margin-top: 4px;
}
.wa-msg.out {
  align-self: flex-end;
  background: #005c4b;
  border-bottom-right-radius: 4px;
}
.wa-msg.in {
  align-self: flex-start;
  background: #1f2937;
  border-bottom-left-radius: 4px;
}
.screen.on .wa-msg.out {
  animation: pop 0.45s 0.4s forwards;
}
.screen.on .wa-msg.in {
  animation: pop 0.45s 1.8s forwards;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.kpis div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ring);
}
.kpis small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.kpis b {
  font-size: 24px;
}
.kpis .ok {
  color: var(--ok);
}
.bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ring);
}
.bars i {
  flex: 1;
  height: 0;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(#7c3aed, #4c1d95);
  transition: height 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bars i.hl {
  background: linear-gradient(#fcd34d, #f97316);
  box-shadow: 0 0 24px -4px rgba(245, 158, 11, 0.7);
}
.screen.on .bars i {
  height: var(--h);
}
.screen.on .bars i:nth-child(2) {
  transition-delay: 0.06s;
}
.screen.on .bars i:nth-child(3) {
  transition-delay: 0.12s;
}
.screen.on .bars i:nth-child(4) {
  transition-delay: 0.18s;
}
.screen.on .bars i:nth-child(5) {
  transition-delay: 0.24s;
}
.screen.on .bars i:nth-child(6) {
  transition-delay: 0.3s;
}
.screen.on .bars i:nth-child(7) {
  transition-delay: 0.36s;
}
.s-alert {
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 13px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
}

/* ---------- Demo ---------- */
.demo-box {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
  overflow: hidden;
  border-radius: 28px;
}
.demo-left {
  padding: 24px;
  min-width: 0;
}
.demo-top {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.demo-plate {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-plate input {
  width: 130px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 0;
  outline: none;
  background: linear-gradient(#fff, #e2e8f0);
  box-shadow: inset 0 4px 0 0 var(--amber);
  font: 800 17px ui-monospace, monospace;
  letter-spacing: 0.08em;
  color: var(--ink-950);
  text-transform: uppercase;
  text-align: center;
}
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ring);
}
.seg button,
.demo-tabs button,
.pay-methods button {
  border: 0;
  background: transparent;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: 0.2s;
}
.seg button.on,
.demo-tabs button.on,
.pay-methods button.on {
  background: rgba(245, 158, 11, 0.18);
  color: var(--amber-300);
}
.demo-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 14px;
}
.demo-tabs button {
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.tile {
  position: relative;
  text-align: left;
  border: 1px solid var(--ring);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 20px;
  padding: 14px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    transform 0.18s,
    border-color 0.18s,
    background 0.18s;
  animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards;
}
.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(255, 255, 255, 0.07);
}
.tile:active {
  transform: scale(0.95);
}
.tile .illu {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: var(--bg, rgba(245, 158, 11, 0.15));
}
.tile .tn {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}
.tile .tp {
  margin-top: auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
}
.tile .tp.changed {
  animation: flash 0.7s;
}
@keyframes flash {
  30% {
    color: var(--amber-300);
    transform: scale(1.12);
  }
}
.tile .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 26px;
  height: 26px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-950);
  background: linear-gradient(135deg, #fcd34d, #f97316);
  animation: pop 0.3s;
}
.fly {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  font-size: 28px;
  transition:
    transform 0.6s cubic-bezier(0.5, -0.3, 0.7, 1),
    opacity 0.6s;
}

.demo-ticket {
  position: relative;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(11, 16, 32, 0.7);
  border-left: 1px solid var(--ring);
}
.dt-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.dt-head small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.link {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
}
.dt-items {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-height: 160px;
  max-height: 290px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dt-empty {
  margin: auto;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.dt-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--ring);
  font-size: 14px;
  animation: pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.dt-item b {
  font-family: var(--display);
}
.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.qty button {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--ring);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  line-height: 1;
}
.dt-sum {
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.dt-sum div {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}
.dt-total {
  color: #fff;
  align-items: baseline;
  margin-top: 6px;
}
.dt-total b {
  font-size: 34px;
  color: var(--amber-300);
}
.dt-total b.bump {
  animation: flash 0.5s;
}
.pay-methods {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}
.pay-methods button {
  flex: 1;
  padding: 9px 4px;
  font-size: 13px;
}
.dt-done {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  background: rgba(5, 7, 13, 0.95);
  animation: pop 0.4s;
}
.dt-done[hidden] {
  display: none;
}
.done-check {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(52, 211, 153, 0.15);
  border: 2px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 60px -10px rgba(52, 211, 153, 0.6);
}
.done-check svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--ok);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 0.6s 0.2s forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.dt-done h4 {
  font-size: 26px;
}
.dt-done p {
  color: #cbd5e1;
}
.done-wa {
  display: flex;
  gap: 10px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  background: #0b3b2a;
  border: 1px solid rgba(37, 211, 102, 0.4);
}
.done-wa .ico {
  color: var(--wa);
  width: 24px;
  height: 24px;
}
.confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 200;
}
.demo-note {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  margin-top: 16px;
}

/* ---------- Antes / después ---------- */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.vs-card {
  padding: 30px;
  border-radius: 26px;
}
.vs-card h3 {
  font-size: 28px;
  margin-bottom: 18px;
}
.vs-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
}
.vs-before {
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 31px, rgba(96, 165, 250, 0.08) 31px 32px);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: #94a3b8;
}
.vs-before li::before {
  content: '✕';
  color: #f87171;
  font-weight: 800;
  margin-right: 10px;
}
.vs-before h3 {
  color: #cbd5e1;
}
.vs-after {
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.3),
    0 30px 80px -30px rgba(245, 158, 11, 0.45);
}
.vs-after li::before {
  content: '✓';
  color: var(--ok);
  font-weight: 800;
  margin-right: 10px;
}
.vs-arrow svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: nudge 1.4s ease-in-out infinite;
}
@keyframes nudge {
  50% {
    transform: translateX(6px);
  }
}

/* ---------- TV ---------- */
.tv-sec {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.tv-screen {
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(160deg, #0b1020, #05070d);
  border: 10px solid #111827;
  outline: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.9),
    0 0 120px -30px rgba(124, 58, 237, 0.5);
}
.tv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 20px;
}
.tv-clock {
  font-family: var(--display);
  font-weight: 700;
  color: var(--amber-300);
}
.tv-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tv-cols h6 {
  font-size: 13px;
  margin-bottom: 10px;
  color: #cbd5e1;
}
.tv-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 12px;
  font-size: 13px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
}
.tv-row.ok {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
}
.tv-row .bar {
  flex-basis: 100%;
  height: 5px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.tv-row .bar i {
  display: block;
  height: 100%;
  width: var(--p);
  border-radius: inherit;
  background: linear-gradient(90deg, #a78bfa, #fbbf24);
  animation: grow 3s ease-in-out infinite alternate;
}
@keyframes grow {
  from {
    width: calc(var(--p) - 15%);
  }
}
.tv-row.moving {
  animation: glowrow 2s ease-in-out infinite;
}
@keyframes glowrow {
  50% {
    box-shadow: 0 0 24px -4px rgba(245, 158, 11, 0.6);
    border-color: rgba(245, 158, 11, 0.6);
  }
}
.tv-stand {
  width: 30%;
  height: 22px;
  margin: 0 auto;
  background: linear-gradient(#1f2937, #0b1020);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
}

/* ---------- Origen ---------- */
.origin-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 40px;
  border-radius: 30px;
  background:
    radial-gradient(500px 240px at 0% 0%, rgba(245, 158, 11, 0.18), transparent 70%),
    rgba(255, 255, 255, 0.045);
}
.origin-card p {
  color: #cbd5e1;
  font-size: 17px;
  margin-top: 16px;
  max-width: 760px;
}
.origin-badge {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--ink-950);
  background: linear-gradient(135deg, #fcd34d, #f97316);
  box-shadow: 0 16px 40px -10px rgba(245, 158, 11, 0.7);
}
.origin-badge .ico {
  width: 30px;
  height: 30px;
  fill: currentColor;
  stroke: none;
}

/* ---------- Características ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feat {
  padding: 26px;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.feat:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.35);
}
.feat i {
  font-style: normal;
  font-size: 30px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}
.feat h4 {
  font-size: 19px;
  margin-bottom: 6px;
  font-family: var(--display);
}
.feat p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Preguntas ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  padding: 0 22px;
  border-radius: 18px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 24px;
  line-height: 1;
  color: var(--amber);
  transition: transform 0.25s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: #cbd5e1;
  padding-bottom: 20px;
}

/* ---------- Cierre ---------- */
.final-card {
  text-align: center;
  padding: 64px 28px;
  border-radius: 34px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(245, 158, 11, 0.25), transparent 70%),
    radial-gradient(500px 300px at 50% 100%, rgba(124, 58, 237, 0.25), transparent 70%),
    rgba(11, 16, 32, 0.78);
}
.final-card h2 {
  max-width: 760px;
  margin: 0 auto;
}
.final-card p {
  color: #cbd5e1;
  font-size: 18px;
  margin: 18px 0 30px;
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 60px;
  padding-bottom: 110px;
  color: #64748b;
  font-size: 14px;
}
.foot .brand {
  color: #cbd5e1;
  font-size: 18px;
}

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 14px 40px -8px rgba(37, 211, 102, 0.7);
  transition: transform 0.2s;
}
.wa-float:hover {
  transform: scale(1.08);
}
.wa-float svg {
  width: 32px;
  height: 32px;
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: ring 2s ease-out infinite;
}
@keyframes ring {
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ---------- Celular y tablet ---------- */
@media (max-width: 980px) {
  .hero,
  .tv-sec {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero {
    padding-top: 32px;
    gap: 36px;
  }
  .nav-links {
    display: none;
  }
  .nav-in .btn {
    margin-left: auto;
  }
  .ticket {
    right: 8px;
    width: 230px;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  /* En celular el dispositivo se queda pegado arriba y los pasos pasan por debajo */
  .story-device {
    order: -1;
    position: sticky;
    top: 70px;
    z-index: 3;
    padding-top: 8px;
  }
  /* Franja oscura detrás del teléfono para que el texto pase por debajo */
  .story-device::before {
    content: "";
    position: absolute;
    left: -20px;
    right: -20px;
    top: -10px;
    bottom: -28px;
    z-index: -1;
    background: linear-gradient(var(--ink-950) 88%, transparent);
  }
  .device {
    position: relative;
    top: 0;
    height: 380px;
    max-width: 420px;
    margin: 0 auto;
  }
  .step {
    min-height: 55vh;
  }
  .demo-box {
    grid-template-columns: 1fr;
  }
  .demo-ticket {
    border-left: 0;
    border-top: 1px solid var(--ring);
  }
  .vs-grid {
    grid-template-columns: 1fr;
  }
  .vs-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
  .feat-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  section {
    padding-top: 80px;
  }
  .lead {
    font-size: 16px;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .scene {
    padding-bottom: 0;
  }
  /* En celular el ticket va debajo de la escena para no tapar el carro */
  .ticket {
    position: relative;
    right: auto;
    width: 92%;
    margin: -28px auto 0;
    transform: rotate(1deg);
    animation: none;
  }
  .tag-plate small {
    display: none;
  }
  /* Poco espacio: el WhatsApp reemplaza arriba a la placa y al estado */
  .tag-wa {
    top: 14px;
  }
  .scene.show-wa .tag-plate,
  .scene.show-wa .tag-status {
    opacity: 0;
  }
  .tag-plate {
    padding: 8px 10px;
    font-size: 12px;
  }
  .tag-status {
    font-size: 12px;
    padding: 5px 10px;
  }
  .tag-wa {
    font-size: 12px;
    padding: 9px 11px;
  }
  .device {
    height: 370px;
  }
  .screen {
    padding: 16px;
    gap: 10px;
  }
  .wa-head {
    margin: -16px -16px 0;
  }
  .s-hist div:nth-child(3) {
    display: none;
  }
  .step p {
    font-size: 16px;
  }
  .demo-left,
  .demo-ticket {
    padding: 16px;
  }
  .demo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .tile {
    min-height: 136px;
  }
  .seg button {
    padding: 8px 9px;
    font-size: 13px;
  }
  .tv-cols {
    grid-template-columns: 1fr;
  }
  .tv-screen {
    border-width: 6px;
    padding: 14px;
  }
  .feat-grid {
    grid-template-columns: 1fr;
  }
  .origin-card {
    flex-direction: column;
    padding: 26px;
  }
  .vs-card {
    padding: 22px;
  }
  .final-card {
    padding: 44px 20px;
  }
  .final-card .btn {
    width: 100%;
  }
  .wa-float {
    width: 54px;
    height: 54px;
    right: 14px;
    bottom: 14px;
  }
}

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