/* ═══════════════════════════════════════════════════════════
   Nico & Fer — Wedding Site
   Paleta y tipografías de la invitación + dresscode
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: "The Artisan";
  src: url("assets/the-artisan.otf") format("opentype");
  font-display: swap;
}

:root {
  /* Papel */
  --paper:        #f0e9dc;
  --paper-warm:   #ece2cc;
  --paper-deep:   #d6c9b3;

  /* Tintas */
  --ink:          #181614;
  --ink-soft:     #5a4b36;
  --sepia:        #6b5a45;
  --sepia-soft:   #8b7a62;

  /* Paleta dresscode */
  --olive:        #6F7048;
  --olive-soft:   #93936A;
  --camel:        #B08855;
  --tan:          #C9A37A;
  --cream:        #E9DDC2;
  --brown:        #6B4A33;
  --brown-deep:   #4A3221;
  --sky:          #AFC3D2;

  --rule:         rgba(107, 90, 69, 0.22);
  --rule-soft:    rgba(107, 90, 69, 0.12);

  /* Tipos */
  --script: "The Artisan", "Allura", cursive;
  --serif:  "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:   "Montserrat", "Inter", system-ui, -apple-system, sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Sutil textura de papel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.35), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(107, 74, 51, 0.05), transparent 55%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.36 0 0 0 0 0.27 0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* ════════════ TIPOGRAFÍA BASE ════════════ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}
p { color: var(--ink-soft); margin: 0 0 1em; text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia);
  line-height: 1.5;
}
.script {
  font-family: var(--script);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  color: var(--ink);
}
.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
.tabnum { font-variant-numeric: tabular-nums; }

/* ════════════ NAV FLOTANTE ════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(240, 233, 220, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1), border-color 0.3s;
}
.nav.is-visible {
  transform: translateY(0);
  border-bottom-color: var(--rule-soft);
}
.nav-brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.nav-brand .amp { color: var(--sepia); font-weight: 300; padding: 0 4px; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sepia);
  padding: 6px 0;
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: var(--sepia);
  transform: translateX(-50%);
  transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { width: 22px; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  width: 36px; height: 36px;
  position: relative;
}
.nav-burger span {
  display: block;
  width: 20px; height: 1px;
  background: var(--ink);
  margin: 4px auto;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ════════════ SECCIÓN GENÉRICA ════════════ */
section {
  position: relative;
  z-index: 1;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-pad {
  padding: 120px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  margin-bottom: 12px;
  font-weight: 400;
}
.section-head .deck {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--sepia);
  max-width: 540px;
  margin: 0 auto;
}

.divider-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 28px;
  width: fit-content;
}
.divider-orn .line {
  width: 60px;
  height: 1px;
  background: var(--sepia);
  opacity: 0.5;
}
.divider-orn .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sepia);
  opacity: 0.7;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s cubic-bezier(.2,.8,.2,1), transform 1.1s cubic-bezier(.2,.8,.2,1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-delay="4"] { transition-delay: 0.4s; }
[data-reveal][data-delay="5"] { transition-delay: 0.5s; }

/* ════════════ HERO ════════════ */
.hero {
  min-height: 100vh;
  padding: 60px 40px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 88px;
}
.hero-meta .dot { width: 4px; height: 4px; background: var(--sepia); border-radius: 50%; opacity: 0.6; }
.hero-title {
  font-family: var(--script);
  font-size: clamp(96px, 18vw, 240px);
  line-height: 0.86;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
  position: relative;
}
.hero-title .line2 {
  display: block;
  margin-left: 0.15em;
  margin-top: -0.1em;
}
.hero-couple {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--sepia);
  margin: 40px 0 18px;
  padding-left: 0.5em;
}
.hero-couple .amp {
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  padding: 0 6px;
}
.hero-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink);
  max-width: 460px;
  margin: 0 auto 48px;
  line-height: 1.5;
  font-weight: 300;
}
.hero-date {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.hero-venue {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--sepia);
  font-weight: 300;
}

/* ════════════ HERO MUSIC CTA ════════════ */
.hero-music-cta {
  /* button reset */
  appearance: none;
  background: transparent;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;

  /* layout */
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 22px 11px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease, color 0.35s ease;
}
.hero-music-cta:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--sepia);
  transform: translateY(-1px);
}

