/* ============================================================
   JEREMI & EMMY — WEDDING INVITATION
   Sistema de diseño: "Boarding Pass to Forever"
   ------------------------------------------------------------
   Un ticket de embarque leído a la luz de una terminal al
   atardecer: fondo profundo entre morado y azul petróleo,
   documentos de viaje en papel crema como acentos de luz,
   sellos dorados y una línea de ruta que acompaña el scroll.
   ============================================================ */

/* -------------------- 1. TOKENS -------------------- */
:root {
  /* Color — noche de aeropuerto tropical */
  --ink-950: #0d1220;         /* fondo más profundo (casi negro azulado) */
  --ink-900: #141a30;         /* fondo base de secciones oscuras */
  --petrol-800: #12333a;      /* azul petróleo, secciones intermedias */
  --petrol-600: #1c5158;      /* azul petróleo medio, acentos/bordes */
  --petrol-400: #3f8b8f;      /* azul petróleo claro, texto secundario sobre oscuro */
  --purple-900: #2c1f4d;      /* morado profundo, degradados */
  --purple-700: #4a3080;      /* morado principal */
  --purple-500: #7c5cc4;      /* morado medio, acentos e interacción */
  --purple-300: #b6a0e8;      /* lavanda clara, textos destacados sobre oscuro */
  --paper-100: #f7f1e1;       /* papel/pasaporte — crema cálido */
  --paper-200: #efe4c8;       /* papel sombreado, tarjetas */
  --paper-ink: #241c3a;       /* texto oscuro sobre papel */
  --gold-500: #c9a24d;        /* sello dorado */
  --gold-300: #e3c988;        /* dorado claro, brillo */
  --tropic-500: #3e7a5d;      /* verde tropical, detalle puntual */
  --white: #fffaf0;

  /* Texto */
  --text-on-dark: #f3efe4;
  --text-on-dark-muted: #c9c2d9;
  --text-on-paper: var(--paper-ink);
  --text-on-paper-muted: #5c527a;

  /* Tipografía */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
  --font-script: "Beau Rivage", cursive;

  /* Espaciado / ritmo */
  --space-xxs: 0.4rem;
  --space-xs: 0.75rem;
  --space-sm: 1.25rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 6rem;
  --space-xxl: 9rem;

  --measure: 62ch;          /* medida de línea para prosa */
  --measure-narrow: 42ch;

  --radius-card: 6px;
  --radius-pill: 999px;

  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.3s;
  --dur-mid: 0.6s;
  --dur-slow: 1.1s;

  color-scheme: dark;
}

/* -------------------- 2. RESET -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, p {
  margin: 0;
}

/* Respeta accesibilidad de movimiento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Foco visible, siempre */
:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--paper-100);
  color: var(--paper-ink);
  padding: var(--space-xs) var(--space-sm);
  z-index: 1000;
  border-radius: var(--radius-card);
}
.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* -------------------- 3. TEXTURA DE FONDO -------------------- */
/* Un leve granulado + degradado da profundidad sin costo de rendimiento
   (se dibuja una sola vez, position: fixed, sin filtros pesados). */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 18% 0%, rgba(124, 92, 196, 0.35), transparent 60%),
    radial-gradient(55% 40% at 100% 30%, rgba(63, 139, 143, 0.28), transparent 65%),
    radial-gradient(70% 60% at 50% 100%, rgba(44, 31, 77, 0.55), transparent 70%),
    var(--ink-900);
}

/* -------------------- 4. TIPOGRAFÍA GENERAL -------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold-300);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-300);
  display: inline-block;
}
/* Usar cuando el eyebrow no hereda un ancestro con text-align:center */
.eyebrow--center {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  max-width: 16ch;
}

.section-body {
  font-size: 1.05rem;
  max-width: var(--measure);
  color: var(--text-on-dark-muted);
}

.section-body + .section-body {
  margin-top: var(--space-sm);
}

/* -------------------- 5. LAYOUT BASE -------------------- */
.section {
  position: relative;
  padding: var(--space-xxl) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  justify-content: center;
}

