/* =========================================================================
   LineaHoy — landing pública estática
   Identidad: morado #5B2FCC + #453A8F · Inter · esquinas 12-16px · sin emojis
   ========================================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* El atributo `hidden` debe ocultar SIEMPRE, incluso cuando el
 * elemento tiene `display: flex/grid/block` explícito (CSS specificity
 * de la clase gana sobre el `[hidden]` del UA stylesheet por default).
 * `!important` aquí es el patrón recomendado por HTML spec para que
 * `hidden` sea confiable. */
[hidden] { display: none !important; }

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --purple: #5B2FCC;
  --purple-deep: #453A8F;
  --purple-darker: #2E2360;
  --purple-tint: #EEE9FB;
  --purple-tint-2: #F5F2FD;
  --lavender-bg: #F5F1FE;

  /* Secciones (sticky stack) */
  --mint-bg: #DFF6E4;
  --mint-ink: #1F5C2C;
  --cream-bg: #FEF4D6;
  --cream-ink: #6B4E00;

  /* Neutrales */
  --ink: #0F1226;
  --ink-2: #2A2D45;
  --ink-3: #4A4E6B;
  --ink-4: #6A6E89;
  --line: #E6E4F0;
  --line-2: #D9D4E8;
  --white: #FFFFFF;
  --bg: #FFFFFF;

  /* Semáforo de la app */
  --green: #16A34A;
  --amber: #D97706;
  --red: #DC2626;
  --neutral: #9CA3AF;

  /* Tipografía */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Radios */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;

  /* Sombras */
  --shadow-card: 0 4px 16px rgba(15, 18, 38, 0.06), 0 1px 2px rgba(15, 18, 38, 0.04);
  --shadow-float: 0 12px 32px rgba(15, 18, 38, 0.12), 0 2px 6px rgba(15, 18, 38, 0.06);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  /* Compensa el header fijo (.nav sticky, 64px) al saltar a un ancla
     (#descargar, #matriz, #como, #privacidad) para que la sección no
     quede tapada. 64px del nav + 16px de respiro. */
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  font-feature-settings: "cv11", "ss01";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
}

/* ---------- Util ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--purple-tint);
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 999px;
}
.eyebrow.on-dark { background: rgba(255,255,255,0.14); color: #fff; }
.h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}
.h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  font-weight: 700;
  margin: 0;
}
.h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0;
}
.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0;
}
.accent { color: var(--purple); }
.ink-2 { color: var(--ink-2); }
.muted { color: var(--ink-4); }
.icon { width: 20px; height: 20px; stroke-width: 2; }
.icon-sm { width: 16px; height: 16px; stroke-width: 2; }
.icon-lg { width: 28px; height: 28px; stroke-width: 1.75; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover { background: var(--purple-deep); }
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--line-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--purple-tint-2); }
.btn-on-dark {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.btn-on-dark:hover { background: rgba(255,255,255,0.2); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* ---------- App store badges ----------
 *
 * Replican la jerarquía del badge oficial: "Descargar en" en small caps
 * arriba y el nombre del store grande abajo. La línea pequeña NO debe
 * envolver con el nombre, por eso el wrapper interno (.store__text) es
 * un flex column rígido. white-space: nowrap evita que el nombre se
 * parta en dos en viewports angostos. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  min-height: 56px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store:hover { transform: translateY(-1px); }
.store__icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}
.store__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
  gap: 3px;
  text-align: left;
}
.store__sub {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.78;
  line-height: 1;
  white-space: nowrap;
  font-weight: 500;
}
.store__name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.store--disabled {
  background: #2A2D45;
  cursor: not-allowed;
}
.store--disabled:hover { transform: none; }
.store--disabled .store__sub { opacity: 0.6; }
.store--disabled .store__name { opacity: 0.85; }
@media (max-width: 380px) {
  .store { padding: 10px 14px 10px 12px; min-height: 52px; }
  .store__icon { flex: 0 0 26px; width: 26px; height: 26px; }
  .store__name { font-size: 16px; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(230, 228, 240, 0.6);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 32px; height: 32px;
}
.brand__logo {
  height: 32px;
  width: auto;
  display: block;
}
.brand__word { display: inline-flex; align-items: baseline; }
.brand__word--accent { color: var(--purple); }
.brand__word--mute { color: var(--ink-4); }
.brand--on-dark { color: #fff; }
.brand--on-dark .brand__word--accent,
.brand--on-dark .brand__word--mute { color: #fff; }
.nav__links {
  display: none;
  gap: 28px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--ink); }
@media (min-width: 768px) {
  .nav__links { display: flex; }
}
.nav__cta { display: inline-flex; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  background: linear-gradient(180deg, #F5F1FE 0%, #FFFFFF 100%);
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
/* Botones App Store / Google Play SIEMPRE lado a lado (row), también en
   móvil. En pantallas angostas (<=480px) los dos reparten el ancho a la
   mitad y centran su contenido para que quepan sin cortarse. */