/* Ondas de música — animadas solo cuando is-playing */
.hmc-waves {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  width: 18px;
}
.hmc-waves > span {
  display: block;
  width: 2px;
  background: var(--sepia);
  border-radius: 1px;
  opacity: 0.85;
  transition: height 0.35s ease, background 0.35s ease;
}
/* Estado pausado: las barras hacen una pequeña "constelación" estática */
.hmc-waves > span:nth-child(1) { height: 5px; }
.hmc-waves > span:nth-child(2) { height: 9px; }
.hmc-waves > span:nth-child(3) { height: 13px; }
.hmc-waves > span:nth-child(4) { height: 7px; }
.hmc-waves > span:nth-child(5) { height: 4px; }

/* Estado tocando: animación de equalizer */
.hero-music-cta.is-playing .hmc-waves > span {
  background: var(--paper);
  animation: hmcWave 1.1s ease-in-out infinite;
}
.hero-music-cta.is-playing .hmc-waves > span:nth-child(1) { animation-delay: -0.20s; }
.hero-music-cta.is-playing .hmc-waves > span:nth-child(2) { animation-delay: -0.45s; }
.hero-music-cta.is-playing .hmc-waves > span:nth-child(3) { animation-delay:  0.00s; }
.hero-music-cta.is-playing .hmc-waves > span:nth-child(4) { animation-delay: -0.30s; }
.hero-music-cta.is-playing .hmc-waves > span:nth-child(5) { animation-delay: -0.55s; }
@keyframes hmcWave {
  0%, 100% { height: 3px; }
  50%      { height: 14px; }
}

/* Texto del botón */
.hmc-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.005em;
  line-height: 1;
  display: inline-flex;
}
.hmc-text-playing { display: none; }
.hero-music-cta.is-playing .hmc-text-play { display: none; }
.hero-music-cta.is-playing .hmc-text-playing {
  display: inline;
  color: var(--paper);
}

/* Ícono play/pause al final */
.hmc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--sepia);
  color: var(--sepia);
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.hmc-icon-pause { display: none; }
.hero-music-cta.is-playing .hmc-icon {
  background: var(--paper);
  color: var(--olive);
  border-color: var(--paper);
}
.hero-music-cta.is-playing .hmc-icon-play  { display: none; }
.hero-music-cta.is-playing .hmc-icon-pause { display: block; }

/* Estado tocando: el botón se llena de oliva */
.hero-music-cta.is-playing {
  background: var(--olive);
  border-color: var(--olive);
}
.hero-music-cta.is-playing .hmc-text { color: var(--paper); }

/* Error: música no carga */
.hero-music-cta.is-error {
  border-color: rgba(180, 60, 60, 0.45);
}

@media (max-width: 640px) {
  .hero-music-cta {
    padding: 10px 18px 10px 14px;
    gap: 10px;
  }
  .hmc-text { font-size: 13.5px; }
}

/* Countdown */
.countdown {
  margin-top: 52px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}
.cd-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 4.8vw, 56px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.cd-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-top: 12px;
}
.cd-sep {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--sepia);
  opacity: 0.4;
  line-height: 1;
  margin-top: 6px;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia);
  opacity: 0.7;
}
.scroll-cue .line {
  width: 1px;
  height: 32px;
  background: var(--sepia);
  animation: scrollLine 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ════════════ HISTORIA ════════════ */
.story {
  background: var(--paper);
}
.story-wrap {
  text-align: center;
  position: relative;
}
.story-lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 620px;
  margin: 0 auto 56px;
}
.story-years {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 60px);
  margin-bottom: 48px;
}
.story-year {
  text-align: center;
}
.story-year .num {
  font-family: var(--script);
  font-size: clamp(60px, 9vw, 110px);
  line-height: 0.9;
  color: var(--ink);
  font-weight: 400;
}
.story-year .lbl {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-top: 14px;
}