.section-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.section--center {
  text-align: center;
  align-items: center;
}
.section--center .section-title,
.section--center .section-body {
  margin-left: auto;
  margin-right: auto;
}

.section--paper {
  background: var(--paper-100);
  color: var(--text-on-paper);
}
.section--paper .section-body {
  color: var(--text-on-paper-muted);
}
.section--paper .eyebrow {
  color: var(--purple-700);
}
.section--paper .eyebrow::before {
  background: var(--purple-700);
}

/* -------------------- 6. RUTA DE VUELO (progreso de scroll) -------------------- */
.route-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 500;
  background: rgba(247, 241, 225, 0.08);
}
.route-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple-500), var(--gold-300));
  transform-origin: left;
  transition: width 0.1s linear;
}

.route-rail {
  position: fixed;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.route-rail__line {
  width: 1px;
  height: 220px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(247, 241, 225, 0.35) 0 4px,
    transparent 4px 9px
  );
  position: relative;
}
.route-rail__plane {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%) rotate(90deg);
  font-size: 0.95rem;
  color: var(--gold-300);
  transition: top 0.15s var(--ease-premium);
  filter: drop-shadow(0 0 4px rgba(201, 162, 77, 0.6));
}
.route-rail__stops {
  position: absolute;
  inset: 0;
}
.route-rail__stop {
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-on-dark-muted);
  transform: translate(-50%, -50%);
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.route-rail__stop.is-active {
  background: var(--gold-300);
  transform: translate(-50%, -50%) scale(1.5);
}

@media (max-width: 860px) {
  .route-rail {
    display: none;
  }
}

/* -------------------- 7. TOP BAR -------------------- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 300;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  pointer-events: none;
}
.top-bar__mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  pointer-events: auto;
  color: var(--text-on-dark);
  background: rgba(13, 18, 32, 0.45);
  border: 1px solid rgba(247, 241, 225, 0.2);
  backdrop-filter: blur(6px);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  line-height: 1;
}
.music-toggle {
  pointer-events: auto;
  background: rgba(13, 18, 32, 0.5);
  border: 1px solid rgba(247, 241, 225, 0.25);
  color: var(--text-on-dark);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.music-toggle:hover {
  border-color: var(--gold-300);
  transform: scale(1.06);
}
.music-toggle[hidden] {
  display: none;
}
.music-toggle svg {
  width: 18px;
  height: 18px;
}
.music-toggle .icon-playing { display: none; }
.music-toggle.is-playing .icon-muted { display: none; }
.music-toggle.is-playing .icon-playing { display: block; }

/* ============================================================
   8. INTRO — PASAPORTE / BOARDING PASS
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 100% at 50% 20%, var(--purple-900) 0%, var(--ink-950) 70%);
  transition: opacity var(--dur-slow) var(--ease-premium), visibility var(--dur-slow);
  perspective: 1800px;
  padding: var(--space-md);
}
.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.intro__stamp-deco {
  position: absolute;
  border: 1px dashed rgba(247, 241, 225, 0.18);
  border-radius: 50%;
  opacity: 0.5;
}
.intro__stamp-deco--a { width: 220px; height: 220px; top: 8%; left: 6%; }
.intro__stamp-deco--b { width: 140px; height: 140px; bottom: 10%; right: 8%; }

/* --- Paso 1: portada del pasaporte --- */
.passport {
  position: relative;
  width: min(340px, 84vw);
  aspect-ratio: 5 / 7;
  transform-style: preserve-3d;
  transition: transform var(--dur-slow) var(--ease-premium);
}
.passport.is-open {
  transform: rotateY(-165deg);
}

.passport__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
}

.passport__cover {
  background:
    linear-gradient(155deg, rgba(255,255,255,0.06), transparent 40%),
    linear-gradient(135deg, var(--purple-700), var(--purple-900) 55%, var(--ink-950));
  border: 1px solid rgba(227, 201, 136, 0.35);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
  color: var(--gold-300);
}
.passport__emblem {
  width: 54px;
  height: 54px;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
}
.passport__title {
  font-family: var(--font-body);
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--text-on-dark-muted);
}
.passport__names {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--paper-100);
  margin-top: var(--space-sm);
}

