/* ==========================================================================
   Boda Paloma & Juan Carlos — Watercolor Mediterranean
   Palette: dusty blue, navy ink, warm cream paper, soft sage
   ========================================================================== */

:root {
  /* Paper + ink — cool white-blue */
  --paper:        #f4f7fb;
  --paper-soft:   #ffffff;
  --paper-deep:   #dde6f0;
  --ink:          #1b2a44;
  --ink-soft:     #334866;
  --ink-muted:    #6a7e98;

  /* Watercolor blue palette — darker base + per-section variants */
  --blue-dusty:   #6e8aa5;
  --blue-dusty-2: #9eb6ca;
  --blue-wash:    #e4edf6;
  --blue-deep:    #1f3a5f;          /* envelope + map/programa border */
  --blue-deeper:  #16294a;
  --blue-ice:     #eaf1f9;
  --blue-mid:     #3b5a82;

  /* Per-section background tints — distinct shades, subtle */
  --bg-hero:       #f4f7fb;
  --bg-countdown:  #ecf2f9;
  --bg-venues:     #e6eef7;
  --bg-programa:   #dde7f1;
  --bg-bus:        #e4ecf5;
  --bg-hotels:     #d8e3ee;
  --bg-rsvp:       #ecf2f9;
  --bg-music:      #e0eaf3;
  --bg-gift:       #e6eef7;
  --bg-closing:    #d6e2ed;

  /* Accents */
  --sage:         #9db4a7;
  --terracotta:   #b87a66;
  --gold:         #c8a863;

  /* Shadows + lines */
  --shadow-paper: 0 10px 30px rgba(31, 45, 70, 0.08), 0 2px 6px rgba(31, 45, 70, 0.04);
  --shadow-lift:  0 20px 50px rgba(31, 45, 70, 0.15), 0 4px 12px rgba(31, 45, 70, 0.06);
  --border-ink:   rgba(31, 45, 70, 0.15);

  --radius: 4px;

  /* Fonts */
  --font-script: 'Cormorant Garamond', 'Playfair Display', serif;     /* italic display = elegant invitation feel */
  --font-serif:  'Cormorant Garamond', 'Playfair Display', serif;
  --font-sans:   'Lato', system-ui, sans-serif;
  --font-logo:   'Cinzel', 'Cormorant Garamond', serif;               /* P&JC monogram + headers */
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* cool frosted paper — layered blue washes */
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(110, 138, 165, 0.10), transparent 55%),
    radial-gradient(ellipse at 80% 60%, rgba(158, 182, 202, 0.08), transparent 55%),
    radial-gradient(ellipse at 50% 90%, rgba(219, 228, 238, 0.5), transparent 65%);
  background-attachment: fixed;
}

