/* Mi Pedido — Landing
   Tokens copiados a mano de ../docs/DESIGN_SYSTEM.md (canónico, paleta v2).
   Sin build tooling propio — ver README.md de esta carpeta. */

@font-face {
  font-family: 'Sora';
  src: url('./assets/fonts/sora-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('./assets/fonts/dm-sans-latin.woff2') format('woff2');
  font-weight: 300 500;
  font-display: swap;
}

:root {
  /* Tokens de marca — docs/DESIGN_SYSTEM.md §2.1 */
  --brand-primary: #040640;
  --brand-secondary: #1F8B2D;
  --brand-lime: #A8F032;
  --brand-cta: #44AD02;
  --brand-cta-hover: #3a9302;

  --neutral-900: #1F2937;
  --neutral-700: #374151;
  --neutral-500: #6B7280;
  --neutral-200: #E5E7EB;
  --neutral-100: #F4F5F7;
  --neutral-0: #FFFFFF;

  --shadow-card: 0 1px 4px 0 rgba(13, 27, 94, 0.08), 0 2px 8px 0 rgba(13, 27, 94, 0.04);
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  /* Evita que browsers mobile re-escalen textos chicos (iOS Safari / Chrome Android).
     Sin esto, los font-sizes de 6-10px del mockup del teléfono se agrandan a ~12px
     por accesibilidad automática, rompiendo el layout del mockup. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--neutral-0);
  color: var(--neutral-700);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Sora', system-ui, sans-serif;
  margin: 0;
}

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

.section-title {
  font-size: clamp(1.5rem, 1vw + 1.35rem, 1.875rem);
  font-weight: 700;
  color: var(--neutral-900);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ─── Header fijo ───────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-primary);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  height: var(--header-height);
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.site-header__badge {
  height: 64px;
  width: auto;
}

/* Logo clickeable — link al top de la landing.
   display:inline-flex para que el <a> no agregue línea base extra bajo el <img>. */
.site-header__brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 150ms ease-out, transform 150ms ease-out;
}

.site-header__brand-link:hover { opacity: 0.85; }
.site-header__brand-link:active { transform: scale(0.98); }

.site-header__brand-link:focus-visible {
  outline: 2px solid var(--brand-lime);
  outline-offset: 4px;
}

.site-header__nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 2rem;
}

.site-header__nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 150ms ease-out;
}

.site-header__nav a:hover {
  color: var(--neutral-0);
}

/* ─── Menú hamburguesa (mobile) ─────────────────────────────────────────── */

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  background: none;
  border: none;
  padding: 0;
  color: var(--neutral-0);
  cursor: pointer;
}

.menu-icon-close {
  display: none;
}

.site-header__menu-btn[aria-expanded="true"] .menu-icon-open {
  display: none;
}

.site-header__menu-btn[aria-expanded="true"] .menu-icon-close {
  display: block;
}

.mobile-nav {
  display: none;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: var(--brand-primary);
  color: var(--neutral-0);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -20% -20% auto -20%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(168, 240, 50, 0.25), transparent 70%);
  pointer-events: none;
  animation: heroGlowPulse 9s ease-in-out infinite;
  transform-origin: center;
}

.hero__inner {
  position: relative;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero__content {
  text-align: left;
}

.hero__eyebrow,
.hero__title,
.hero__subtitle {
  animation: heroFadeUp 700ms ease-out both;
}

.hero__eyebrow {
  font-family: 'Sora', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-lime);
  margin-bottom: 0.75rem;
  animation-delay: 0ms;
}

.hero__title {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 16ch;
  animation-delay: 100ms;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1vw + 0.75rem, 1.125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  max-width: 42ch;
  margin: 1.25rem 0 0;
  animation-delay: 200ms;
}

/* QR de descarga dentro del hero — widget "escaneá para instalar".
   inline-flex para que respete el text-align de .hero__content (left desktop, center mobile).
   Background sutil para que no flote "pegoteado" sobre el navy del hero. */
.hero__qr {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 2rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  animation: heroFadeUp 700ms ease-out 320ms both;
}

.hero__qr img {
  width: 144px;
  height: 144px;
  display: block;
  border-radius: 8px;
  background: var(--neutral-0);
  flex-shrink: 0;
}

