:root {
  /* =========================================================
     PALETA DE BODA PERSONALIZADA (Inspirada en el ramo)
     - Dusty Rose:   #8C4351 / #9B4C5D
     - Soft Blossom: #E5B2B8 / #F2D5D9
     - Sage Leaf:    #7D8B75 / #66745F
     - Autumn Ivory: #E8DDD0 / #F8F4EE
     ========================================================= */
  --dusty-rose: #8C4351;
  --dusty-rose-dark: #6D303D;
  --dusty-rose-light: #A75A6A;
  
  --soft-blossom: #E5B2B8;
  --soft-blossom-light: #F7E5E8;
  --soft-blossom-glow: rgba(229, 178, 184, 0.35);

  --sage-leaf: #7D8B75;
  --sage-leaf-dark: #5A6753;
  --sage-leaf-light: #9DAA96;

  --autumn-ivory: #E8DDD0;
  --autumn-ivory-light: #FBF8F4;
  --autumn-ivory-warm: #F2EAE0;

  --charcoal: #2C2627;
  --charcoal-soft: #4A4042;
  --muted: #7A6F72;

  --shadow-card: 0 18px 45px rgba(44, 38, 39, 0.22);
  --shadow-soft: 0 8px 24px rgba(140, 67, 81, 0.16);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--charcoal);
  background-color: #1A1617;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.is-hidden {
  display: none !important;
}

/* =========================================================
   1. PORTADA / SOBRE INTERACTIVO
   ========================================================= */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 35%, #FBF8F4 0%, #F1E7DD 65%, #E3D4C5 100%);
  transition: opacity 0.85s ease, transform 0.85s ease;
  overflow: hidden;
}

.envelope-screen.is-leaving {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.envelope-decor {
  position: absolute;
  width: min(250px, 48vw);
  pointer-events: none;
}

.envelope-decor--top-left {
  top: -12px;
  left: -12px;
}

.envelope-decor--bottom-right {
  bottom: -12px;
  right: -12px;
}

.botanical-corner {
  width: 100%;
  height: auto;
  display: block;
}

.envelope-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.envelope-header {
  margin-bottom: 22px;
}

.envelope-kicker {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dusty-rose);
}

.envelope-names {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 7.5vw, 2.9rem);
  font-weight: 600;
  color: var(--dusty-rose-dark);
  letter-spacing: 0.02em;
}

/* Badge de invitado personalizado en el sobre */
.guest-cover-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(140, 67, 81, 0.12);
  border: 1px solid rgba(140, 67, 81, 0.28);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--dusty-rose-dark);
  letter-spacing: 0.04em;
  margin-top: 4px;
  animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.envelope-stage {
  perspective: 1100px;
  margin-top: 10px;
}

