/* Tipografía propia, servida desde rewalo.app.
   Antes venía de fonts.googleapis.com: dos orígenes de terceros más en la
   ruta crítica (DNS + TLS + CSS + fuente) y dos permisos más en la CSP, en
   una página que carga alguien de pie en el mostrador de una tienda.
   Se generan con Web/vendor.sh a partir de la fuente de la app. */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/HankenGrotesk-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/HankenGrotesk-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/HankenGrotesk-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/HankenGrotesk-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/HankenGrotesk-800.woff2') format('woff2');
}

/* Design system "Confianza Clásica" — landing y onboarding de Rewalo. */

:root {
  /* Marca */
  --navy: #0f2a4a;
  --navy-dark: #00152f;
  --navy-soft: #1c3d63;
  --gold: #f2c94c;
  --gold-dark: #cda72c;
  --gold-soft: #fdf3d4;
  --tech-blue: #0060ac;
  --light-blue: #68abff;

  /* Superficies */
  --surface: #f9fafc;
  --white: #ffffff;
  --surface-low: #f2f4f8;
  --on-surface: #10151c;
  --on-surface-variant: #464e5c;   /* 7.2:1 sobre --surface */
  --outline: #6b7280;              /* 4.9:1 sobre --surface */
  --card-stroke: #e6eaf0;
  --error: #ba1a1a;
  --success: #17794a;

  /* Forma */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Profundidad: toda sombra lleva desplazamiento y desenfoque suave.
     Un halo de color sin offset es decoración, no profundidad. */
  --shadow-xs: 0 1px 2px rgba(16, 32, 56, 0.06);
  --shadow-sm: 0 1px 2px rgba(16, 32, 56, 0.05), 0 2px 8px rgba(16, 32, 56, 0.04);
  --shadow-md: 0 2px 4px rgba(16, 32, 56, 0.04), 0 8px 24px rgba(16, 32, 56, 0.07);
  --shadow-lg: 0 4px 8px rgba(16, 32, 56, 0.05), 0 18px 44px rgba(16, 32, 56, 0.11);
  --shadow-xl: 0 8px 16px rgba(16, 32, 56, 0.06), 0 32px 72px rgba(16, 32, 56, 0.16);

  /* Movimiento. Las curvas nativas de CSS son demasiado débiles: estas son
     variantes fuertes. Nunca ease-in en UI (arranca lento y se siente pesado). */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 140ms;   /* respuesta al pulsar */
  --dur-fast: 180ms;    /* hover, color */
  --dur: 240ms;         /* despliegues */
  --dur-enter: 420ms;   /* entradas de sección (explicativas) */

  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  font-size: 16px;
  line-height: 1.55;
  /* La fuente cambia de forma con el tamaño si el archivo lo permite. */
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--tech-blue);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--navy); text-decoration: underline; }

/* ─── Superficies del navegador ───────────────────────────────────────────
   Selección, cursor, barra de scroll y anillo de foco vienen con estilos por
   defecto que no pertenecen a ningún sistema de diseño. Los tematizamos. */
::selection { background: var(--gold); color: var(--navy); }
:root { caret-color: var(--tech-blue); accent-color: var(--tech-blue); }

* { scrollbar-width: thin; scrollbar-color: #c7cedb transparent; }
*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: #c7cedb;
  border-radius: var(--radius-pill);
  border: 3px solid var(--surface);
}
*::-webkit-scrollbar-thumb:hover { background: #aab4c6; }

:focus-visible {
  outline: 2px solid var(--tech-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Un solo momento de movimiento al entrar ─────────────────────────────
   No una entrada idéntica repetida en cada sección: solo el contenido
   que se beneficia, con retraso escalonado desde un estado ya legible. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-enter) var(--ease-out),
    transform var(--dur-enter) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 250, 252, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--card-stroke);
  box-shadow: var(--shadow-xs);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--tech-blue);
}
.brand:hover { color: var(--tech-blue); text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  display: grid; place-items: center;
  color: var(--navy);
  font-weight: 800; font-size: 15px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-8deg); }

