/* =============================================
   PAYWALL — 3 planes, tabla comparativa, paleta Clay
   ============================================= */
.paywall-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(42,28,20,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.paywall-overlay.active { opacity: 1; pointer-events: auto; }

.paywall-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: var(--canvas);
  border-top: 0.5px solid var(--faint);
  border-radius: 28px 28px 0 0;
  padding: 28px 24px calc(env(safe-area-inset-bottom, 0px) + 28px);
  max-height: 94dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  position: relative;
}

/* Scroll-hint: fade-out gradient + chevron pulsante pegado al bottom del overlay
   (no del card scrollable). Visible mientras no se ha hecho scroll DENTRO del card.
   data-pw-scrolled="1" en el overlay lo oculta tras primer scroll. */
.pw-scroll-hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  pointer-events: none;
  z-index: 220;
  background: linear-gradient(to top, var(--canvas) 0%, var(--canvas) 32%, rgba(232, 220, 200, 0) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.paywall-overlay.active ~ .pw-scroll-hint,
.paywall-overlay.active .pw-scroll-hint { opacity: 1; }
.paywall-overlay[data-pw-scrolled="1"] ~ .pw-scroll-hint,
.paywall-overlay[data-pw-scrolled="1"] .pw-scroll-hint { opacity: 0; }
.pw-scroll-hint::after {
  content: '↓ Sigue mirando';
  font-family: var(--font-text);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  animation: pwHintBounce 1.6s ease-in-out infinite;
}
@keyframes pwHintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .pw-scroll-hint::after { animation: none; }
}
@media (min-width: 769px) {
  /* Desktop: el modal está centrado y rara vez requiere scroll — hint oculto por defecto. */
  .pw-scroll-hint { display: none; }
}

/* Desktop: modal centrado, ancho para acomodar 3 cards en grid horizontal */
@media (min-width: 769px) {
  .paywall-overlay { align-items: center; }
  .paywall-card {
    max-width: 980px;
    border-radius: 24px;
    padding: 36px 40px;
    border: 0.5px solid var(--faint);
    max-height: 90vh;
  }
}

/* Close row */
.paywall-close-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.paywall-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--surface);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
}

/* Banner contextual — explica POR QUÉ se abre el paywall (no_credits_*, guest_limit, save_limit).
   Aparece SOBRE el eyebrow/headline cuando hay razón explícita; oculto si reason='manual'. */
.pw-context-banner {
  background: rgba(201, 169, 110, 0.10);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 22px;
}
.pw-context-banner .pw-context-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.pw-context-banner .pw-context-sub {
  font-family: var(--font-text);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.pw-context-banner .pw-context-cta {
  margin: 14px 0 0;
  padding: 11px 16px;
  width: 100%;
  background: var(--ink);
  color: var(--canvas);
  border: 0;
  border-radius: 10px;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 160ms ease;
}
.pw-context-banner .pw-context-cta:hover { opacity: 0.88; }
.pw-context-banner .pw-context-cta:active { opacity: 0.76; }

/* Header */
.pw-eyebrow { margin-bottom: 10px; display: block; }
.pw-headline {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-bottom: 22px;
}
.pw-headline em { font-style: italic; font-weight: 300; }

/* Value prop comparativa — explica el diferenciador sin nombrar competidores */
.pw-value-prop {
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}

/* Toggle mensual/anual */
.pw-toggle-wrap {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--faint);   /* contorno: el toggle "off" antes era invisible */
  border-radius: 999px;
  padding: 4px;
  display: flex;
  margin-bottom: 20px;
}
.pw-toggle-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.25s cubic-bezier(0.4, 0.2, 0.2, 1);
  pointer-events: none;
}
.pw-toggle-btn {
  flex: 1;
  min-height: 44px;         /* Apple HIG touch target */
  padding: 14px 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;         /* +peso para mejor contraste percibido */
  color: var(--ink);        /* antes --muted daba ratio 1.09:1 vs surface */
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.2s;
}
.pw-toggle-active { color: var(--canvas); }
.pw-save-badge {
  font-family: var(--font-mono);
  font-size: 12px;          /* antes 10px (sub-iOS caption2) */
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.pw-toggle-active .pw-save-badge {
  background: var(--gold);
  color: var(--gold-ink);
}

/* Hint "· 7 días gratis" en el botón Mensual, visible incluso cuando no es el
   toggle activo (criterio CEO 10-may: nunca esconder el beneficio del trial). */
.pw-trial-hint {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 400;
  white-space: nowrap;
}
.pw-toggle-active .pw-trial-hint { opacity: 0.95; }

/* ── Promo banner $4.99 (visible solo si viene de end-guest) ─ */
.pw-promo-banner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--accent-soft, rgba(201,169,110,0.12));
  border: 1px solid rgba(201,169,110,0.4);
  margin-bottom: 18px;
}
.pw-promo-text { display: flex; flex-direction: column; gap: 4px; }
.pw-promo-eyebrow { color: #7a3f29; /* accent oscurecido para WCAG AA contra fondo accent-soft del banner promo. Audit Axe 2-may. */ }
.pw-promo-detail {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}
.pw-promo-detail strong { font-weight: 600; }

/* Sub-3 D — Welcome Premium 7d perk dentro del banner promo */
.pw-promo-welcome-perk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 4px 10px;
  background: rgba(201,169,110,0.18);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent, #aa7a2a);
  align-self: flex-start;
  line-height: 1;
}
.pw-promo-welcome-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--accent, #aa7a2a);
}