/* lock body during intro */
body.intro-locked { overflow: hidden; height: 100vh; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography utilities ---------- */
.script { font-family: var(--font-script); font-style: normal; font-weight: 500; }
.sans   { font-family: var(--font-sans); font-style: normal; }
.upper  { text-transform: uppercase; letter-spacing: 0.22em; }

.section-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  text-align: center;
  margin-bottom: 0.6rem;
  line-height: 1.15;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

/* ---------- Container ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Watercolor corner frame — reusable wrapper
   Navy brush-stroke corners rendered via SVG, stretched across any container.
   ========================================================================== */
.wc-frame {
  position: relative;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 44px);
  background: var(--paper-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
}

.wc-frame::before,
.wc-frame::after,
.wc-frame > .wc-corner-tr,
.wc-frame > .wc-corner-bl {
  content: "";
  position: absolute;
  width: clamp(60px, 10vw, 110px);
  height: clamp(60px, 10vw, 110px);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'><defs><filter id='r' x='-20%25' y='-20%25' width='140%25' height='140%25'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feDisplacementMap in='SourceGraphic' scale='3'/></filter></defs><g fill='none' stroke='%232d4a6b' stroke-width='3.5' stroke-linecap='round' opacity='0.85' filter='url(%23r)'><path d='M10 12 Q 35 10, 78 11 Q 90 11, 104 13'/><path d='M11 14 Q 12 40, 12 78 Q 12 92, 14 106'/><path d='M16 22 Q 22 20, 30 20' opacity='0.55'/><path d='M20 16 Q 20 22, 22 30' opacity='0.55'/><circle cx='16' cy='16' r='1.2' opacity='0.6'/></g></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
.wc-frame::before { top: 0; left: 0; }
.wc-frame::after { top: 0; right: 0; transform: scaleX(-1); }
.wc-frame > .wc-corner-bl {
  bottom: 0; left: 0; transform: scaleY(-1);
}
.wc-frame > .wc-corner-tr {
  bottom: 0; right: 0; transform: scale(-1, -1);
}

/* subtle deckle edge shadow inside */
.wc-frame::after { z-index: 1; }

/* ---------- Section separators (existing asset) ---------- */
.section-separator {
  display: flex;
  justify-content: center;
  padding: 24px 0;
  opacity: 0.85;
}
.section-separator .separator-img {
  max-width: 340px;
  width: 70%;
  height: auto;
  filter: saturate(0.9);
}

/* ==========================================================================
   Intro — envelope: front splits L/R, halves slide off, invitation static behind
   ========================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #e3ecf6 0%, #cfdcec 60%, #b8cadf 100%);
  overflow: hidden;
}
.intro.out {
  opacity: 0;
  transition: opacity 0.7s ease 0.2s;
  pointer-events: none;
}

/* Stage holds the envelope front + the static invitation card */
.intro-stage {
  position: relative;
  width: min(88vw, 540px);
  aspect-ratio: 5 / 3.4;
  cursor: pointer;
  outline: none;
  animation: stage-in 0.9s cubic-bezier(.2,.8,.2,1) both;
}
.intro-stage:focus-visible { box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.4); border-radius: 8px; }
@keyframes stage-in {
  0%   { transform: translateY(20px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.intro.idle .intro-stage:hover { transform: translateY(-4px); transition: transform 0.3s ease; }
.intro.idle .intro-stage:hover .intro-env-half.left  { transform: translateX(-3%); transition: transform 0.4s ease; }
.intro.idle .intro-stage:hover .intro-env-half.right { transform: translateX(3%);  transition: transform 0.4s ease; }

/* Envelope front — full cover, then split into two halves that slide apart */
.intro-env {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.intro-env-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(165deg, #2a4a73 0%, #1f3a5f 55%, #16294a 100%);
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.07),
    0 12px 32px rgba(15, 27, 48, 0.35);
  transition: transform 0.9s cubic-bezier(.55, .05, .25, 1);
  will-change: transform;
}
.intro-env-half.left  { left: 0;  border-radius: 6px 0 0 6px; transform-origin: left center; }
.intro-env-half.right { right: 0; border-radius: 0 6px 6px 0; transform-origin: right center; }
/* subtle paper grain on envelope front */
.intro-env-half::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(125deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(35deg, rgba(0,0,0,0.06) 0 1px, transparent 1px 4px);
  border-radius: inherit;
  mix-blend-mode: overlay;
  pointer-events: none;
}
/* hairline split down center */
.intro-env-half.left::after  { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: rgba(0,0,0,0.18); }
.intro-env-half.right::after { content: ""; position: absolute; left: 0;  top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.05); }

/* Wax seal P&JC monogram — sits centered on the split */
.intro-env-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(58px, 11vw, 90px);
  height: clamp(58px, 11vw, 90px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #e9d28d 0%, #c8a863 45%, #8a7233 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 14px rgba(0,0,0,0.35), inset 0 -2px 4px rgba(0,0,0,0.25), inset 0 2px 5px rgba(255,255,255,0.35);
  z-index: 4;
  animation: seal-in 0.5s ease-out 0.4s both;
  transition: opacity 0.3s ease, transform 0.5s ease;
}
.intro-env-seal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 249, 230, 0.55);
}
.intro-env-seal span {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(13px, 2.2vw, 18px);
  letter-spacing: 0.05em;
  color: #fff8e2;
  text-shadow: 0 1px 1px rgba(0,0,0,0.25);
  position: relative;
  z-index: 1;
}
.intro-env-seal span em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  margin: 0 0.05em;
  color: #fff5d2;
}
@keyframes seal-in {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  60%  { transform: translate(-50%, -50%) scale(1.18); }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Opening anim — halves slide off, seal splits & fades */
.intro.opening .intro-env-half.left  { transform: translateX(-110%); }
.intro.opening .intro-env-half.right { transform: translateX(110%); }
.intro.opening .intro-env-seal { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }

.intro-hint {
  position: absolute;
  bottom: 70px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  pointer-events: none;
  opacity: 0;
  animation: hint-in 0.6s ease-out 1.1s forwards;
}
.intro-hint .script {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: var(--blue-deep);
  margin-bottom: 4px;
}
@keyframes hint-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.intro.opening .intro-hint { opacity: 0; transition: opacity 0.3s ease; }

.intro-skip {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: transparent;
  border: 1px solid rgba(31, 45, 70, 0.25);
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.intro-skip:hover { background: rgba(31, 45, 70, 0.08); color: var(--ink); }

/* ============== Static blue decorative accents (replaces snow/petals) ===== */
.petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.petal {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 90, 130, 0.18) 0%, rgba(59, 90, 130, 0) 70%);
  opacity: 0;
  animation: blob-fade-in 1s ease-out forwards;
  animation-delay: var(--blob-delay, 0.4s);
  filter: blur(2px);
}
@keyframes blob-fade-in {
  to { opacity: 1; }
}
/* ==========================================================================
   Boda P&JC v2 — Sections
   ========================================================================== */

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(219, 228, 238, 0.85) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 30%, rgba(158, 182, 202, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
}
/* giant watercolor washes */
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.hero-bg::before {
  top: -10%; left: -15%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, var(--blue-dusty-2) 0%, transparent 60%);
}
.hero-bg::after {
  bottom: -15%; right: -15%;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, var(--blue-wash) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 56px);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-in 1.1s ease-out 0.2s forwards;
}
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 22px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--blue-mid);
  vertical-align: middle;
  margin: 0 14px;
  opacity: 0.55;
}