.site-nav { display: flex; gap: 4px; margin-left: 24px; }
.site-nav a {
  color: var(--on-surface-variant);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.site-nav a:hover {
  background: var(--surface-low);
  color: var(--navy);
  text-decoration: none;
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ─── Botones ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--dur-press) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
/* La escala al pulsar confirma que la interfaz escuchó al usuario. */
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover {
  background: var(--navy-soft); color: #fff;
  box-shadow: var(--shadow-lg); text-decoration: none;
}

.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--surface-low); color: var(--navy); text-decoration: none; }

.btn-outline {
  background: var(--white);
  color: var(--tech-blue);
  border: 1px solid var(--card-stroke);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  border-color: var(--light-blue);
  color: var(--tech-blue);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn-gold { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-gold:hover {
  background: #ffd75e; color: var(--navy);
  box-shadow: var(--shadow-lg); text-decoration: none;
}

.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: var(--radius); }

/* ─── Secciones ──────────────────────────────────────────────────────────── */
section { padding: 88px 0; }

/* Más aire arriba del titular que abajo. */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  color: var(--navy);
  font-weight: 800;
  text-wrap: balance;
}
.section-head p {
  font-size: 17.5px;
  color: var(--on-surface-variant);
  margin: 0;
  text-wrap: pretty;
}

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

/* ─── Marca en el header: Walo, no una inicial ─────────────────────────────── */
.brand-walo {
  width: 34px; height: auto;
  transition: transform var(--dur) var(--ease-out);
}
.brand:hover .brand-walo { transform: rotate(-6deg) translateY(-1px); }

/* Botón claro sobre fondo navy (precios). */
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  text-decoration: none;
}

/* ─── Subrayado marcador: la frase que hay que leer ──────────────────────────
   Un solo acento (el gold) usado de la misma forma en toda la página. */
