/* ═══════════════════════════════════════════════════════════════════════════
   PAGE · /fan-passport
   Scope: .fp-*  ·  Canon Apple-dark 2026  ·  F1.14 migration 2026-04-17
   Depends on: /shared/ptl-tokens.css + /shared/ptl-core.css + /shared/ptl-nav.css + /shared/ptl-footer.css
   Rules: trifecta naranja única · SF system · ritmo surface↔bg · SVG Lucide inline
   Prohibido: backdrop-filter · clip-path:polygon · gradient-text · amb-orb · GSAP
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 1. HERO · canon .hero.hero--interior · bg surface · LEFT-anchored ─── */
.fp-hero-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 820px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}
.fp-hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 0 1.75rem 0;
  box-shadow: var(--ptl-shadow);
  background: var(--ptl-orange-ghost);
  color: var(--ptl-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.fp-hero-body .hero-eyebrow {
  margin-left: 0;
  text-align: left;
  justify-content: flex-start;
}
.fp-hero-body h1 {
  max-width: 22ch;
  margin-left: 0;
  text-align: left;
}
.fp-hero-body .hero-sub {
  margin: 1.25rem 0 0 0;
  max-width: 56ch;
  text-align: left;
}
.fp-hero-body .cta-buttons {
  margin: 2rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: flex-start;
}

/* ─── 2. FEATURES · bg base · 4×2 grid ─── */
.fp-features {
  background: var(--ptl-bg);
  padding: 6rem 0;
  contain: layout paint;
}
.fp-features-head {
  max-width: var(--ptl-max);
  margin: 0 auto 3.5rem;
  padding: 0 var(--ptl-pad-x);
}
.fp-features-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ptl-text);
  max-width: 22ch;
  margin: 0.75rem 0 0 0;
}
.fp-features-grid {
  max-width: var(--ptl-max);
  margin: 0 auto;
  padding: 0 var(--ptl-pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.fp-feature {
  background: var(--ptl-surface-alt);
  border: 1px solid var(--ptl-border);
  border-radius: var(--ptl-r);
  padding: 1.75rem;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s;
  will-change: transform;
}
.fp-feature:hover {
  transform: translateY(-3px);
  border-color: var(--ptl-border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.fp-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ptl-orange-ghost);
  color: var(--ptl-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.fp-feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fp-feature h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
  color: var(--ptl-text);
}
.fp-feature p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ptl-muted);
  margin: 0;
}

/* ─── 3. COUNTDOWN · canon .hero--interior derivado · bg surface · sutil ─── */
.fp-count {
  background: var(--ptl-surface);
  padding: 3.5rem 0;
  border-top: 1px solid var(--ptl-border);
  contain: layout paint;
  border-bottom: 1px solid var(--ptl-border);
}
.fp-count-inner {
  max-width: var(--ptl-max);
  margin: 0 auto;
  padding: 0 var(--ptl-pad-x);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.fp-count-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.fp-count-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ptl-orange);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.fp-count-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ptl-orange);
}
.fp-count-title {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ptl-text);
  margin: 0;
  letter-spacing: -0.005em;
}
.fp-count-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.fp-count-block {
  background: var(--ptl-surface-alt);
  border: 1px solid var(--ptl-border);
  border-radius: 14px;
  padding: 1.125rem 1.5rem;
  min-width: 104px;
  text-align: left;
}
.fp-count-num {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--ptl-text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}
.fp-count-unit {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ptl-muted);
  margin-top: 0.5rem;
  display: block;
}