/* Polaroid-style historia photos */
.story-photo {
  margin: 0 auto 28px;
  width: clamp(220px, 24vw, 300px);
  padding: 14px 14px 36px;
  background: #fbf7ee;
  border: 1px solid rgba(107, 90, 69, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 22px 36px -22px rgba(74, 50, 33, 0.45),
    0 4px 12px -4px rgba(74, 50, 33, 0.18);
  position: relative;
}
.story-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #181614;
}
.story-photo::after {
  /* tiny "year label" stripe at bottom — like masking tape, but here just paper */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 28px;
  height: 1px;
  background: var(--sepia);
  opacity: 0.4;
}
.story-photo--left  { transform: rotate(-2.2deg); transform-origin: bottom right; }
.story-photo--right { transform: rotate(2.4deg);  transform-origin: bottom left;  }
.story-photo:hover  { transform: rotate(0) translateY(-2px); transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.story-photo {
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}

.story-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 22px;
}
.story-arrow .yrs {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--sepia);
}
.story-arrow svg { display: block; }
.story-bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 880px;
  margin: 56px auto 0;
  text-align: left;
}
.story-bullet {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.story-bullet .label {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 10px;
}
.story-bullet p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
  margin: 0;
}

/* ════════════ CUÁNDO Y DÓNDE ════════════ */
.location {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
}
.castle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.castle-wrap img {
  width: min(720px, 95%);
  height: auto;
  display: block;
  opacity: 0.95;
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
  margin-top: 48px;
}
.loc-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.loc-card {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.loc-card:last-child { border-bottom: 1px solid var(--rule); }
.loc-card .label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 12px;
}
.loc-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 6px;
}
.loc-card .sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sepia);
  font-size: 17px;
  margin-bottom: 8px;
}
.loc-card .addr {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.loc-card .date-big {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.loc-card .date-day {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sepia);
  font-size: 17px;
  margin-top: 6px;
}

.loc-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn:hover { background: var(--sepia); border-color: var(--sepia); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}
.btn svg { width: 14px; height: 14px; }

.map-wrap {
  position: relative;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  min-height: 420px;
  overflow: hidden;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  filter: sepia(0.15) saturate(0.85) contrast(0.95);
}

/* ════════════ PROGRAMA DEL DÍA ════════════ */
.programa {
  background: var(--paper-warm);
  position: relative;
}
.timeline {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 88px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--sepia);
  opacity: 0.3;
}
.tl-item {
  position: relative;
  padding: 22px 0 22px 124px;
  display: flex;
  align-items: baseline;
}
.tl-item .hour {
  position: absolute;
  left: 0;
  top: 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  letter-spacing: 0;
  width: 74px;
  text-align: right;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 84px;
  top: 36px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper-warm);
  border: 1px solid var(--sepia);
}
.tl-item.is-star::before {
  background: var(--olive);
  border-color: var(--olive);
  box-shadow: 0 0 0 4px var(--paper-warm), 0 0 0 5px rgba(111, 112, 72, 0.3);
}
.tl-content .title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.2;
}
.tl-content .desc {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ════════════ DRESSCODE ════════════ */
.dresscode {
  background: var(--paper);
}
.dc-lead {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 620px;
  margin: 0 auto 56px;
}

/* ── Paleta editorial: franja continua + etiquetas ── */
.palette-band {
  max-width: 1080px;
  margin: 0 auto 64px;
}
.pb-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  height: 96px;
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.pb-strip::before,
.pb-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.pb-strip::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.06));
}
.pb-color {
  position: relative;
  height: 100%;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.pb-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 18px;
  gap: 8px;
}
.pb-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-right: 12px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 14px;
}
.pb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(43,35,23,0.12);
}
.pb-name {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.15;
  min-height: 2.3em; /* reserve two lines so wrapped names don't collide with hex */
}
.pb-hex {
  font-family: var(--mono), monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--sepia);
  text-transform: uppercase;
}
.pb-note {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin-top: 4px;
}

.dc-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.dc-rule h4 {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.dc-rule.yes h4 { color: var(--olive); }
.dc-rule.no h4 { color: var(--brown); }
.dc-rule ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dc-rule li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.dc-rule li .m {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1;
}
.dc-rule.yes li .m { color: var(--olive); }
.dc-rule.no li .m { color: var(--brown); }
.dc-rule li b { color: var(--ink); font-weight: 600; }

.dc-cta {
  text-align: center;
  margin-top: 48px;
}

/* ── Expand / collapse: outfits inline ── */
.dc-expand {
  margin-top: 56px;
}
.btn-expand {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 18px 0;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  transition: color 0.3s;
}
.btn-expand:hover { color: var(--sepia); }
.be-line {
  height: 1px;
  background: var(--rule);
  width: 100%;
}
.be-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: inherit;
}
.be-chev {
  display: inline-flex;
  width: 18px; height: 18px;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.be-chev svg { width: 100%; height: 100%; }
.btn-expand[aria-expanded="true"] .be-chev { transform: rotate(180deg); }
.be-text-hide { display: none; }
.btn-expand[aria-expanded="true"] .be-text-show { display: none; }
.btn-expand[aria-expanded="true"] .be-text-hide { display: inline; }

.dc-outfits-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(.2,.8,.2,1), opacity 0.5s, padding 0.4s;
  opacity: 0;
  padding-top: 0;
}
.dc-outfits-wrap.is-open {
  max-height: 8000px;
  opacity: 1;
  padding-top: 48px;
}
.dc-outfits-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.dc-outfits-intro p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.55;
}

