:root {
  --bg: #080b0c;
  /* Paleta de la app: celeste para acciones, periwinkle para acentos. */
  --sky: #4dc4ff;
  --accent: #94a6ff;
  --text: #f4f7f8;
  --muted: #abb5ba;
  --card: #0c1012;
  --line: rgba(255, 255, 255, 0.1);
  --radius: 1.25rem;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: var(--sky);
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--sky);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(960px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 20, 22, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--sky);
}

/* CTA de instalación del header. En móvil se oculta: ahí manda el botón
   flotante, para no saturar la barra con la marca y los dos enlaces. */
.header-install {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--sky);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s;
}

.header-install:hover {
  background: #8fdbff;
  color: var(--bg);
  box-shadow: 0 6px 18px rgba(77, 196, 255, 0.3);
}

@media (max-width: 719px) {
  .header-install {
    display: none;
  }
}

/* Los blobs del hero y de «¿Sos nuevo?» se retiraron: su iluminación
   ahora la aporta la capa fija de la ola (.aurora), continua en toda
   la página y sin cortes al borde de cada sección. */.hero {
  position: relative;
  overflow: hidden;
  padding: 4.25rem 0 4.5rem;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  align-items: center;
  gap: 2.5rem 3rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(3.1rem, 8.2vw, 6.25rem);
  letter-spacing: -0.04em;
}

/* Eslogan debajo de la marca, viene con la entrada desde la izquierda. */
.hero-slogan {
  margin: 0.9rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(1.45rem, 3.4vw, 2.35rem);
}

.hero-slogan strong {
  color: var(--sky);
  font-weight: inherit;
}