/* Hint sutil dentro de feature de plan card (ej. "una cada día laboral") */
.pw-feature-hint {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}

/* Welcome Premium 7d — pill destacado en card Essential */
.pw-card-welcome-tag {
  display: inline-block;
  margin: 8px 0 12px;
  padding: 5px 12px;
  background: rgba(201,169,110,0.18);
  border: 1px solid rgba(201,169,110,0.42);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;          /* antes 12px → tag de Welcome Premium clave para conversión */
  font-weight: 600;
  color: var(--accent, #aa7a2a);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* Chip dcto primer mes (v190) — visible solo en monthly billing.
   v204 (19-may bug 1 reportado Andrés): el chip se estiraba a todo el ancho
   del card porque el parent .pw-card es flex column — los flex items
   ignoran display:inline-block y se comportan como block full-width.
   Fix: align-self:flex-start + padding/peso tipográfico más sutil para
   no parecer "barra completa" sino pill discreto. */
.pw-card-promo-chip {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 5px 11px;
  background: var(--accent, #A85A3D);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.pw-card-featured .pw-card-promo-chip {
  background: #c9a96e;
  color: #1a1107;
}

/* Precio tachado (strike-through) — solo monthly cuando hay firstMonth dcto */
.pw-card-price-strike {
  display: inline-block;
  text-decoration: line-through;
  text-decoration-color: rgba(0,0,0,0.4);
  color: rgba(0,0,0,0.45);
  font-size: 0.6em;
  font-weight: 400;
  margin-right: 8px;
  vertical-align: 0.4em;
}
.pw-card-featured .pw-card-price-strike {
  color: rgba(255,255,255,0.55);
  text-decoration-color: rgba(255,255,255,0.5);
}

/* Explicación de qué es una flor — texto centrado bajo las cards (audit 1-may) */
.pw-flores-explainer {
  font-family: var(--font-sans);
  font-size: 13px;          /* antes 12.5px (sub-iOS caption2) */
  color: var(--ink);        /* antes --muted bajaba contraste */
  opacity: 0.85;
  text-align: center;
  margin: 18px 8px 16px;
  line-height: 1.5;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.pw-promo-actions { display: flex; gap: 8px; }
.pw-promo-activate {
  flex: 1;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.pw-promo-skip {
  padding: 0 14px;
  height: 38px;
  border: 1px solid var(--faint);
  background: transparent;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
}

/* ── 3 cards: vertical en mobile, grid horizontal en desktop ──────────── */
.pw-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
@media (min-width: 769px) {
  .pw-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
  }
  .pw-card { display: flex; flex-direction: column; }
  .pw-card-features { flex-grow: 1; }
}

/*
  Paradigma visual de paywall (rediseño 29-abril):
  - Estado por defecto: 3 cards iguales, surface clara, borde sutil.
  - Estado seleccionado: la card SE PINTA oscura (ink + canvas) — señal MUY clara
    de qué eligió el user. Premium tiene badge "RECOMENDADO" pero NO está oscura
    por defecto: el user TIENE que clickearla para "activarla".
  - Premium SÍ se pre-selecciona en JS al abrir paywall (mantiene anchor effect).
*/
.pw-card {
  position: relative;
  padding: 22px 20px 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--faint);
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.12s, box-shadow 0.22s;
  color: var(--ink);
}
.pw-card:hover { border-color: rgba(201,169,110,0.45); }
.pw-card:active { transform: scale(0.997); }

/* "Featured" = Premium con badge RECOMENDADO. NO tiene fondo oscuro permanente. */
.pw-card.pw-card-featured {
  border-color: rgba(201,169,110,0.35);
}

/* Selected = la card que el user eligió. SE PINTA oscura para señalar claramente.
   Los hijos heredan el color via inherit, las opacities ya estaban calibradas. */
.pw-card.pw-card-selected {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

.pw-card-kicker {
  margin-bottom: 8px;
  display: block;
  opacity: 1;               /* antes 0.65 → headers "PARA EMPEZAR" ratio 2.36:1 */
  font-weight: 600;
  color: var(--accent);     /* color de marca: contraste WCAG AA */
}
/* Legacy: pw-card-kicker-featured ya no fuerza color canvas — el color se
   maneja vía .pw-card-selected. Se deja la clase para compatibilidad pero
   sin reglas. */

.pw-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 500;
}

.pw-card-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.05;
}

/* F3 T4 (18-may council GO unánime) — tier Premium destacado con
   ortotipografía premium (italic + accent + punto final) en lugar de
   sticker "MÁS POPULAR" pesado. Brand voice "inteligente sin pretensión".
   Solo se aplica a .pw-card-featured (Premium canónico),
   independiente de .pw-card-selected (dinámico). */
.pw-card-featured .pw-card-name {
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: var(--accent);
}
.pw-card-featured .pw-card-name::after {
  content: '.';
  color: var(--accent);
}

.pw-card-price-block {
  margin-bottom: 14px;
}
.pw-card-price-main {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1;
}
.pw-card-price-unit {
  font-family: var(--font-sans);
  font-size: 15px;          /* antes 14px */
  font-weight: 400;
  opacity: 0.85;            /* antes 0.65 */
  letter-spacing: 0;
}
.pw-card-price-sub {
  font-family: var(--font-sans);
  font-size: 13px;          /* antes 12px */
  opacity: 0.85;            /* antes 0.6 */
  margin: 4px 0 0;
  line-height: 1.4;
}

.pw-card-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;                 /* antes 6 — más aire */
}
.pw-card-features li {
  font-family: var(--font-sans);
  font-size: 15px;          /* antes 13px → bullets de venta legibles en mobile */
  line-height: 1.5;
  opacity: 1;               /* antes 0.85 */
  position: relative;
  padding-left: 12px;
}
.pw-card-features li::before {
  content: '·';
  position: absolute;
  left: 2px;
  opacity: 0.6;
}

.pw-card-lifestyle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  margin: 12px 0 0;
  opacity: 0.65;
  line-height: 1.4;
}