.hero__qr-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.hero__qr-text strong {
  font-family: 'Sora', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--neutral-0);
  line-height: 1.2;
}

.hero__qr-text span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.35;
}

/* ─── Mockup de teléfono ────────────────────────────────────────────────── */

.hero__visual {
  display: flex;
  justify-content: center;
  animation: heroFadeUp 700ms ease-out 380ms both;
}

.phone {
  width: 230px;
  aspect-ratio: 9 / 19.5; /* proporción real de un teléfono, no achatado */
  background: var(--neutral-900);
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  animation: phoneFloat 5s ease-in-out infinite; /* flotación sutil — en un hijo, no en .hero__visual, para no pisar su animación de entrada */
}

@keyframes phoneFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.phone__screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--neutral-100);
  border-radius: 28px;
  overflow: hidden;
  padding-bottom: 0.75rem;
}

.phone__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem 0.25rem;
  font-family: 'Sora', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--neutral-900);
}

.phone__appbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-primary);
  color: var(--neutral-0);
  font-family: 'Sora', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem 0.875rem;
  margin-top: 0.375rem;
}

.phone__appbar-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.phone__appbar-title {
  flex: 1;
}

.phone__appbar-cart {
  position: relative;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
}

.phone__appbar-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  background: var(--state-error, #DC2626);
  color: var(--neutral-0);
  border-radius: 999px;
  width: 13px;
  height: 13px;
  font-size: 0.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone__search {
  margin: 0.625rem 0.75rem;
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  padding: 0.4rem 0.75rem;
  font-size: 0.6875rem;
  color: var(--neutral-500);
  box-shadow: var(--shadow-card);
}

.phone__product {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--neutral-0);
  border-radius: 14px;
  margin: 0 0.75rem 0.5rem;
  padding: 0.5rem;
  box-shadow: var(--shadow-card);
}

.phone__thumb {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  object-fit: contain;
  padding: 2px;
}

.phone__product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.phone__product-info strong {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--neutral-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone__product-info span {
  font-size: 0.625rem;
  color: var(--neutral-500);
}

/* Stepper − N + — mismo patrón que CarritoPage/CatalogoPage (QtyInput) */
.phone__stepper {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Sora', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--neutral-900);
}

.phone__stepper-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--neutral-200);
  color: var(--neutral-700);
  font-size: 0.75rem;
  line-height: 1;
}

/* BottomNav — 5 ítems, igual que la app real (Home · Canje · Pedidos · Soporte · Perfil) */
.phone__nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: auto 0.375rem 0; /* margin-top: auto empuja la barra al fondo del teléfono alto */
  padding-top: 0.5rem;
  border-top: 1px solid var(--neutral-200);
}

.phone__nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--neutral-500);
}

.phone__nav-item.is-active {
  color: var(--brand-secondary);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroGlowPulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* ─── Scroll cue ────────────────────────────────────────────────────────── */

.hero__scroll-cue {
  position: absolute;
  left: 50%;
  margin-left: -16px; /* centrado por margen, no por transform: deja transform libre para el rebote */
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.6);
  /* Dos animaciones en propiedades distintas (opacity / transform) para que no compitan
     entre sí: si ambas tocaran transform, la segunda pisaría a la primera al superponerse. */
  animation: heroFadeIn 700ms ease-out 480ms both, scrollCueBounce 1.8s ease-in-out 1200ms infinite;
  transition: color 150ms ease-out;
}

.hero__scroll-cue:hover {
  color: rgba(255, 255, 255, 0.9);
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scrollCueBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ─── CTA ───────────────────────────────────────────────────────────────── */

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-cta);
  color: var(--brand-primary); /* Contraste WCAG AA sobre brand-cta: navy, NO blanco — ver docs/DESIGN_SYSTEM.md §"Contraste del CTA" */
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}

.cta:hover {
  background: var(--brand-cta-hover);
  transform: translateY(-1px);
}

.cta:active {
  transform: translateY(0);
}

.cta__icon {
  transition: transform 150ms ease-out;
}

.cta:hover .cta__icon {
  transform: translateX(3px);
}

.cta--header {
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  gap: 0.3rem;
  box-shadow: none;
  /* Mismo lima que "CLIENTES MAYORISTAS" (--brand-lime). Texto en navy (--brand-primary,
     el "azul" de marca) — buen contraste, 6.54:1, cumple WCAG AA. */
  background: var(--brand-lime);
  color: var(--brand-primary);
}