.hero-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3rem, 8.5vw, 5.6rem);
  color: var(--ink);
  line-height: 1;
  margin-bottom: 22px;
  letter-spacing: 0.005em;
}
.hero-title .amp {
  color: var(--blue-deep);
  font-style: italic;
  font-weight: 500;
  margin: 0 0.05em;
}
.hero-title .name-2 { display: block; }

.hero-message {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto 24px;
}
.hero-message em {
  color: var(--blue-deep);
  font-style: italic;
  font-weight: 500;
}

.hero-when {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
  line-height: 1.7;
}
.hero-when strong {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 1.25rem;
  color: var(--blue-deep);
}

.hero-photo {
  margin: 0 auto 30px;
  max-width: 380px;
}
.hero-photo-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  background-image:
    repeating-linear-gradient(45deg,
      rgba(31, 58, 95, 0.05) 0 8px,
      transparent 8px 16px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo-frame::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(31, 58, 95, 0.18);
  border-radius: 3px;
  pointer-events: none;
}
.hero-photo-frame img {
  width: 100%; height: 100%; object-fit: cover;
}
.photo-placeholder {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-rings {
  display: flex;
  justify-content: center;
  margin: 18px 0 22px;
  opacity: 0.75;
}
.hero-rings svg { overflow: visible; }

.hero-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 48px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink);
  margin-bottom: 32px;
}

.hero-content > .venue-map-link { align-self: center; }
.hero-details .sep {
  color: var(--blue-dusty);
  opacity: 0.4;
  align-self: center;
}

.hero-scroll-btn {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  animation: bob 2s ease-in-out infinite;
  background: rgba(244, 247, 251, 0.6);
  backdrop-filter: blur(4px);
  z-index: 3;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* Phones: hero card fills the whole viewport */
@media (max-width: 640px) {
  .hero { padding: 0; min-height: 100vh; min-height: 100dvh; }
  .hero-content {
    max-width: 100%;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 24px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .hero-title { margin-bottom: 18px; }
  .hero-message { margin-bottom: 20px; }
  .hero-when { margin-bottom: 22px; }
  .hero-photo { max-width: 280px; margin-bottom: 22px; }
  .hero-scroll-btn { bottom: 18px; }
}

/* ==========================================================================
   Generic section
   ========================================================================== */
.section {
  padding: clamp(60px, 9vw, 110px) 0;
  position: relative;
}
.section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(31, 58, 95, 0.06) 50%, transparent 100%);
}

