/* Páginas de descarga (motaxi.pe/pasajero/ y /conductor/).
   Livianas a propósito: llegan desde un anuncio, casi siempre con datos
   móviles, y cada segundo de espera es gente que se va antes de ver el botón.
   Sin fuentes externas, sin librerías, sin el SDK de Firebase. */

:root {
  --amarillo: #FFD600;
  --amarillo-suave: #FFF4B3;
  --negro: #121212;
  --tinta: #1E1E1E;
  --gris: #5C5C6E;
  --linea: #E4E4EC;
  --suave: #F5F5F7;
  --naranja: #FF6B00;
  --verde: #1FA855;
  --radio: 16px;
  --sombra: 0 10px 30px rgba(18, 18, 18, .12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--tinta);
  background: #fff;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.envoltura { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── Qué se ve en cada teléfono ──────────────────────────────────────────
   Sin JS (o hasta que carga) se muestra lo de Android, que es casi todo el
   tráfico y la versión que sirve sin saber nada del aparato. */
.solo-ios, .solo-escritorio { display: none !important; }
.es-ios .solo-ios, .es-escritorio .solo-escritorio { display: block !important; }
.es-ios .solo-android, .es-escritorio .solo-android { display: none !important; }
.es-escritorio .no-escritorio { display: none !important; }

/* ── Cabecera ─────────────────────────────────────────────────────────── */
.cabecera { background: var(--amarillo); }
.cabecera .envoltura { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.marca { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .5px; text-decoration: none; color: var(--negro); }
.marca img { width: 36px; height: 36px; border-radius: 8px; }
.cabecera .otro { font-size: 14px; font-weight: 600; color: var(--negro); text-decoration: underline; text-underline-offset: 3px; }

/* ── Portada ──────────────────────────────────────────────────────────── */
.portada { background: var(--amarillo); padding: 20px 0 40px; overflow: hidden; }
.portada .envoltura { display: grid; gap: 28px; align-items: center; }
.portada h1 { margin: 0 0 12px; font-size: clamp(32px, 8.5vw, 52px); line-height: 1.05; font-weight: 900; color: var(--negro); letter-spacing: -.5px; }
.portada .bajada { margin: 0 0 18px; font-size: 18px; color: #2b2b2b; max-width: 34ch; }
.premio {
  display: inline-block;
  background: var(--negro); color: var(--amarillo);
  padding: 10px 18px; border-radius: 22px;
  font-weight: 800; font-size: 16px; line-height: 1.35; margin-bottom: 18px;
}
.premio small { color: #fff; font-weight: 500; font-size: 13px; margin-left: 6px; white-space: nowrap; }

.acciones { display: grid; gap: 12px; max-width: 380px; }
.boton {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 14px 22px; border-radius: 14px;
  font-size: 18px; font-weight: 800; text-decoration: none; text-align: center;
  border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.boton:active { transform: scale(.98); }
.boton-principal { background: var(--negro); color: var(--amarillo); box-shadow: var(--sombra); }
.boton-principal:hover { box-shadow: 0 14px 34px rgba(18, 18, 18, .22); }
.boton-whatsapp { background: var(--verde); color: #fff; box-shadow: var(--sombra); }
.boton-claro { background: #fff; color: var(--negro); border: 2px solid var(--negro); min-height: 52px; font-size: 16px; }
.boton svg { width: 24px; height: 24px; flex: none; }
.sello-play { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #2b2b2b; text-decoration: none; }
.sello-play img { width: 150px; height: auto; }
.nota { margin: 4px 0 0; font-size: 14px; color: #3b3b3b; max-width: 40ch; }
.letra-chica { margin: 14px 0 0; font-size: 12.5px; color: #4a4a4a; max-width: 46ch; }

.qr { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; background: #fff; border-radius: var(--radio); padding: 14px; max-width: 420px; box-shadow: var(--sombra); }
.qr [data-qr] { width: 132px; height: 132px; background: var(--suave); border-radius: 8px; }
.qr [data-qr] svg { width: 100%; height: 100%; }
.qr p { margin: 0; font-size: 15px; }
.qr strong { display: block; font-size: 17px; margin-bottom: 4px; }

.foto-portada { justify-self: center; width: 100%; max-width: 460px; border-radius: 22px; overflow: hidden; box-shadow: var(--sombra); background: #e9d14a; }
.foto-portada img { width: 100%; height: auto; }

/* ── Teléfono dibujado (pasajero) ─────────────────────────────────────── */
.telefono {
  justify-self: center; width: 270px; padding: 12px; border-radius: 38px;
  background: var(--negro); box-shadow: var(--sombra);
}
.pantalla { position: relative; height: 480px; border-radius: 28px; overflow: hidden; background: #EAF0E6; }
.mapa {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 120px 120px,
    linear-gradient(0deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 120px 120px,
    linear-gradient(135deg, #DCE8D3 25%, #EAF0E6 25%) 0 0 / 60px 60px;
}
.ruta { position: absolute; left: 60px; top: 70px; width: 120px; height: 120px; border: 4px dashed var(--naranja); border-left: 0; border-bottom: 0; border-radius: 0 28px 0 0; }
.pin { position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.pin.a { left: 51px; top: 61px; background: var(--negro); }
.pin.b { left: 171px; top: 181px; background: var(--naranja); }
.hoja { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 22px 22px 0 0; padding: 14px 14px 16px; box-shadow: 0 -6px 20px rgba(0,0,0,.12); }
.hoja .titulo { font-size: 13px; color: var(--gris); margin: 0 0 6px; }
.hoja .precio { display: flex; justify-content: space-between; align-items: center; background: var(--amarillo-suave); border-radius: 12px; padding: 8px 12px; font-weight: 800; margin-bottom: 10px; }
.oferta { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--linea); font-size: 13px; }
.oferta .cara { width: 34px; height: 34px; border-radius: 50%; background: var(--amarillo); display: grid; place-items: center; font-weight: 800; }
.oferta b { display: block; font-size: 14px; }
.oferta .monto { font-weight: 800; font-size: 15px; }
.oferta .elegir { display: inline-block; margin-top: 2px; background: var(--negro); color: var(--amarillo); border-radius: 8px; padding: 2px 8px; font-size: 11px; font-weight: 800; }

/* ── Secciones ────────────────────────────────────────────────────────── */
.seccion { padding: 48px 0; }
.seccion.gris { background: var(--suave); }
.seccion h2 { margin: 0 0 8px; font-size: clamp(26px, 6vw, 36px); line-height: 1.15; font-weight: 900; color: var(--negro); }
.seccion .intro { margin: 0 0 26px; color: var(--gris); font-size: 17px; max-width: 52ch; }

.pasos { display: grid; gap: 14px; counter-reset: paso; padding: 0; margin: 0; list-style: none; }
.pasos li { position: relative; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 18px 18px 18px 70px; }
.pasos li::before {
  counter-increment: paso; content: counter(paso);
  position: absolute; left: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--amarillo); color: var(--negro); font-weight: 900; display: grid; place-items: center;
}
.pasos b { display: block; font-size: 17px; margin-bottom: 2px; color: var(--negro); }
.pasos span { color: var(--gris); }

.ventajas { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.ventajas li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; background: #fff; border-radius: var(--radio); padding: 16px; border: 1px solid var(--linea); }
.ventajas .icono { width: 48px; height: 48px; border-radius: 12px; background: var(--amarillo); display: grid; place-items: center; }
.ventajas .icono svg { width: 26px; height: 26px; }
.ventajas b { display: block; font-size: 17px; color: var(--negro); }
.ventajas span { color: var(--gris); }

.requisitos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; margin: 0 0 8px; list-style: none; }
.requisitos li { background: #fff; border: 2px solid var(--negro); border-radius: 12px; padding: 12px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.requisitos li::before { content: "✓"; color: var(--verde); font-weight: 900; }

.preguntas details { border-bottom: 1px solid var(--linea); padding: 14px 0; }
.preguntas summary { cursor: pointer; font-weight: 700; font-size: 17px; color: var(--negro); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--gris); }
.preguntas details[open] summary::after { content: "–"; }
.preguntas p { margin: 10px 0 0; color: #3b3b3b; }

.cierre { background: var(--negro); color: #fff; padding: 48px 0; text-align: center; }
.cierre h2 { color: var(--amarillo); margin: 0 0 10px; font-size: clamp(26px, 6vw, 36px); font-weight: 900; }
.cierre p { margin: 0 auto 22px; max-width: 44ch; color: #d9d9d9; }
.cierre .acciones { margin: 0 auto; }
.cierre .boton-principal { background: var(--amarillo); color: var(--negro); }
.cierre .sello-play { justify-content: center; color: #d9d9d9; }

.pie { padding: 26px 0 110px; font-size: 13px; color: var(--gris); }
.pie nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.pie a { color: var(--gris); }

/* ── Barra fija (celular) ─────────────────────────────────────────────── */
.barra-fija {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--linea);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
  transform: translateY(110%); transition: transform .25s ease;
}
.barra-fija.visible { transform: none; }
.barra-fija .boton { min-height: 52px; font-size: 17px; width: 100%; }
.es-escritorio .barra-fija { display: none; }

@media (min-width: 900px) {
  .portada { padding: 48px 0 64px; }
  .portada .envoltura { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .pasos { grid-template-columns: repeat(3, 1fr); }
  .ventajas { grid-template-columns: repeat(2, 1fr); }
  .requisitos { grid-template-columns: repeat(4, 1fr); }
  .dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .barra-fija, .boton { transition: none; }
}