/* CTA main */
.pw-cta-main { margin-bottom: 10px; }
.pw-cta-microcopy {
  font-family: var(--font-sans);
  font-size: 13px;          /* antes 11.5px */
  color: var(--ink);
  opacity: 0.85;
  text-align: center;
  line-height: 1.5;
  padding: 0 8px;
  margin: 0;
}
.pw-trust-microcopy {
  font-family: var(--font-sans);
  font-size: 12px;          /* antes 10.5px (sub-iOS caption2) */
  color: var(--muted);
  opacity: 0.85;            /* antes 0.7 */
  text-align: center;
  line-height: 1.5;
  padding: 0 8px;
  margin: 6px 0 0;
}
.pw-legal-disclaimer {
  font-family: var(--font-sans);
  font-size: 12px;          /* antes 10.5px (sub-iOS caption2) */
  color: var(--muted);
  opacity: 0.85;            /* antes 0.65 */
  text-align: center;
  line-height: 1.5;
  padding: 12px 8px 0;
  margin: 0;
}

/* ── Plan cards (design v2) ─────────────────── */
.pw-subtext {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.45;
}
.pw-plan-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.pw-plan-card {
  padding: 18px;
  border-radius: 20px;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--faint);
  transition: background 0.15s, border-color 0.15s;
  position: relative;
  overflow: hidden;
  color: var(--ink);
}
.pw-plan-card.pw-plan-card-selected {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}
.pw-plan-card-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.pw-plan-card.pw-plan-card-selected .pw-plan-card-badge {
  background: var(--accent);
  color: var(--canvas);
}
.pw-plan-card-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.pw-plan-card-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.pw-plan-card-price-info {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.6;
}
.pw-plan-card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 10px;
}
.pw-plan-card-features {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pw-plan-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.4;
}
.pw-plan-feature-row svg { flex-shrink: 0; margin-top: 3px; }

/* Legacy plan cards (mantener compat para pwSelectPlan) */
.pw-plans-list { display: none; }

