/* ==========================================================================
   subo.ar — la web de Subo.
   Escenas fijas que se transforman al bajar (--p de 0 a 1, lo pone subo.js),
   elementos que entran al aparecer (.entrar → .visto) y el celular de la demo.
   ========================================================================== */

@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.08);
  --borde: rgba(255, 255, 255, 0.09);
  --borde-2: rgba(255, 255, 255, 0.18);
  --texto: #f3f6ff;
  --texto-2: #b6bfd5;
  --texto-3: #7f89a3;
  --azul: #2f6bff;
  --celeste: #22b8ff;
  --violeta: #8b5cf6;
  --verde: #2ee59d;
  --grad: linear-gradient(110deg, #22b8ff 0%, #4f7dff 45%, #a77bff 100%);
  --titulo: "Unbounded", "Geist", system-ui, sans-serif;
  --fuente: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radio: 24px;
  --ancho: 1200px;
  --margen: clamp(16px, 4vw, 40px);
  --suave: cubic-bezier(0.22, 1, 0.36, 1);
  --vh: 1vh;
  color-scheme: dark;
}
@supports (height: 1svh) {
  :root {
    --vh: 1svh;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}
.lenis.lenis-stopped {
  overflow: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* Grano muy suave sobre todo (le da textura a los degradés). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img,
svg {
  display: block;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--celeste);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: rgba(47, 107, 255, 0.55);
  color: #fff;
}
.saltar {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 700;
}
.saltar:focus {
  top: 12px;
}
.contenedor {
  width: min(100% - 2 * var(--margen), var(--ancho));
  margin-inline: auto;
}

/* ---------- Piezas comunes ---------- */
.boton {
  --x: 0px;
  --y: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transform: translate3d(var(--x), var(--y), 0);
  transition:
    transform 0.35s var(--suave),
    box-shadow 0.35s var(--suave),
    background-color 0.3s ease;
}
.boton svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--suave);
}
.boton:hover svg {
  transform: translateX(4px);
}
.boton-brillo {
  color: #fff;
  background: linear-gradient(110deg, #22b8ff, #2f6bff 45%, #7b5cff);
  background-size: 200% 100%;
  box-shadow:
    0 10px 40px -10px rgba(47, 107, 255, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: brillo-boton 6s ease-in-out infinite;
}
.boton-brillo:hover {
  box-shadow:
    0 16px 50px -10px rgba(47, 107, 255, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
@keyframes brillo-boton {
  50% {
    background-position: 100% 0;
  }
}
.boton-vidrio {
  color: var(--texto);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--borde-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.boton-vidrio:hover {
  background: rgba(255, 255, 255, 0.11);
}
.boton-chico {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 14.5px;
  color: #05070d;
  background: #fff;
}
.boton-chico:hover {
  background: #dfe8ff;
}
.pastilla {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--texto-2);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--borde);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.punto-vivo {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--verde);
  box-shadow: 0 0 12px var(--verde);
}
.punto-vivo::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--verde);
  animation: latido 2s ease-out infinite;
}
@keyframes latido {
  from {
    transform: scale(0.4);
    opacity: 0.9;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}
.antetitulo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--titulo);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--celeste);
}
.antetitulo::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.titulo-seccion {
  font-family: var(--titulo);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.titulo-largo {
  font-size: clamp(1.75rem, 3.7vw, 3.15rem);
  line-height: 1.08;
}
.bajada-seccion {
  max-width: 640px;
  margin-top: 22px;
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: var(--texto-2);
}
.bajada-seccion b {
  color: var(--texto);
}
.seccion {
  position: relative;
  padding-block: clamp(90px, 13vw, 170px);
}

/* Entrar al aparecer: de abajo, transparente y un poco desenfocado. */
.entrar {
  opacity: 0;
  transform: translate3d(0, 46px, 0);
  filter: blur(6px);
  transition:
    opacity 1s var(--suave),
    transform 1.1s var(--suave),
    filter 1s var(--suave);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.entrar.visto {
  opacity: 1;
  transform: none;
  filter: none;
}
/* Títulos: cada palabra sube desde abajo de una "ventana". */
.pal {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* Lugar para las colas de la g, la p y las comas. */
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.pal > span {
  display: inline-block;
  transform: translate3d(0, 108%, 0) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 1.1s var(--suave);
  transition-delay: calc(var(--i, 0) * 55ms + 80ms);
}
.visto .pal > span,
.pal-listo .pal > span {
  transform: none;
}
.titulo-seccion.entrar.partido {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Barra de progreso, navegación y guía ---------- */
.progreso {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}
.progreso i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00a9e0, #e4002b, #0067b1, #00845a, #6d2c91, #ffd200);
  transform: scaleX(var(--avance, 0));
  transform-origin: left;
}
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100% - 24px, 1180px);
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  translate: -50% 0;
  background: rgba(8, 11, 20, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 40px -20px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  transition:
    translate 0.5s var(--suave),
    background-color 0.4s ease;
}
.nav.escondida {
  translate: -50% calc(-100% - 30px);
}
.nav-marca {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
}
.logo {
  width: 32px;
  height: 32px;
  flex: none;
}
.nav-seccion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-2);
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}
.nav-seccion b {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  font-family: var(--titulo);
  font-size: 11px;
  color: #fff;
  background: var(--azul);
}
.nav-seccion span {
  display: inline-block;
  transition:
    opacity 0.3s ease,
    transform 0.4s var(--suave);
}
.nav-seccion.cambia span {
  opacity: 0;
  transform: translateY(8px);
}
.nav-enlaces {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-enlaces a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--texto-2);
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}
.nav-enlaces a:hover,
.nav-enlaces a.activo {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.guia {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: #0b1020;
  text-decoration: none;
  /* Opaca: en Safari, lo semitransparente fijo deja leer lo que pasa por debajo. */
  background: #fff;
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.7);
  transform: translateY(140%);
  transition: transform 0.6s var(--suave);
}
.guia.visible {
  transform: none;
}
.guia.visible.callada {
  transform: translateY(140%);
}
.guia .logo {
  width: 30px;
  height: 30px;
}
.guia span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition:
    opacity 0.25s ease,
    transform 0.35s var(--suave);
}
.guia.cambia span {
  opacity: 0;
  transform: translateY(10px);
}

/* ---------- Escenas fijas ---------- */
.escena {
  position: relative;
}
.escena-fija {
  position: sticky;
  top: 0;
  height: calc(100 * var(--vh));
  overflow: hidden;
}