.outfit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}
.outfit-card {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.outfit-img {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
  overflow: hidden;
  margin-bottom: 14px;
}
.outfit-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.outfit-card:hover .outfit-img img { transform: scale(1.03); }
.outfit-idx {
  position: absolute;
  top: 10px; left: 12px;
  font-family: var(--mono), monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--ink);
  background: rgba(244, 238, 223, 0.85);
  padding: 3px 7px;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.outfit-tag {
  position: absolute;
  top: 10px; right: 12px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  background: rgba(244, 238, 223, 0.85);
  padding: 4px 9px;
  border-radius: 999px;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.outfit-card h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: 0;
}
.outfit-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.outfit-chips {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}
.outfit-chips span {
  width: 13px; height: 13px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(43,35,23,0.12);
}

.dc-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 56px auto 0;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.dc-detail .eyebrow { margin-bottom: 10px; }
.dc-detail p { margin: 0; font-size: 13px; line-height: 1.55; }

.dc-shoenote {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 32px 36px;
  background: var(--paper-warm);
  border-left: 2px solid var(--olive);
  text-align: left;
}
.dc-shoenote .eyebrow { margin-bottom: 8px; }
.dc-shoenote h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.dc-shoenote p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.dc-shoenote b { color: var(--ink); font-weight: 600; }

/* ════════════ HOSPEDAJE ════════════ */
.lodging {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
}
.lodging-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}
.lodge-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s, transform 0.3s;
}
.lodge-card:hover { border-color: var(--sepia); transform: translateY(-2px); }
.lodge-card .tag {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sepia);
}
.lodge-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
}
.lodge-card .meta {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sepia);
  font-size: 15px;
}
.lodge-card p {
  font-size: 13px;
  margin: 0;
  line-height: 1.55;
}
.lodge-link {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}
.lodge-link:hover { color: var(--sepia); }
.lodge-link::after { content: "→"; transition: transform 0.3s; }
.lodge-link:hover::after { transform: translateX(4px); }

.transport-note {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 28px 32px;
  background: var(--paper);
  border-left: 2px solid var(--olive);
  font-size: 14px;
}
.transport-note h4 {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 10px;
}
.transport-note p { margin: 0; font-size: 14px; }

/* ════════════ REGALOS ════════════ */
.gifts {
  background: var(--paper-warm);
}
.gifts-lead {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 56px;
  color: var(--ink);
}
.gifts-lead .serif-italic { color: var(--brown); }

.gifts-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 820px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.gift-item {
  border-bottom: 1px solid var(--rule-soft);
}
.gift-item:last-child { border-bottom: 0; }

.gift-link {
  display: grid;
  grid-template-columns: 36px 1fr auto auto 22px;
  align-items: baseline;
  gap: 14px;
  padding: 20px 4px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: background 0.25s, padding 0.25s;
}
.gift-link::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: var(--paper);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: -1;
}
.gift-link:hover { padding-left: 16px; padding-right: 16px; }
.gift-link:hover::before { opacity: 1; }

.gift-idx {
  font-family: var(--mono), monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--sepia);
}
.gift-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: pretty;
}
.gift-link:hover .gift-name { font-style: italic; }

.gift-leader {
  align-self: end;
  height: 1px;
  border-bottom: 1px dotted var(--rule);
  transform: translateY(-6px);
  min-width: 30px;
}
.gift-price {
  font-family: var(--mono), monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}
.gift-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sepia);
  transition: transform 0.3s, color 0.25s;
  transform: translateY(2px);
}
.gift-arrow svg { width: 18px; height: 18px; display: block; }
.gift-link:hover .gift-arrow { transform: translate(4px, 2px); color: var(--olive); }