/* ─── 4. CITIES · bg base · 3 country groups · grid uniforme trifecta ─── */
.fp-cities {
  background: var(--ptl-bg);
  padding: 6rem 0;
  contain: layout paint;
}
.fp-cities-head {
  max-width: var(--ptl-max);
  margin: 0 auto 3rem;
  padding: 0 var(--ptl-pad-x);
}
.fp-cities-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ptl-text);
  max-width: 24ch;
  margin: 0.75rem 0 0 0;
}
.fp-cities-head p {
  color: var(--ptl-muted);
  max-width: 56ch;
  margin: 1rem 0 0 0;
}
.fp-cities-body {
  max-width: var(--ptl-max);
  margin: 0 auto;
  padding: 0 var(--ptl-pad-x);
}
.fp-country {
  margin-bottom: 2.5rem;
}
.fp-country:last-child {
  margin-bottom: 0;
}
.fp-country-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ptl-orange);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.fp-country-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ptl-orange);
}
.fp-country-count {
  color: var(--ptl-muted);
  font-weight: 500;
  margin-left: 0.25rem;
}
.fp-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.fp-city {
  background: var(--ptl-surface-alt);
  border: 1px solid var(--ptl-border);
  border-radius: 14px;
  padding: 1rem 1.125rem;
  transition: border-color 0.3s, transform 0.3s;
  will-change: transform;
  contain: layout paint;
}
.fp-city:hover {
  border-color: var(--ptl-border-strong);
  transform: translateY(-2px);
}
.fp-city-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ptl-text);
  letter-spacing: -0.005em;
  display: block;
}
.fp-city-code {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ptl-muted);
  display: block;
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

/* ─── 5. EXPANSION · bg surface · beyond 2026 narrative ─── */
.fp-expansion {
  background: var(--ptl-surface);
  padding: 6rem 0;
  contain: layout paint;
}
.fp-expansion-inner {
  max-width: var(--ptl-max);
  margin: 0 auto;
  padding: 0 var(--ptl-pad-x);
}
.fp-expansion h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ptl-text);
  max-width: 22ch;
  margin: 0.75rem 0 0 0;
}
.fp-expansion-copy {
  max-width: 56ch;
  color: var(--ptl-muted);
  line-height: 1.7;
  margin: 1.5rem 0 0 0;
}
.fp-expansion-timeline {
  margin: 2.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
}
.fp-expansion-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--ptl-surface-alt);
  border: 1px solid var(--ptl-border);
  border-radius: 14px;
}
.fp-expansion-year {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ptl-orange);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
  min-width: 56px;
  line-height: 1.5;
}
.fp-expansion-text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ptl-text);
  margin: 0;
}

/* ─── 6. CLOSER CTA · bg base · canon .cta-inner + .cta-buttons ─── */
.fp-closer {
  background: var(--ptl-bg);
  padding: 6rem 0;
  contain: layout paint;
}
.fp-closer-inner {
  max-width: var(--ptl-max);
  margin: 0 auto;
  padding: 0 var(--ptl-pad-x);
  text-align: left;
}
.fp-closer h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ptl-text);
  max-width: 22ch;
  margin: 0.75rem 0 0 0;
}
.fp-closer p {
  color: var(--ptl-muted);
  max-width: 56ch;
  margin: 1.25rem 0 0 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.fp-closer .cta-buttons {
  margin: 2rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: flex-start;
}

/* ─── 6b. Inline waitlist form (closer section · POST /wl-handler.php) ─── */
.fp-waitlist {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 480px;
  background: var(--ptl-surface-alt);
  border: 1px solid var(--ptl-border);
  border-radius: 980px;
  padding: 0.35rem 0.35rem 0.35rem 1.25rem;
  margin: 2rem 0 0 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fp-waitlist:focus-within {
  border-color: var(--ptl-border-strong);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.08);
}
.fp-waitlist input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--ptl-text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 0;
}
.fp-waitlist input::placeholder {
  color: var(--ptl-muted);
}
.fp-waitlist button {
  flex: 0 0 auto;
  background: var(--ptl-orange);
  color: #ffffff;
  border: none;
  cursor: pointer;
  padding: 0.7rem 1.4rem;
  border-radius: 980px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.005em;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}