.cta--header:hover {
  background: #96d928;
}

.cta--header .cta__icon {
  width: 12px;
  height: 12px;
}

/* ─── Banda de descarga ─────────────────────────────────────────────────── */

.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--neutral-100);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.download__text {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin: 0;
}

.download__badges {
  display: flex;
  gap: 0.75rem;
}

/* flex: 0 0 180px → ambos badges exactamente 180px de ancho, sin importar
   que un texto sea más largo que el otro. justify-content: center para
   que el ícono+texto queden centrados dentro del badge. */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--neutral-900);
  color: var(--neutral-0);
  border-radius: 10px;
  padding: 0.5rem 0.875rem;
  text-decoration: none;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
  flex: 0 0 180px;
}

.badge:hover {
  background: #000;
  transform: translateY(-1px);
}

/* El logo de Apple fill-ratio ~62% de su viewBox (vs. ~75% del triángulo
   de Play Store) → visualmente luce ~15% más chico con el mismo width.
   Compensación estándar: renderizar el ícono Apple un pelín más grande. */
.badge--apple svg {
  width: 23px;
  height: 23px;
}

.badge__text {
  display: flex;
  flex-direction: column;
  font-family: 'Sora', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.badge__text small {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.5625rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

/* ─── Cómo funciona ─────────────────────────────────────────────────────── */

.steps {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.step {
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.step:nth-child(1) { transition-delay: 0ms; }
.step:nth-child(2) { transition-delay: 100ms; }
.step:nth-child(3) { transition-delay: 200ms; }

.step__icon-wrap {
  position: relative;
  display: inline-flex;
  margin-bottom: 1.25rem;
}

.step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ECF7EE;
  color: var(--brand-secondary);
  transition: transform 200ms ease-out, background-color 200ms ease-out;
}

.step:hover .step__icon {
  transform: scale(1.08);
  background: #DCF0E1;
}

.step__number {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--brand-lime);
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  border: 2px solid var(--neutral-0);
}

.step__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.5rem;
}

.step__body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--neutral-500);
  margin: 0;
}

/* ─── Beneficios (todo lo que tenés en Mi Pedido) ───────────────────────── */

.offer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  text-align: center;
}

.offer__subtitle {
  max-width: 56ch;
  margin: -1.5rem auto 3rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--neutral-500);
}

.offer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  text-align: left;
}

.offer-card {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  padding: 1.75rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 400ms ease-out, transform 200ms ease-out, box-shadow 200ms ease-out;
}

.offer-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.offer-card:nth-child(1) { transition-delay: 0ms; }
.offer-card:nth-child(2) { transition-delay: 60ms; }
.offer-card:nth-child(3) { transition-delay: 120ms; }
.offer-card:nth-child(4) { transition-delay: 180ms; }
.offer-card:nth-child(5) { transition-delay: 240ms; }

.offer-card.is-visible:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.offer-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ECF7EE;
  color: var(--brand-secondary);
  margin-bottom: 1.25rem;
}

.offer-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.5rem;
}

.offer-card__body {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--neutral-500);
  margin: 0;
}

/* ─── Fidelidad (destacado) ─────────────────────────────────────────────── */

.perk {
  max-width: 860px;
  margin: 0 auto 5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #ECF7EE;
  border-radius: 20px;
  padding: 2rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 400ms ease-out, transform 200ms ease-out, box-shadow 200ms ease-out;
}

.perk.is-visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(4, 6, 64, 0.12);
}

.perk.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.perk__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--neutral-0);
  color: var(--brand-secondary);
}

.perk__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.5rem;
}

.perk__body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 0;
}

/* ─── FAQ ───────────────────────────────────────────────────────────────── */

.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.faq__list {
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-bottom: 1px solid var(--neutral-200);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 350ms ease-out, transform 350ms ease-out;
}