.passport__inside {
  background:
    repeating-linear-gradient(115deg, rgba(0,0,0,0.03) 0 2px, transparent 2px 6px),
    var(--paper-100);
  color: var(--text-on-paper);
  transform: rotateY(180deg);
  border: 1px solid var(--paper-200);
  justify-content: space-between;
}
.passport__inside-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-on-paper-muted);
}
.passport__portrait {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--purple-300), var(--petrol-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--paper-100);
  margin: var(--space-sm) 0;
}
.passport__inside-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  margin: 0;
}
.passport__stamp {
  position: absolute;
  bottom: 18%;
  right: 12%;
  width: 92px;
  height: 92px;
  border: 2.5px solid var(--tropic-500);
  border-radius: 50%;
  color: var(--tropic-500);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  transform: rotate(-14deg) scale(0);
  opacity: 0;
  transition: transform var(--dur-mid) var(--ease-premium) 0.5s, opacity var(--dur-mid) ease 0.5s;
}
.passport.is-open .passport__stamp {
  transform: rotate(-14deg) scale(1);
  opacity: 0.85;
}

.intro__action {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.9rem 1.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-300);
  background: transparent;
  color: var(--paper-100);
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn:hover {
  background: var(--gold-300);
  color: var(--ink-950);
  transform: translateY(-2px);
}
.btn--solid {
  background: var(--gold-300);
  color: var(--ink-950);
}
.btn--solid:hover {
  background: var(--gold-500);
}
.btn--ghost-light {
  border-color: rgba(247,241,225,0.4);
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.intro__hint {
  font-size: 0.72rem;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.04em;
}

/* --- Paso 2: boarding pass --- */
.boarding {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-premium), transform var(--dur-mid) var(--ease-premium);
}
.boarding.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.boarding.is-leaving {
  opacity: 0;
  transform: translateY(-30px) scale(0.98);
}

.boarding-pass {
  width: min(480px, 92vw);
  background: var(--paper-100);
  color: var(--text-on-paper);
  border-radius: 12px;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,0.65);
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
}
.boarding-pass__main {
  padding: var(--space-md) var(--space-md) var(--space-sm);
}
.boarding-pass__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-on-paper-muted);
  margin-bottom: var(--space-sm);
}
.boarding-pass__route {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.boarding-pass__code {
  font-family: var(--font-display);
  font-size: 1.9rem;
}
.boarding-pass__line {
  flex: 1;
  position: relative;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--purple-700) 0 6px, transparent 6px 11px);
}
.boarding-pass__line svg {
  position: absolute;
  right: -4px;
  top: -8px;
  color: var(--purple-700);
}
.boarding-pass__names {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}
.boarding-pass__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  font-size: 0.72rem;
}
.boarding-pass__meta dt {
  letter-spacing: 0.08em;
  color: var(--text-on-paper-muted);
  margin-bottom: 2px;
}
.boarding-pass__meta dd {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
}
.boarding-pass__stub {
  border-left: 1px dashed var(--purple-700);
  padding: var(--space-md) var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.boarding-pass__stub span {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.04em;
}

/* ============================================================
   9. HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: var(--space-xl) var(--space-md);
}
.hero__eyebrow {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--purple-300);
  margin-bottom: var(--space-sm);
}
.hero__names {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 7.5rem);
  line-height: 0.95;
  color: var(--paper-100);
}
.hero__amp {
  font-style: italic;
  color: var(--gold-300);
  padding: 0 0.12em;
}
.hero__tagline {
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--text-on-dark-muted);
  max-width: 34ch;
}
.hero__date {
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  letter-spacing: 0.28em;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--gold-300);
}
.hero__date::before,
.hero__date::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold-300);
}
.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--text-on-dark-muted);
}
.hero__scroll-plane {
  animation: float-down 2.6s ease-in-out infinite;
}
@keyframes float-down {
  0%, 100% { transform: translateY(0) rotate(90deg); opacity: 0.5; }
  50% { transform: translateY(8px) rotate(90deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-plane { animation: none; }
}

/* ============================================================
   10. OUR JOURNEY
   ============================================================ */
.journey {
  align-items: flex-start;
}
.journey .section-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-xl);
  align-items: center;
}
.journey__text .eyebrow { margin-bottom: var(--space-sm); }
.journey__text .section-title { margin-bottom: var(--space-md); }
.journey__text p {
  max-width: var(--measure);
  color: var(--text-on-dark-muted);
}
.journey__text p + p { margin-top: var(--space-sm); }