.gift-item--legend .gift-name { font-style: italic; color: var(--brown); }
.gift-item--legend .gift-price { color: var(--brown); font-weight: 600; }

.gifts-foot {
  max-width: 640px;
  margin: 48px auto 0;
  text-align: center;
}
.gifts-foot-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--sepia-soft);
}
.gifts-foot-rule .line { width: 48px; height: 1px; background: var(--rule); display: block; }
.gifts-foot-rule .dot { width: 4px; height: 4px; background: var(--sepia-soft); border-radius: 50%; display: block; }
.gifts-foot p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--sepia);
  line-height: 1.6;
  margin: 0;
}
.gifts-foot b { font-style: normal; color: var(--ink); font-weight: 500; }
.gifts-foot a { color: var(--ink); border-bottom: 1px solid var(--rule); }
.gifts-foot a:hover { border-bottom-color: var(--ink); }

.copy-btn {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  align-self: flex-start;
  margin-top: 4px;
}
.copy-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.copy-btn.is-copied { background: var(--olive); border-color: var(--olive); color: var(--paper); }

/* ════════════ RSVP ════════════ */
.rsvp {
  background: var(--paper);
  position: relative;
}
.rsvp::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1080px, 92%);
  height: 1px;
  background: var(--rule);
}
.rsvp-deadline {
  text-align: center;
  margin: -16px 0 56px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sepia);
}
.rsvp-deadline b { color: var(--ink); font-weight: 600; }
.rsvp-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper-warm);
  padding: 48px 56px 40px;
  border: 1px solid var(--rule);
  transition: opacity 0.4s, transform 0.4s;
}
.rsvp-form.is-hidden {
  display: none;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.field-label {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia);
  display: block;
}

/* ─── Bloque "buscar invitación" ─── */
.rsvp-block { margin-bottom: 8px; }
.rsvp-block .field-label { margin-bottom: 10px; }

.rsvp-combobox {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.3s;
}
.rsvp-combobox.is-open,
.rsvp-combobox:focus-within { border-bottom-color: var(--ink); }
.rsvp-combobox.is-error { animation: shake 0.4s; border-bottom-color: var(--brown); }

.rsvp-combo-input {
  background: transparent;
  border: 0;
  padding: 8px 0;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  font-weight: 400;
  outline: none;
  width: 100%;
}
.rsvp-combo-input::placeholder { color: var(--sepia-soft); font-style: italic; }

.rsvp-combo-toggle {
  background: transparent;
  border: 0;
  padding: 4px 0 4px 12px;
  color: var(--sepia);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s, transform 0.3s;
}
.rsvp-combo-toggle svg { width: 18px; height: 18px; display: block; }
.rsvp-combobox.is-open .rsvp-combo-toggle { transform: rotate(180deg); color: var(--ink); }

.rsvp-combo-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px -28px rgba(60, 40, 20, 0.35);
  list-style: none;
  padding: 6px;
  margin: 0;
  z-index: 30;
  max-height: 320px;
  overflow-y: auto;
  animation: comboIn 0.18s ease;
}
@keyframes comboIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rsvp-combo-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  border-radius: 1px;
  transition: background 0.18s;
}
.rsvp-combo-opt + .rsvp-combo-opt { border-top: 1px solid var(--rule-soft); }
.rsvp-combo-opt:hover,
.rsvp-combo-opt.is-highlight { background: var(--paper-warm); }
.rsvp-combo-opt.is-selected { background: var(--paper-warm); }
.rsvp-combo-opt.is-selected .rsvp-combo-label { font-style: italic; }
.rsvp-combo-label {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.35;
}
.rsvp-combo-tag {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sepia);
  border: 1px solid var(--rule);
  padding: 4px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}
.rsvp-combo-empty {
  padding: 18px 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--sepia);
  text-align: center;
}
.rsvp-combo-empty a { color: var(--ink); border-bottom: 1px solid var(--rule); }

.rsvp-combo-hint {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--sepia);
}
.rsvp-combo-hint a { color: var(--ink); border-bottom: 1px solid var(--rule); }
.rsvp-combo-hint a:hover { border-bottom-color: var(--ink); }