.hero__buttons { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; }
@media (min-width: 540px) {
  .hero__buttons { align-items: center; }
}
@media (max-width: 480px) {
  .hero__buttons { gap: 8px; }
  .hero__buttons .store { flex: 1 1 0; min-width: 0; justify-content: center; }
}
/* iPhone SE 1ª gen (~320px): apretamos padding/ícono/texto un poco más
   para que "Google Play" no quede amontonado. */
@media (max-width: 340px) {
  .hero__buttons .store { padding: 9px 8px; gap: 7px; }
  .hero__buttons .store__icon { flex: 0 0 22px; width: 22px; height: 22px; }
  .hero__buttons .store__name { font-size: 14px; }
  .hero__buttons .store__sub { font-size: 9px; }
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat__n {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stat__l {
  font-size: 12px;
  color: var(--ink-4);
  font-weight: 500;
}

.hero__phone {
  position: relative;
  justify-self: center;
}
.float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  z-index: 5;
}
.float-card__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.float-card__name { color: var(--ink-2); font-weight: 600; line-height: 1.1; }
.float-card__time { color: var(--ink-4); font-size: 11px; line-height: 1.1; margin-top: 2px; }
.float-card--a { top: 18%; left: -24px; }
.float-card--b { bottom: 16%; right: -16px; }
@media (max-width: 540px) {
  .float-card--a { left: -8px; top: 12%; }
  .float-card--b { right: -8px; }
}

/* ---------- Phone mockup ---------- */
.phone {
  width: 264px;
  aspect-ratio: 264 / 540;
  background: #0F1226;
  border-radius: 38px;
  padding: 8px;
  position: relative;
  box-shadow: 0 28px 60px rgba(15, 18, 38, 0.22), 0 4px 12px rgba(15, 18, 38, 0.1);
}
@media (min-width: 960px) {
  .phone { width: 292px; }
}
.phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background: #0F1226;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: var(--purple-tint-2);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  gap: 12px;
  color: var(--ink-4);
  font-size: 12px;
  padding: 24px;
  background: linear-gradient(180deg, #ECE6FB, #F8F5FF);
}

/* ===========================================================
   STICKY STACK
   =========================================================== */
.stack {
  position: relative;
}
.stack__section {
  /* Mobile-first: secciones apiladas sin sticky, altura natural.
     En pantallas chicas el efecto stacking corta los mockups
     (100vh + padding 80px + mockup de 540px no cabe) y la siguiente
     sección encima parcialmente al hacer scroll. */
  position: static;
  min-height: 0;
  border-top-left-radius: var(--r-2xl);
  border-top-right-radius: var(--r-2xl);
  padding: 56px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
@media (min-width: 768px) {
  /* Desktop: activamos el sticky-stack (transitapp pattern). */
  .stack__section {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 80px 0;
  }
}
/* Laptops (alto <=900px): el sticky-stack sigue ACTIVO y el teléfono a
   tamaño normal, pero compactamos el padding de la sección y los gaps de
   la columna de texto para que el título grande + los 3 puntos + el
   teléfono quepan en 100vh sin recortarse (overflow:hidden los cortaba en
   pantallas bajitas). Solo afecta laptops: desktop grande (alto >900) y
   móvil (<768) quedan igual. Debe ir DESPUÉS del bloque sticky de arriba
   para ganar el padding en orden de fuente. */
@media (min-width: 768px) and (max-height: 950px) {
  /* Padding generoso (60) para que el teléfono/contenido NO se meta bajo
     el nav fijo. Lo que compactamos es la COLUMNA DE TEXTO por dentro
     (gaps + line-heights), sin achicar el título ni el teléfono: así la
     columna de texto es más corta y, centrada contra el teléfono (más
     alto), su 3er punto —título Y descripción— cabe con holgura en
     laptops. Solo aplica a laptops (alto <=950); desktop y móvil intactos. */
  .stack__section { padding: 60px 0; }
  .stack__copy { gap: 12px; }
  .stack__features { gap: 8px; }
  .stack__copy .h2 { line-height: 1.02; }
  .stack__feature p { line-height: 1.4; }
}
.stack__section--mint {
  background: var(--mint-bg);
  color: var(--mint-ink);
}
.stack__section--purple {
  background: var(--purple);
  color: #fff;
}
.stack__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}
@media (min-width: 960px) {
  .stack__inner { grid-template-columns: 1fr 1fr; gap: 64px; }
  .stack__inner--reverse > .stack__copy { order: 2; }
  .stack__inner--reverse > .stack__media { order: 1; }
}
.stack__copy { display: flex; flex-direction: column; gap: 24px; max-width: 520px; }
.stack__media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.stack__features {
  display: grid;
  gap: 16px;
}
.stack__feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.stack__feature-icon {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
}
.stack__section--mint .stack__feature-icon {
  background: rgba(31, 92, 44, 0.1);
  color: var(--mint-ink);
}
.stack__feature h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}
.stack__feature p {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.5;
}