/* ======= Per-section blue tone variants (subtle, distinct per section) ===== */
.section-countdown { background: linear-gradient(180deg, transparent 0%, var(--bg-countdown) 30%, var(--bg-countdown) 70%, transparent 100%); }
.section-venues   { background: linear-gradient(180deg, transparent 0%, var(--bg-venues) 30%, var(--bg-venues) 70%, transparent 100%); }
.section-programa { background: var(--bg-programa); }
.section-bus      { background: linear-gradient(180deg, transparent 0%, var(--bg-bus) 30%, var(--bg-bus) 70%, transparent 100%); }
.section-hotels   { background: var(--bg-hotels); }
.section-rsvp     { background: linear-gradient(180deg, transparent 0%, var(--bg-rsvp) 30%, var(--bg-rsvp) 70%, transparent 100%); }
.section-music    { background: var(--bg-music); }
.section-gift     { background: linear-gradient(180deg, transparent 0%, var(--bg-gift) 30%, var(--bg-gift) 70%, transparent 100%); }
.section-closing  { background: var(--bg-closing); }

/* Section-alt override should not conflict — let specific section win */
.section-programa.section-alt,
.section-hotels.section-alt,
.section-music.section-alt,
.section-closing.section-alt { background: var(--bg-programa); }
.section-hotels.section-alt   { background: var(--bg-hotels); }
.section-music.section-alt    { background: var(--bg-music); }
.section-closing.section-alt  { background: var(--bg-closing); }


/* ==========================================================================
   Countdown
   ========================================================================== */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 28px);
  max-width: 720px;
  margin: 0 auto;
}
.countdown-item {
  text-align: center;
  padding: clamp(16px, 3vw, 28px) 8px;
  background: var(--paper-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  position: relative;
}
.countdown-item::before {
  content: "";
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid rgba(45, 74, 107, 0.12);
  border-radius: 2px;
  pointer-events: none;
}
.countdown-number {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--ink);
  line-height: 1;
}
.countdown-label {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-dusty);
  margin-top: 8px;
}

/* ==========================================================================
   Venues
   ========================================================================== */
.venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}
.venue-card {
  background: var(--paper-soft);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.venue-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.venue-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(45, 74, 107, 0.12);
  border-radius: 2px;
  pointer-events: none;
}
.venue-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.venue-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply; /* lets cream paper show through */
}
.venue-type {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-dusty);
  margin-bottom: 10px;
}
.venue-name {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.1;
}
.venue-time {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.venue-map-link,
.route-maps-link,
.bus-pin-link,
.hotel-grid-btn,
.spotify-btn,
.rsvp-open-btn,
.form-submit-btn,
.rsvp-close-success,
.rsvp-retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  background: transparent;
}
.venue-map-link:hover,
.route-maps-link:hover,
.bus-pin-link:hover,
.hotel-grid-btn:hover,
.spotify-btn:hover,
.rsvp-open-btn:hover,
.rsvp-close-success:hover,
.rsvp-retry-btn:hover {
  background: var(--ink);
  color: var(--paper);
}
.form-submit-btn {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 12px;
}
.form-submit-btn:hover { background: var(--blue-deep); }

/* ==========================================================================
   Watercolor route map
   ========================================================================== */
.route-map {
  position: relative;
  background: var(--paper-soft);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 56px) clamp(20px, 4vw, 44px);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-width: 820px;
  margin: 0 auto;
}
.route-map::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(45, 74, 107, 0.12);
  border-radius: 3px;
  pointer-events: none;
  z-index: 2;
}
/* cool blue watercolor wash center */
.route-map .wash {
  position: absolute;
  top: 15%; left: 12%; right: 12%; bottom: 18%;
  background: radial-gradient(ellipse at 50% 50%, rgba(158, 182, 202, 0.35) 0%, rgba(158, 182, 202, 0.1) 60%, transparent 85%);
  filter: blur(8px);
  z-index: 0;
}
.route-map .venue-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  max-width: 42%;
  text-align: center;
}
.route-map .venue-pin img {
  width: clamp(120px, 22vw, 220px);
  height: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 4px 8px rgba(31, 45, 70, 0.1));
}
.route-map .venue-pin-label {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--ink);
  line-height: 1.1;
}
.route-map .venue-pin-sub {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-dusty);
}