/* ==========================================================================
   1. INICIO
   ========================================================================== */
.escena-hero {
  height: calc(165 * var(--vh));
}
.piso {
  position: absolute;
  inset: 0;
  perspective: 900px;
  perspective-origin: 50% 0%;
  overflow: hidden;
}
.piso-plano {
  --tam: 2400px;
  position: absolute;
  left: 50%;
  top: 72%;
  width: var(--tam);
  height: var(--tam);
  margin: calc(var(--tam) / -2) 0 0 calc(var(--tam) / -2);
  transform: rotateX(calc(64deg - var(--p, 0) * 18deg)) rotateZ(calc(var(--mx, 0) * 3deg - 8deg))
    scale(calc(1 + var(--p, 0) * 0.55));
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cpath d='M120 112v16M112 120h16' stroke='%23a9c3ff' stroke-opacity='.5' stroke-width='2'/%3E%3C/svg%3E"),
    linear-gradient(rgba(110, 150, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 150, 255, 0.11) 1px, transparent 1px);
  background-size:
    240px 240px,
    80px 80px,
    80px 80px;
  background-position: center;
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 92%);
  mask-image: radial-gradient(closest-side, #000 25%, transparent 92%);
  opacity: 0;
  animation: aparecer-piso 2.2s var(--suave) 0.2s forwards;
}
@keyframes aparecer-piso {
  to {
    opacity: 1;
  }
}
.piso-plano svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.red-trenes path {
  fill: none;
  stroke: #5f8dff;
  stroke-opacity: 0.38;
  stroke-width: 0.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.red-brillo path {
  fill: none;
  stroke-width: 3;
  stroke-opacity: 0.22;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.red-subte path {
  fill: none;
  stroke-width: 0.95;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: dibujar 2.6s var(--suave) forwards;
  animation-delay: calc(var(--i, 0) * 120ms + 400ms);
}
@keyframes dibujar {
  to {
    stroke-dashoffset: 0;
  }
}
.red-estaciones circle {
  fill: #fff;
  opacity: 0.85;
}
.red-tren .nucleo {
  fill: #fff;
}
.red-tren .halo {
  fill: url(#halo-tren);
}
.hero-luz {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 56% at 24% 54%, rgba(5, 7, 13, 0.8) 0%, rgba(5, 7, 13, 0.58) 50%, transparent 86%),
    radial-gradient(60% 50% at 82% 18%, rgba(47, 107, 255, 0.45), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(139, 92, 246, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.85) 0%, rgba(5, 7, 13, 0) 40%, rgba(5, 7, 13, 0) 70%, var(--bg) 100%);
}
.hero-grilla {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-top: 80px;
  padding-bottom: 40px;
}
.hero-texto {
  transform: translate3d(0, calc(var(--p, 0) * -16 * var(--vh)), 0);
  opacity: calc(1 - var(--p, 0) * 1.8);
}
/* Texto mínimo: el título en blanco, en dos tonos, liviano; una línea abajo y dos botones sobrios. */
.hero-titulo {
  margin-top: 28px;
  font-family: var(--titulo);
  font-weight: 500;
  font-size: clamp(2.3rem, min(5.6vw, 9.5 * var(--vh)), 5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.hero-titulo .tenue {
  color: rgba(243, 246, 255, 0.42);
}
.hero-bajada {
  max-width: 440px;
  margin-top: 24px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--texto-2);
}
.hero-acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 36px;
}
.boton-blanco {
  color: #05070d;
  background: #fff;
  box-shadow: 0 10px 30px -12px rgba(255, 255, 255, 0.35);
}
.boton-blanco:hover {
  background: #e7eeff;
}
.boton-texto {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--texto-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.boton-texto:hover {
  color: #fff;
}
[data-x] svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: currentColor;
  stroke: none;
}
.boton[data-x]:hover svg {
  transform: none;
}
.hero-telefono {
  position: relative;
  justify-self: center;
  transform: translate3d(calc(var(--p, 0) * 4vw), calc(var(--p, 0) * -6 * var(--vh)), 0) scale(calc(1 - var(--p, 0) * 0.12));
  opacity: calc(2.2 - var(--p, 0) * 2.4);
}
.hero-telefono .telefono {
  --ancho: clamp(250px, 24vw, 330px);
  transform: perspective(1400px) rotateY(calc(var(--tx, 0) * 9deg - 6deg)) rotateX(calc(var(--ty, 0) * -7deg + 3deg));
  transition: transform 0.9s var(--suave);
  animation: flotar 7s ease-in-out infinite;
}
@keyframes flotar {
  50% {
    translate: 0 -12px;
  }
}
.ficha {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 18px;
  background: rgba(14, 19, 33, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 20px 50px -20px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  white-space: nowrap;
  animation: flotar 6s ease-in-out infinite;
}
.ficha b {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}
.ficha small {
  display: block;
  font-size: 12.5px;
  color: var(--texto-3);
}
.ficha-icono {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-weight: 900;
  color: #fff;
}
.ficha-icono svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
}
.ficha-icono.reloj {
  background: linear-gradient(135deg, #22b8ff, #2f6bff);
}
.ficha-1 {
  bottom: 34%;
  left: -30%;
  transform: translate3d(calc(var(--p, 0) * -80px), calc(var(--p, 0) * 40px), 0);
}
.hero-bajar {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  width: 28px;
  height: 46px;
  margin-left: -14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  opacity: calc(1 - var(--p, 0) * 4);
}
.hero-bajar span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 4px;
  background: #fff;
  animation: rueda 1.8s var(--suave) infinite;
}
@keyframes rueda {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(16px);
    opacity: 0;
  }
}

/* ==========================================================================
   El celular (marco) y la app de la demo
   ========================================================================== */
.telefono {
  --ancho: 300px;
  position: relative;
  width: var(--ancho);
  flex: none;
}
.telefono-marco {
  position: relative;
  padding: calc(var(--ancho) * 0.034);
  border-radius: calc(var(--ancho) * 0.17);
  background:
    linear-gradient(145deg, #3a4256, #10141f 40%, #2a3142 70%, #0c0f18) padding-box;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 50px 100px -30px rgba(0, 0, 0, 0.95),
    0 30px 80px -40px rgba(47, 107, 255, 0.6);
}
.telefono-marco::before {
  /* Botones laterales. */
  content: "";
  position: absolute;
  right: -3px;
  top: 26%;
  width: 3px;
  height: 14%;
  border-radius: 0 3px 3px 0;
  background: #2a3142;
}
.telefono-pantalla {
  position: relative;
  aspect-ratio: 390 / 844;
  border-radius: calc(var(--ancho) * 0.135);
  overflow: hidden;
  background: #f6f7f9;
  isolation: isolate;
  transform: translateZ(0);
}
/* Reflejo del vidrio. */
.telefono-pantalla::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 32%);
}