/* ===========================================================
   MATRIZ DE TIEMPOS
   =========================================================== */
.matrix {
  padding: 96px 0;
  background: var(--bg);
  border-top-left-radius: var(--r-2xl);
  border-top-right-radius: var(--r-2xl);
  margin-top: 0;
  position: relative;
  z-index: 3;
}
@media (min-width: 768px) {
  /* Desktop: traslapa con el último stack section (encima del morado). */
  .matrix { margin-top: -32px; }
}
.matrix__head {
  text-align: center;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.matrix__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 36px;
  padding: 6px;
  background: var(--purple-tint-2);
  border-radius: 999px;
  max-width: 100%;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.matrix__tabs::-webkit-scrollbar { display: none; }
.matrix__tab {
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.matrix__tab:hover { color: var(--ink); }
.matrix__tab[aria-selected="true"] {
  background: var(--white);
  color: var(--purple);
  box-shadow: 0 2px 8px rgba(15, 18, 38, 0.08);
}
.matrix__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) {
  .matrix__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .matrix__grid { grid-template-columns: repeat(3, 1fr); }
}

.gcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
}
.gcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.gcard--cream { background: #FEF4D6; border-color: #F5E4A8; }
.gcard--mint { background: #DFF6E4; border-color: #B7E6C2; }
.gcard--lavender { background: #ECE6FB; border-color: #D6CAF4; }
.gcard--blush { background: #FDE2E2; border-color: #F6BFBF; }
.gcard--sky { background: #DBEAFE; border-color: #B7D2F4; }
.gcard--peach { background: #FCE4D2; border-color: #F4C6A5; }
.gcard__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.gcard__name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.gcard__city {
  font-size: 12px;
  color: var(--ink-4);
  font-weight: 500;
  margin-top: 4px;
}
.gcard__pop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.gcard__lanes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lane-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.6);
  border-radius: var(--r-sm);
}
.lane-row__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.lane-row__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--neutral);
  flex: 0 0 auto;
}
.lane-row__dot.green { background: var(--green); }
.lane-row__dot.amber { background: var(--amber); }
.lane-row__dot.red { background: var(--red); }
.lane-row__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lane-row__time {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lane-row__time.muted { color: var(--ink-4); font-weight: 500; }
.gcard__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--purple);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-top: auto;
  transition: background 0.15s;
}
.gcard__cta:hover { background: var(--purple-deep); }

.gcard--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  background: var(--purple-tint-2);
  border-style: dashed;
  border-color: var(--line-2);
}
.gcard--empty p {
  color: var(--ink-4);
  font-size: 13px;
  margin: 8px 0 0;
}