.route-map .venue-pin.a { top: 6%; left: 4%; }
.route-map .venue-pin.b { bottom: 4%; right: 4%; }

.route-map .route-path {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  width: 100%; height: 100%;
}
.route-map .route-path path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 2.5;
  stroke-dasharray: 4 8;
  stroke-linecap: round;
  opacity: 0.85;
  animation: route-dash 20s linear infinite;
}
@keyframes route-dash {
  to { stroke-dashoffset: -120; }
}

.route-map .route-time {
  position: absolute;
  top: 48%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper-soft);
  border: 1px solid rgba(45, 74, 107, 0.18);
  border-radius: 999px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink);
  z-index: 4;
  box-shadow: 0 4px 12px rgba(31, 45, 70, 0.08);
}
.route-map .route-time svg { color: var(--blue-dusty); }

.route-maps-cta {
  text-align: center;
  margin-top: 28px;
}

@media (max-width: 640px) {
  .route-map { aspect-ratio: 3 / 4; }
  .route-map .venue-pin { max-width: 48%; }
}
/* ==========================================================================
   Boda P&JC v2 — Programa, Bus, Hotels, RSVP, Music, Gift, Footer
   ========================================================================== */

/* ==========================================================================
   Programa — two variants, switched via body[data-timeline]
   ========================================================================== */
.timeline-wrap {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

/* ---- Variant A: "ribbon" (default) ------------------------------------- */
.timeline-a { display: block; }
.timeline-b { display: none; }
body[data-timeline="b"] .timeline-a { display: none; }
body[data-timeline="b"] .timeline-b { display: block; }

.timeline-a .t-item {
  display: grid;
  grid-template-columns: 1fr 160px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  position: relative;
}
.timeline-a .t-item .t-card {
  background: var(--paper-soft);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-paper);
  position: relative;
  text-align: center;
}
.timeline-a .t-item .t-card::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(45, 74, 107, 0.12);
  border-radius: 2px;
  pointer-events: none;
}
.timeline-a .t-item.left  .t-card { grid-column: 1; text-align: right; }
.timeline-a .t-item.right .t-card { grid-column: 3; text-align: left; }
.timeline-a .t-item .t-mid {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.timeline-a .t-item .t-icon {
  width: 140px; height: 140px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 2;
}
.timeline-a .t-item .t-icon img {
  width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 4px 10px rgba(31, 45, 70, 0.08));
}
/* SVG icon variant — blue line-art in soft blue circle (matches invitation) */
.t-icon-svg {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f1f6fb 0%, #d8e3f0 75%, #c5d4e4 100%);
  box-shadow: 0 4px 14px rgba(31, 58, 95, 0.10), inset 0 0 0 1px rgba(31, 58, 95, 0.10);
  padding: 14%;
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.t-icon-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}
.timeline-a .t-item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: calc(100% + 32px);
  background: linear-gradient(180deg, transparent, var(--blue-dusty-2) 30%, var(--blue-dusty-2) 70%, transparent);
  transform: translateX(-50%);
  z-index: 0;
  opacity: 0.45;
}
.timeline-a .t-item:last-child::after { display: none; }

.t-time {
  display: block;
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--blue-deep);
  line-height: 1;
  margin-bottom: 4px;
}
.t-label {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Programa section: tighter padding so zigzag timeline fits in one screen */
#programa.section { padding: clamp(30px, 5vw, 60px) 0; }
#programa .section-subtitle { margin-bottom: 1rem; }

/* ---- Variant B: big icons alternating, text below, tight vertical overlap ---- */
.timeline-b {
  position: relative;
  padding: 10px 0;
  max-width: 820px;
  margin: 0 auto;
}
.timeline-b::before {
  content: "";
  position: absolute;
  top: 30px; bottom: 30px;
  left: 50%; width: 1px;
  background: var(--ink-muted);
  transform: translateX(-50%);
  opacity: 0.55;
}
.timeline-b .t-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 24px;
  margin-top: -55px;
  position: relative;
}
.timeline-b .t-row:first-child { margin-top: 0; }
.timeline-b .t-row .t-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  padding: 0;
}
.timeline-b .t-row.odd  .t-unit { grid-column: 1; }
.timeline-b .t-row.even .t-unit { grid-column: 2; }
.timeline-b .t-icon-lg {
  width: clamp(110px, 15vw, 170px);
  height: clamp(110px, 15vw, 170px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}
.timeline-b .t-icon-lg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 6px 12px rgba(31, 45, 70, 0.08));
}
.timeline-b .t-row::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sage);
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--paper);
}
.timeline-b .t-time  { font-size: clamp(1.4rem, 2.5vw, 1.8rem); color: var(--ink); font-family: var(--font-serif); font-style: italic; font-weight: 500; margin: 0; }
.timeline-b .t-label { font-size: clamp(1rem, 1.8vw, 1.2rem); font-family: var(--font-script); font-weight: 600; color: var(--ink-soft); font-style: normal; }