mark {
  background: linear-gradient(transparent 58%, var(--gold) 58%, var(--gold) 92%, transparent 92%);
  color: inherit;
  padding: 0 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
h1 mark, h2 mark {
  background: linear-gradient(transparent 50%, var(--gold) 50%, var(--gold) 95%, transparent 95%);
}
/* Sobre navy el marcador no funciona: ahí es una pegatina entera. */
.pricing h2 mark {
  background: var(--gold);
  color: var(--navy);
  padding: 0 0.18em;
  border-radius: 10px;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 64px 0 72px; isolation: isolate; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  z-index: -1;
  background:
    radial-gradient(52% 50% at 80% 30%, rgba(242, 201, 76, 0.18), transparent 70%),
    radial-gradient(44% 44% at 8% 8%, rgba(104, 171, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.7vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--on-surface-variant);
  margin: 0 0 28px;
  max-width: 54ch;
  text-wrap: pretty;
}
.hero .lead strong { color: var(--on-surface); font-weight: 700; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-checks {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 14.5px; color: var(--on-surface-variant); font-weight: 500;
}
.hero-checks li { display: inline-flex; align-items: center; gap: 7px; }
.hero-checks svg { width: 16px; height: 16px; color: var(--success); }

/* La escena del hero: teléfono con la tarjeta, etiquetas y Walo. */
.hero-scene {
  position: relative;
  height: 560px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone {
  position: relative;
  width: 272px;
  height: 548px;
  border-radius: 44px;
  background: var(--navy-dark);
  padding: 12px;
  box-shadow: var(--shadow-xl), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: rotate(-3deg);
}
.phone::before {           /* isla dinámica */
  content: '';
  position: absolute;
  top: 24px; left: 50%;
  width: 84px; height: 24px;
  transform: translateX(-50%);
  background: var(--navy-dark);
  border-radius: 14px;
  z-index: 2;
}
.phone-screen {
  height: 100%;
  border-radius: 34px;
  background: var(--surface-low);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-status {
  height: 64px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 6px;
  font-size: 13px; font-weight: 600; color: var(--on-surface-variant);
}
.pass {
  margin: 8px 12px 0;
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-md);
}
.pass-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pass-logo {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.pass-title { font-weight: 700; font-size: 14.5px; letter-spacing: -0.015em; }
.pass-sub { font-size: 12px; color: rgba(255, 255, 255, 0.66); }
.pass-count {
  margin-left: auto; font-size: 12px; color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}
.pass-count b { color: var(--gold); font-size: 16px; }
.stamp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.stamp {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: grid; place-items: center;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.stamp svg { width: 14px; height: 14px; color: var(--navy); opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
.stamp.filled { background: var(--gold); border-color: var(--gold); }
.stamp.filled svg { opacity: 1; }
.stamp.pop { animation: pop 380ms var(--ease-out); }
.stamp-grid.resetting .stamp, .stamp-grid.resetting .stamp svg { transition: none; }
@keyframes pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
.pass-reward {
  margin-top: 14px;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.8);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}
.pass-qr {
  margin-top: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  display: flex; justify-content: center;
}
.pass-qr svg { width: 88px; height: 88px; }

.sticker {
  position: absolute;
  z-index: 3;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.sticker-a {
  top: 34px; left: 0;
  background: var(--gold); color: var(--navy);
  transform: rotate(-5deg);
}
.sticker-b {
  right: 0; bottom: 96px;
  background: var(--white); color: var(--navy);
  border: 1px solid var(--card-stroke);
  transform: rotate(4deg);
}

/* Walo saluda con la tira de sprites de Marketing/Walo (32 fotogramas a
   24 fps). Las medidas salen de Web/src/walo/saludar-tira.txt. */
.walo-saludar {
  position: absolute;
  left: 6px; bottom: 6px;
  z-index: 4;
  width: 148px; height: 176px;
  background: url('/walo/saludar-tira.png') no-repeat 0 0;
  background-size: auto 176px;
  animation: walo-saludar 1.333s steps(32) infinite;
  filter: drop-shadow(0 12px 18px rgba(16, 32, 56, 0.18));
}
@keyframes walo-saludar { to { background-position: -4736px 0; } }

/* ─── Para quién es ──────────────────────────────────────────────────────── */
.who { padding: 0 0 8px; }
.who-title {
  text-align: center; margin: 0 0 22px;
  font-weight: 700; font-size: 17px; color: var(--navy); letter-spacing: -0.015em;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 10px; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--card-stroke);
  font-weight: 600; font-size: 14.5px; color: var(--on-surface-variant);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Cómo funciona: cinco pasos apilados, con su visual ─────────────────── */
.how { background: #e9eff7; }
.how-list { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; display: grid; gap: 16px; }
.how-step {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 22px 30px 22px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 42, 74, 0.06);
}
.how-visual {
  height: 156px;
  border-radius: var(--radius-lg);
  background: var(--surface-low);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.how-visual-walo { background: var(--gold-soft); }
.how-visual-walo img { height: 150px; width: auto; margin-top: 10px; }
.how-visual-qr { color: var(--navy); gap: 12px; flex-direction: column; }
.wallet-mini {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.wallet-mini svg { width: 12px; height: 12px; }
.how-num {
  display: block;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em;
  color: var(--gold-dark);
  margin-bottom: 6px;
}
.how-text h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.025em; color: var(--navy); }
.how-text p { margin: 0; color: var(--on-surface-variant); font-size: 16px; }
.how-text mark { font-weight: 700; color: var(--on-surface); }
.how-cta { text-align: center; margin-top: 44px; }
.how-cta p { font-size: 18px; font-weight: 600; color: var(--navy); margin: 0 0 16px; }

/* Tarjeta pequeña, la misma en el paso 01 y en el bento. */
.mini-pass {
  width: 150px;
  background: var(--navy); color: #fff;
  border-radius: 14px; padding: 12px;
  box-shadow: var(--shadow-md);
  transform: rotate(-4deg);
}
.mini-pass-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.mini-pass-head span { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); display: inline-block; color: var(--navy); font-size: 10px; text-align: center; line-height: 18px; }
.mini-stamps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.mini-stamps i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.35); display: block; }
.mini-stamps i.on { background: var(--gold); border-color: var(--gold); }
.mini-pass-lg { width: 220px; padding: 16px; transform: rotate(3deg); }
.mini-pass-lg .mini-pass-head { font-size: 14px; }
.mini-pass-lg .mini-stamps { grid-template-columns: repeat(4, 1fr); gap: 8px; }

/* Notificación en pantalla de bloqueo. */
.push-bubble {
  width: 190px;
  background: var(--white);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow-md);
  display: grid; gap: 3px;
  font-size: 12px; color: var(--on-surface-variant);
  transform: rotate(-2deg);
}
.push-app { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--navy); }
.push-app i { width: 14px; height: 14px; border-radius: 4px; background: var(--gold); display: inline-block; }
.push-bubble strong { color: var(--on-surface); font-size: 13px; }

/* ─── Producto: bento con ritmo (1 ancha + 1, 3, 3) ──────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bento-cell {
  position: relative;
  background: var(--white);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-xl);
  padding: 26px;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.bento-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bento-cell h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.02em; color: var(--navy); }
.bento-cell p { margin: 0; color: var(--on-surface-variant); font-size: 15px; }
.bento-icon { width: 26px; height: 26px; color: var(--tech-blue); margin-bottom: 16px; }
.bento-wide {
  grid-column: span 2;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 34px;
}
.bento-navy { background: linear-gradient(150deg, #16355a, var(--navy) 55%, var(--navy-dark)); border-color: transparent; color: #fff; }
.bento-navy h3 { color: #fff; font-size: 24px; }
.bento-navy p { color: rgba(255, 255, 255, 0.78); font-size: 16px; }
.wallet-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.wallet-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13.5px; font-weight: 600; color: #fff;
}
.wallet-chip svg { width: 15px; height: 15px; }
.bento-gold { background: var(--gold-soft); border-color: #f3e1a3; padding-right: 120px; }
.bento-walo { position: absolute; right: 8px; bottom: -8px; height: 140px; width: auto; }
.bento-soft { background: #eef4fb; border-color: #d9e6f5; }

/* ─── Precios sobre navy ─────────────────────────────────────────────────── */
.pricing { background: var(--navy-dark); color: #fff; }
.pricing h2 { color: #fff; }
.pricing .section-head p { color: rgba(255, 255, 255, 0.78); }
.pricing .billing-toggle { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); }
.pricing .billing-toggle::before { background: var(--gold); }
.pricing .billing-toggle button { color: rgba(255, 255, 255, 0.72); }
.pricing .billing-toggle button.active { color: var(--navy); }

.price-card {
  position: relative;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.price-card:hover { border-color: rgba(255, 255, 255, 0.28); }
.price-card.featured {
  background: var(--white);
  color: var(--on-surface);
  border-color: var(--gold);
  box-shadow: var(--shadow-xl);
  transform: translateY(-10px);
}
.price-kicker {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.featured .price-kicker { color: var(--gold-dark); }
.price-card h3 { margin: 0 0 10px; font-size: 26px; letter-spacing: -0.03em; font-weight: 800; }
.featured h3 { color: var(--navy); }
.badge-popular {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy);
  padding: 5px 15px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 800;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price {
  font-size: 42px; font-weight: 800; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  transition: opacity var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out);
}
.featured .price { color: var(--navy); }
.price.is-changing { opacity: 0.4; filter: blur(3px); }
.price-period { font-size: 14.5px; font-weight: 500; opacity: 0.7; }
.price-day {
  display: inline-block; margin-top: 12px;
  padding: 7px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px; color: rgba(255, 255, 255, 0.85);
}
.price-day b { display: block; font-weight: 700; color: #fff; }
.featured .price-day { background: var(--gold-soft); color: var(--on-surface-variant); }
.featured .price-day b { color: var(--navy); }

.feature-list { list-style: none; padding: 0; margin: 22px 0 24px; display: grid; gap: 11px; }
.feature-list li {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px;
  font-size: 15px; color: rgba(255, 255, 255, 0.86);
  align-items: start;
}
.featured .feature-list li { color: var(--on-surface-variant); }
.feature-list svg { width: 15px; height: 15px; margin-top: 4px; }
.feature-list .yes svg { color: var(--gold); }
.featured .feature-list .yes svg { color: var(--success); }
/* Lo no incluido se atenúa, pero sigue legible (AA). */
.feature-list .no { color: rgba(255, 255, 255, 0.55); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.3); }
.feature-list .no svg { color: rgba(255, 255, 255, 0.4); }
.price-card .btn { margin-top: auto; }
.pricing-note { text-align: center; margin: 28px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.62); }

/* ─── CTA final y footer ─────────────────────────────────────────────────── */
.final { padding-bottom: 40px; }
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #16355a, var(--navy) 55%, var(--navy-dark));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center;
  box-shadow: var(--shadow-xl);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 340px;
  background: radial-gradient(50% 60% at 50% 50%, rgba(242, 201, 76, 0.2), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-walo { height: 180px; width: auto; justify-self: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.78); font-size: 17.5px; margin: 0 0 24px; max-width: 52ch; }

.site-footer {
  border-top: 1px solid var(--card-stroke);
  padding: 48px 0 40px;
  color: var(--on-surface-variant);
  font-size: 14.5px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p { margin: 12px 0 0; max-width: 34ch; }
.footer-copy { color: var(--outline); font-size: 13.5px; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 {
  margin: 0 0 4px; font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy);
}
.footer-col a { color: var(--on-surface-variant); }
.footer-col a:hover { color: var(--navy); }

.alt-bg { background: var(--white); }

/* ─── Selector mensual/anual ─────────────────────────────────────────────── */
.toggle-wrap { display: flex; justify-content: center; }
.billing-toggle {
  position: relative;
  display: inline-flex;
  background: var(--surface-low);
  border-radius: var(--radius-pill);
  padding: 5px;
  margin: 0 auto 44px;
  border: 1px solid var(--card-stroke);
}
.billing-toggle::before {
  content: '';
  position: absolute;
  top: 5px; left: 5px;
  width: var(--pill-w, 96px);
  height: calc(100% - 10px);
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out),
              width var(--dur) var(--ease-out);
  transform: translateX(var(--pill-x, 0));
}
.billing-toggle button {
  position: relative;
  z-index: 1;
  border: none; background: transparent;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 9px 22px; border-radius: var(--radius-pill);
  cursor: pointer; color: var(--on-surface-variant);
  transition: color var(--dur-fast) var(--ease-out);
}
.billing-toggle button.active { color: var(--navy); }


/* ─── FAQ ────────────────────────────────────────────────────────────────── */
.faq { max-width: 740px; margin: 0 auto; display: grid; gap: 12px; }
details.faq-item {
  background: var(--white);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
details.faq-item[open] { box-shadow: var(--shadow-md); border-color: #d5deea; }
details.faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--navy); font-size: 17px;
  letter-spacing: -0.02em;
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary svg {
  width: 18px; height: 18px; flex-shrink: 0; color: var(--tech-blue);
  transition: transform var(--dur) var(--ease-out);
}
details.faq-item[open] summary svg { transform: rotate(180deg); }
details.faq-item p {
  margin: 14px 0 0; color: var(--on-surface-variant);
  animation: fadeSlide var(--dur) var(--ease-out);
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

/* ─── Onboarding /j/{qr} ─────────────────────────────────────────────────── */
.join-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 48px;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(104, 171, 255, 0.10), transparent 70%),
    var(--surface);
}
.join-shell { width: 100%; max-width: 440px; }

.join-brand { text-align: center; margin-bottom: 28px; }
.join-logo {
  width: 78px; height: 78px; border-radius: 50%;
  margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 31px; font-weight: 800;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  animation: dropIn 420ms var(--ease-out);
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
.join-brand h1 { font-size: 27px; margin: 0 0 6px; letter-spacing: -0.035em; }
.join-brand p { margin: 0; color: var(--on-surface-variant); }

.join-card {
  background: var(--white);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  animation: fadeSlideUp 320ms var(--ease-out);
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.join-card h2 { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.03em; }
.join-card > p { margin: 0 0 22px; color: var(--on-surface-variant); font-size: 15px; }

.field { margin-bottom: 15px; }
.field label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--on-surface-variant); margin-bottom: 7px;
}
.field input, .field select {
  width: 100%; padding: 14px 16px; font: inherit;
  border: 1px solid var(--card-stroke); border-radius: var(--radius-sm);
  background: var(--surface-low); color: var(--on-surface);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.field input::placeholder { color: #767e8b; }   /* 4.6:1 sobre el fondo del campo */
.field input:focus, .field select:focus {
  outline: none; border-color: var(--tech-blue);
  box-shadow: 0 0 0 4px rgba(0, 96, 172, 0.12);
  background: var(--white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phone-row { display: grid; grid-template-columns: 108px 1fr; gap: 8px; }

.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0; color: var(--outline); font-size: 13px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--card-stroke);
}

.oauth-btn {
  width: 100%; padding: 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--card-stroke); background: var(--white);
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-press) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.oauth-btn:hover { box-shadow: var(--shadow-md); }
.oauth-btn:active { transform: scale(0.97); }
.oauth-btn.apple { background: #000; color: #fff; border-color: #000; }
.oauth-btn.apple:hover { background: #1a1a1a; }

.legal { font-size: 13px; color: var(--outline); text-align: center; margin-top: 18px; line-height: 1.6; }

/* Un botón que se lee como enlace: reenviar es una acción, no una navegación,
   así que debe ser <button> para el teclado y los lectores de pantalla. */
.link-btn {
  font: inherit; color: var(--navy); background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
  transition: opacity var(--dur) var(--ease-out);
}
.link-btn:hover:not(:disabled) { opacity: 0.7; }
.link-btn:active:not(:disabled) { scale: 0.97; }
.link-btn:disabled { color: var(--outline); text-decoration: none; cursor: default; }
.legal .sep { margin: 0 8px; color: var(--card-stroke); }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.45;
  cursor: pointer;
}
.consent-row input { margin-top: 3px; accent-color: var(--navy); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Tarjetas del comercio con giro 3D.
   Único sitio con --ease-in-out: un giro de 180° tiene que frenar al final
   igual que arrancó, y con ease-out el reverso «llegaba» de golpe. */
.pass-list { display: grid; gap: 18px; }
.flip-card { perspective: 1500px; cursor: pointer; }
.flip-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 560ms var(--ease-in-out);
  min-height: 226px;
}
.flip-titulo { font-size: 18px; }
.flip-descripcion { margin: 6px 0 14px; font-size: 14px; opacity: .8; }
.flip-back-titulo { text-align: center; margin-bottom: 6px; }
.flip-front .stamp { border-color: rgba(255, 255, 255, 0.35); }
/* En la tarjeta los sellos son fichas, no la demo a pantalla completa de la
   landing: 36 px, tantos por fila como quepan. */
.flip-front .stamp-grid { grid-template-columns: repeat(auto-fill, 36px); gap: 8px; }
.puntos-grandes { font-size: 32px; font-weight: 800; }
.puntos-grandes span { font-size: 14px; color: var(--white); }
.sin-margen { margin: 0; }
.join-card-intro { margin-bottom: 16px; }
.legal-espaciado { margin-top: 20px; }
.btn-omitir { margin-top: 10px; }
.btn-siguiente { margin-top: 18px; padding: 18px; font-size: 17px; }
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.flip-front { background: var(--navy); color: #fff; }
.flip-back {
  background: var(--white);
  border: 1px solid var(--card-stroke);
  transform: rotateY(180deg);
  justify-content: center;
  gap: 11px;
}
.flip-hint {
  margin-top: auto; font-size: 13px; color: rgba(255, 255, 255, 0.72);
  display: flex; align-items: center; gap: 7px;
}
.flip-hint svg { width: 15px; height: 15px; }
.wallet-btn {
  width: 100%; padding: 15px; border-radius: var(--radius-sm);
  border: none; font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 10px;
  transition: transform var(--dur-press) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.wallet-btn:hover { box-shadow: var(--shadow-md); }
.wallet-btn:active { transform: scale(0.97); }
.wallet-apple { background: #000; color: #fff; }
.wallet-google { background: var(--navy-dark); color: #fff; }

.status-msg {
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 14.5px; margin-bottom: 18px;
  animation: fadeSlideUp 260ms var(--ease-out);
}
.status-msg.error { background: #ffdad6; color: #8c000a; }
.status-msg.info { background: rgba(0, 96, 172, 0.08); color: #004f8f; }
.status-msg.success { background: rgba(23, 121, 74, 0.1); color: #0f5c37; }

.progress-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 24px; }
.progress-dots span {
  width: 30px; height: 4px; border-radius: 2px; background: var(--card-stroke);
  transition: background var(--dur) var(--ease-out);
}
.progress-dots span.active { background: var(--navy); }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.32); border-top-color: #fff;
  animation: spin 0.6s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Tarjeta que el cliente YA tiene: se distingue de las nuevas de un vistazo,
   y el botón dice «volver a añadir» en vez de «añadir». Es lo que necesita
   quien cambió de teléfono y perdió la copia de su billetera. */
.flip-card.ya-tienes .flip-front { box-shadow: 0 0 0 2px var(--gold, #F2C94C); }
.ya-tienes-chip {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255, 255, 255, .92); color: #0F2A4A;
  font-size: 11px; font-weight: 700; letter-spacing: .01em;
  padding: 4px 9px; border-radius: 999px;
}
.flip-nota {
  margin: 0 0 10px; font-size: 13px; line-height: 1.45;
  color: var(--on-surface-variant); text-align: center;
}

/* Estado de error de la carga del alta: la misma tarjeta que el resto del
   flujo, con Walo y una salida. Antes era un párrafo suelto sobre el fondo,
   que es lo que ve un cliente si el QR está mal o se cae la red. */
.join-error { text-align: center; max-width: 420px; }
.join-error-mark { display: flex; justify-content: center; margin-bottom: 18px; }
.join-error-mark img { width: 71px; height: 106px; }
.join-error h2 { margin-bottom: 8px; }
.join-error .btn { margin-top: 4px; }
.join-error .legal { margin-top: 16px; }

.center-loader { display: grid; place-items: center; min-height: 60svh; gap: 16px; }
.center-loader .spinner {
  border-color: var(--card-stroke); border-top-color: var(--navy);
  width: 30px; height: 30px;
}

.hidden { display: none !important; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr 0.9fr; gap: 28px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 44px 0 48px; }
  .hero .lead { font-size: 17.5px; }
  .hero-scene { height: 520px; }
  .phone { transform: none; }
  .how-step { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .how-visual { height: 140px; }
  .bento-wide { grid-template-columns: 1fr; }
  .bento-wide .mini-pass-lg { justify-self: start; transform: rotate(-2deg); margin-top: 8px; }
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .cta-band { grid-template-columns: 1fr; text-align: center; padding: 40px 28px; }
  .cta-band p { margin-left: auto; margin-right: auto; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 12px 20px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--card-stroke);
    box-shadow: 0 16px 32px rgba(15, 42, 74, 0.08);
    z-index: 40;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a {
    padding: 14px 8px;
    font-size: 16px;
    border-bottom: 1px solid var(--surface-low);
  }
  section { padding: 60px 0; }
  .price-card.featured { transform: none; }
}

@media (max-width: 620px) {
  .header-actions .btn-ghost { display: none; }
  /* En móvil manda el botón: la marca se queda en Walo solo. */
  .site-header .brand { font-size: 0; gap: 0; }
  .site-header .brand-walo { width: 30px; }
  .header-actions .btn-primary { padding: 10px 14px; font-size: 14px; }
  .header-inner { height: 60px; gap: 10px; }
  .field-row { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .hero-actions .btn { flex: 1; }
  .hero-scene { height: 470px; }
  .phone { width: 236px; height: 476px; }
  .pass-qr svg { width: 72px; height: 72px; }
  .pass { padding: 13px; }
  .pass-title, .pass-sub { white-space: nowrap; }
  .pass-title { font-size: 13px; }
  .sticker { font-size: 12px; padding: 8px 12px; }
  .walo-saludar { transform: scale(0.8); transform-origin: left bottom; }
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Las tarjetas no giran: las dos caras se funden. */
  .flip-inner { transition: none; }
  .flip-card.flipped .flip-inner { transform: none; }
  .flip-face { transition: opacity 200ms var(--ease-out); backface-visibility: visible; }
  .flip-back { transform: none; opacity: 0; pointer-events: none; }
  .flip-card.flipped .flip-back { opacity: 1; pointer-events: auto; }
  .flip-card.flipped .flip-front { opacity: 0; }
  .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  .stamp, .nav-toggle span { transition: none; animation: none; }
  /* Walo se queda en su primer fotograma y las categorías no desfilan. */
  .walo-saludar { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  /* Lo pulsable sigue confirmando el toque, sin moverse: baja la opacidad. */
  .btn:active, .oauth-btn:active, .wallet-btn:active { transform: none; opacity: 0.7; }
  .link-btn:active:not(:disabled) { scale: 1; opacity: 0.7; }
}

/* Reducir transparencia: el material translúcido de la cabecera se vuelve
   sólido. El desenfoque era el efecto; la legibilidad es lo que importa. */
@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Más contraste: superficies sólidas con un borde definido, y el texto
   secundario sube al color principal. */
@media (prefers-contrast: more) {
  .site-header {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: var(--navy);
  }
  .site-nav a, .btn-ghost { color: var(--navy); }
  .btn-ghost, .price-card, .bento-cell, .join-card { border: 1px solid var(--navy); }
}