/* La app: 390 x 844 px "de celular", escalada al tamaño del marco (--s la pone demo.js). */
.app {
  --frec: #0b3d91;
  position: absolute;
  left: 0;
  top: 0;
  width: 390px;
  height: 844px;
  overflow: hidden;
  transform: scale(var(--s, 0.7));
  transform-origin: 0 0;
  background: #f6f7f9;
  color: #15181d;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0;
  user-select: none;
  -webkit-user-select: none;
}
.app-estado {
  position: relative;
  z-index: 6;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 30px 0 40px;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
}
.app-isla {
  position: absolute;
  left: 50%;
  top: 11px;
  width: 118px;
  height: 34px;
  margin-left: -59px;
  border-radius: 20px;
  background: #000;
}
.app-iconos {
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-iconos svg {
  height: 12px;
  width: auto;
  fill: currentColor;
}
.app-cab {
  position: relative;
  z-index: 6;
  height: 61px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #dde1e7;
}
.app-logo {
  width: 28px;
  height: 28px;
}
.app-marca b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}
.app-marca small {
  display: block;
  font-size: 12px;
  color: #6f7685;
}
.app-reportes {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #1a6fd6;
  background: #e5f1fd;
}
.app-reportes i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}
.app-boton-tema {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #dde1e7;
}
.app-boton-tema svg {
  width: 20px;
  height: 20px;
  fill: #4b5260;
}
.app-scroll {
  position: absolute;
  inset: 111px 0 0;
  overflow: hidden;
}
.app-scroll > * {
  transform: translate3d(0, var(--y, 0px), 0);
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.app-hero {
  position: relative;
  z-index: 4;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #dde1e7;
}
.app-hero h3 {
  margin: 2px 0 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.app-campos {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 46px;
  grid-template-rows: auto auto;
  gap: 10px 8px;
  align-items: center;
}
.app-guia {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: stretch;
  position: relative;
}
.app-guia .anillo {
  position: absolute;
  left: 3px;
  top: 23px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 3px solid #6f7685;
  background: #fff;
  transition: border-color 0.3s ease;
}
.app-guia .puntos {
  position: absolute;
  left: 9.5px;
  top: 41px;
  bottom: 41px;
  border-left: 2px dotted #9aa1ad;
}
.app-guia .punto {
  position: absolute;
  left: 3px;
  bottom: 22px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #6f7685;
  transition: background-color 0.3s ease;
}
.app-campos.con-desde .anillo {
  border-color: var(--cd, #00845a);
}
.app-campos.con-hasta .punto {
  background: var(--ch, #0067b1);
}
.app-campo {
  grid-column: 2;
  position: relative;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid #dde1e7;
  border-radius: 14px;
  background: #fff;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}
.app-campo small {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f7685;
}
.app-valor {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 25px;
  font-size: 18px;
  color: #15181d;
  white-space: nowrap;
  overflow: hidden;
}
.app-valor:empty::before {
  content: attr(data-vacio);
  color: #8e96a4;
}
.app-campo.foco {
  border-color: #1f5fd1;
  box-shadow: 0 0 0 4px rgba(31, 95, 209, 0.16);
}
.app-campo.foco .app-valor::after {
  content: "";
  width: 2px;
  height: 22px;
  margin-left: -6px;
  background: #1f5fd1;
  animation: cursor 1s steps(1) infinite;
}
.app-campo.foco .app-valor:empty::after {
  margin-left: 0;
  order: -1;
}
.app-campo.foco .app-valor:empty::before {
  margin-left: 2px;
}
@keyframes cursor {
  50% {
    opacity: 0;
  }
}
.app-campo.elegido {
  background: #eef0f3;
  border-color: #eef0f3;
}
.app-campo.elegido .app-valor {
  font-weight: 700;
}
.app-campo.elegido::after {
  content: "×";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  color: #4b5260;
  background: #fff;
}
.app-invertir {
  grid-column: 3;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #dde1e7;
  background: #fff;
}
.app-invertir svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #8e96a4;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-aqui {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 2px 30px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid #9dbbf0;
  font-size: 15px;
  font-weight: 600;
  color: #1f5fd1;
}
.app-aqui svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.app-l {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: var(--c, #555);
}
.app-l.tren {
  border-radius: 9px;
}
.app-l svg {
  width: 22px;
  height: 22px;
}
.app-sugerencias {
  position: absolute;
  left: 46px;
  right: 62px;
  top: var(--arriba, 120px);
  z-index: 8;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 16px;
  border: 1px solid #e3e6eb;
  background: #fff;
  box-shadow: 0 18px 40px -10px rgba(16, 24, 40, 0.28);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.3s var(--suave);
}
.app-sugerencias.abierta {
  opacity: 1;
  transform: none;
}
.app-sugerencias li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  transition: background-color 0.2s ease;
}
.app-sugerencias li .app-l {
  width: 36px;
  height: 36px;
  font-size: 17px;
}
.app-sugerencias li.tren .app-l {
  border-radius: 10px;
}
.app-sugerencias b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}
.app-sugerencias small {
  display: block;
  font-size: 14px;
  color: #6f7685;
}
.app-sugerencias li.marcada {
  background: #eef3fd;
}
.app-mapa {
  position: relative;
  z-index: 1;
  height: 330px;
  overflow: hidden;
  background: #eceef2;
}
.mapa-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mapa-rio {
  fill: #cfdbe8;
}
.mapa-calles {
  fill: url(#calles);
}
.mapa-red path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.6s ease;
}
.mapa-red .tren {
  stroke: #9fb3c9;
}
.mapa-red .tren.mitre,
.mapa-red .tren.costa {
  stroke: #8fc3e6;
}
.app-mapa.con-ruta .mapa-red path {
  opacity: 0.35;
}
.mapa-ruta path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mapa-ruta .borde {
  stroke: #fff;
}
.mapa-ruta .pie {
  stroke: #4b5260;
  stroke-dasharray: 0.02 0.03;
}
.mapa-ruta path.dibuja {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.mapa-ruta path.dibuja.ya {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--dur, 1s) cubic-bezier(0.45, 0, 0.2, 1);
}
.mapa-marcas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.marca {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 5px;
  border-radius: 999px;
  border: 2px solid #15181d;
  background: #fff;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  translate: -50% calc(-100% - 10px);
  scale: 0.4;
  opacity: 0;
  transition:
    scale 0.45s var(--suave),
    opacity 0.3s ease;
}
.marca.ver {
  scale: 1;
  opacity: 1;
}
.marca::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #15181d;
}
.marca b {
  display: block;
  font-size: 15px;
  line-height: 1.15;
}
.marca small {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #1f5fd1;
}
.marca.destino {
  background: #15181d;
  color: #fff;
}
.marca.destino small {
  color: #9dc0ff;
}
.marca.destino::after {
  background: #15181d;
  border-color: #fff;
}
.marca .app-l {
  width: 28px;
  height: 28px;
  font-size: 14px;
}
.mapa-zoom {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.mapa-zoom i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  font-style: normal;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}
.mapa-zoom i + i {
  border-top: 1px solid #e3e6eb;
}
.app-panel {
  position: relative;
  z-index: 2;
  padding: 14px 16px 40px;
  background: #f6f7f9;
}
.app-hoy {
  font-size: 14.5px;
  color: #4b5260;
}
.app-hoy b {
  font-weight: 600;
  color: #15181d;
}
.app-modo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid #dde1e7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}
.app-modo-icono {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}
.app-modo-icono.subte {
  border-radius: 50%;
  background: linear-gradient(145deg, #0067b1, #00a9e0);
}
.app-modo-icono.tren {
  border-radius: 11px;
  background: linear-gradient(145deg, #1e3f8f, #1e9bd7);
}
.app-modo-icono.tren svg {
  width: 30px;
  height: 30px;
}
.app-modo-icono.promo {
  border-radius: 12px;
  background: linear-gradient(135deg, #22b8ff, #1f5fd1 55%, #3b2bd6);
}
.app-modo-texto b {
  display: block;
  font-size: 17px;
  font-weight: 800;
}
.app-modo-texto small {
  display: block;
  font-size: 12.5px;
  color: #6f7685;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-modo-texto em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  color: #1b6e3a;
}
.app-modo.promo {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #22b8ff, #1f5fd1 55%, #8b5cf6) border-box;
}
.app-modo.promo em {
  color: #1f5fd1;
}
.app-ver {
  align-self: start;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #0b3d91;
  background: #e8f0fe;
}
.app-viaje {
  display: none;
  margin-bottom: 16px;
}
.app-viaje.ver {
  display: block;
  animation: subir-tarjeta 0.7s var(--suave) both;
}
@keyframes subir-tarjeta {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
}
.v-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.v-cab > span:first-child {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f7685;
}
.v-vivo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 10px;
  font-size: 13px;
  color: #4b5260;
}
.v-vivo i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
}
.v-x {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #dde1e7;
  font-size: 20px;
  background: #fff;
}
.v-tarjeta {
  padding: 14px 14px 12px;
  border: 1px solid #dde1e7;
  border-top: 5px solid var(--c, #00845a);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.07);
}
.v-ruta {
  font-size: 14px;
  font-weight: 700;
  color: #4b5260;
}
.v-sale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 4px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6e9ee;
  font-size: 15px;
  color: #4b5260;
}
.v-sale b {
  font-size: 19px;
  font-weight: 800;
  color: var(--frec);
}
.v-chip {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  color: #4b5260;
  background: #eef0f3;
}
.v-chip.ok {
  color: #0d7a3e;
  background: #e3f6ea;
}
.v-tramo {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding-bottom: 10px;
}
.v-tramo::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 34px;
  bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: var(--c);
}
.v-tramo b {
  display: block;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
}
.v-tramo small {
  display: block;
  font-size: 13px;
  color: #6f7685;
}
.v-tramo em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 13.5px;
  color: #6f7685;
}
.v-tramo em strong {
  color: var(--frec);
}
.v-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid #15181d;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.v-pie {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 12px 40px;
  padding: 9px 12px;
  border: 1px dashed #cfd4dc;
  border-radius: 12px;
  font-size: 13.5px;
  color: #4b5260;
}
.v-proximos {
  display: flex;
  gap: 6px;
  margin: -2px 0 12px 40px;
  font-size: 13px;
  color: #6f7685;
}
.v-proximos span {
  padding: 2px 8px;
  border-radius: 8px;
  background: #f1f3f6;
  font-weight: 700;
  color: #4b5260;
}
.v-total {
  padding-top: 10px;
  border-top: 1px solid #e6e9ee;
}
.v-total small {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #4b5260;
}
.v-total b {
  display: block;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.v-total span {
  display: block;
  font-size: 13px;
  color: #6f7685;
}
.app-toque {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 30;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(31, 95, 209, 0.22);
  box-shadow: inset 0 0 0 2px rgba(31, 95, 209, 0.45);
  opacity: 0;
  pointer-events: none;
}
.app-toque.toca {
  animation: toque 0.65s ease-out;
}
@keyframes toque {
  0% {
    transform: scale(0.35);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* ==========================================================================
   2. LA IDEA
   ========================================================================== */
.escena-idea {
  height: calc(240 * var(--vh));
}
.escena-idea .escena-fija {
  display: grid;
  place-items: center;
}
.idea-luz {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 40% at 50% 50%, rgba(47, 107, 255, calc(0.08 + var(--p, 0) * 0.22)), transparent 70%);
}
.idea {
  position: relative;
  isolation: isolate;
  width: min(100% - 2 * var(--margen), 1100px);
  font-family: var(--titulo);
  font-weight: 600;
  font-size: clamp(1.6rem, 4.3vw, 3.9rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
  transform: translate3d(0, calc((0.5 - var(--p, 0)) * 10 * var(--vh)), 0) scale(calc(0.96 + var(--p, 0) * 0.04));
}
.idea .w {
  opacity: 0.14;
  transition:
    opacity 0.45s ease,
    color 0.45s ease;
}
.idea .w.on {
  opacity: 1;
}
.idea mark {
  position: relative;
  background: none;
  color: inherit;
  white-space: nowrap;
}
.idea mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.06em -0.16em -0.02em;
  border-radius: 0.22em;
  background: var(--m);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--suave);
}
.idea mark.on::before {
  transform: none;
}

/* ==========================================================================
   EN VIVO (cinta)
   ========================================================================== */
.envivo {
  position: relative;
  padding: 40px 0 70px;
}
.envivo-cab {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 22px;
}
.envivo-titulo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--titulo);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.envivo-nota {
  font-size: 14px;
  color: var(--texto-3);
}
.cinta {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cinta-pista {
  display: flex;
  gap: 12px;
  width: max-content;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  animation: cinta 60s linear infinite;
}
.cinta:hover .cinta-pista {
  animation-play-state: paused;
}
@keyframes cinta {
  to {
    transform: translateX(-50%);
  }
}
.linea-estado {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--borde);
  white-space: nowrap;
}
.linea-estado b {
  display: block;
  font-size: 15px;
}
.linea-estado small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--texto-3);
}
.linea-estado small i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--e, #2ee59d);
}
.mini-linea {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: var(--fuente);
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  background: var(--c, #555);
}
.mini-linea.a { --c: #00a9e0; }
.mini-linea.b { --c: #e4002b; }
.mini-linea.c { --c: #0067b1; }
.mini-linea.d { --c: #00845a; }
.mini-linea.e { --c: #6d2c91; }
.mini-linea.h { --c: #ffd200; color: #1a1a1a; }
.mini-linea.p { --c: #f39200; color: #1a1a1a; }
.mini-linea.tren {
  border-radius: 10px;
  font-size: 13px;
}

/* ==========================================================================
   3. CÓMO FUNCIONA
   ========================================================================== */
.escena-como {
  height: calc(360 * var(--vh));
}
.como-grilla {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(30px, 6vw, 100px);
  padding-top: 70px;
}
.como-pasos {
  display: grid;
  gap: 8px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.como-pasos li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  opacity: 0.32;
  transition:
    opacity 0.5s ease,
    background-color 0.5s ease,
    transform 0.6s var(--suave);
}
.como-pasos li.activo {
  opacity: 1;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--borde);
  transform: translateX(10px);
}
.paso-num {
  font-family: var(--titulo);
  font-size: 15px;
  font-weight: 700;
  color: var(--celeste);
  padding-top: 4px;
}
.como-pasos h3 {
  font-family: var(--titulo);
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.como-pasos p {
  margin-top: 6px;
  font-size: 16px;
  color: var(--texto-2);
}
.como-barra {
  height: 3px;
  margin: 28px 20px 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.como-barra i {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.como-telefono {
  position: relative;
}
.como-telefono::before {
  content: "";
  position: absolute;
  inset: -10% -30%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(47, 107, 255, 0.35), transparent);
}
.como-telefono .telefono {
  --ancho: min(340px, calc((100 * var(--vh) - 150px) * 0.43));
}

/* ==========================================================================
   4. FUNCIONES (bento)
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 60px;
  perspective: 1400px;
}
.tarjeta {
  --e: 0;
  --ek: clamp(0, calc(var(--e) * 1.5 - var(--k, 0) * 0.08), 1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  min-height: 320px;
  padding: 28px;
  border-radius: var(--radio);
  overflow: hidden;
  background:
    radial-gradient(500px circle at var(--lx, 50%) var(--ly, -20%), rgba(80, 130, 255, 0.14), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px var(--borde);
  transform: translate3d(0, calc((1 - var(--ek)) * 110px), 0) rotateX(calc((1 - var(--ek)) * 24deg)) scale(calc(0.92 + var(--ek) * 0.08));
  transform-origin: 50% 100%;
  opacity: calc(var(--ek) * 1.2);
}
.t-grande {
  grid-column: span 2;
}
.tarjeta h3 {
  font-family: var(--titulo);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.tarjeta p {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--texto-2);
}
.vivo-demo {
  display: grid;
  gap: 12px;
}
.vivo-linea {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}
.vivo-linea b {
  font-size: 15px;
  white-space: nowrap;
}
.vivo-barra {
  position: relative;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.vivo-barra i {
  position: absolute;
  top: 0;
  left: -12%;
  width: 12%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, transparent, #fff);
  animation: pasa-tren 3.6s linear infinite;
}
.vivo-barra i:nth-child(2) {
  animation-delay: -1.2s;
}
.vivo-barra i:nth-child(3) {
  animation-delay: -2.4s;
}
.vivo-linea:nth-child(2) i {
  animation-duration: 4.6s;
}
.vivo-linea:nth-child(4) i {
  animation-duration: 5.4s;
}
@keyframes pasa-tren {
  to {
    left: 100%;
  }
}
.tablero {
  display: grid;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.tablero-fila {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "hora destino estado" "hora anden estado";
  align-items: center;
  column-gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px var(--borde);
}
.tablero-fila b {
  grid-area: hora;
  font-family: var(--titulo);
  font-size: 18px;
  color: #ffd200;
}
.tablero-fila span {
  grid-area: destino;
  font-weight: 700;
  font-size: 15px;
}
.tablero-fila em {
  grid-area: anden;
  font-style: normal;
  font-size: 12.5px;
  color: var(--texto-3);
}
.tablero-fila i {
  grid-area: estado;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--texto-2);
  background: rgba(255, 255, 255, 0.08);
}
.tablero-fila i.ok {
  color: #2ee59d;
  background: rgba(46, 229, 157, 0.12);
}
.tablero-fila i.anden {
  color: #ffd200;
  background: rgba(255, 210, 0, 0.12);
  animation: parpadeo 1.6s ease-in-out infinite;
}
@keyframes parpadeo {
  50% {
    opacity: 0.45;
  }
}
.circulos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.circulos .mini-linea {
  width: 46px;
  height: 46px;
  font-size: 19px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
  animation: saltito 4s var(--suave) infinite;
}
.circulos .mini-linea:nth-child(2) { animation-delay: 0.15s; }
.circulos .mini-linea:nth-child(3) { animation-delay: 0.3s; }
.circulos .mini-linea:nth-child(4) { animation-delay: 0.45s; }
.circulos .mini-linea:nth-child(5) { animation-delay: 0.6s; }
.circulos .mini-linea:nth-child(6) { animation-delay: 0.75s; }
.circulos .mini-linea:nth-child(7) { animation-delay: 0.9s; }
@keyframes saltito {
  0%,
  20%,
  100% {
    transform: none;
  }
  10% {
    transform: translateY(-8px);
  }
}
.burbujas {
  display: grid;
  gap: 10px;
}
.burbuja {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.08);
}
.burbuja b {
  display: block;
  font-size: 12px;
  color: var(--celeste);
}
.burbuja.derecha {
  justify-self: end;
  border-radius: 16px 16px 4px 16px;
  background: rgba(47, 107, 255, 0.25);
}
.radar {
  position: relative;
  height: 120px;
  display: grid;
  place-items: center;
}
.radar i {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1.5px solid rgba(34, 184, 255, 0.6);
  animation: radar 3s ease-out infinite;
}
.radar i:nth-child(2) {
  animation-delay: 1s;
}
.radar i:nth-child(3) {
  animation-delay: 2s;
}
@keyframes radar {
  from {
    transform: scale(0.3);
    opacity: 1;
  }
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}
.radar-yo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22b8ff;
  box-shadow:
    0 0 0 5px rgba(34, 184, 255, 0.3),
    0 0 24px #22b8ff;
}
.radar-estacion {
  position: absolute;
  right: 0;
  top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(0, 132, 90, 0.25);
  box-shadow: inset 0 0 0 1px rgba(46, 229, 157, 0.4);
}
.boleto {
  position: relative;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1f5fd1, #3b2bd6);
  -webkit-mask: radial-gradient(circle 10px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 10px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 10px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 10px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.boleto small {
  display: block;
  font-size: 12.5px;
  opacity: 0.8;
}
.boleto b {
  display: block;
  font-family: var(--titulo);
  font-size: 38px;
  letter-spacing: -0.04em;
}
.boleto > span {
  font-size: 13.5px;
  opacity: 0.85;
}

/* ==========================================================================
   5. PROMOS (en claro)
   ========================================================================== */
.promos {
  --e: 0;
  --s: 0;
  color: #0b1020;
  isolation: isolate;
}
.promos-fondo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 40% at 85% 0%, rgba(34, 184, 255, 0.22), transparent 70%),
    radial-gradient(50% 40% at 0% 30%, rgba(139, 92, 246, 0.14), transparent 70%),
    linear-gradient(180deg, #f4f7fd, #e9eff9);
  clip-path: inset(calc((1 - var(--e)) * 14 * var(--vh) + var(--s) * 8 * var(--vh)) calc((1 - var(--e)) * 7vw + var(--s) * 4vw) round
      calc((1 - var(--e)) * 80px + var(--s) * 60px));
}
.promos .antetitulo {
  color: #1f5fd1;
}
.grad-claro {
  background: linear-gradient(110deg, #1f5fd1, #7b3fe4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.promos .bajada-seccion {
  color: #3d4659;
}
.promos .bajada-seccion b {
  color: #0b1020;
}
.calculadora {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 50px;
  padding: 10px;
  border-radius: 30px;
  background: #fff;
  box-shadow:
    0 30px 80px -40px rgba(31, 60, 140, 0.45),
    inset 0 0 0 1px #e3e8f2;
}
.calc-entradas {
  padding: 24px 22px 18px;
}
.calc-entradas h3 {
  font-family: var(--titulo);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.calc-campo {
  display: block;
  margin-bottom: 18px;
}
.calc-campo > span {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  color: #3d4659;
  margin-bottom: 10px;
}
.calc-campo output {
  font-family: var(--titulo);
  font-weight: 700;
  color: #0b1020;
}
input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, #1f5fd1 0 var(--lleno, 50%), #e2e8f3 var(--lleno, 50%));
}
input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, #1f5fd1 0 var(--lleno, 50%), #e2e8f3 var(--lleno, 50%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow:
    0 0 0 6px rgba(31, 95, 209, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.25);
}
input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow:
    0 0 0 6px rgba(31, 95, 209, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.25);
}
.calc-tarifas {
  font-size: 13px;
  color: #6b7488;
}
.calc-resultado {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 28px 26px;
  border-radius: 22px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(255, 255, 255, 0.25), transparent 60%),
    linear-gradient(135deg, #22b8ff, #1f5fd1 50%, #4b2bd6);
}
.calc-resultado small {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}
.calc-total {
  font-family: var(--titulo);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.calc-detalle {
  font-size: 15px;
  font-weight: 600;
}
.calc-aviso {
  margin-top: 8px;
  font-size: 12.5px;
  opacity: 0.8;
}
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 50px 0 22px;
}
.filtro {
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  color: #3d4659;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dbe2ee;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.3s var(--suave);
}
.filtro:hover {
  transform: translateY(-2px);
}
.filtro.activo {
  color: #fff;
  background: #0b1020;
  box-shadow: none;
}
.promos-grilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 18px;
}
.promo {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 24px 50px -32px rgba(31, 60, 140, 0.55),
    inset 0 0 0 1px #e3e8f2;
  transition:
    transform 0.5s var(--suave),
    box-shadow 0.5s var(--suave),
    opacity 0.4s ease;
  animation: entrar-promo 0.7s var(--suave) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes entrar-promo {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
}
.promo:hover {
  transform: translateY(-6px);
  box-shadow:
    0 34px 60px -30px rgba(31, 60, 140, 0.6),
    inset 0 0 0 1px #d3dcec;
}
.promo-arriba {
  position: relative;
  padding: 22px 22px 18px;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}
.promo-arriba::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--c);
}
.promo-cab {
  display: flex;
  align-items: center;
  gap: 12px;
}
.promo-sigla {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  background: var(--c);
  letter-spacing: -0.02em;
}
.promo-cab b {
  display: block;
  font-size: 17px;
  font-weight: 800;
}
.promo-cab small {
  display: block;
  font-size: 13.5px;
  color: #6b7488;
}
.promo-vence {
  margin-left: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  color: #3d4659;
  background: #eef2f8;
}
.promo-vence.urgente {
  color: #b4121b;
  background: #fde4e6;
}
.promo-vence.urgente::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: parpadeo 1.4s ease-in-out infinite;
}
.promo-pct {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  margin-top: 18px;
}
/* "hasta" arriba del número (Mercado Pago: no a todos les toca lo mismo). */
.promo-pct small {
  flex-basis: 100%;
  margin-bottom: 2px;
}
.promo-pct b {
  font-family: var(--titulo);
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.promo-pct small {
  font-family: var(--titulo);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.promo-pct span {
  font-size: 15px;
  font-weight: 700;
  color: #3d4659;
}
.promo-tope {
  margin-top: 6px;
  font-size: 14.5px;
  color: #3d4659;
}
.promo-tope b {
  color: #0b1020;
}
/* El troquel: la línea punteada con dos medias lunas, como un boleto. */
.promo-corte {
  position: relative;
  height: 0;
  margin: 0 22px;
  border-top: 2px dashed #dbe2ee;
}
.promo-corte::before,
.promo-corte::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef2f9;
  box-shadow: inset 0 0 0 1px #e3e8f2;
}
.promo-corte::before {
  left: -34px;
  clip-path: inset(0 0 0 50%);
}
.promo-corte::after {
  right: -34px;
  clip-path: inset(0 50% 0 0);
}
.promo-abajo {
  padding: 16px 22px 20px;
}
.promo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.promo-chips span {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #3d4659;
  background: #f1f4f9;
}
.chip-medio {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.chip-medio.qr,
.promo-chips .qr {
  color: #5b2bb5;
  background: #efe7ff;
}
.chip-medio.nfc,
.promo-chips .nfc {
  color: #0b6b4f;
  background: #dcf5ec;
}
.promo-como {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  padding: 10px 0 0;
  border: 0;
  background: none;
  font-size: 14.5px;
  font-weight: 800;
  color: #1f5fd1;
  cursor: pointer;
}
.promo-como svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform 0.4s var(--suave);
}
.promo.abierta .promo-como svg {
  transform: rotate(180deg);
}
.promo-caja {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--suave);
}
.promo.abierta .promo-caja {
  grid-template-rows: 1fr;
}
.promo-detalle {
  min-height: 0;
  overflow: hidden;
  font-size: 14px;
  color: #3d4659;
}
.promo-detalle ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 10px;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}
.promo-detalle li {
  counter-increment: paso;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
}
.promo-detalle li::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: var(--c);
}
.promo-detalle p {
  margin: 8px 0;
}
.promo-detalle strong {
  color: #0b1020;
}
.promo-fuente {
  font-size: 12.5px;
  color: #6b7488;
}
.promo-fuente a {
  color: #1f5fd1;
}
.promos-vacio {
  padding: 26px;
  border-radius: 22px;
  border: 2px dashed #cfd8e8;
  text-align: center;
  color: #3d4659;
}
.pago {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 50px;
}
.pago-tarjeta {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px #dfe6f1;
}
.pago-tarjeta h3 {
  margin: 14px 0 8px;
  font-family: var(--titulo);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pago-tarjeta p {
  font-size: 15.5px;
  color: #3d4659;
}
.pago-tarjeta b {
  color: #0b1020;
}
.promos-nota {
  margin-top: 28px;
  font-size: 13px;
  color: #6b7488;
  max-width: 760px;
}

/* ==========================================================================
   6. PROBALA
   ========================================================================== */
.probala-grilla {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
}
.probala-controles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.segmentado {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--borde);
}
.segmentado button {
  min-height: 38px;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--texto-2);
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
.segmentado button.activo {
  color: #05070d;
  background: #fff;
}
.probala-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.abrir-qr {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  max-width: 440px;
  font-size: 15px;
  color: var(--texto-2);
}
.abrir-qr b {
  color: var(--texto);
}
.qr-codigo {
  flex: none;
  width: 108px;
  height: 108px;
  padding: 9px;
  border-radius: 18px;
  background: #fff;
}
.qr-codigo svg {
  width: 100%;
  height: 100%;
}
.telefono-vivo {
  --ancho: min(360px, calc((100 * var(--vh) - 120px) * 0.43));
}
.telefono-vivo.android .telefono-marco {
  border-radius: calc(var(--ancho) * 0.1);
}
.telefono-vivo.android .telefono-pantalla {
  aspect-ratio: 360 / 780;
  border-radius: calc(var(--ancho) * 0.075);
}
.telefono-vivo .telefono-pantalla {
  background: #fff;
}
/* La app de verdad: 390 x 844 (o 360 x 780) px "de celular", escalada al marco, con su barra de estado. */
.vivo-app {
  position: absolute;
  left: 0;
  top: 0;
  transform: scale(var(--s, 0.8));
  transform-origin: 0 0;
  background: #fff;
}
.vivo-estado {
  position: relative;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 30px 0 40px;
  font: 600 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #15181d;
  background: #fff;
}
.vivo-isla {
  position: absolute;
  left: 50%;
  top: 11px;
  width: 118px;
  height: 34px;
  margin-left: -59px;
  border-radius: 20px;
  background: #000;
}
.vivo-bateria {
  position: relative;
  width: 27px;
  height: 13px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px currentColor;
  opacity: 0.85;
}
.vivo-bateria::after {
  content: "";
  position: absolute;
  inset: 3px 8px 3px 3px;
  border-radius: 2px;
  background: currentColor;
}
.vivo-app.oscuro,
.vivo-app.oscuro .vivo-estado {
  color: #e8eaee;
  background: #181c22;
}
.vivo-app iframe {
  position: absolute;
  left: 0;
  top: 50px;
  width: 100%;
  height: calc(100% - 50px);
  border: 0;
  background: #f6f7f9;
}
.vivo-app.oscuro iframe {
  background: #0f1216;
}
.vivo-cargando {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  font-family: var(--fuente);
  font-weight: 600;
  color: #4b5260;
  background: #f6f7f9;
  transition: opacity 0.5s ease;
}
.vivo-cargando .logo {
  width: 56px;
  height: 56px;
  animation: flotar 2s ease-in-out infinite;
}
.vivo-cargando.listo {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   7. TIENDAS
   ========================================================================== */
.tiendas-caja {
  --e: 0;
  position: relative;
  padding: clamp(40px, 7vw, 90px) clamp(24px, 6vw, 80px);
  border-radius: 40px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  transform: scale(calc(0.9 + var(--e) * 0.1));
}
.tiendas-caja .antetitulo::before {
  display: none;
}
.tiendas-caja .bajada-seccion {
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.85);
}
.tiendas-fondo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 70% at 50% 120%, rgba(255, 255, 255, 0.35), transparent 70%),
    linear-gradient(135deg, #1fb5ff 0%, #2f6bff 45%, #6a3df0 100%);
}
.tiendas-fondo::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 255, 255, 0.25) 80%, transparent 90%);
  animation: girar 9s linear infinite;
}
@keyframes girar {
  to {
    transform: rotate(1turn);
  }
}
.tiendas .antetitulo {
  color: #fff;
}
.tiendas-botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.tienda {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 12px 24px 12px 16px;
  border-radius: 18px;
  text-align: left;
  color: #fff;
  background: #05070d;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}
.tienda svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tienda small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.tienda b {
  display: block;
  font-size: 20px;
  line-height: 1.15;
}
.tiendas-x {
  margin-top: 30px;
}
.instalar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 34px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}
.instalar div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   8. PREGUNTAS
   ========================================================================== */