@media (max-width: 640px) {
  .timeline-a .t-item {
    grid-template-columns: 100px 1fr;
    text-align: left !important;
  }
  .timeline-a .t-item .t-mid { grid-column: 1; }
  .timeline-a .t-item.left  .t-card,
  .timeline-a .t-item.right .t-card {
    grid-column: 2; text-align: left;
  }
  .timeline-a .t-item .t-icon { width: 90px; height: 90px; }
  .timeline-a .t-item::after { left: 45px; }

  .timeline-b { max-width: 100%; padding: 0; }
  .timeline-b .t-row { column-gap: 8px; margin-top: -40px; }
  .timeline-b .t-row:first-child { margin-top: 0; }
  .timeline-b .t-icon-lg { width: 95px; height: 95px; }
  .timeline-b .t-time { font-size: 1rem; line-height: 1.1; }
  .timeline-b .t-label { font-size: 0.85rem; line-height: 1.1; }
  .timeline-b::before { top: 20px; bottom: 20px; }
  .timeline-b .t-row::before { width: 7px; height: 7px; }
  #programa.section { padding: 24px 0; }
  #programa .section-subtitle { margin-bottom: 0.5rem; }
}

/* ==========================================================================
   Bus — multi-stop route (forward + reverse)
   ========================================================================== */
.bus-route {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.bus-illustration {
  width: 140px;
  margin: 0 auto 18px;
  mix-blend-mode: multiply;
}
.bus-direction {
  background: var(--paper-soft);
  padding: clamp(20px, 3.5vw, 32px) clamp(18px, 3vw, 28px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  position: relative;
  margin-bottom: 18px;
  text-align: left;
}
.bus-direction::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(31, 58, 95, 0.12);
  border-radius: 2px;
  pointer-events: none;
}
.bus-direction-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 14px;
  text-align: center;
  font-weight: 700;
}
.bus-direction.reverse .bus-direction-label { color: var(--blue-mid); }
.bus-stops {
  list-style: none;
  position: relative;
  padding: 4px 0 4px 8px;
}
.bus-stops::before {
  content: "";
  position: absolute;
  left: 22px; top: 14px; bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--blue-dusty-2) 15%, var(--blue-dusty-2) 85%, transparent);
  opacity: 0.7;
}
.bus-stops li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  position: relative;
}
.bus-stop-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-deep);
  color: var(--paper);
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--paper-soft);
  position: relative;
  z-index: 1;
}
.bus-direction.reverse .bus-stop-num { background: var(--blue-mid); }
.bus-stop-info { flex: 1; }
.bus-stop-info h4 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 2px;
}
.bus-stop-info p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 6px;
}
.bus-stop-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-deep);
  border-bottom: 1px solid rgba(31, 58, 95, 0.3);
  padding-bottom: 1px;
}
.bus-stop-link:hover { color: var(--blue-deeper); }
.bus-note {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.9rem;
  max-width: 460px;
  margin: 18px auto 0;
}
@media (max-width: 600px) {
  .bus-illustration { width: 110px; }
  .bus-stops::before { left: 19px; }
  .bus-stop-num { width: 26px; height: 26px; font-size: 12px; }
}

/* ==========================================================================
   Hotels
   ========================================================================== */
