/* ─────────────────────────────────────────────────────────────────────
   FaenApp · Landing
   Paleta oscura con acento azul oficial de marca.
   ───────────────────────────────────────────────────────────────────── */

:root {
  --bg: #0F1115;
  --surface: #181B22;
  --surface-2: #232730;
  --surface-3: #2E323C;
  --border: #2E323C;
  --border-soft: #232730;

  --text: #E8E4DA;
  --text-soft: #A0A4AC;
  --text-faint: #5E6470;

  --primary: #128BEC;
  --primary-soft: rgba(18, 139, 236, 0.18);
  --primary-strong: #0437B3;
  --primary-glow: rgba(18, 139, 236, 0.35);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --radius-xs: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--primary-strong); }

h1, h2, h3, h4, p { margin: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header / nav ─────────────────────────────────────────────────── */

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 21, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.topnav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

.btn-mini-primary {
  background: var(--primary);
  color: #FFF !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn-mini-primary:hover {
  background: var(--primary-strong);
  color: #FFF !important;
}

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

.hero {
  padding: 48px 0 72px;
  position: relative;
  /* overflow: hidden quitado para que el stack de teléfonos pueda
     sobresalir a la derecha sin ser recortado. El cuerpo ya tiene
     overflow-x: hidden, así que no aparece scroll horizontal. */
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
  filter: blur(80px);
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.badge-marca {
  font-size: 11px;
  letter-spacing: 2.4px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ─── Imágenes de marca ─────────────────────────────────── */
.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}

.hero-app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 8px 32px var(--primary-soft);
}
.hero-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-app-icon {
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.hero-titulo {
  font-size: clamp(44px, 6.5vw, 80px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}
.italica {
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-soft);
  margin-bottom: 32px;
  line-height: 1.5;
  max-width: 520px;
}

.hero-acciones {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-primario {
  background: var(--primary);
  color: #FFF;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s ease, transform 0.06s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 24px var(--primary-glow);
}
.btn-primario:hover {
  background: var(--primary-strong);
  color: #FFF;
  transform: translateY(-1px);
}
.btn-primario:active { transform: translateY(0); }

.btn-grande {
  padding: 16px 28px;
  font-size: 16px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--text);
}

.hero-detalle {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.2px;
}

/* Mockup del teléfono */
.hero-mockup {
  display: flex;
  justify-content: center;
  overflow: visible;
}

/* ─── Stack de 3 teléfonos ───────────────────────────────────────────── */

/* Wrapper con el tamaño del teléfono frontal; los de atrás sobresalen
   a la derecha usando position:absolute. body{overflow-x:hidden}
   evita scrollbar horizontal. */
.phones-stack {
  position: relative;
  width: 280px;
  height: 560px;
  flex-shrink: 0;
  /* Desplaza el conjunto hacia la izquierda para compensar el peso visual
     de los telefonos que sobresalen a la derecha */
  transform: translateX(-70px);
}

.phones-stack .phone {
  position: absolute;
  top: 0;
  left: 0;
}

.phones-stack .phone--front { z-index: 3; }

/* 65 % visible del mid: left = 280 - (280×0.9×0.35) ≈ 192px */
.phones-stack .phone--mid {
  left: 192px;
  top: 20px;
  z-index: 2;
  transform: scale(0.9);
  transform-origin: top left;
  filter: brightness(0.62);
}

/* 65 % visible del back: left = (192 + 280×0.9) - (280×0.8×0.35) ≈ 366px */
.phones-stack .phone--back {
  left: 366px;
  top: 40px;
  z-index: 1;
  transform: scale(0.8);
  transform-origin: top left;
  filter: brightness(0.42);
}
.phone {
  width: 280px;
  height: 560px;
  /* var(--bg) en lugar de var(--surface): el bisel queda mismo color
     que la pantalla, así el gap inferior no se nota visualmente */
  background: var(--bg);
  border-radius: 36px;
  padding: 12px;
  border: 1px solid var(--border);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 0 6px rgba(18, 139, 236, 0.1);
  position: relative;
}
.phone::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: var(--bg);
  border-radius: 14px;
  z-index: 2;
}

.phone-pantalla {
  background: var(--bg);
  height: 100%;
  border-radius: 26px;
  padding: 50px 18px 18px;
  display: flex;
  flex-direction: column;
  /* Necesario para el slideshow */
  position: relative;
  overflow: hidden;
}

/* ─── Slideshow de mockups reales ──────────────────────────────────── */

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  /* 28px extra hacia abajo: el overflow:hidden del phone-pantalla los recorta,
     dejando la barra de gestos de Android fuera del área visible.
     Sin overlay, sin degradé — la imagen simplemente no llega hasta ahí. */
  height: calc(100% + 9px);
  object-fit: contain;
  object-position: top center;
  border-radius: 26px;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.slide-img.slide-activa {
  opacity: 1;
}

.mock-header { display: flex; justify-content: center; }
.mock-pill {
  width: 36px;
  height: 4px;
  background: var(--text-faint);
  border-radius: 2px;
  margin-bottom: 16px;
}
.mock-titulo {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}
.mock-sub {
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.mock-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.mock-fila {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mock-bola {
  width: 30px;
  height: 30px;
  background: var(--primary-soft);
  border-radius: 10px;
}
.mock-lineas { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mock-linea {
  height: 8px;
  background: var(--surface-3);
  border-radius: 2px;
  width: 70%;
}
.mock-linea-corta {
  height: 6px;
  background: var(--surface-2);
  border-radius: 2px;
  width: 40%;
}
.mock-monto {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.mock-cta {
  margin-top: 12px;
  background: var(--primary);
  color: #FFF;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

/* ─── Secciones genéricas ──────────────────────────────────────────── */

.seccion {
  padding: 90px 0;
  position: relative;
}
.seccion-alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

.seccion-etiqueta {
  font-size: 11px;
  letter-spacing: 2.4px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.seccion-titulo {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
  max-width: 720px;
}

.seccion-sub {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 50px;
  max-width: 620px;
  line-height: 1.55;
}

/* ─── Features grid ────────────────────────────────────────────────── */

.grid-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.feature:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}
.feature-icono {
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

/* ─── Pasos ────────────────────────────────────────────────────────── */

.pasos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.paso {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.paso-numero {
  font-size: 56px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 14px;
  font-style: italic;
}
.paso h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.paso p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ─── Proximamente ─────────────────────────────────────────────────── */

.grid-proximo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.proximo {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.proximo:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.proximo-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 9.5px;
  letter-spacing: 1.4px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.proximo-icono {
  width: 52px;
  height: 52px;
  background: var(--surface-2);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px dashed var(--primary);
}

.proximo h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}
.proximo p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

/* ─── Pricing ──────────────────────────────────────────────────────── */

.grid-planes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 24px;
  align-items: start;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.plan:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.plan-destacado {
  border-color: var(--primary);
  box-shadow: 0 24px 64px var(--primary-glow);
  transform: translateY(-8px);
}
.plan-destacado:hover {
  transform: translateY(-12px);
}

.plan-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #FFF;
  font-size: 10.5px;
  letter-spacing: 1.6px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px var(--primary-glow);
  white-space: nowrap;
}
.plan-ribbon-secundario {
  background: var(--surface-3);
  color: var(--text-soft);
  box-shadow: none;
}

.plan-tag {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
  margin-top: 4px;
}

.plan-precio {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  margin-bottom: 4px;
}
.plan-moneda {
  font-size: 22px;
  color: var(--text-soft);
  font-weight: 600;
  margin-top: 8px;
}
.plan-numero {
  font-size: 50px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1.5px;
  line-height: 1;
}
.plan-periodo-txt {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.plan-detalle {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 22px;
  min-height: 36px;
}

.plan-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  text-align: left;
}
.plan-lista li {
  padding: 9px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 13.5px;
  color: var(--text);
  position: relative;
  padding-left: 24px;
  line-height: 1.45;
}
.plan-lista li::before {
  content: '✓';
  position: absolute;
  left: 4px;
  top: 9px;
  color: var(--primary);
  font-weight: 700;
}
.plan-lista li:first-child { border-top: none; }

.btn-plan {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-plan:hover {
  background: var(--primary);
  color: #FFF;
}

.btn-plan-destacado {
  background: var(--primary);
  color: #FFF;
  box-shadow: 0 8px 24px var(--primary-glow);
}
.btn-plan-destacado:hover {
  background: var(--primary-strong);
  color: #FFF;
}

.plan-fineprint {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  font-style: italic;
  max-width: 540px;
  margin: 20px auto 0;
  line-height: 1.5;
}

/* ─── Precio con ahorro (tachado + total) ──────────────────────────── */

.plan-ahorro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12.5px;
}
.precio-tachado {
  text-decoration: line-through;
  color: var(--text-faint);
  font-weight: 500;
}
.precio-total {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ─── Icono en pasos ───────────────────────────────────────────────── */

.paso-icono-n {
  width: 44px;
  height: 44px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

/* ─── Footer links con icono ───────────────────────────────────────── */

.footer-link-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ─── CTA descarga grande ──────────────────────────────────────────── */

.seccion-cta {
  background:
    radial-gradient(ellipse at center, var(--primary-soft) 0%, transparent 65%),
    var(--bg);
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.cta-titulo {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 12px;
}
.cta-sub {
  font-size: 18px;
  color: var(--text-soft);
  margin-bottom: 30px;
}
.btn-descarga {
  font-size: 17px;
  padding: 18px 36px;
}
.cta-aviso {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-soft);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.cta-aviso strong { color: var(--text); }

.cta-version-wrap {
  margin-top: 12px;
  margin-bottom: 0;
  min-height: 22px;
}

.cta-version-badge {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Descarga secundaria para empleados */
.cta-empleado {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-empleado-texto {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 14px;
}
.cta-empleado-texto strong { color: var(--text); }
.btn-descarga-empleado {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}
.btn-descarga-empleado .cta-version-badge {
  margin-left: 2px;
}
@media (max-width: 600px) {
  .btn-descarga-empleado {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
  }
}

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

.footer {
  background: var(--surface);
  padding: 50px 0 30px;
  border-top: 1px solid var(--border-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-sub {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 340px;
}
.footer-tag {
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.footer p, .footer a {
  font-size: 14px;
  color: var(--text-soft);
}
.footer a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text-faint);
}

/* ─── Badges "Próximamente" en hero ───────────────────────────────── */

.hero-stores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  margin-bottom: 12px;
}

.store-badge-pronto {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  opacity: 0.8;
}

.badge-pronto-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ─── Stores en CTA descarga ──────────────────────────────────────── */

.cta-stores-pronto {
  margin-top: 38px;
}

.cta-stores-label {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-stores-fila {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-card-pronto {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--text-faint);
  padding: 14px 22px;
  border-radius: 14px;
  cursor: default;
  opacity: 0.7;
  min-width: 190px;
  text-align: left;
}

.store-card-pronto > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.store-card-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
}

.store-card-nombre {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-soft);
}

/* ─── Stores en footer ─────────────────────────────────────────────── */

.footer-store-pronto {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-faint) !important;
  font-size: 13px !important;
  font-style: italic;
  margin-top: 6px;
  opacity: 0.75;
}

/* ─── Stats: contador de negocios ─────────────────────────────────── */

.seccion-stats {
  padding: 60px 0;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

/* Glow izquierda que empuja hacia el CTA */
.seccion-stats::before {
  content: '';
  position: absolute;
  left: -80px; top: 50%;
  transform: translateY(-50%);
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(18,139,236,0.13) 0%, transparent 60%);
  filter: blur(48px);
  pointer-events: none;
}

/* Grid: número | sep | CTA */
.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 52px;
  align-items: center;
}

/* ── Columna izquierda: número ── */
.stat-izq { display: flex; flex-direction: column; gap: 0; }

.stat-en-vivo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.28);
  color: #10B981;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 10px;
  width: fit-content;
}

.stat-live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: #10B981;
  border-radius: 50%;
  flex-shrink: 0;
  animation: stat-pulse 2s ease-in-out infinite;
}

@keyframes stat-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(16,185,129,0.55); }
  65%  { box-shadow: 0 0 0 9px rgba(16,185,129,0);    }
  100% { box-shadow: 0 0 0 0   rgba(16,185,129,0);    }
}

.stat-numero {
  display: block;
  font-size: clamp(88px, 13vw, 148px);
  font-weight: 800;
  font-style: italic;
  color: var(--primary);
  letter-spacing: -5px;
  line-height: 0.88;
  margin-bottom: 14px;
  text-shadow: 0 0 80px rgba(18,139,236,0.30);
}

.stat-desc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-soft);
  font-weight: 500;
  margin: 0;
}

.stat-icono-inline {
  width: 28px; height: 28px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Separador vertical ── */
.stat-sep {
  width: 1px;
  height: 150px;
  background: var(--border-soft);
  align-self: center;
}

/* ── Columna derecha: CTA ── */
.stat-der {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stat-cta-titulo {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.06;
  margin-bottom: 22px;
  color: var(--text);
}

.stat-cta-body {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 360px;
}

.stat-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

/* ─── Animaciones ──────────────────────────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1100px) {
  .grid-features { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .stats-grid { grid-template-columns: 1fr; gap: 36px; }
  .stat-sep { display: none; }
  .stat-izq { align-items: center; text-align: center; }
  .stat-desc { justify-content: center; }
  .stat-der { align-items: center; text-align: center; }
  .stat-cta-body { max-width: 100%; }
  .stat-cta-titulo { text-align: center; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-acciones { justify-content: center; }
  .hero-stores { justify-content: center; }
  .grid-features { grid-template-columns: repeat(2, 1fr); }
  .grid-proximo { grid-template-columns: 1fr; }
  .grid-planes { grid-template-columns: 1fr; gap: 30px; }
  .plan-destacado { transform: translateY(0); }
  .plan-destacado:hover { transform: translateY(-4px); }
  .pasos { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .hero { padding: 50px 0 70px; }
  .seccion { padding: 60px 0; }
  .grid-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .phone { width: 240px; height: 480px; }
  .phone-pantalla { padding: 42px 14px 14px; }

  /* Stack de 3 teléfonos en móvil: se escala al 66 % para que quepan
     los 3 en pantalla, con las posiciones recalculadas para el phone de 240px
     manteniendo la regla del 65 % visible por teléfono */
  .phones-stack {
    width: 240px;
    height: 480px;
    /* translateX(-47px) compensa que el centro visual del stack (166px)
       esta a la derecha del centro declarado del elemento (120px):
       la diferencia es 46px → se desplaza ese valor para centrar
       el conjunto visualmente en el viewport */
    transform: translateX(-47px) scale(0.66);
    transform-origin: top left;
    /* Compensa el espacio vacío que deja scale() en el flujo del documento */
    margin-bottom: -163px;
  }
  .phones-stack .phone--mid {
    left: 164px;
    top: 17px;
  }
  .phones-stack .phone--back {
    left: 313px;
    top: 34px;
  }
  .mock-titulo { font-size: 30px; }
  .plan { padding: 28px 22px; }
  .plan-numero { font-size: 44px; }
  .stat-numero { letter-spacing: -4px; }
  .cta-stores-fila { flex-direction: column; align-items: center; }
  .store-card-pronto { width: 100%; max-width: 280px; justify-content: center; }
}