/* Legacy: plan badge, paywall-close */
.paywall-close {
  display: block;
  margin: 0 auto;
  width: auto;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 20px;
}

/* =============================================
   PRE-CHECKOUT MODAL — variante B (blindaje pre-Stripe)
   ============================================= */
.precheckout-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(28, 18, 12, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.precheckout-overlay.active {
  display: flex;
  animation: precheckoutFadeIn 0.22s ease-out;
}
@keyframes precheckoutFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.precheckout-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--canvas);
  color: var(--ink);
  border-radius: 22px;
  padding: 28px 24px 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  text-align: center;
}
.precheckout-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 0.18s ease, background 0.18s ease;
}
.precheckout-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.04);
}
.precheckout-eyebrow {
  margin-bottom: 12px;
  display: block;
  opacity: 0.65;
}
.precheckout-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.1;
}
.precheckout-detail {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 14px;
  opacity: 0.85;
}
.precheckout-fineprint {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 18px;
}
.precheckout-fineprint strong {
  color: var(--ink);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 4px;
}
.precheckout-fineprint small {
  font-size: 11px;
  opacity: 0.85;
  display: inline-block;
  margin-top: 4px;
}
/* MK-35: bullet guest "1. Creamos cuenta · 2. Pagas" — refuerza expectativa
   antes del Clerk modal que aparece encima del precheckout. Se inyecta sólo
   si !clerk.session desde preCheckoutConfirm. */
.precheckout-guest-steps {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 18px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
}
.precheckout-guest-steps strong {
  color: var(--ink);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
.precheckout-cta {
  width: 100%;
  margin-bottom: 8px;
}
.precheckout-back {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
  padding: 14px 24px;
  min-height: 44px;
}
.precheckout-back:hover { color: var(--ink); }

/* =============================================
   TOAST
   ============================================= */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink);
  border-radius: 100px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--canvas);
  opacity: 0;
  z-index: 999;
  transition: all 0.3s;
  white-space: nowrap;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =============================================
   LEAD CAPTURE
   ============================================= */
