/* ──────────────────────────────────────────────────────────────────────── */
/*  Loyalcard — portada pública (cards.proximitty.com/)                         */
/*  Móvil primero. Botón principal negro; el azul de marca solo en el foco. */
/* ──────────────────────────────────────────────────────────────────────── */

.ld-body {
  --ld-ink: #1d1d1f;
  --ld-muted: #6e6e73;
  --ld-surface: #f5f5f7;
  --ld-focus: #0071e3;
  --ld-gutter: 16px;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
  color: var(--ld-ink);
  font-synthesis: none;
}
.ld-body .lt-main { padding: 0; max-width: none; }
.ld-body .lt-footer { margin-top: 0; }
.ld-body [hidden] { display: none !important; }
.ld-body a:focus-visible, .ld-body button:focus-visible, .ld-body summary:focus-visible { outline: 3px solid var(--ld-focus); outline-offset: 4px; border-radius: 6px; }
.ld-body [id] { scroll-margin-top: 64px; }
.ld-body h1, .ld-body h2, .ld-lede, .ld-section p { text-wrap: balance; }

/* Barra superior: "Crear cuenta" queda visible en todo el recorrido; en
   pantallas estrechas se compacta en lugar de ocultarse. */
.ld-body .lt-link,
.ld-body .lt-brand { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
@media (max-width: 420px) {
  .ld-body .lt-topbar-sep { display: none; }
  .ld-body .lt-link-secondary { display: none; }
  .ld-body .lt-topbar-nav { gap: 14px; }
  .ld-body .lt-topbar-nav .lt-btn-primary { padding: 7px 13px; font-size: 13px; font-weight: 600; }
  .ld-body .lt-brand-logo { height: 18px; }
}
@media (max-width: 340px) {
  .ld-body .lt-topbar { padding-inline: 12px; }
  .ld-body .lt-topbar-nav { gap: 10px; }
  .ld-body .lt-topbar-nav .lt-btn-primary { padding-inline: 11px; }
  .ld-body .lt-brand-logo { height: 14px; }
}

/* ── Botones y enlaces ── */
.ld-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 24px; margin-top: 24px; }
.ld-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--ld-ink); color: #fff; font-size: 17px; font-weight: 500;
  border: 0; font-family: inherit; cursor: pointer;
  transition: background .15s;
}
.ld-button:hover { background: #000; text-decoration: none; }
.ld-more { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; color: var(--ld-ink); }
.ld-more::after { content: "›"; margin-left: .3em; font-size: 1.25em; line-height: 1; transform: translateY(-.04em); }
.ld-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Apertura ── */
.ld-hero { padding: 44px var(--ld-gutter) 0; text-align: center; overflow: hidden; }
.ld-name { font-size: 21px; font-weight: 600; letter-spacing: -.02em; color: var(--ld-ink); }
.ld-hero h1 {
  font-size: clamp(40px, 11vw, 80px); line-height: 1.04; font-weight: 600;
  letter-spacing: -.045em; margin: 6px auto 0; max-width: 11ch;
}
.ld-lede { font-size: 17px; line-height: 1.45; color: var(--ld-muted); margin: 16px auto 0; max-width: 34ch; }
.ld-hero .ld-note { font-size: 13px; line-height: 1.4; color: var(--ld-muted); margin-top: 6px; }

/* Pases reales de Apple Wallet con esquinas transparentes: la sombra sigue la
   forma de la tarjeta. En móvil van pegados, sin tapar el texto de ninguno. */
.ld-passes { display: flex; justify-content: center; align-items: flex-start; margin: 40px 0 0; padding-bottom: 48px; }
.ld-pass { width: min(46vw, 280px); height: auto; filter: drop-shadow(0 18px 22px rgba(0,0,0,.16)); }
.ld-pass-stamps { transform: rotate(-3deg); position: relative; z-index: 1; }
.ld-pass-coupon { margin: 44px 0 0 4px; transform: rotate(3deg); }

/* ── Lo esencial ── */
.ld-facts { list-style: none; display: grid; gap: 1px; background: #e5e5ea; border-block: 1px solid #e5e5ea; }
.ld-facts li { background: #fff; padding: 22px var(--ld-gutter); text-align: center; }
.ld-facts strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.ld-facts span { display: block; font-size: 15px; color: var(--ld-muted); margin-top: 4px; }

/* ── Secciones ── */
.ld-section { padding: 64px var(--ld-gutter); text-align: center; }
.ld-section-muted { background: var(--ld-surface); }
.ld-section h2, .ld-closing h2 {
  font-size: clamp(32px, 8.6vw, 56px); line-height: 1.07; font-weight: 600;
  letter-spacing: -.04em; margin: 0 auto; max-width: 14ch;
}
.ld-section h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.ld-section p { font-size: 15px; line-height: 1.45; color: var(--ld-muted); margin-top: 8px; }

/* Pasos: en móvil se deslizan de lado y se ve un pedazo del siguiente; el primero
   y el último quedan centrados gracias al relleno. Desde 834 px pasan a tres columnas. */
.ld-steps-track {
  --ld-slide: min(78vw, 300px);
  margin: 36px calc(var(--ld-gutter) * -1) 0; padding: 4px calc((100vw - var(--ld-slide)) / 2) 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.ld-steps-track::-webkit-scrollbar { display: none; }
.ld-steps-track:focus-visible { outline: 3px solid var(--ld-focus); outline-offset: -3px; border-radius: 12px; }
.ld-steps { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.ld-steps > li { flex: 0 0 var(--ld-slide); scroll-snap-align: center; min-width: 0; }
.ld-section .ld-steps-note { font-size: 14px; line-height: 1.4; margin-top: 14px; }
/* En los pasos la captura termina justo en el botón o el aviso: sin degradado que los deslave. */
.ld-step-shot::after { display: none; }
.ld-step-number {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: 50%; background: var(--ld-ink); color: #fff; font-size: 15px; font-weight: 600;
}
.ld-steps p { max-width: 30ch; margin-inline: auto; }

/* ── Seguimiento: una columna en móvil, tres en pantallas anchas ── */
.ld-section .ld-section-lede { max-width: 34ch; margin: 14px auto 0; }
.ld-insights { list-style: none; display: grid; gap: 40px; max-width: 980px; margin: 36px auto 0; }
.ld-insight { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ld-insight-shot {
  position: relative; width: min(100%, 320px); margin: 0 0 20px; overflow: hidden;
  border-radius: 22px; background: var(--ld-surface);
  box-shadow: 0 18px 36px rgba(0,0,0,.10), 0 0 0 1px rgba(0,0,0,.05);
}
/* Las capturas son un recorte de la pantalla: el degradado final sugiere que sigue. */
.ld-insight-shot::after {
  content: ""; position: absolute; inset: auto 0 0; height: 20%; pointer-events: none;
  background: linear-gradient(rgba(255,255,255,0), #fff);
}
.ld-insight-shot img { display: block; width: 100%; height: auto; }
.ld-insight p { max-width: 30ch; margin-inline: auto; }

.ld-faq-list { max-width: 760px; margin: 32px auto 0; text-align: left; }
.ld-faq details { border-top: 1px solid #d2d2d7; }
.ld-faq details:last-child { border-bottom: 1px solid #d2d2d7; }
.ld-faq summary { min-height: 64px; padding: 20px 28px 20px 0; position: relative; list-style: none; font-size: 17px; font-weight: 500; cursor: pointer; }
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary::after { content: '+'; position: absolute; right: 2px; top: 16px; font-size: 22px; font-weight: 400; }
.ld-faq details[open] summary::after { content: '−'; }
.ld-section.ld-faq details p { margin: 0 0 24px; max-width: 60ch; text-wrap: pretty; }

.ld-formats { display: grid; gap: 12px; max-width: 980px; margin: 36px auto 0; }
.ld-format { background: #fff; border-radius: 24px; padding: 28px 24px 32px; }
/* Pase real de Apple Wallet con esquinas transparentes: la sombra sigue la tarjeta. */
.ld-format-pass { width: min(100%, 240px); margin: 0 auto 22px; }
.ld-format-pass img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,.14)); }
.ld-format p:last-child { max-width: 30ch; margin-inline: auto; }


/* ── Cierre ── */
.ld-closing { padding: 72px var(--ld-gutter) 80px; text-align: center; background: var(--ld-surface); }
.ld-closing p { font-size: 17px; line-height: 1.45; color: var(--ld-muted); margin: 14px auto 0; max-width: 32ch; }

/* ── Escritorio ── */
@media (min-width: 834px) {
  .ld-body { --ld-gutter: 24px; }
  .ld-hero { padding-top: 88px; }
  .ld-name { font-size: 24px; }
  .ld-lede { font-size: 21px; }
  .ld-passes { gap: 40px; margin-top: 56px; padding-bottom: 72px; }
  .ld-pass { width: 300px; }
  .ld-pass-coupon { margin-left: 0; }
  .ld-insights { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
  .ld-insight-shot { width: 100%; }
  .ld-facts { grid-template-columns: repeat(3, 1fr); }
  .ld-facts li { padding: 32px 24px; }
  .ld-section { padding: 96px 24px; }
  .ld-section p { font-size: 17px; }
  .ld-steps-track { max-width: 980px; margin: 56px auto 0; padding: 0; overflow-x: visible; scroll-snap-type: none; }
  .ld-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .ld-steps > li { flex: initial; }
  .ld-faq-list { margin-top: 48px; }
  .ld-formats { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .ld-format { padding: 48px 40px; }
  .ld-closing { padding: 104px 24px 112px; }
  .ld-closing p { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .ld-button { transition: none; }
}