.hotel-carousel {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}
.hotel-carousel-track-wrapper {
  overflow: hidden;
  padding: 8px 4px;
}
.hotel-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.hotel-carousel-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: var(--paper-soft);
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  position: relative;
  text-align: center;
}
.hotel-carousel-card::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(45, 74, 107, 0.12);
  border-radius: 2px;
  pointer-events: none;
}
.hotel-grid-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue-deep);
  color: var(--paper);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  z-index: 2;
}
.hotel-grid-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 8px 0 14px;
  line-height: 1.15;
}
.hotel-grid-affiliated {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-top: 4px;
  font-weight: 400;
}
.hotel-grid-code {
  background: var(--blue-wash);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
  max-width: 100%;
}
.hotel-grid-code-label {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-dusty);
}
.hotel-grid-code-value {
  font-family: 'Courier New', monospace;
  font-style: normal;
  color: var(--ink);
  font-weight: 700;
  word-break: break-all;
}
.copy-btn-sm {
  background: transparent;
  border: 1px solid var(--blue-dusty);
  color: var(--blue-deep);
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}
.copy-btn-sm:hover { background: var(--blue-deep); color: var(--paper); }
.copy-btn-sm.copied { background: var(--sage); color: var(--paper); border-color: var(--sage); }

.hotel-grid-info {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 18px;
  min-height: 3.6em;
}

.hotel-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper-soft);
  border: 1px solid var(--border-ink);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: var(--shadow-paper);
  transition: background 0.2s;
}
.hotel-carousel-btn:hover { background: var(--ink); color: var(--paper); }
.hotel-carousel-prev { left: -20px; }
.hotel-carousel-next { right: -20px; }

.hotel-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.hotel-carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-ink);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.hotel-carousel-dots button.active {
  background: var(--ink);
  transform: scale(1.3);
}

@media (max-width: 900px) {
  .hotel-carousel-card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .hotel-carousel-card { flex: 0 0 100%; }
  .hotel-carousel-prev { left: 0; }
  .hotel-carousel-next { right: 0; }
}

/* ==========================================================================
   RSVP envelope button + modal
   ========================================================================== */
.rsvp-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.rsvp-envelope-wrap {
  width: 260px;
  aspect-ratio: 5 / 3;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  perspective: 1200px;
}
.rsvp-envelope-wrap:hover { transform: translateY(-4px); }
.rsvp-envelope-wrap:hover .rsvp-flap { transform: rotateX(-20deg); }
.rsvp-envelope-wrap .env-body,
.rsvp-envelope-wrap .env-back,
.rsvp-envelope-wrap .rsvp-flap,
.rsvp-envelope-wrap .rsvp-seal {
  position: absolute; inset: 0;
}
.rsvp-envelope-wrap .env-body {
  background: linear-gradient(165deg, #a9bfd2 0%, #7e9ab6 55%, #6e8aa5 100%);
  border-radius: 6px;
  box-shadow: var(--shadow-lift);
}
.rsvp-envelope-wrap .env-back {
  background: linear-gradient(165deg, #94aec5 0%, #6f8ca8 100%);
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
  border-radius: 6px;
}
.rsvp-flap {
  background: linear-gradient(175deg, #7e9ab6 0%, #6e8aa5 60%, #5d7a95 100%);
  clip-path: polygon(0 0, 50% 55%, 100% 0);
  transform-origin: top center;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  border-radius: 6px 6px 0 0;
}
.rsvp-seal {
  width: 54px; height: 54px;
  top: 28%; left: 50%;
  inset: auto; /* reset */
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e3c37a 0%, #c8a863 45%, #8e7538 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff9e6;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25), inset 0 -2px 4px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.3);
  position: absolute;
}

.rsvp-open-btn {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  padding: 14px 32px;
}

/* modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 45, 70, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 24px;
}
.modal-overlay.open {
  display: flex;
  animation: fade-in 0.25s ease-out;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--paper-soft);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(31, 45, 70, 0.3);
  animation: modal-rise 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 5;
}
.modal-close:hover { background: rgba(31,45,70,0.08); }

.modal-header {
  padding: 32px 32px 0;
  text-align: center;
}
.modal-header h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1.2;
}
.modal-deadline {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-top: 8px;
}
.modal-body { padding: 24px 32px 32px; }
.rsvp-form #rsvpAlergiasDetalle {
  width: 100%;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1rem;
  resize: vertical;
}

.rsvp-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rsvp-form .form-group { margin-bottom: 16px; }
.rsvp-form label {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-dusty);
  margin-bottom: 6px;
}
.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="tel"],
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-color: var(--blue-deep);
}
.rsvp-form .radio-group {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.rsvp-form .radio-label {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.form-help { font-family: var(--font-serif); font-style: italic; font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 8px; }

.attendees-fields .attendee-row {
  background: var(--blue-wash);
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.attendees-fields .attendee-row label {
  font-size: 10px;
  color: var(--blue-deep);
}

.rsvp-success, .rsvp-error {
  padding: 40px 20px;
  text-align: center;
}
.rsvp-success h3, .rsvp-error h3 {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--ink);
  margin: 16px 0 10px;
}
.rsvp-success p, .rsvp-error p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Spotify / Gift / Closing / Footer
   ========================================================================== */
.spotify-card, .gift-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--paper-soft);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow-paper);
  text-align: center;
  position: relative;
}
.spotify-card::before, .gift-card::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(45, 74, 107, 0.12);
  border-radius: 2px;
  pointer-events: none;
}
.spotify-icon { color: #1DB954; margin-bottom: 16px; display: flex; justify-content: center; }
.spotify-text, .gift-text {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 420px;
  margin: 0 auto 24px;
}
.spotify-btn {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.spotify-btn:hover { background: var(--blue-deep); }

.gift-illustration {
  width: 140px;
  margin: 0 auto 16px;
  mix-blend-mode: multiply;
}

.iban-box {
  background: var(--blue-wash);
  padding: 14px 18px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}
.iban-label {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-dusty);
}
.iban-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
}
.iban-number {
  font-family: 'Courier New', monospace;
  font-style: normal;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  font-size: clamp(0.78rem, 3.2vw, 1rem);
  flex: 0 1 auto;
  min-width: 0;
}
.copy-btn {
  background: transparent;
  border: 1px solid var(--blue-dusty);
  color: var(--blue-deep);
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s;
}
.copy-btn:hover { background: var(--blue-deep); color: var(--paper); }
.copy-btn.copied { background: var(--sage); color: var(--paper); border-color: var(--sage); }