.faq__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.faq__item:nth-child(1) { transition-delay: 0ms; }
.faq__item:nth-child(2) { transition-delay: 60ms; }
.faq__item:nth-child(3) { transition-delay: 120ms; }
.faq__item:nth-child(4) { transition-delay: 180ms; }
.faq__item:nth-child(5) { transition-delay: 240ms; }
.faq__item:nth-child(6) { transition-delay: 300ms; }
.faq__item:nth-child(7) { transition-delay: 360ms; }

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  border-radius: 10px;
  text-align: left;
  font-family: 'Sora', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--neutral-900);
  padding: 1.25rem 0.75rem;
  margin: 0 -0.75rem;
  cursor: pointer;
  transition: background-color 150ms ease-out;
}

.faq__question:hover {
  background: var(--neutral-100);
}

.faq__chevron {
  flex: none;
  transition: transform 200ms ease-out;
}

.faq__question[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms ease-out;
}

.faq__answer p {
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--neutral-500);
  margin: 0 0 1.25rem;
}

.faq__item:has(.faq__question[aria-expanded="true"]) .faq__answer {
  grid-template-rows: 1fr;
}

.faq__answer > p {
  min-height: 0;
}

/* ─── CTA de cierre ─────────────────────────────────────────────────────── */

.closing {
  text-align: center;
  padding: 1rem 1.5rem 5rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 350ms ease-out, transform 350ms ease-out;
}

.closing.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.closing__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.5rem;
}

.closing__subtitle {
  font-size: 0.9375rem;
  color: var(--neutral-500);
  margin: 0 0 1.5rem;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */

.footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8125rem;
  color: var(--neutral-500);
  border-top: 1px solid var(--neutral-200);
}

/* ─── Motion — respeta reduced motion ──────────────────────────────────── */

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

  .step,
  .offer-card,
  .perk,
  .faq__item,
  .closing {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero__glow,
  .hero__eyebrow,
  .hero__title,
  .hero__subtitle,
  .hero__visual,
  .hero__scroll-cue,
  .phone,
  .step__icon {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .site-header__nav {
    display: none;
  }

  .site-header__badge {
    height: 50px;
  }

  .site-header__menu-btn {
    display: flex;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 250ms ease-out;
  }

  .mobile-nav.is-open {
    max-height: 260px;
  }

  .mobile-nav a {
    padding: 0.9rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 150ms ease-out;
  }

  .mobile-nav a:hover {
    color: var(--neutral-0);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    /* NO text-align: center acá — cascadea al phone mockup y centra su contenido.
       El centering del hero text lo controla .hero__content directamente. */
  }

  .hero__content {
    text-align: center;
  }

  .hero__title,
  .hero__subtitle {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__visual {
    order: -1;
  }

  .phone {
    /* Mantener mismo ancho que desktop para que el contenido interno (sizes fijos en px)
       renderice idéntico en ambas plataformas. 230px en 375px de viewport = 61% centrado. */
    width: 230px;
  }

  .steps__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .offer__grid {
    grid-template-columns: 1fr;
  }

  .offer__subtitle {
    margin-top: -1rem;
  }

  .perk {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem;
  }
}

@media (max-width: 480px) {
  .download {
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem 1.25rem;
  }

  /* Grid 1fr 1fr → ambos badges exactamente del mismo ancho,
     sin importar la longitud del texto que llevan adentro.
     max-width para que en tablets angostas no queden gigantes. */
  .download__badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    width: 100%;
    max-width: 400px;
  }

  /* Badges más grandes: altura ~72px, texto 18px.
     justify-content: center para alinear el ícono+texto en el
     centro de cada celda del grid (no left-aligned).
     min-width: 0 permite que el grid comprima el badge si hiciera falta.
     flex: initial resetea el `flex: 0 0 180px` del desktop → en mobile
     el grid 1fr 1fr maneja los anchos. */
  .badge {
    justify-content: center;
    padding: 1rem 0.75rem;
    gap: 0.75rem;
    border-radius: 14px;
    min-width: 0;
    flex: initial;
  }

  .badge svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  /* Apple +15% también en mobile (ver nota en desktop). */
  .badge--apple svg {
    width: 32px;
    height: 32px;
  }

  .badge__text {
    font-size: 1.125rem;
  }

  .badge__text small {
    font-size: 0.75rem;
  }
}

/* Pantallas muy angostas (iPhone SE 1a gen, Galaxy Fold cerrado):
   grid de 1 columna → full-width stacked para no apretar texto. */
@media (max-width: 380px) {
  .download__badges {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}