/* ─── Panel que aparece tras elegir ─── */
.rsvp-panel {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-soft);
  opacity: 0;
  transform: translateY(8px);
}
.rsvp-panel.rsvp-panel-in {
  animation: rsvpPanelIn 0.45s ease forwards;
}
@keyframes rsvpPanelIn {
  to { opacity: 1; transform: translateY(0); }
}

.rsvp-card-invite {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule-soft);
}
.rsvp-card-invite .field-label { margin-bottom: 10px; }
.rsvp-invitees {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 6px;
  text-wrap: pretty;
}
.rsvp-count {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sepia);
  margin: 0;
}

.rsvp-options.is-error { animation: shake 0.4s; }

/* ─── Comentarios cuando hay varias personas ─── */
.rsvp-comments {
  margin-top: 22px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s;
}
.rsvp-comments.is-in { opacity: 1; transform: translateY(0); }
.rsvp-comments .field-label { margin-bottom: 12px; }

.rsvp-textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 6px 0;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  resize: vertical;
  outline: none;
  transition: border-color 0.3s;
  line-height: 1.5;
}
.rsvp-textarea:focus { border-bottom-color: var(--ink); }
.rsvp-textarea::placeholder { color: var(--sepia-soft); font-style: italic; }

/* ─── Notas en el resumen ─── */
.rsvp-success li.sum-note {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  border-left-color: var(--camel);
  background: var(--paper-warm);
}
.sum-note-label {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sepia);
  font-weight: 500;
}
.sum-note-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}

.rsvp-options {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rsvp-options legend {
  padding: 0;
  margin-bottom: 10px;
}
.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--sepia);
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.25s;
}
.opt-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--olive);
  transform: scale(0);
  transition: transform 0.25s;
}
.opt-text {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  font-weight: 400;
}
.opt:hover { border-color: var(--sepia); }
.opt input:checked ~ .opt-mark { border-color: var(--olive); }
.opt input:checked ~ .opt-mark::after { transform: scale(1); }
.opt input:checked ~ .opt-text { font-style: italic; }
.opt-yes input:checked ~ .opt-mark { border-color: var(--olive); }
.opt-yes input:checked ~ .opt-mark::after { background: var(--olive); }
.opt-no input:checked ~ .opt-mark { border-color: var(--brown); }
.opt-no input:checked ~ .opt-mark::after { background: var(--brown); }
.opt-maybe input:checked ~ .opt-mark { border-color: var(--camel); }
.opt-maybe input:checked ~ .opt-mark::after { background: var(--camel); }

.rsvp-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.rsvp-submit { width: 100%; justify-content: center; padding: 16px 22px; }