.preguntas-grilla {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
.preguntas details {
  border-bottom: 1px solid var(--borde);
}
.preguntas summary {
  position: relative;
  padding: 24px 50px 24px 0;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.preguntas summary::-webkit-details-marker {
  display: none;
}
.preguntas summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  background:
    linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat;
  transition: transform 0.4s var(--suave);
}
.preguntas details[open] summary::after {
  transform: rotate(135deg);
}
.preguntas details p {
  padding: 0 40px 24px 0;
  color: var(--texto-2);
}

/* ==========================================================================
   PIE
   ========================================================================== */
.pie {
  position: relative;
  padding: 80px 0 110px;
  overflow: hidden;
}
.pie-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--borde);
}
.pie-cta p {
  font-family: var(--titulo);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.pie-marca {
  --e: 0;
  margin: 30px 0 10px;
  font-family: var(--titulo);
  font-weight: 800;
  font-size: clamp(6rem, 30vw, 26rem);
  line-height: 0.85;
  letter-spacing: -0.07em;
  text-align: center;
  overflow: hidden;
}
.pie-marca span {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 10%, rgba(120, 150, 255, 0.35) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translate3d(0, calc((1 - var(--e)) * 45%), 0);
}
.pie-fila {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 40px;
}
.pie-enlaces {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.pie-enlaces a {
  color: var(--texto-2);
  text-decoration: none;
  font-weight: 600;
}
.pie-enlaces a:hover {
  color: #fff;
}
.pie-legal {
  max-width: 560px;
  font-size: 13px;
  color: var(--texto-3);
}

/* ---------- 404 ---------- */
.error-404 {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 4px;
  width: min(100% - 2 * var(--margen), 760px);
  margin-inline: auto;
  background: radial-gradient(50% 40% at 70% 30%, rgba(47, 107, 255, 0.3), transparent 70%);
}
.error-404 .logo {
  width: 56px;
  height: 56px;
  margin-bottom: 30px;
}
.error-404 .boton {
  margin-top: 30px;
}

/* ==========================================================================
   Pantallas medianas y celulares
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-enlaces {
    display: none;
  }
  .nav-seccion {
    margin-left: auto;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ficha-1 {
    left: -14%;
  }
}
@media (max-width: 860px) {
  /* En el celular, el inicio no queda fijo: el texto arriba y el celular de la demo entero, abajo. */
  .escena-hero {
    height: auto;
  }
  .escena-hero > .escena-fija {
    position: relative;
    height: auto;
    min-height: calc(100 * var(--vh));
  }
  .escena-hero .hero-texto,
  .escena-hero .hero-telefono {
    transform: none;
    opacity: 1;
  }
  .hero-grilla {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 40px;
    padding-top: 96px;
    padding-bottom: 70px;
  }
  .hero-titulo {
    margin-top: 22px;
  }
  .hero-bajada {
    margin-top: 16px;
  }
  .hero-acciones {
    margin-top: 26px;
  }
  .hero-telefono .telefono {
    --ancho: min(72vw, 300px);
  }
  .ficha,
  .hero-bajar {
    display: none;
  }
  .como-grilla {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    justify-items: center;
    gap: 14px;
    padding-top: 84px;
    padding-bottom: 18px;
  }
  .como-texto {
    width: 100%;
  }
  .como-texto .antetitulo {
    margin-bottom: 8px;
  }
  .como-texto .titulo-seccion {
    font-size: clamp(1.5rem, 6.4vw, 2.2rem);
  }
  .como-pasos {
    position: relative;
    margin-top: 10px;
    min-height: 98px;
  }
  .como-pasos li {
    position: absolute;
    inset: 0 0 auto;
    padding: 12px 14px;
    opacity: 0;
    transform: translateY(14px);
  }
  .como-pasos li.activo {
    opacity: 1;
    transform: none;
  }
  .como-pasos p {
    font-size: 14.5px;
  }
  .como-barra {
    margin: 4px 14px 0;
  }
  .como-telefono .telefono {
    --ancho: min(250px, calc((100 * var(--vh) - 330px) * 0.43));
  }
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .t-grande {
    grid-column: auto;
  }
  .tarjeta {
    min-height: 0;
  }
  .calculadora {
    grid-template-columns: minmax(0, 1fr);
  }
  .pago {
    grid-template-columns: minmax(0, 1fr);
  }
  .probala-grilla {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .probala-texto {
    width: 100%;
  }
  .telefono-vivo {
    --ancho: min(80vw, 330px);
  }
  .preguntas-grilla {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .nav {
    top: 10px;
    gap: 10px;
    padding-left: 14px;
  }
  .nav-marca {
    font-size: 19px;
  }
  .nav-seccion {
    display: none;
  }
  .boton-chico {
    margin-left: auto;
  }
  .boton {
    min-height: 50px;
    padding: 13px 22px;
    font-size: 15.5px;
  }
  .pastilla {
    font-size: 13px;
  }
  .hero-titulo {
    font-size: clamp(2.1rem, 10.6vw, 3.1rem);
  }
  .nav-largo {
    display: none;
  }
  .abrir-qr {
    display: none;
  }
  .promo-pct b {
    font-size: 46px;
  }
  .guia {
    font-size: 13.5px;
  }
  .pie-cta {
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 380px) {
  .idea {
    font-size: 1.45rem;
  }
}
/* Pantallas bajas (compus con poca altura): el celular de inicio, más chico. */
@media (min-width: 861px) and (max-height: 760px) {
  .hero-telefono .telefono {
    --ancho: min(24vw, calc((100 * var(--vh) - 130px) * 0.43));
  }
  .hero-grilla {
    padding-top: 70px;
    padding-bottom: 20px;
  }
  .hero-titulo {
    margin-top: 18px;
  }
  .hero-acciones {
    margin-top: 24px;
  }
}
@media (min-width: 861px) and (max-height: 560px) {
  .pastilla {
    display: none;
  }
}

/* Sin animaciones para quien lo pidió en su sistema. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .entrar {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .pal > span {
    transform: none;
  }
}