.matrix__city-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--r-lg);
  background: var(--purple-tint-2);
  border: 1px dashed var(--line-2);
  color: var(--ink-3);
}

/* ===========================================================
   MARQUEE CIUDADES
   =========================================================== */
.cities-strip {
  background: var(--purple);
  color: #fff;
  padding: 28px 0;
  overflow: hidden;
}
.marquee {
  display: flex;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  gap: 48px;
  flex-shrink: 0;
  animation: marquee 32s linear infinite;
  padding-right: 48px;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0.95;
}
.marquee__item svg { opacity: 0.6; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ===========================================================
   RESEÑAS
   =========================================================== */
.reviews-section {
  padding: 96px 0;
  background: var(--white);
}
.reviews-section__head {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
/* Carrusel auto-scroll de reseñas.
 *
 * Auto-scroll continuo en TODOS los breakpoints (la versión previa
 * con scroll manual en móvil era confiable pero el usuario prefiere
 * auto-scroll). Trucos para que no se rompa en Safari iOS:
 *
 *   - Cards más angostas en móvil (260px en vez de 320px) para que
 *     siempre se vea al menos 1 card completa con peek visible de la
 *     siguiente — sensación de carrusel, no de "card cortada".
 *   - `transform: translate3d(...)` (via translateX en el keyframe,
 *     que ya promueve a layer GPU) + `will-change: transform` +
 *     `backface-visibility: hidden` para que Safari mantenga el
 *     composite layer estable durante toda la animación.
 *   - Track NO excesivamente ancho: con 5 cards × 2 (duplicadas
 *     para seamless loop) = 10. A 260px + 16gap eso son ~2752px —
 *     manejable para iOS.
 *   - Pausa en hover (desktop) y al tocar (mobile, via JS).
 *   - prefers-reduced-motion: respetado. */
.reviews-marquee {
  display: flex;
  width: 100%;
  overflow: hidden;
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.reviews-marquee__track {
  display: flex;
  gap: 16px;
  padding-right: 16px;
  flex-shrink: 0;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: reviewsScroll 80s linear infinite;
}
.reviews-marquee.is-paused .reviews-marquee__track,
.reviews-marquee:hover .reviews-marquee__track,
.reviews-marquee:focus-within .reviews-marquee__track {
  animation-play-state: paused;
}
@keyframes reviewsScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-marquee__track { animation: none; }
}
.review {
  flex: 0 0 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 768px) {
  .review { flex-basis: 320px; padding: 24px; gap: 16px; }
  .reviews-marquee__track { gap: 20px; padding-right: 20px; animation-duration: 70s; }
}
.review__stars { display: flex; gap: 2px; color: #F5B400; }
.review__stars svg { fill: currentColor; }
.review__text { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--purple-tint);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.review__name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.review__meta { font-size: 12px; color: var(--ink-4); line-height: 1.1; margin-top: 3px; }

/* ===========================================================
   PRIVACIDAD
   =========================================================== */
.privacy {
  padding: 96px 0;
  background: var(--purple-tint-2);
}
.privacy__head {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.privacy__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
  .privacy__grid { grid-template-columns: repeat(3, 1fr); }
}
.privacy__card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.privacy__icon {
  width: 48px; height: 48px;
  background: var(--purple-tint);
  color: var(--purple);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
}
.privacy__card h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.privacy__card p {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.55;
}

/* ===========================================================
   ANUNCIANTES
   =========================================================== */
.advertisers {
  padding: 80px 0;
  background: var(--purple);
  color: #fff;
}
.advertisers__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 880px) {
  .advertisers__inner { grid-template-columns: 1.4fr 1fr; gap: 64px; }
}
.advertisers h2 { color: #fff; }
.advertisers p {
  color: rgba(255,255,255,0.86);
  font-size: 16px;
  line-height: 1.55;
}
.advertisers__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.advertisers__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-md);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s;
}
.advertisers__email:hover { background: rgba(255,255,255,0.16); }
.advertisers__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: #fff;
  color: var(--purple);
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  font-family: inherit;
}
.advertisers__btn:hover { background: #F5F1FE; transform: translateY(-1px); }
.advertisers__btn:active { transform: translateY(0); }

/* ===========================================================
   MODAL ANUNCIANTES
   =========================================================== */
.ads-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 640px) {
  .ads-modal { align-items: center; padding: 24px; }
}
.ads-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 38, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: adsFade 0.18s ease;
}
.ads-modal__card {
  position: relative;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 28px;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  animation: adsSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 640px) {
  .ads-modal__card { border-radius: 20px; padding: 32px; }
}
.ads-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--purple-tint-2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-2);
  transition: background 0.15s;
}
.ads-modal__close:hover { background: var(--purple-tint); }
.ads-modal__head { margin-bottom: 24px; padding-right: 36px; }
.ads-modal__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ads-modal__sub {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.5;
}
@keyframes adsFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes adsSlide {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.ads-form { display: flex; flex-direction: column; gap: 14px; }
.ads-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 520px) {
  .ads-form__row { grid-template-columns: 1fr 1fr; }
}
.ads-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ads-form__field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.ads-form__field em {
  color: var(--purple);
  font-style: normal;
  margin-left: 2px;
}
.ads-form__field input,
.ads-form__field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.ads-form__field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.ads-form__field input:focus,
.ads-form__field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(91, 47, 204, 0.15);
}
.ads-form__field input.is-invalid,
.ads-form__field textarea.is-invalid {
  border-color: var(--red);
}
.ads-form__error {
  margin: 0;
  padding: 10px 12px;
  background: #FEE2E2;
  color: #991B1B;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}
.ads-form__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
@media (min-width: 520px) {
  .ads-form__actions { flex-direction: row; align-items: center; gap: 14px; }
}
.ads-form__note {
  font-size: 12px;
  color: var(--ink-4);
}

.ads-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 8px 0;
}
.ads-success svg { color: var(--green); }
.ads-success h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.ads-success p {
  margin: 0;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.5;
}
.ads-success a { color: var(--purple); }
.ads-success .btn { margin-top: 8px; }

body.ads-locked { overflow: hidden; touch-action: none; }

/* ===========================================================
   CIERRE
   =========================================================== */
.cta-close {
  padding: 112px 0;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F1FE 100%);
}
.cta-close__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}
.cta-close .stores { justify-content: center; }

/* ===========================================================
   LEGAL (privacidad.html, terminos.html)
   =========================================================== */
.legal {
  padding: 64px 0 96px;
  background: var(--bg);
  max-width: 760px;
  margin: 0 auto;
}
.legal__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  width: fit-content;
}
.legal__back:hover { color: var(--purple-deep); }
.legal__title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.legal__updated {
  font-size: 13px;
  color: var(--ink-4);
}
.legal section { margin-bottom: 32px; }
.legal section h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.legal p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.legal ul {
  padding-left: 20px;
  list-style: disc;
  margin: 0 0 12px;
}
.legal li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.legal strong { color: var(--ink); font-weight: 600; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: var(--purple-darker);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
}
.footer__brand .brand { color: #fff; }
.footer__about {
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.55;
}
.footer__col h5 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