.rsvp-success {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 56px 48px;
  border: 1px solid var(--olive);
  background: var(--paper-warm);
  text-align: center;
  display: none;
}
.rsvp-success.is-visible { display: block; animation: fadeUp 0.6s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.rsvp-success h3 {
  font-family: var(--script);
  font-size: 64px;
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1;
}
.rsvp-success p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--sepia);
  margin-bottom: 28px;
}
.rsvp-success ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rsvp-success li {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--paper);
  font-size: 14px;
  border-left: 2px solid var(--rule);
}
.sum-name { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.sum-status {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
}
.sum-si { color: var(--olive); }
.sum-no { color: var(--brown); }
.sum-quizas { color: var(--camel); }
.rsvp-success li:has(.sum-si) { border-left-color: var(--olive); }
.rsvp-success li:has(.sum-no) { border-left-color: var(--brown); }
.rsvp-success li:has(.sum-quizas) { border-left-color: var(--camel); }

/* ════════════ FOOTER ════════════ */
.footer {
  padding: 100px 40px 60px;
  text-align: center;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.footer .signature {
  font-family: var(--script);
  font-size: clamp(72px, 11vw, 130px);
  line-height: 0.9;
  color: var(--ink);
  margin-bottom: 24px;
}
.footer .meta {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia);
  line-height: 2;
}
.footer .meta .amp {
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  padding: 0 4px;
}

/* ════════════ MUSIC FAB ════════════ */
.music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(60, 40, 20, 0.12);
}
.music-btn:hover { transform: translateY(-2px); border-color: var(--sepia); }
.music-btn .icon-play,
.music-btn .icon-pause { color: var(--sepia); }
.music-btn .icon-pause { display: none; }
.music-btn.is-playing .icon-play { display: none; }
.music-btn.is-playing .icon-pause { display: block; }
.music-btn.is-playing { background: var(--olive); border-color: var(--olive); }
.music-btn.is-playing .icon-pause { color: var(--paper); }
.music-btn.is-playing::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--olive);
  opacity: 0.5;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0; }
}
.music-btn.is-error::after {
  content: "Sin música cargada";
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: fadeUp 0.3s ease;
}

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav-burger { display: flex; align-items: center; justify-content: center; flex-direction: column; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 24px 28px;
    border-bottom: 1px solid var(--rule);
    transform: translateY(-120%);
    transition: transform 0.4s;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links li { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
  .nav-links li:last-child { border-bottom: 0; }

  .section-pad { padding: 80px 0; }
  .container, .container-narrow { padding: 0 24px; }

  .countdown { gap: 16px; }
  .cd-unit { min-width: 44px; }

  .story-bullets { grid-template-columns: 1fr; gap: 24px; }
  .story-years { gap: 16px; flex-direction: column; }
  .story-arrow { padding-bottom: 0; }
  .story-arrow svg { transform: rotate(90deg); }

  .location-grid { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before { left: 64px; }
  .tl-item { padding-left: 92px; }
  .tl-item .hour { width: 54px; font-size: 21px; }
  .tl-item::before { left: 60px; }
  .tl-content .title { font-size: 19px; }

  .palette-wrap { grid-template-columns: repeat(3, 1fr); }
  .pb-strip { height: 64px; }
  .pb-labels { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .outfit-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .dc-details { grid-template-columns: 1fr 1fr; gap: 24px; }
  .dc-shoenote { padding: 24px 20px; }
  .dc-rules { grid-template-columns: 1fr; gap: 32px; }
  .lodging-grid { grid-template-columns: 1fr; }
  .gifts-grid { grid-template-columns: 1fr; }
  .gift-link {
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    padding: 16px 4px;
  }
  .gift-link:hover { padding-left: 8px; padding-right: 8px; }
  .gift-leader { display: none; }
  .gift-arrow { display: none; }
  .gift-name { font-size: 16px; }
  .gift-price {
    grid-column: 2 / 4;
    font-size: 13px;
    color: var(--sepia);
    margin-top: 4px;
  }

  .rsvp-form { padding: 32px 24px 24px; }
  .rsvp-success { padding: 36px 24px 28px; }
  .rsvp-combo-input { font-size: 19px; }
  .rsvp-invitees { font-size: 21px; }
  .rsvp-combo-list { max-height: 60vh; }
  .rsvp-combo-opt { padding: 14px 12px; }
  .rsvp-combo-label { font-size: 16px; }
}

@media (max-width: 520px) {
  .hero-meta { font-size: 9px; letter-spacing: 0.24em; gap: 10px; }
  .palette-wrap { grid-template-columns: repeat(2, 1fr); }
  .pb-labels { grid-template-columns: 1fr; }
  .footer { padding: 64px 24px 40px; }
}

/* ════════════ DECORACIÓN: MESA LARGA (hand-drawn) ════════════ */
.long-table {
  position: absolute;
  right: 0;
  width: clamp(120px, 12vw, 190px);
  pointer-events: none;
  z-index: 3;
  opacity: 0.96;
  overflow: hidden;   /* clipped at the right edge of viewport */
}
.long-table-svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Tinta + papel + acentos sutiles — mismo lenguaje del sitio */
.long-table {
  --lt-cloth:       #ffffff;
  --lt-cloth-soft:  rgba(0, 0, 0, 0.05);
  --lt-ink:         #000000;
  --lt-ink-soft:    #5a5a5a;
  --lt-plate:       #ffffff;
  --lt-lemon:       #ffffff;
  --lt-lemon-rind:  #000000;
  --lt-wine:        #ffffff;
  --lt-olive:       #ffffff;
  --lt-olive-soft:  #ffffff;
  --lt-sauce:       #ffffff;
  --lt-fish-board:  #ffffff;
  --lt-fish:        #ffffff;
  --lt-tomato:      #ffffff;
  --lt-bread:       #ffffff;
  --lt-tray:        #000000;
}
/* Ocultar en pantallas estrechas donde no hay espacio */
@media (max-width: 1180px) {
  .long-table { display: none; }
}
/* Ocultar en pantallas estrechas donde no hay espacio */
@media (max-width: 1180px) {
  .long-table { display: none; }
}