.envelope-card {
  position: relative;
  width: 100%;
  height: 240px;
  margin: 0 auto;
  border-radius: 12px;
  background: linear-gradient(155deg, #A45A69 0%, #833A48 100%);
  box-shadow: 0 24px 50px rgba(60, 24, 32, 0.35), inset 0 0 0 1px rgba(255, 235, 238, 0.35);
}

.envelope-letter {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 16px;
  height: 180px;
  background: var(--autumn-ivory-light);
  border-radius: 9px;
  padding: 22px 16px;
  box-shadow: 0 6px 20px rgba(44, 38, 39, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.letter-subtitle {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-leaf-dark);
}

.letter-names {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--dusty-rose-dark);
}

.letter-guest-name {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.envelope-body {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.envelope-pocket-left,
.envelope-pocket-right,
.envelope-pocket-bottom {
  position: absolute;
  inset: 0;
}

.envelope-pocket-left {
  background: linear-gradient(135deg, #964F5E 0%, #7E3644 100%);
  clip-path: polygon(0 0, 52% 52%, 0 100%);
}

.envelope-pocket-right {
  background: linear-gradient(225deg, #9C5362 0%, #7E3644 100%);
  clip-path: polygon(100% 0, 48% 52%, 100% 100%);
}

.envelope-pocket-bottom {
  background: linear-gradient(180deg, #A45A69 0%, #873D4B 100%);
  clip-path: polygon(0 100%, 50% 45%, 100% 100%);
  filter: drop-shadow(0 -2px 6px rgba(0, 0, 0, 0.12));
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 142px;
  background: linear-gradient(180deg, #B26877 0%, #8C4351 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  filter: drop-shadow(0 6px 12px rgba(60, 24, 32, 0.22));
}

.envelope-filigree {
  width: 100%;
  height: 100%;
}

.wax-seal-btn {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 4;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.wax-seal-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.seal-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #F5D3D8 0%, #BA6E7C 55%, #7D3543 100%);
  box-shadow: 0 8px 20px rgba(50, 18, 25, 0.42), inset 0 0 0 2px rgba(255, 245, 246, 0.65);
}

.seal-ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 245, 246, 0.65);
}

.seal-text {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  font-style: italic;
  color: #FFF9F9;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(60, 20, 28, 0.5);
}

.seal-tassel {
  position: absolute;
  top: 58px;
  width: 4px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, #D49CA5 0%, #7D3543 100%);
}

.seal-tassel--left {
  left: 22px;
  transform: rotate(10deg);
}

.seal-tassel--right {
  right: 22px;
  transform: rotate(-10deg);
}

/* Estado abierto del sobre */
.envelope-card.is-opening .envelope-flap {
  transform: rotateX(-180deg);
  z-index: 0;
}

.envelope-card.is-opening .wax-seal-btn {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.envelope-card.is-opening .envelope-letter {
  transform: translateY(-82px);
}

.envelope-hint {
  margin: 22px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* =========================================================
   2. INVITACIÓN PRINCIPAL Y FONDO FIJO
   ========================================================= */
.invitation-main {
  position: relative;
  min-height: 100vh;
}

.fixed-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: #241D1E;
  background-position: center;
  background-size: cover;
  filter: brightness(0.34) saturate(0.85);
  transform: scale(1.04);
}

.music-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(229, 178, 184, 0.45);
  background: rgba(44, 38, 39, 0.82);
  backdrop-filter: blur(8px);
  color: var(--soft-blossom);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.music-fab:hover {
  transform: scale(1.08);
  background: rgba(56, 46, 48, 0.94);
}

.music-icon {
  width: 21px;
  height: 21px;
}

.music-bars {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 15px;
}

.music-bars span {
  width: 3px;
  background: var(--soft-blossom);
  border-radius: 2px;
  animation: eqBar 0.8s ease-in-out infinite alternate;
}

.music-bars span:nth-child(2) {
  animation-delay: 0.2s;
}

.music-bars span:nth-child(3) {
  animation-delay: 0.4s;
}

.music-fab.is-playing .music-icon {
  display: none;
}

.music-fab.is-playing .music-bars {
  display: flex;
}

@keyframes eqBar {
  from { height: 4px; }
  to { height: 15px; }
}

/* =========================================================
   3. HERO
   ========================================================= */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  overflow: hidden;
}

.hero-image-layer {
  position: absolute;
  inset: 0;
  background-color: #2F2427;
  background-position: center;
  background-size: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 20, 22, 0.48) 0%,
    rgba(26, 20, 22, 0.6) 60%,
    rgba(26, 20, 22, 0.82) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 450px;
  color: #FFFFFF;
}

/* Banner de bienvenida personalizada en Hero */
.hero-guest-welcome {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(229, 178, 184, 0.18);
  border: 1px solid rgba(229, 178, 184, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: var(--soft-blossom-light);
}

.hero-names {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 10vw, 4.1rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #FFFDFD;
}

.hero-subtitle {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--soft-blossom-light);
}

.hero-divider {
  width: 58px;
  height: 1.5px;
  margin: 22px auto;
  background: linear-gradient(90deg, transparent, var(--soft-blossom), transparent);
}

.hero-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.38rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.94);
}

.scroll-cue {
  display: inline-flex;
  margin-top: 38px;
  width: 28px;
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid rgba(229, 178, 184, 0.6);
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--soft-blossom);
  animation: scrollDot 1.6s infinite;
}

@keyframes scrollDot {
  0% {
    opacity: 0.9;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* =========================================================
   4. DIVISOR FLORAL Y TARJETAS FLOTANTES
   ========================================================= */
.floral-border-divider {
  width: 100%;
  max-width: 520px;
  margin: -18px auto 12px;
  position: relative;
  z-index: 3;
}

.floral-border-divider svg {
  width: 100%;
  height: auto;
  display: block;
}

.content-stream {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 12px 18px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.ivory-card {
  background: var(--autumn-ivory-light);
  border-radius: 22px;
  padding: 34px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(140, 67, 81, 0.16);
  position: relative;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-heading {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 2.05rem;
  font-weight: 600;
  color: var(--dusty-rose-dark);
  line-height: 1.15;
}

.section-heading--caps {
  font-size: 1.7rem;
  letter-spacing: 0.16em;
}

.section-heading--light {
  color: #FFFFFF;
}

.section-subtitle {
  margin: 0 0 22px;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}

.card-lead {
  margin: 0 0 22px;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--charcoal);
}

.card-icon {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.line-art-svg {
  fill: none;
  stroke: var(--dusty-rose);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-art-svg * {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset 1.2s ease;
}

.reveal-on-scroll.is-visible .line-art-svg * {
  stroke-dashoffset: 0;
}

/* =========================================================
   5. CUENTA REGRESIVA
   ========================================================= */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0 18px;
}

.countdown-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
}

.countdown-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 14%;
  height: 72%;
  width: 1px;
  background: rgba(140, 67, 81, 0.25);
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 600;
  color: var(--dusty-rose-dark);
  line-height: 1;
}

.countdown-label {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sage-leaf-dark);
  letter-spacing: 0.06em;
}

.gold-heart {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

/* =========================================================
   6. BLOQUES DE FECHA (CEREMONIA / CELEBRACIÓN)
   ========================================================= */
.event-date-block {
  margin: 16px 0 18px;
}

.event-month {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--sage-leaf-dark);
}

.event-date-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 8px 0;
}

.event-meta {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--charcoal);
  border-top: 1px solid rgba(140, 67, 81, 0.35);
  border-bottom: 1px solid rgba(140, 67, 81, 0.35);
  padding: 6px 0;
}