.fp-waitlist button:hover {
  background: #ea6a10;
  transform: translateY(-1px);
}
.fp-waitlist button:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
  background: var(--ptl-orange);
}
.fp-waitlist-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.fp-waitlist-success {
  display: none;
  margin: 1rem 0 0 0;
  font-size: 0.9375rem;
  color: var(--ptl-text);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--ptl-border);
  border-radius: 980px;
  background: var(--ptl-surface-alt);
}
.fp-waitlist-success.is-visible {
  display: inline-block;
}
.fp-waitlist-error {
  display: none;
  margin: 0.75rem 0 0 0;
  font-size: 0.875rem;
  color: #b91c1c;
}
.fp-waitlist-error.is-visible {
  display: block;
}
.fp-waitlist-note {
  font-size: 0.78rem;
  color: var(--ptl-muted);
  margin: 0.875rem 0 0 0;
}
.fp-waitlist-alt {
  margin: 2rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* ─── 7. Responsive @1024 ─── */
@media (max-width: 1024px) {
  .fp-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── 8. Responsive @768 ─── */
@media (max-width: 768px) {
  .fp-features,
  .fp-cities,
  .fp-expansion,
  .fp-closer {
    padding: 4rem 0;
  }
  .fp-features-head,
  .fp-cities-head,
  .fp-expansion-inner,
  .fp-closer-inner,
  .fp-features-grid,
  .fp-cities-body,
  .fp-count-inner {
    padding-left: var(--ptl-pad-x-mobile);
    padding-right: var(--ptl-pad-x-mobile);
  }
  .fp-count {
    padding: 2.5rem 0;
  }
  .fp-count-block {
    min-width: 84px;
    padding: 1rem 1.125rem;
  }
  .fp-city-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* ─── 9. Responsive @560 ─── */
@media (max-width: 560px) {
  .fp-features-grid {
    grid-template-columns: 1fr;
  }
  .fp-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }
  .fp-count-grid {
    gap: 0.5rem;
  }
  .fp-count-block {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
  }
  .fp-waitlist {
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    padding: 0.75rem;
    gap: 0.625rem;
  }
  .fp-waitlist input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--ptl-surface);
    border: 1px solid var(--ptl-border);
    border-radius: 12px;
    box-sizing: border-box;
  }
  .fp-waitlist:focus-within input {
    border-color: var(--ptl-border-strong);
  }
  .fp-waitlist button {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
  }
}

/* ─── 10. prefers-reduced-motion ─── */
@media (prefers-reduced-motion: reduce) {
  .fp-feature,
  .fp-city {
    transition: none;
  }
  .fp-feature:hover,
  .fp-city:hover {
    transform: none;
  }
}

/* ─── 11. print ─── */
@media print {
  .fp-count,
  .fp-expansion-item {
    border-color: #ccc;
    background: #fff;
  }
  .fp-feature,
  .fp-city {
    break-inside: avoid;
    border-color: #ccc;
  }
}

/* ─── 12. focus-visible (a11y canon) ─── */
.fp-feature:focus-visible,
.fp-city:focus-visible,
.fp-count-block:focus-visible {
  outline: 2px solid var(--ptl-orange);
  outline-offset: 3px;
}

/* ─── 13. App-specific legal strip (above .ptl-footer-base) ───
   App store compliance: Apple/Google require these URLs to be
   discoverable from the marketing surface. Apple-style: thin
   inline row, muted, no shouting. */
.fp-legal-strip {
  max-width: var(--ptl-max);
  margin: 0 auto;
  padding: 0 var(--ptl-pad-x) 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: 12px;
  color: var(--ptl-muted);
}
.fp-legal-strip-label {
  font-weight: 600;
  color: var(--ptl-text);
  letter-spacing: 0.02em;
}
.fp-legal-strip a {
  color: var(--ptl-muted);
  text-decoration: none;
  transition: color var(--ptl-t-fast);
  padding: 2px 0;
}
.fp-legal-strip a:hover,
.fp-legal-strip a:focus-visible {
  color: var(--ptl-text);
}
.fp-legal-strip .sep {
  opacity: 0.4;
  user-select: none;
}
@media (max-width: 720px) {
  .fp-legal-strip {
    gap: 0.4rem 1rem;
    padding-bottom: 1rem;
  }
  .fp-legal-strip .sep { display: none; }
}