.lead-capture {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--faint);
  border-radius: 20px;
  padding: 20px 20px 16px;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.lead-capture-text {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.lead-capture-actions { display: flex; gap: 8px; }
.btn-lead-yes {
  flex: 1;
  height: 44px;
  background: var(--ink);
  border: none;
  border-radius: 999px;
  color: var(--canvas);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-lead-yes:hover { opacity: 0.9; }
.btn-lead-no {
  padding: 0 16px;
  height: 44px;
  background: none;
  border: 1px solid var(--faint);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
}
.lead-capture-dismiss {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.lead-capture input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  background: var(--canvas);
  border: 1px solid var(--faint);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  margin-bottom: 10px;
}
.lead-capture button[type="submit"] {
  width: 100%;
  height: 44px;
  background: var(--ink);
  border: none;
  border-radius: 999px;
  color: var(--canvas);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* =============================================
   BUZÓN SCREEN
   ============================================= */
.buzon-wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 52px) 24px calc(env(safe-area-inset-bottom, 0px) + 220px);
  min-height: 100dvh;
}
.buzon-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.buzon-back-btn {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--surface);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.buzon-creator-card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.buzon-avatar {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--canvas);
  font-family: var(--font-display);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.buzon-creator-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.buzon-creator-title em { font-style: italic; font-weight: 300; }
.buzon-creator-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.buzon-section-label {
  margin-bottom: 10px;
  display: block;
}
.buzon-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
}
.buzon-cat-btn {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--faint);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.buzon-cat-btn.active {
  background: var(--ink);
  border-color: var(--ink);
}
.buzon-cat-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}
.buzon-cat-btn.active .buzon-cat-title { color: var(--canvas); }
.buzon-cat-desc {
  font-size: 12px;
  color: var(--muted);
}
.buzon-cat-btn.active .buzon-cat-desc { color: rgba(243,228,209,0.7); }
.buzon-textarea-wrap {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--faint);
  margin-bottom: 12px;
  min-height: 130px;
  display: flex;
}
.buzon-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 16px;          /* iOS: ≥16px evita zoom involuntario al focus */
  color: var(--ink);
  line-height: 1.5;
  resize: none;
  min-height: 100px;
}
.buzon-textarea::placeholder { color: var(--muted); opacity: 0.6; }
.buzon-privacy-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-radius: 12px;
  margin-bottom: 20px;
}
.buzon-privacy-icon { flex-shrink: 0; margin-top: 1px; }
.buzon-privacy-text {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.5;
}
.buzon-send-btn {
  width: 100%;
  height: 54px;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: var(--canvas);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
.buzon-send-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.buzon-send-btn:not(:disabled):hover { opacity: 0.9; }
.buzon-success {
  text-align: center;
  padding: 40px 0;
}
.buzon-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 36px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.buzon-success-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.buzon-success-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.buzon-success-eta {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.005em;
}

/* ══════════════════════════════════════════
   PACKS one-time — Modal "Comprar más flores"
   (MK-5, 7-may-2026)
   ══════════════════════════════════════════ */

.pack-overlay { z-index: 10001; }

.pack-card {
  max-width: 520px;
}

.pack-context-banner {
  background: var(--accent-soft, #F6EEE1);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.pack-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

@media (min-width: 540px) {
  .pack-cards {
    flex-direction: row;
  }
  .pack-pack-card { flex: 1; }
}

.pack-pack-card {
  background: var(--surface);
  border: 1px solid var(--faint, #D6C3AC);
  border-radius: 16px;
  padding: 22px 18px 18px;
  text-align: center;
  position: relative;
}

.pack-pack-featured {
  border-color: var(--ink);
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.pack-pack-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0;
}

.pack-pack-size {
  font-family: var(--font-display, Georgia, serif);
  font-size: 48px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 4px;
}

.pack-pack-label {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
  letter-spacing: 0.3px;
}

.pack-pack-price {
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 4px;
}

.pack-pack-no-caducan {
  font-size: 12px;
  color: var(--gold, #B08C4D);
  margin: 0 0 16px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.pack-pack-cta {
  width: 100%;
  height: 44px;
  font-size: 14px;
}

.pack-explainer {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  margin: 14px 0;
}

.pack-explainer a {
  color: var(--accent, #A85A3D);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  display: inline-block;
  padding: 10px 4px;
  min-height: 44px;
  line-height: 24px;
}

/* ══════════════════════════════════════════
   PACKS — Sección permanente en Profile
   ══════════════════════════════════════════ */

.profile-packs-section {
  background: var(--surface);
  border-radius: 16px;
  padding: 18px 18px 16px;
  margin: 16px 0 20px;
}

.profile-packs-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-packs-tagline {
  font-size: 11px;
  color: var(--gold, #B08C4D);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

.profile-pack-counter {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.45;
}

.profile-pack-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.profile-pack-option {
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--faint, #D6C3AC);
  border-radius: 12px;
  padding: 14px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
}

.profile-pack-option:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.profile-pack-option-featured {
  border-color: var(--ink);
}

.profile-pack-option-popular {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.2;
}

.profile-pack-option-size {
  font-family: var(--font-display, Georgia, serif);
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
}

.profile-pack-option-price {
  font-size: 13px;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════════
   MK-31 — Paywall dismiss survey (slide-up panel)
   Aparece tras cerrar paywall en contexts comerciales. Captura razón
   estructurada del bounce. Pattern reusa slide-up de precheckout-bridge
   pero z-index 9999 (por debajo de cualquier modal full-screen activo).
   ════════════════════════════════════════════════════════════════ */
.paywall-dismiss-survey {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface, #fff);
  border-top: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
  border-radius: 18px 18px 0 0;
  padding: 22px 20px 26px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.10);
  max-width: 520px;
  margin: 0 auto;
  font-family: var(--font-sans);
}
.paywall-dismiss-survey.visible { transform: translateY(0); }

.paywall-dismiss-survey-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.paywall-dismiss-survey-close:hover { background: rgba(0, 0, 0, 0.04); color: var(--ink); }

.paywall-dismiss-survey-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 4px;
  padding-right: 44px;
  line-height: 1.3;
}
.paywall-dismiss-survey-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.45;
}

.paywall-dismiss-survey-reasons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.paywall-dismiss-survey-reasons label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  padding: 10px 4px;
  min-height: 44px;
  line-height: 1.35;
}
.paywall-dismiss-survey-reasons input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
  flex-shrink: 0;
}

.paywall-dismiss-survey textarea {
  width: 100%;
  min-height: 60px;
  max-height: 120px;
  border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.12));
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 14px;
  resize: vertical;
  box-sizing: border-box;
  background: var(--surface, #fff);
}
.paywall-dismiss-survey textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.paywall-dismiss-survey-btn {
  width: 100%;
  min-height: 48px;
  padding: 14px;
  background: var(--ink);
  color: var(--surface, #fff);
  border: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.paywall-dismiss-survey-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.paywall-dismiss-survey-btn:not(:disabled):hover { opacity: 0.88; }