/* Narrow viewports: keep IBAN row on one line by collapsing copy-btn to icon-only */
@media (max-width: 420px) {
  .iban-copy-btn { padding: 6px 8px; }
  .iban-copy-btn > span { display: none; }
}

.closing-section { text-align: center; }
.closing-content {
  max-width: 600px;
  margin: 0 auto;
}
.closing-photo {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}
.closing-photo::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  pointer-events: none;
  z-index: 2;
}
.closing-photo.has-photo { background: transparent; }
.closing-photo-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.closing-photo-placeholder {
  font-family: 'Courier New', monospace;
  font-style: normal;
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.closing-message {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
}
.closing-heart {
  color: var(--terracotta);
  font-size: 2rem;
}

.footer {
  text-align: center;
  padding: 60px 24px 40px;
  background: linear-gradient(180deg, transparent, rgba(45, 74, 107, 0.06));
}
.footer-monogram {
  font-family: var(--font-logo);
  font-style: normal;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.footer-monogram .footer-amp {
  color: var(--blue-deep);
  font-family: var(--font-serif);
  font-style: italic;
  margin: 0 0.05em;
  letter-spacing: 0;
}
.footer-date {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  margin: 8px 0;
}
.footer-love {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 12px;
}

/* intro toggle — based on body class */
body[data-intro="off"] .intro { display: none; }

/* ==========================================================================
   Form error + loading states (production)
   ========================================================================== */
.rsvp-form input.error,
.rsvp-form select.error,
.rsvp-form textarea.error {
  border-color: var(--terracotta);
  background: rgba(198, 135, 107, 0.06);
}
.form-submit-btn[disabled] { opacity: 0.75; cursor: wait; }
.btn-loading { display: none; align-items: center; gap: 6px; }
.form-submit-btn .btn-loading .spinner { margin-right: 0; }
.attendees-fields .attendee-row input {
  width: 100%;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1rem;
  margin-top: 4px;
}
.attendees-fields .attendee-row input:focus {
  outline: none;
  border-color: var(--blue-deep);
}