.journey__stamps {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.journey__ring {
  position: absolute;
  border: 1px dashed rgba(247, 241, 225, 0.25);
  border-radius: 50%;
}
.journey__ring--outer { inset: 0; }
.journey__ring--inner { inset: 18%; border-color: rgba(201, 162, 77, 0.35); }
.journey__flags {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--paper-100);
  text-align: center;
}
.journey__flag-pin {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-on-dark-muted);
  display: block;
  margin-top: 2px;
}
.journey__heart {
  color: var(--gold-300);
  font-size: 1.4rem;
}

@media (max-width: 860px) {
  .journey .section-inner {
    grid-template-columns: 1fr;
  }
  .journey__stamps {
    width: 60vw;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ============================================================
   11. DESTINATION
   ============================================================ */
.destination {
  background:
    linear-gradient(180deg, transparent, rgba(20, 26, 48, 0.4)),
    var(--petrol-800);
  overflow: hidden;
}
.destination__leaf {
  position: absolute;
  opacity: 0.14;
  color: var(--tropic-500);
}
.destination__leaf--a { top: -6%; right: -4%; width: 320px; }
.destination__leaf--b { bottom: -8%; left: -6%; width: 260px; transform: scaleX(-1); }

.destination .section-inner {
  position: relative;
  text-align: center;
}
.destination .section-title,
.destination .section-body {
  margin-left: auto;
  margin-right: auto;
}
.destination__coords {
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold-300);
}

/* ============================================================
   12. WEDDING DETAILS — boarding pass grande
   ============================================================ */
.details {
  background: var(--paper-100);
  color: var(--text-on-paper);
}
.details .eyebrow { color: var(--purple-700); }
.details .eyebrow::before { background: var(--purple-700); }
.details .section-title {
  color: var(--paper-ink);
  margin: 0 auto var(--space-lg);
  text-align: center;
  max-width: none;
}

.ticket {
  margin-top: var(--space-lg);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 30px 70px -30px rgba(36, 28, 58, 0.35);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  overflow: hidden;
  border: 1px solid var(--paper-200);
}
.ticket__body {
  padding: var(--space-lg);
}
.ticket__airports {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.ticket__airport {
  text-align: center;
}
.ticket__airport-code {
  font-family: var(--font-display);
  font-size: 2.4rem;
}
.ticket__airport-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-on-paper-muted);
}
.ticket__plane {
  color: var(--purple-700);
  flex-shrink: 0;
}
.ticket__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md) var(--space-lg);
}
.ticket__item dt {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-on-paper-muted);
  margin-bottom: 4px;
}
.ticket__item dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.ticket__stub {
  background: var(--petrol-800);
  color: var(--paper-100);
  border-left: 2px dashed var(--paper-200);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.ticket__stub::before,
.ticket__stub::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--paper-100);
  border-radius: 50%;
  left: -13px;
}
.ticket__stub::before { top: -13px; }
.ticket__stub::after { bottom: -13px; }
.ticket__stub-label {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--petrol-400);
}
.ticket__stub-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: 4px;
}
.ticket__barcode {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 46px;
  margin-top: var(--space-md);
}
.ticket__barcode span {
  background: var(--gold-300);
  width: 3px;
}