.event-day-num {
  font-family: var(--font-serif);
  font-size: 3.1rem;
  font-weight: 600;
  color: var(--dusty-rose-dark);
  line-height: 1;
}

.event-year {
  display: block;
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  color: var(--sage-leaf-dark);
}

.event-venue {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--charcoal);
}

.event-address {
  margin: 0 0 22px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Botón Temático Dusty Rose & Sage */
.btn-champagne {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #A75A6A 0%, #8C4351 100%);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(140, 67, 81, 0.32);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn-champagne:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(140, 67, 81, 0.42);
  filter: brightness(1.05);
}

.btn-champagne--secondary {
  background: linear-gradient(135deg, #7D8B75 0%, #62705A 100%);
  box-shadow: 0 8px 18px rgba(98, 112, 90, 0.32);
}

.btn-champagne--full {
  width: 100%;
}

/* =========================================================
   7. GALERÍA CARRUSEL
   ========================================================= */
.carousel-wrapper {
  margin-top: 8px;
}

.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 78%;
  scroll-snap-align: center;
  border-radius: 14px;
  overflow: hidden;
  background: #FFFFFF;
  padding: 8px;
  box-shadow: 0 6px 18px rgba(44, 38, 39, 0.1);
  border: 1px solid #EBE4DA;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.gallery-item:hover {
  transform: scale(1.015);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 10px;
  filter: grayscale(90%) contrast(1.05);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(140, 67, 81, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-dot.is-active {
  background: var(--dusty-rose);
  transform: scale(1.3);
}

/* =========================================================
   8. SECCIÓN FINAL QR Y FOOTER
   ========================================================= */
.share-section {
  padding: 28px 20px 44px;
  text-align: center;
  color: #FFFFFF;
}

.share-inner {
  max-width: 420px;
  margin: 0 auto;
}

.share-subtitle {
  margin: 0 0 24px;
  font-size: 0.94rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
}

.qr-card {
  display: inline-flex;
  padding: 16px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.qr-caption {
  margin: 16px 0 22px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.86);
}

.invitation-footer {
  padding: 22px 20px 42px;
  text-align: center;
  color: rgba(255, 255, 255, 0.76);
}

.footer-names {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--soft-blossom);
}

.footer-note {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =========================================================
   9. MODALES Y RSVP
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 20, 22, 0.76);
  backdrop-filter: blur(5px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--autumn-ivory-light);
  border-radius: 20px;
  padding: 32px 24px 26px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(140, 67, 81, 0.12);
  color: var(--dusty-rose-dark);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.modal-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--dusty-rose-dark);
}

.modal-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(140, 67, 81, 0.14);
  color: var(--dusty-rose-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-text {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--charcoal);
}

.modal-list {
  margin: 0;
  padding-left: 18px;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-list code {
  background: #EAE1D7;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.84rem;
  color: var(--dusty-rose-dark);
}

.btn-copy {
  margin-left: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--dusty-rose);
  background: transparent;
  color: var(--dusty-rose);
  font-size: 0.74rem;
  cursor: pointer;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #D9CDC0;
  background: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--charcoal);
}

.modal-guest-box {
  background: rgba(229, 178, 184, 0.18);
  border: 1px solid rgba(140, 67, 81, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 6px;
}

.modal-guest-box p {
  margin: 0 0 4px;
  font-size: 0.86rem;
  color: var(--charcoal);
}

.modal-guest-box p strong {
  color: var(--dusty-rose-dark);
}

.modal-guest-box small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.form-feedback {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(125, 139, 117, 0.22);
  color: var(--sage-leaf-dark);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* =========================================================
   10. LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(20, 16, 17, 0.96);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

.lightbox-counter {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.lightbox-actions {
  display: flex;
  gap: 10px;
}

.lightbox-actions button,
.lightbox-nav {
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #FFFFFF;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
}

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 54px;
  overflow: hidden;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.lightbox-stage img.is-zoomed {
  transform: scale(1.45);
  cursor: zoom-out;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav--prev {
  left: 12px;
}

.lightbox-nav--next {
  right: 12px;
}

.lightbox-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px 16px;
  overflow-x: auto;
}

.lightbox-thumbs[hidden] {
  display: none;
}

.lightbox-thumbs img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.55;
  cursor: pointer;
  border: 2px solid transparent;
}

.lightbox-thumbs img.is-active {
  opacity: 1;
  border-color: var(--soft-blossom);
}