.hero-lead {
  margin: 1.1rem 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.play-badge {
  display: inline-block;
  margin-top: 1.75rem;
  line-height: 0;
}

.from-left-clip {
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
}

.from-left-clip-play {
  width: fit-content;
  max-width: 100%;
  margin-top: 1.75rem;
}

.from-left-clip-play .play-badge {
  margin-top: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
}

.text-install {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.15rem;
  border: 1px solid rgba(77, 196, 255, 0.5);
  border-radius: 999px;
  color: var(--sky);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.text-install:hover {
  border-color: var(--sky);
  background: rgba(77, 196, 255, 0.12);
  color: var(--sky);
}

.play-badge img {
  width: 200px;
  height: auto;
}

.scene-intro {
  padding: 5rem 0 3.5rem;
  /* luz propia eliminada: la iluminación la da la capa fija de la ola */
}

.intro-inner {
  max-width: 40rem;
}

.scene-intro h2,
.scene-explore h2,
.scene-testimonios h2,
.scene-faq h2,
.scene-funciones h1,
.section-label {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.scene-intro p {
  margin: 0;
  color: rgba(244, 247, 248, 0.92);
  font-size: 1.15rem;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

html.js-motion .from-left {
  transform: translate3d(-105%, 0, 0);
}

html.js-motion .from-left.is-in {
  animation: from-left 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.js-motion .from-left-about.is-in {
  animation-delay: 0.18s;
}

html.js-motion .from-left-slogan.is-in {
  animation-delay: 0.18s;
}

html.js-motion .from-left-play.is-in {
  animation-delay: 0.36s;
}

html.js-motion .from-left-play2.is-in {
  animation-delay: 0.5s;
}

@keyframes from-left {
  from {
    transform: translate3d(-105%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.scene-features {
  overflow-x: clip;
  padding: 2.5rem 0 4.5rem;
}

.scene-funciones {
  padding-top: 3.25rem;
}

.section-label {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Tarjetas de funciones del home (migradas de guia.html).
   Mobile first: apiladas; a partir de 640px cada tarjeta se apaisa con
   el slot de GIF a la izquierda y el texto a la derecha. */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .feature-grid {
    gap: 1.5rem;
  }
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  min-width: 0;
  padding: 1.25rem;
  border-radius: var(--radius);
  /* Vidrio esmerilado (Fase 8): superficie translúcida que deja pasar
     la aurora, con un borde apenas insinuado. */
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 25, 30, 0.4);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  scroll-margin-top: 6.5rem;
}

@media (min-width: 640px) {
  .feature-card {
    grid-template-columns: minmax(7rem, 9.5rem) minmax(0, 1fr);
    align-items: start;
    padding: 1.5rem;
  }
}

/* Mockup de celular en miniatura dentro de las tarjetas. Reutiliza
   el .phone-frame oscuro (cámara, botones laterales y bordes incluidos).
   El marco ya tiene aspect-ratio 9/19: vertical como una pantalla real. */
.phone-mockup {
  position: relative;
  width: min(9rem, 100%);
  margin-inline: auto;
}

@media (min-width: 640px) {
  .phone-mockup {
    width: 100%;
  }
}

.phone-mockup-label {
  position: relative;
  z-index: 0;
  margin: 0;
  padding: 1.2rem 0.7rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Cuando Jimena agregue los GIFs/videos nativos, entran cubiertos
   y sin deformarse. */
.phone-mockup .phone-screen img,
.phone-mockup .phone-screen video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Short de YouTube dentro de la pantalla. El iframe es 9:16 y el
   teléfono es más alto (9:19): se escala parejo para cubrir y recortar
   el cromo de YouTube (título y logo) sin deformar el video. */
.phone-yt {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.phone-yt iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 133%;
  height: 112%;
  max-width: none;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.phone-mockup .phone-screen .phone-yt-poster {
  object-position: center center;
}

.phone-screen.is-yt-playing .phone-yt-poster {
  visibility: hidden;
}

.feature-card[data-youtube-id] .phone-screen video {
  display: none;
}

.phone-play[hidden] {
  display: none;
}

.phone-play,
.phone-sound {
  position: absolute;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 12, 16, 0.78);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
}

.phone-play {
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.85rem;
  font-size: 0.68rem;
}

.phone-play svg {
  display: block;
}

.phone-sound {
  left: 50%;
  bottom: 0.45rem;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  max-width: calc(100% - 0.7rem);
  min-height: 1.7rem;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0;
  text-align: center;
}

.phone-sound svg {
  flex: 0 0 auto;
  display: block;
}

.phone-sound .icon-on {
  display: none;
}

.phone-sound.is-on .icon-off {
  display: none;
}

.phone-sound.is-on .icon-on {
  display: block;
}

.phone-play:focus-visible,
.phone-sound:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .phone-play,
  .phone-sound {
    transition: none;
  }
}

/* Variante "botón demo": el mockup entero es un enlace al Short de
   YouTube (Registro de Viajes y Gastos). La pantalla reproduce la
   vista previa en loop y un distintivo de play indica que el toque
   abre el video completo en YouTube. */
a.phone-mockup {
  display: block;
  text-decoration: none;
  transition: transform 0.25s ease;
}

a.phone-mockup:hover,
a.phone-mockup:focus-visible {
  transform: translateY(-4px);
}

a.phone-mockup:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 6px;
  border-radius: 2rem;
}

.phone-cta-badge {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(16, 20, 22, 0.66);
  pointer-events: none;
  transition: transform 0.25s ease;
}

a.phone-mockup:hover .phone-cta-badge,
a.phone-mockup:focus-visible .phone-cta-badge {
  transform: scale(1.12);
}

@media (prefers-reduced-motion: reduce) {
  a.phone-mockup,
  a.phone-mockup:hover,
  a.phone-mockup:focus-visible,
  .phone-cta-badge,
  a.phone-mockup:hover .phone-cta-badge,
  a.phone-mockup:focus-visible .phone-cta-badge {
    transform: none;
    transition: none;
  }
}

.feature-body {
  min-width: 0;
  /*.respiro extra para el texto dentro del vidrio (Fase 8) */
  padding: 0.3rem 0.35rem 0.1rem;
}

.feature-body h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.feature-body p {
  margin: 0;
  color: var(--muted);
}

.feature-body ul {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-body li {
  position: relative;
  padding-left: 1.15rem;
  margin: 0.45rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.feature-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--sky);
}

.feature-details {
  margin-top: 0.85rem;
}

.feature-details summary {
  cursor: pointer;
  color: var(--sky);
  font-weight: 600;
  font-size: 0.95rem;
}

.feature-details summary:hover {
  color: var(--accent);
}

.feature-details[open] summary {
  margin-bottom: 0.5rem;
}

.feature-details li {
  color: rgba(244, 247, 248, 0.9);
}

.phone {
  width: auto;
  max-width: none;
  min-width: 0;
}

.phone-hero {
  position: relative;
  z-index: 1;
  width: min(230px, 70vw);
  max-width: none;
  transform: translate3d(calc(var(--scroll, 0) * -10px), calc(var(--scroll, 0) * -28px), 0)
    rotate(calc(var(--scroll, 0) * -5deg));
}

.hero-globe {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(36rem, 120vw);
  height: min(36rem, 120vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.phone-hero .phone-frame {
  z-index: 1;
}

.phone-frame {
  position: relative;
  aspect-ratio: 9 / 19;
  padding: 0.55rem 0.48rem 0.6rem;
  border-radius: 2rem;
  background: linear-gradient(160deg, #46525a 0%, #1c2429 32%, #0c1114 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 0 0 3px #070a0c,
    0 20px 36px rgba(0, 0, 0, 0.42);
}

.phone-btn {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #5b6972;
}

.vol-1 {
  left: -2px;
  top: 18%;
  height: 28px;
}

.vol-2 {
  left: -2px;
  top: 28%;
  height: 28px;
}

.power {
  right: -2px;
  top: 24%;
  height: 42px;
}

.phone-screen {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(77, 196, 255, 0.2), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(148, 166, 255, 0.16), transparent 42%),
    #0c1215;
}

.phone-screen img:not(.hero-mark) {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-camera {
  position: absolute;
  z-index: 2;
  top: 0.55rem;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #141a1e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transform: translateX(-50%);
}

.hero-mark {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.1rem;
  box-shadow: 0 0 28px rgba(77, 196, 255, 0.28);
}

/* Video promocional dentro del teléfono del hero. Cubre la pantalla;
   el img.hero-mark queda debajo como fallback (logo) y vuelve a verse
   si no hay motion o si el video no carga. */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

.phone-hero .phone-frame {
  background: linear-gradient(162deg, #f5fcff 0%, #b9e4fb 34%, #8eb4d8 70%, #5d7ea0 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.78),
    inset 0 0 0 3px #101416,
    0 22px 40px rgba(16, 20, 22, 0.28);
}

.phone-hero .phone-btn {
  background: #d7eef8;
}

.phone-hero .phone-screen {
  background:
    radial-gradient(115% 78% at 0% 0%, rgba(77, 196, 255, 0.28) 0%, transparent 70%),
    radial-gradient(115% 78% at 100% 100%, rgba(148, 166, 255, 0.26) 0%, transparent 72%),
    radial-gradient(85% 62% at 100% 0%, rgba(0, 153, 230, 0.35) 0%, transparent 58%),
    radial-gradient(85% 62% at 0% 100%, rgba(51, 85, 255, 0.3) 0%, transparent 56%),
    linear-gradient(165deg, #0c1012 0%, #080b0c 55%, #0b0f14 100%);
}

.phone-hero .hero-mark {
  box-shadow: 0 10px 28px rgba(16, 20, 22, 0.18), 0 0 32px rgba(77, 196, 255, 0.38);
}

.scene-intro:has(+ .scene-compat) {
  padding-bottom: 0.75rem;
}

.scene-compat {
  overflow-x: clip;
  padding: 1.25rem 0 0;
}

.compat-card {
  min-width: 0;
  max-width: 100%;
  padding: 1.7rem 1.45rem 1.5rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(150deg, rgba(77, 196, 255, 0.12), rgba(148, 166, 255, 0.07) 58%, rgba(8, 11, 12, 0.15)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.compat-title {
  margin: 0 0 1.35rem;
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.compat-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.35rem 2rem;
  min-width: 0;
}

.compat-col {
  min-width: 0;
}

.compat-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
}

.compat-mark {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.compat-col-yes .compat-label {
  color: #6ee7b0;
}

.compat-col-no .compat-label {
  color: #e7a0a0;
}

.compat-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.compat-col li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  min-width: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.compat-box {
  flex: 0 0 auto;
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.32rem;
  border: 1.5px solid rgba(183, 194, 199, 0.72);
  border-radius: 0.16rem;
}

.compat-col-no ul {
  padding-left: 1.65rem;
}

@media (max-width: 420px) {
  .compat-card {
    padding: 1.35rem 1rem 1.2rem;
  }

  .compat-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
}

.scene-apps {
  overflow-x: clip;
  padding: 0.85rem 0 4rem;
}

.scene-apps h2 {
  margin: 2.5rem 0 1.35rem;
  max-width: 18em;
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-card {
  display: grid;
  grid-template-columns: minmax(6.75rem, 9rem) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  min-width: 0;
  margin: 0;
}

.app-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1.5px dashed rgba(77, 196, 255, 0.62);
  background:
    linear-gradient(150deg, rgba(77, 196, 255, 0.12), rgba(148, 166, 255, 0.07) 58%, rgba(8, 11, 12, 0.15)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.app-badge {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
}

.app-badge-uber {
  background: #111111;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.app-badge-didi {
  background: #ff6a00;
  color: #ffffff;
}

.app-badge-cabify {
  background: #6e2d91;
  color: #ffffff;
}

.app-badge-indrive {
  background: #c6ef3c;
  color: #101416;
}

.app-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.95rem 1rem;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.app-copy h3 {
  margin: 0 0 0.35rem;
  overflow-wrap: anywhere;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.app-copy p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.98rem;
}

@media (max-width: 640px) {
  .app-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.scene-explore {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 1.5rem;
}

/* ---------- Prueba social y FAQ ---------- */

.scene-testimonios {
  overflow-x: clip;
  padding: 3.5rem 0 4rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

@media (min-width: 640px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.testimonial-card {
  min-width: 0;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.testimonial-stars {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.testimonial-card blockquote {
  margin: 0;
  color: rgba(244, 247, 248, 0.9);
  font-size: 1rem;
  line-height: 1.6;
}

.testimonial-card cite {
  display: block;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
}

.scene-faq {
  overflow-x: clip;
  padding: 0.5rem 0 4.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--sky);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--sky);
}

.faq-body {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
}

/* ---------- Botón flotante de instalación (solo pantallas chicas) ---------- */

.sticky-download {
  position: fixed;
  z-index: 30;
  /* Flota centrado, despegado del borde (Fase 8) */
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: none;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  background: var(--sky);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(77, 196, 255, 0.3);
  opacity: 0;
  translate: 0 0.75rem;
  pointer-events: none;
  transition: opacity 0.25s ease, translate 0.25s ease;
}

/* Aparece cuando se hace scroll (el script del home agrega .is-visible). */
.sticky-download.is-visible {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
  animation: sticky-pulse 4s ease-in-out infinite;
}

@media (max-width: 960px) {
  .sticky-download {
    display: inline-block;
  }
}

@keyframes sticky-pulse {
  /* Lata suave: crece un 5% y respira la sombra, con pausa larga entre latidos */
  0%, 86%, 100% {
    scale: 1;
    box-shadow: 0 10px 25px rgba(77, 196, 255, 0.3);
  }

  91% {
    scale: 1.05;
    box-shadow: 0 14px 34px rgba(77, 196, 255, 0.42);
  }

  96% {
    scale: 1.01;
    box-shadow: 0 11px 27px rgba(77, 196, 255, 0.33);
  }
}

/* La luz cálida de la zona «¿Sos nuevo?» vive ahora en la capa fija de la ola. */

.explore-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.scene-explore h2 {
  margin: 0;
}

.cta {
  display: inline-block;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  background: var(--sky);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.cta:hover {
  background: var(--accent);
  color: var(--bg);
}

.legal {
  width: min(42rem, calc(100% - 2rem));
  margin: 2.5rem auto 0;
  padding-bottom: 1rem;
}

.legal h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.legal .kicker,
.updated {
  margin: 0;
  color: var(--muted);
}

.legal h2 {
  margin: 2.4rem 0 0.75rem;
  font-size: 1.35rem;
}

.legal p,
.legal li {
  color: rgba(244, 247, 248, 0.9);
}

.legal ul {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.legal li {
  position: relative;
  padding-left: 1.15rem;
  margin: 0.7rem 0;
}

.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--sky);
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.channels {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.channel {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.channel:hover {
  border-color: rgba(77, 196, 255, 0.45);
  color: inherit;
}

.channel span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.channel strong {
  display: block;
  margin-top: 0.2rem;
  font-weight: 500;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Footer en tres grupos: Navegación / Soporte / Legal. */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.925rem;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--sky);
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 800px) {
  .hero {
    padding: 3rem 0 3.25rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero h1 {
    max-width: 10em;
  }

  .hero-lead {
    max-width: 28rem;
  }

  .phone-hero {
    width: min(200px, 58vw);
  }

  .hero-globe {
    width: min(30rem, 118vw);
    height: min(30rem, 118vw);
  }
}

@media (max-width: 640px) {
  .site-nav {
    gap: 0.4rem 0.85rem;
  }
}

html.js-motion .feature-card,
html.js-motion .compat-card {
  opacity: 0;
  transform: translate3d(1.35rem, 2.5rem, 0);
}

html.js-motion .feature-card.is-in,
html.js-motion .compat-card.is-in {
  animation: feature-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes feature-in {
  from {
    opacity: 0;
    transform: translate3d(1.35rem, 2.5rem, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .from-left,
  html.js-motion .from-left,
  html.js-motion .from-left.is-in {
    animation: none;
    transform: none;
  }

  html.js-motion .feature-card,
  html.js-motion .feature-card.is-in,
  html.js-motion .compat-card,
  html.js-motion .compat-card.is-in {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .phone-hero {
    transform: rotate(var(--rot, 0deg));
  }

  .sticky-download {
    transition: none;
  }

  .sticky-download.is-visible {
    animation: none;
  }

  /* Con movimiento reducido el carrusel no auto-reproduce: el script
     deja el primer cuadro o el poster y muestra Reproducir. */
}

/* ---------- Guía de primeros pasos (guia.html) ---------- */

.guia {
  width: min(60rem, calc(100% - 2rem));
  margin: 2.5rem auto 0;
  padding-bottom: 1rem;
}

.guia-head {
  margin-bottom: 2.25rem;
}

.guia-head h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.guia-head .kicker,
.guia-head .updated {
  margin: 0;
  color: var(--muted);
}

.guia-head .guia-intro {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  text-align: left;
}

/* Cierre de la guía: instalar + contacto cuando ya leyó los pasos. */
.guia-fin {
  margin: 2.75rem 0 1rem;
  padding: 1.6rem;
  border: 1px solid rgba(77, 196, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(20, 25, 30, 0.55);
}

.guia-fin h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.guia-fin p {
  margin: 0;
  color: var(--muted);
}

.guia-fin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.25rem;
}

.guia-fin-link {
  color: var(--sky);
  font-weight: 600;
}

.guia-fin-link:hover {
  color: var(--text);
}

/* Pasos numerados de configuración. Mobile first: una columna;
   a partir de 640px, tres columnas. */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.step-card {
  min-width: 0;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}

@media (min-width: 640px) {
  .step-card {
    padding: 1.5rem;
  }
}

.step-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.step-num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--sky);
  font-variant-numeric: tabular-nums;
}

.step-head .step-num {
  margin-bottom: 0;
}

.step-icon {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--sky);
}

.step-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
}

.step-card h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

.step-card p {
  margin: 0;
  color: var(--muted);
}

.step-card ul {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.step-card li {
  position: relative;
  padding-left: 1.15rem;
  margin: 0.45rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.step-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--sky);
}

@media (prefers-reduced-motion: reduce) {
  summary {
    scroll-behavior: auto;
  }
}

/* ===================== Carrusel de funciones (Fase 5) =====================
   Reemplaza la grilla .feature-grid por un carrusel horizontal con scroll
   nativo + scroll-snap. Sin librerías: puro CSS moderno + JS vanilla.
   Paleta: --sky (esmeralda) para activo, fondo oscuro para inactivo. */
.carousel-container {
  position: relative;
  margin-top: 0.5rem;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  /* borde de sombras de tarjetas que el clipping del overflow cortaría */
  padding: 0.25rem;
  margin: -0.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* html ya define scroll-behavior: smooth */
  /* Se esconde la barra de scroll: nativo + pseudo-elementos */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* Tarjetas dominantes: una por pantalla. Las vecinas quedan a los costados
   como "lejanas" (enanas y apagadas) hasta que el desplazamiento las trae
   al centro. Sin librerías: la profundidad es CSS, el estado es JS. */
.carousel-track .feature-card {
  flex: 0 0 96%;
  min-width: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  position: relative;
  /* estado "lejos" */
  scale: 0.9;
  filter: brightness(0.62) saturate(0.6);
  transition: scale 0.5s ease, filter 0.5s ease;
}

.carousel-track .feature-card.is-center {
  scale: 1;
  filter: none;
}

@media (min-width: 640px) {
  .carousel-track {
    gap: 1.25rem;
  }

  /* Escritorio: tarjeta dominante (~74%) y celular casi del tamaño del hero */
  .carousel-track .feature-card {
    flex: 0 0 74%;
    grid-template-columns: minmax(13rem, 15rem) minmax(0, 1fr);
  }
}

/* Destello cromático detrás de cada tarjeta: gradiente de marca que
   se desplaza, respira y rota por el espectro (puro CSS, sin librerías). */
.carousel-track .feature-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(120deg, #0099e6, #4dc4ff, #3355ff, #94a6ff, #0099e6);
  background-size: 300% 300%;
  filter: blur(14px);
  opacity: 0.24;
  animation:
    feature-glow-flow 14s ease-in-out infinite,
    feature-glow-hue 22s linear infinite;
  pointer-events: none;
}

@keyframes feature-glow-flow {
  0% {
    background-position: 0% 50%;
    opacity: 0.2;
  }

  25% {
    opacity: 0.34;
  }

  50% {
    background-position: 100% 50%;
    opacity: 0.26;
  }

  75% {
    opacity: 0.38;
  }

  100% {
    background-position: 0% 50%;
    opacity: 0.2;
  }
}

@keyframes feature-glow-hue {
  from {
    filter: blur(14px) hue-rotate(0deg);
  }

  to {
    filter: blur(14px) hue-rotate(360deg);
  }
}

/* Navegación: flechas + puntos, fuera del track. */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.carousel-arrow:hover,
.carousel-arrow:active {
  border-color: var(--sky);
  color: var(--sky);
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  border-color: var(--line);
  color: var(--text);
}

.carousel-arrow:active:not(:disabled) {
  transform: scale(0.92);
}

.carousel-pause .icon-play {
  display: none;
}

.carousel-pause.is-paused .icon-pause {
  display: none;
}

.carousel-pause.is-paused .icon-play {
  display: block;
}

.phone-yt-open {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  cursor: pointer;
}

.phone-yt-frame {
  pointer-events: none;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.carousel-dot {
  width: 0.62rem;
  height: 0.62rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.carousel-dot:hover {
  border-color: var(--sky);
}

.carousel-dot.is-active {
  background: var(--sky);
  border-color: var(--sky);
  box-shadow: 0 0 0.5rem rgba(77, 196, 255, 0.45);
  transform: scale(1.15);
}

/* Guardrail de movimiento reducido: desactivar transiciones del carrusel. */
@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    scroll-behavior: auto;
  }

  .carousel-arrow,
  .carousel-dot {
    transition: none;
  }

  /* El destello queda estático (sin shimmer ni rotación de matiz),
     y los estados de profundidad pasan sin transición. */
  .carousel-track .feature-card::before {
    animation: none;
    opacity: 0.22;
  }

  .carousel-track .feature-card {
    transition: none;
  }
}

/* ===================== Un viaje, en números (ticket) =====================
   Ejemplo concreto para que el chofer entienda la app de un vistazo.
   La línea de ruta se anima y los montos cuentan al entrar en pantalla.
   El destello tricolor de fondo se retiró: la iluminación de TODA la
   página se unificó en la capa fija de la ola (aurora). */
.scene-ticket {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0;
}

/* Carrusel del semáforo, celulares en primer plano. La pista va duplicada
   y avanza POR PASOS (pausa + deslizamiento suave) en loop perfecto:
   cada celular queda quieto en pantalla mientras su pop-up explica el
   color; después se corre y entra el otro. Pausa al pasar el mouse. */
.semaforo-carousel {
  /* El ancho del celular deja aire a los costados para que el glow de
     cada estado se vea detrás de la tarjeta sin quedar recortado. */
  --sem-w: min(22rem, calc(100vw - 4.5rem));
  --sem-pad: 1.6rem;
  /* Separación amplia: el aura de cada estado no debe invadir al vecino. */
  --sem-gap: 8rem;
  position: relative;
  width: min(calc(var(--sem-w) + 2 * var(--sem-pad)), calc(100vw - 1rem));
  padding: 1.4rem var(--sem-pad);
  overflow: hidden;
  margin: 0.4rem auto 0;
  /* bordes con desvanecido: las fotos entran y salen de niebla */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 0.6rem, #000 calc(100% - 0.6rem), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 0.6rem, #000 calc(100% - 0.6rem), transparent 100%);
}

.sem-track {
  display: flex;
  width: max-content;
  animation: sem-loop 18s infinite;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}

/* margen (no gap) para que un set de 3 fotos sea una porción exacta */
.sem-track .sem-slide {
  margin-right: var(--sem-gap);
}

/* ciclo: hold 0..28%, desliza, hold amarillo, desliza, hold rojo, desliza;
   el final (-3 pasos) coincide con la copia del inicio → salto invisible */
@keyframes sem-loop {
  0%, 28.33% {
    transform: translateX(0);
  }

  33.33%, 61.66% {
    transform: translateX(calc(-1 * (var(--sem-w) + var(--sem-gap))));
  }

  66.66%, 94.99% {
    transform: translateX(calc(-2 * (var(--sem-w) + var(--sem-gap))));
  }

  100% {
    transform: translateX(calc(-3 * (var(--sem-w) + var(--sem-gap))));
  }
}

.semaforo-carousel:hover .sem-track,
.semaforo-carousel:hover .sem-pop {
  animation-play-state: paused;
}

.sem-slide {
  --glow: 0, 230, 118;
  position: relative;
  flex: none;
  width: var(--sem-w);
  aspect-ratio: 1 / 2;
  margin: 0;
  border-radius: 1.25rem;
  border: 1px solid rgba(var(--glow), 0.55);
  overflow: hidden;
  /* Aura del estado (verde / ámbar / rojo) detrás de cada celular.
     El carrusel deja padding a los costados para que el glow se vea. */
  box-shadow:
    0 0 0.55rem rgba(var(--glow), 0.72),
    0 0 1.4rem rgba(var(--glow), 0.5),
    0 0 2.8rem rgba(var(--glow), 0.32),
    0 0 5rem -0.8rem rgba(var(--glow), 0.28);
  animation: sem-glow 6.5s ease-in-out infinite;
}

.sem-slide-amarillo {
  --glow: 255, 179, 0;
  animation-delay: -2.2s;
}

.sem-slide-rojo {
  --glow: 255, 82, 82;
  animation-delay: -4.3s;
}

/* recorte: agranda el celular y saca el fondo (escritorio / mesa) */
.sem-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.16);
}

/* La foto nueva del verde viene con más margen que las de amarillo y rojo:
   se agranda solo esa captura para que el celular quede del mismo tamaño. */
.sem-slide-verde img {
  transform: scale(1.41);
}

@keyframes sem-glow {
  0%, 100% {
    box-shadow:
      0 0 0.55rem rgba(var(--glow), 0.72),
      0 0 1.4rem rgba(var(--glow), 0.5),
      0 0 2.8rem rgba(var(--glow), 0.32),
      0 0 4.8rem -0.8rem rgba(var(--glow), 0.26);
  }

  50% {
    box-shadow:
      0 0 0.7rem rgba(var(--glow), 0.85),
      0 0 1.8rem rgba(var(--glow), 0.62),
      0 0 3.4rem rgba(var(--glow), 0.46),
      0 0 5.8rem -0.6rem rgba(var(--glow), 0.34);
  }
}

/* Pop-ups sincronizados con el ciclo (misma duración que el track):
   mientras un celular está quieto en pantalla, su explicación entra
   en pop-up y se retira antes del deslizamiento. */
.sem-pops {
  position: absolute;
  left: calc(var(--sem-pad) + 4%);
  right: calc(var(--sem-pad) + 4%);
  bottom: 4.5%;
  z-index: 2;
  display: grid;
  pointer-events: none;
}

.sem-pop {
  --glow: 0, 230, 118;
  grid-area: 1 / 1;
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid rgba(var(--glow), 0.38);
  background: rgba(12, 14, 15, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: scale(0.88) translateY(0.6rem);
  transform-origin: 50% 90%;
  animation: sem-pop-cycle-1 18s infinite;
}

.sem-pop-amarillo {
  --glow: 255, 179, 0;
  animation-name: sem-pop-cycle-2;
}

.sem-pop-rojo {
  --glow: 255, 82, 82;
  animation-name: sem-pop-cycle-3;
}

.sem-pop h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.sem-pop p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.sem-pop p strong {
  color: var(--text);
}

/* Ventana del verde: en pantalla del 0% al 28% del ciclo */
@keyframes sem-pop-cycle-1 {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(0.6rem);
  }

  4%, 26% {
    opacity: 1;
    transform: none;
  }

  28.33%, 100% {
    opacity: 0;
    transform: scale(0.94) translateY(0.3rem);
  }
}

/* Amarillo: entra cuando quedan quietos, sale antes del deslizamiento */
@keyframes sem-pop-cycle-2 {
  0%, 33.33% {
    opacity: 0;
    transform: scale(0.88) translateY(0.6rem);
  }

  36.5%, 59% {
    opacity: 1;
    transform: none;
  }

  61.5%, 100% {
    opacity: 0;
    transform: scale(0.94) translateY(0.3rem);
  }
}

@keyframes sem-pop-cycle-3 {
  0%, 66.66% {
    opacity: 0;
    transform: scale(0.88) translateY(0.6rem);
  }

  69.5%, 92% {
    opacity: 1;
    transform: none;
  }

  94.5%, 100% {
    opacity: 0;
    transform: scale(0.94) translateY(0.3rem);
  }
}

/* Flechas del semáforo: pasan manualmente de un celular al otro.
   Con el clic, el ciclo queda detenido en ese celular unos segundos. */
.sem-nav {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 1.3rem;
}

.sem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.sem-btn:hover {
  border-color: rgba(77, 196, 255, 0.45);
  box-shadow: 0 0 1rem rgba(77, 196, 255, 0.18);
  transform: translateY(-1px);
}

.sem-btn:active {
  transform: scale(0.94);
}

.sem-btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* ===================== Guía =====================
   Chips de índice, grilla a dos columnas y demo de video por función. */
.guia-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.guia-links a {
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.38rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.guia-links a:hover {
  border-color: rgba(77, 196, 255, 0.4);
  box-shadow: 0 0 0.9rem rgba(77, 196, 255, 0.15);
}

.guia-grid {
  grid-template-columns: minmax(0, 1fr);
}

.sem-guia {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.sem-guia strong {
  font-weight: 600;
}

.func-mini {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.4rem 0 0;
}

.func-demo {
  margin: 1rem auto 0;
  width: min(10.5rem, 100%);
  text-align: center;
}

.func-demo video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 500 / 1133;
  object-fit: cover;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.5);
}

.func-demo figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Guardrail del semáforo: destello fijo y carrusel sin desfile
   (pasa a tira scrolleable con snap). Los pop-ups quedan estáticos
   y apilados bajo el carrusel para que igual se explicable todo. */
@media (prefers-reduced-motion: reduce) {
  .sem-track {
    animation: none;
  }

  /* Sin loop no hacen falta las copias: quedan solo verde, amarillo y rojo. */
  .sem-track .sem-slide[aria-hidden="true"] {
    display: none;
  }

  .semaforo-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .sem-slide {
    animation: none;
    scroll-snap-align: center;
    /* sin latido: igual queda el aura tenue del color */
    box-shadow:
      0 0 0.55rem rgba(var(--glow), 0.72),
      0 0 1.4rem rgba(var(--glow), 0.5),
      0 0 2.8rem rgba(var(--glow), 0.32),
      0 0 5rem -0.8rem rgba(var(--glow), 0.28);
  }

  .sem-pops {
    position: static;
    margin: 0.6rem auto 0;
    max-width: var(--sem-w, 22rem);
  }

  .sem-pop {
    grid-area: auto;
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===================== Semáforo: intro + pop-ups =====================
   Cada estado con su título en el color correspondiente, para que el
   chofer sepa leer el cuadrante en 3 segundos. */
.ticket-intro {
  max-width: 42rem;
  margin: 0.7rem auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.65;
}

.ticket-intro strong {
  color: var(--text);
}

.sem-verde {
  color: var(--sky);
}

.sem-amarillo {
  color: #ffb300;
}

.sem-rojo {
  color: #ff5252;
}

/* ===================== Atmósfera continua estilo «ola» =====================
   Una sola iluminación para TODO el index, inspirada en la ola de la PS3:
   cintas de luz curvas que cruzan la pantalla y destellos chispeando sobre
   ellas. Vive en una capa position:fixed detrás del contenido, así ninguna
   sección pinta su propia luz (fin de los cortes visibles). Colores de la
   app: negro #080b0c, celeste #0099e6 / #4dc4ff y periwinkle #3355ff /
   #94a6ff. SVG nativo inline + CSS: sin imágenes ni librerías. */

/* La ola se dibuja detrás del body: el fondo base pasa de body a html
   (los hijos con z-index negativo quedan por encima del fondo de html
   y por debajo del contenido del body). */
html { background: var(--bg); }
body { background: transparent; }

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.aur-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.aur-ribbon {
  fill: none;
  stroke-linecap: round;
}

.aur-ribbon-soft {
  stroke: url(#aur-core);
  stroke-width: 150;
  opacity: 0.15;
}

.aur-ribbon-core {
  stroke: url(#aur-core);
  stroke-width: 52;
  opacity: 0.3;
}

.aur-ribbon-line {
  stroke: url(#aur-white);
  stroke-width: 5.5;
  opacity: 0.42;
}

.aur-amb-primary { fill: url(#aur-primary); opacity: 0.42; }
.aur-amb-periwinkle { fill: url(#aur-periwinkle); opacity: 0.3; }

.aur-glint {
  transform-box: fill-box;
  transform-origin: center;
  opacity: var(--o, 0.8);
}

/* Derivas lentas: la ola respira y los destellos titilan.
   Todas las animaciones cuelgan de html.js-motion (igual que el resto
   del sitio): con prefers-reduced-motion la ola queda estática y Morgana. */
html.js-motion .aur-wave {
  animation: aur-drift 30s ease-in-out infinite alternate;
}

html.js-motion .aur-ribbons {
  animation: aur-flow 24s ease-in-out infinite alternate;
}

html.js-motion .aur-glint {
  animation: aur-twinkle 4.4s ease-in-out infinite;
}

html.js-motion .aur-glint:nth-child(odd) {
  animation-duration: 3.6s;
  animation-delay: -1.2s;
}

html.js-motion .aur-glint:nth-child(3n) {
  animation-delay: -2.6s;
}

html.js-motion .aur-glint:nth-child(4) {
  animation-duration: 5.6s;
}

@keyframes aur-drift {
  from { transform: translate3d(-34px, 0, 0); }
  to { transform: translate3d(34px, -12px, 0); }
}

@keyframes aur-flow {
  from { transform: translate3d(24px, 6px, 0); }
  to { transform: translate3d(-24px, -8px, 0); }
}

@keyframes aur-twinkle {
  0%, 100% {
    opacity: calc(var(--o, 0.8) * 0.22);
    transform: translate3d(0, 0, 0) scale(0.45);
  }

  50% {
    opacity: var(--o, 0.8);
    transform: translate3d(9px, -3px, 0) scale(1.15);
  }
}

/* Guardrail: sin movimiento, la ola queda fija pero igual iluminando. */
@media (prefers-reduced-motion: reduce) {
  .aurora,
  .aurora * {
    animation: none !important;
  }
}

/* Partículas flotantes (estilo «gold particle» con los colores de
   Manejate: núcleo blanco + halo celeste). Suben despacio, se mecen y
   se desvanecen al llegar arriba; el loop reinicia debajo del borde.
   Viven en la capa fija de la ola: detrás del contenido y sin cortes. */
.aur-part {
  opacity: var(--o, 0.7);
}

html.js-motion .aur-part {
  animation: aur-float var(--d, 12s) linear infinite;
  animation-delay: var(--dl, 0s);
}

@keyframes aur-float {
  0% {
    opacity: 0;
    transform: translate3d(0, 34px, 0) scale(0.72);
  }

  16% {
    opacity: calc(var(--o, 0.7) * 0.85);
  }

  62% {
    opacity: var(--o, 0.7);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--x, 12px), -168px, 0) scale(1.12);
  }
}

/* ===================== Fase 6: Guía estilo documentación =====================
   Menú lateral sticky + contenido a la derecha; en móvil, chips con scroll
   horizontal. Las tarjetas entran con fade-up (reveal) y el menú resalta
   con .active la sección en pantalla (scroll spy, ver script de guia.html). */

/* Anclas debajo del header sticky del sitio. */
.guia .step-card {
  scroll-margin-top: 5.5rem;
}

/* Estado activo del scroll spy (móvil: chip resaltado). */
.guia-links a.active {
  color: var(--sky);
  border-color: rgba(77, 196, 255, 0.45);
  box-shadow: 0 0 0.9rem rgba(77, 196, 255, 0.18);
}

/* Reveal fade-up: oculto original apenas js-motion activa; el IO del
   script agrega .is-visible al entrar al viewport. Sin js-motion
   (reduced motion o JS caído) las tarjetas quedan visibles siempre. */
html.js-motion .guia .step-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js-motion .guia .step-card.is-visible {
  opacity: 1;
  transform: none;
}

/* Móvil: el índice es una hilera de chips scrolleable hacia los lados. */
@media (max-width: 1023.98px) {
  .guia-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 0 0.15rem 0.4rem;
  }
}

@media (max-width: 1023.98px) {
  /* En móvil el índice se envuelve: todo visible y sin scroll lateral. */
  body.theme-page .guia-links {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding-bottom: 0;
  }
}

/* Escritorio: barra lateral izquierda sticky + contenido en una columna. */
@media (min-width: 1024px) {
  .guia {
    width: min(74rem, calc(100% - 2rem));
  }

  .guia-layout {
    display: grid;
    grid-template-columns: 14.5rem minmax(0, 1fr);
    gap: 2.75rem;
  }

  .guia-side {
    align-self: start;
    position: sticky;
    top: 5.25rem; /* deja pasar por debajo del header sticky del sitio */
  }

  .guia-links {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.15rem;
    margin-top: 0;
    overflow: visible;
  }

  .guia-links a {
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.45rem 0.8rem;
    background: transparent;
    text-align: left;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
  }

  .guia-links a:hover {
    border-color: transparent;
    box-shadow: none;
  }

  /* Indicador visual del item activo: borde izquierdo grueso celeste. */
  .guia-links a.active {
    border-left-color: var(--sky);
    background: rgba(77, 196, 255, 0.08);
    box-shadow: none;
  }

  /* Contenido a la derecha en UNA sola columna (formato docs). */
  .guia-content .steps-grid,
  .guia-content .steps-grid.guia-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Fase 7: destellos del mouse (canvas) — estela de partículas verde
   esmeralda/naranja que siguen al mouse o al dedo. El canvas es decorativo:
   fijo, por detrás del contenido y sin capturar clics. Con
   prefers-reduced-motion no arranca nada (lo decide el script). */
#sparkles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  display: block;
}

/* ===================== Fase 8: UI Premium ===================== */

/* Grain anti-banding: textura de ruido SVG estático (data URI base64,
   repetida en mosaico) al 3% de opacidad. Rompe las bandas de color del
   blur de la aurora sin ensuciar el negro del fondo. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxODAnIGhlaWdodD0nMTgwJz48ZmlsdGVyIGlkPSdnJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44MicgbnVtT2N0YXZlcz0nMicgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjxmZUNvbG9yTWF0cml4IHR5cGU9J3NhdHVyYXRlJyB2YWx1ZXM9JzAnLz48ZmVDb21wb25lbnRUcmFuc2Zlcj48ZmVGdW5jQSB0eXBlPSdsaW5lYXInIHNsb3BlPScwLjU1Jy8+PC9mZUNvbXBvbmVudFRyYW5zZmVyPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxODAnIGhlaWdodD0nMTgwJyBmaWx0ZXI9J3VybCgjZyknLz48L3N2Zz4=");
  background-repeat: repeat;
  background-size: 180px 180px;
}

/* Jerarquía tipográfica frente al fondo luminoso: títulos casi puros,
   cuerpo de texto levemente apagado. Los componentes con color propio
   (clases) siguen mandando por especificidad. */
h1,
h2 {
  color: #f4f7f8;
}

p,
li {
  color: rgba(244, 247, 248, 0.75);
}

/* ===================== Tema del sitio: identidad del APK =====================
   Todas las páginas públicas adoptan la UI del APK: fondo casi negro,
   superficies #0C1012, tipografía Inter / Space Grotesk y la paleta
   celeste/periwinkle del WebView. */
html.theme-html {
  background: #080b0c;
}

body.theme-page {
  --home-bg: #080b0c;
  --home-card: #0c1012;
  --home-primary: #4dc4ff;
  --home-primary-deep: #0099e6;
  --home-secondary: #94a6ff;
  --home-secondary-deep: #3355ff;
  --home-success: #22c55e;
  --home-danger: #ef4343;
  --bg: var(--home-bg);
  --sky: var(--home-primary);
  --accent: var(--home-secondary);
  --text: #f4f7f8;
  --muted: #abb5ba;
  --card: var(--home-card);
  --line: rgba(255, 255, 255, 0.1);
  --radius: 1.25rem;
  background: transparent;
  color: var(--text);
  font-family: Inter, sans-serif;
}

body.theme-page ::selection {
  background: rgba(77, 196, 255, 0.3);
  color: #fff;
}

body.theme-page h1 {
  color: #fff;
  font-weight: 700;
}

body.theme-page h2 {
  color: #fff;
  font-weight: 700;
}

body.theme-page .hero h1 {
  letter-spacing: -0.06em;
}

body.theme-page .section-label {
  color: var(--home-primary);
  font-weight: 700;
  letter-spacing: 0.16em;
}

body.theme-page .hero-slogan {
  letter-spacing: -0.03em;
}

body.theme-page .hero-lead {
  color: #c5d0d5;
}

body.theme-page .site-header {
  background: rgba(8, 11, 12, 0.84);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.theme-page .brand {
  color: #fff;
}

body.theme-page .site-nav a:hover,
body.theme-page .site-nav a[aria-current="page"],
body.theme-page .footer-links a:hover,
body.theme-page .footer-links a[aria-current="page"] {
  color: var(--home-primary);
}

body.theme-page .header-install {
  background: var(--home-primary);
  color: var(--home-bg);
  box-shadow: 0 6px 18px rgba(77, 196, 255, 0.18);
}

body.theme-page .header-install:hover {
  background: #8fdbff;
  color: var(--home-bg);
  box-shadow: 0 6px 20px rgba(77, 196, 255, 0.3);
}

body.theme-page .text-install {
  border-color: rgba(77, 196, 255, 0.5);
  color: var(--home-primary);
}

body.theme-page .text-install:hover {
  border-color: var(--home-primary);
  background: rgba(77, 196, 255, 0.12);
  color: var(--home-primary);
}

body.theme-page .cta {
  background: var(--home-primary);
  color: var(--home-bg);
  box-shadow: 0 10px 30px rgba(77, 196, 255, 0.22);
}

body.theme-page .cta:hover {
  background: #8fdbff;
  color: var(--home-bg);
}

body.theme-page .feature-card {
  border-color: var(--line);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(77, 196, 255, 0.07), rgba(255, 255, 255, 0.02) 58%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

body.theme-page .feature-body li::before {
  background: var(--home-primary);
}

body.theme-page .testimonial-card,
body.theme-page .faq-item {
  border-color: var(--line);
  border-radius: 1.25rem;
  background: var(--home-card);
}

body.theme-page .app-copy {
  border-color: var(--line);
  background: var(--home-card);
}

body.theme-page .compat-card {
  border-color: var(--line);
  border-radius: 1.5rem;
  background:
    linear-gradient(150deg, rgba(77, 196, 255, 0.11), rgba(148, 166, 255, 0.07) 58%, rgba(8, 11, 12, 0.15)),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.theme-page .compat-col-yes .compat-label {
  color: var(--home-success);
}

body.theme-page .compat-col-no .compat-label {
  color: var(--home-danger);
}

body.theme-page .app-media {
  border: 1px solid rgba(77, 196, 255, 0.32);
  background:
    linear-gradient(150deg, rgba(77, 196, 255, 0.12), rgba(148, 166, 255, 0.08) 58%, rgba(8, 11, 12, 0.15)),
    rgba(255, 255, 255, 0.03);
}

body.theme-page .app-badge-indrive {
  color: var(--home-bg);
}

body.theme-page .phone-screen {
  background:
    radial-gradient(circle at 50% 18%, rgba(77, 196, 255, 0.2), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(148, 166, 255, 0.16), transparent 42%),
    #0c1012;
}

body.theme-page .phone-hero .phone-frame {
  background: linear-gradient(160deg, #25313a 0%, #0c1114 32%, #070a0c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(148, 166, 255, 0.35),
    inset 0 0 0 3px #050708,
    0 22px 44px rgba(0, 0, 0, 0.45),
    0 0 2.8rem rgba(77, 196, 255, 0.18);
}

body.theme-page .phone-hero .phone-btn {
  background: #40525f;
}

body.theme-page .phone-hero .phone-screen {
  background:
    radial-gradient(115% 78% at 0% 0%, rgba(77, 196, 255, 0.28) 0%, transparent 70%),
    radial-gradient(115% 78% at 100% 100%, rgba(148, 166, 255, 0.26) 0%, transparent 72%),
    radial-gradient(85% 62% at 100% 0%, rgba(0, 153, 230, 0.35) 0%, transparent 58%),
    radial-gradient(85% 62% at 0% 100%, rgba(51, 85, 255, 0.3) 0%, transparent 56%),
    linear-gradient(165deg, #0c1012 0%, #080b0c 55%, #0b0f14 100%);
}

body.theme-page .phone-hero .hero-mark,
body.theme-page .hero-mark {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 32px rgba(77, 196, 255, 0.38);
}

body.theme-page .phone-cta-badge {
  background: rgba(8, 11, 12, 0.7);
}

body.theme-page .carousel-track .feature-card::before {
  background: linear-gradient(120deg, #0099e6, #4dc4ff, #3355ff, #94a6ff, #0099e6);
  background-size: 300% 300%;
  opacity: 0.2;
  animation: feature-glow-flow 14s ease-in-out infinite;
}

body.theme-page .carousel-dot.is-active {
  background: var(--home-primary);
  border-color: var(--home-primary);
  box-shadow: 0 0 0.5rem rgba(77, 196, 255, 0.45);
}

body.theme-page .sem-btn:hover {
  border-color: rgba(77, 196, 255, 0.45);
  box-shadow: 0 0 1rem rgba(77, 196, 255, 0.18);
}

/* El semáforo conserva su verde de estado, aunque el resto del home sea celeste. */
body.theme-page .sem-verde {
  color: #00e676;
}

body.theme-page .sticky-download {
  background: var(--home-primary);
  color: var(--home-bg);
  box-shadow: 0 10px 25px rgba(77, 196, 255, 0.3);
}

body.theme-page .sticky-download.is-visible {
  animation-name: sticky-pulse-home;
}

@keyframes sticky-pulse-home {
  0%, 86%, 100% {
    scale: 1;
    box-shadow: 0 10px 25px rgba(77, 196, 255, 0.3);
  }

  91% {
    scale: 1.05;
    box-shadow: 0 14px 34px rgba(77, 196, 255, 0.42);
  }

  96% {
    scale: 1.01;
    box-shadow: 0 11px 27px rgba(77, 196, 255, 0.33);
  }
}

/* ---------- Guía y páginas legales ---------- */

body.theme-page .guia {
  width: min(74rem, calc(100% - 2rem));
  margin-top: 3.25rem;
}

body.theme-page .guia-head {
  margin-bottom: 2.75rem;
}

body.theme-page .guia-head h1 {
  max-width: 19em;
  font-size: clamp(2.15rem, 4.6vw, 3.4rem);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

body.theme-page .guia-head .guia-intro {
  max-width: 44rem;
  color: #c5d0d5;
  font-size: 1.08rem;
}

body.theme-page .guia .section-label {
  max-width: 54rem;
  margin: 0 auto 1.9rem;
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  letter-spacing: 0.13em;
  line-height: 1.45;
}

body.theme-page .step-card {
  border-color: var(--line);
  border-radius: 1.5rem;
  background:
    linear-gradient(150deg, rgba(77, 196, 255, 0.06), rgba(255, 255, 255, 0.02) 62%),
    var(--home-card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, box-shadow 0.25s;
}

body.theme-page .step-card:hover {
  border-color: rgba(77, 196, 255, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 16px 40px rgba(0, 0, 0, 0.22);
}

body.theme-page .step-card h3 {
  letter-spacing: -0.03em;
}

body.theme-page .step-num {
  color: var(--home-primary);
  text-shadow: 0 0 1.6rem rgba(77, 196, 255, 0.35);
}

body.theme-page .step-card li::before {
  background: var(--home-primary);
  box-shadow: 0 0 0.45rem rgba(77, 196, 255, 0.4);
}

body.theme-page .guia-fin {
  border-color: rgba(77, 196, 255, 0.24);
  border-radius: 1.5rem;
  background:
    radial-gradient(130% 160% at 0% 0%, rgba(77, 196, 255, 0.12), transparent 55%),
    radial-gradient(130% 160% at 100% 100%, rgba(148, 166, 255, 0.1), transparent 62%),
    var(--home-card);
}

body.theme-page .guia-fin-link:hover {
  color: #fff;
}

body.theme-page .func-demo video {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 1.6rem rgba(77, 196, 255, 0.08);
}

/* Documentos legales y contacto: misma superficie, sin la ola animada. */
body.theme-page.legal-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55rem 36rem at 88% -8%, rgba(77, 196, 255, 0.14), transparent 62%),
    radial-gradient(44rem 34rem at -6% 106%, rgba(148, 166, 255, 0.12), transparent 64%);
}

body.theme-page .legal {
  width: min(46rem, calc(100% - 2rem));
  margin-top: 3.25rem;
}

body.theme-page .legal h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

body.theme-page .legal h2 {
  margin-top: 2.75rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

body.theme-page .legal .kicker,
body.theme-page .updated {
  color: #c5d0d5;
}

body.theme-page .legal p,
body.theme-page .legal li {
  color: rgba(244, 247, 248, 0.82);
}

body.theme-page .legal li::before {
  background: var(--home-primary);
  box-shadow: 0 0 0.55rem rgba(77, 196, 255, 0.45);
}

body.theme-page .channel {
  border-radius: 1.25rem;
  background:
    linear-gradient(145deg, rgba(77, 196, 255, 0.07), rgba(255, 255, 255, 0.02) 58%),
    var(--home-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

body.theme-page .channel:hover {
  border-color: rgba(77, 196, 255, 0.45);
  box-shadow: 0 0 1.4rem rgba(77, 196, 255, 0.12);
}

body.theme-page .channel strong {
  color: #fff;
}

body.theme-page .site-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015));
}

body.theme-page .footer-heading {
  color: #fff;
}

@media (max-width: 960px) {
  /* Deja aire bajo el copyright para que el CTA fijo no lo tape al final. */
  body.theme-page.page-home .site-footer {
    padding-bottom: 7.5rem;
  }
}

@media (max-width: 420px) {
  body.theme-page .header-inner {
    gap: 0.55rem 0.8rem;
  }

  body.theme-page .brand {
    gap: 0.55rem;
    font-size: 1.05rem;
  }

  body.theme-page .brand img {
    width: 32px;
    height: 32px;
  }

  body.theme-page .site-nav {
    gap: 0.3rem 0.65rem;
  }

  body.theme-page .site-nav a {
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-page .carousel-track .feature-card::before {
    animation: none;
    opacity: 0.18;
  }

  body.theme-page .sticky-download.is-visible {
    animation: none;
  }
}