@media (max-width: 760px) {
  .ticket {
    grid-template-columns: 1fr;
  }
  .ticket__body { padding: var(--space-md); }
  .ticket__grid { grid-template-columns: 1fr 1fr; }
  .ticket__stub {
    border-left: none;
    border-top: 2px dashed var(--paper-200);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .ticket__stub::before, .ticket__stub::after {
    left: 50%;
    top: -13px;
    transform: translateX(-50%);
  }
  .ticket__stub::after { bottom: -13px; top: auto; }
  .ticket__barcode { display: none; }
}

/* ============================================================
   13. TRAVEL / MAP
   ============================================================ */
.travel {
  background: var(--ink-900);
}
.travel .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.travel__text .section-title { margin: var(--space-sm) 0 var(--space-md); }
.travel__actions {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.travel__map-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(247, 241, 225, 0.18);
  box-shadow: 0 30px 60px -28px rgba(0,0,0,0.6);
}
#map {
  height: 380px;
  width: 100%;
  filter: saturate(0.9);
}
.travel__pin-note {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.7rem;
  background: linear-gradient(0deg, rgba(13,18,32,0.85), transparent);
  color: var(--text-on-dark-muted);
}

@media (max-width: 860px) {
  .travel .section-inner {
    grid-template-columns: 1fr;
  }
  #map { height: 300px; }
}

/* ============================================================
   14. RSVP — pasaporte de confirmación
   ============================================================ */
.rsvp {
  background:
    linear-gradient(180deg, var(--petrol-800), var(--ink-900));
}
.rsvp .section-inner {
  max-width: 720px;
}
.rsvp__intro {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.rsvp__intro .section-title { margin: var(--space-sm) auto 0; }
.rsvp__intro .section-body { margin: var(--space-sm) auto 0; }

.form-card {
  background: var(--paper-100);
  color: var(--text-on-paper);
  border-radius: 14px;
  padding: var(--space-lg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.55);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-on-paper-muted);
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--paper-200);
  background: var(--white);
  color: var(--text-on-paper);
}
.form-field textarea {
  resize: vertical;
  min-height: 90px;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--purple-500);
}

.form-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.form-fieldset legend {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-on-paper-muted);
  padding: 0;
  margin-bottom: 6px;
}

.radio-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.radio-pill {
  position: relative;
}
.radio-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.radio-pill span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--paper-200);
  font-size: 0.85rem;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.radio-pill input:checked + span {
  background: var(--purple-700);
  border-color: var(--purple-700);
  color: var(--paper-100);
}
.radio-pill input:focus-visible + span {
  outline: 2px solid var(--purple-500);
  outline-offset: 2px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-on-paper-muted);
  grid-column: 1 / -1;
}

.form-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xs);
  flex-wrap: wrap;
}

.form-status {
  font-size: 0.82rem;
  min-height: 1.2em;
}
.form-status[data-state="error"] { color: #a33b3b; }
.form-status[data-state="success"] { color: var(--tropic-500); }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: var(--space-md); }
}

/* --- Estado de éxito + calendario --- */
.rsvp-success {
  display: none;
  text-align: center;
  padding: var(--space-lg);
}
.rsvp-success.is-visible { display: block; }
.rsvp-success__stamp {
  width: 78px;
  height: 78px;
  margin: 0 auto var(--space-md);
  border: 2px solid var(--tropic-500);
  color: var(--tropic-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  font-size: 1.6rem;
}
.rsvp-success h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
}
.rsvp-success p {
  color: var(--text-on-paper-muted);
  max-width: 42ch;
  margin: var(--space-xs) auto var(--space-md);
}
.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* ============================================================
   15. FINAL MESSAGE
   ============================================================ */
.final {
  text-align: center;
  background: radial-gradient(80% 60% at 50% 100%, rgba(124,92,196,0.25), transparent), var(--ink-950);
}
.final__script {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--purple-300);
}
.final .section-title { margin: var(--space-sm) auto var(--space-md); }
.final .section-body { margin: 0 auto; }
.final__signature {
  margin-top: var(--space-lg);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-300);
}
.final__coords {
  margin-top: var(--space-xl);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--text-on-dark-muted);
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.site-footer {
  padding: var(--space-md);
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-on-dark-muted);
  background: var(--ink-950);
}

/* ============================================================
   17. UTILIDADES DE REVELADO AL SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-mid) var(--ease-premium), transform var(--dur-mid) var(--ease-premium);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* No-JS: garantizar que todo el contenido sea visible igual */
.no-js .reveal {
  opacity: 1;
  transform: none;
}
.no-js .intro {
  display: none;
}
