/* ═══════════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════════ */
:root {
  --navy:    #1a2744;
  --navy-m:  #243560;
  --navy-l:  #2e4180;
  --gold:    #c9a87c;
  --gold-l:  #e8c99a;
  --gold-d:  #a8854d;
  --ivory:   #fafaf8;
  --light:   #f0f2f8;
  --dark:    #111827;
  --text:    #374151;
  --muted:   #9ca3af;
  --border:  #e2e6f0;
  --shadow:  rgba(26, 39, 68, .12);
  --r:       .875rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--ivory);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { color: var(--navy); text-decoration: none; }

/* ═══════════════════════════════════════════
   TIPOGRAFÍA
═══════════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  /* Tipografía fluida — se adapta de móvil a 4K sin saltos */
}
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1rem,   2vw,   1.2rem); }
h1, h2, h3, h4 {
  color: var(--dark);
  line-height: 1.2;
}

.script {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  color: var(--gold);
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .875rem 2rem;
  transition: background .3s, box-shadow .3s;
}

.top-nav.scrolled {
  background: rgba(26, 39, 68, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.nav-logo {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }

@media (max-width: 600px) {
  .nav-links { display: none; }
  /* Botón galería flotante en mobile */
  .nav-gallery-mobile {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(201,168,124,.4);
    padding: .35rem .875rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all .2s;
  }
  .nav-gallery-mobile:hover { background: rgba(201,168,124,.15); }
}
@media (min-width: 601px) { .nav-gallery-mobile { display: none; } }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;       /* fallback */
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* La imagen se inyecta via PHP como background-image inline */
  background-color: #0d0d1a;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}


/* Ken Burns — imagen de fondo con zoom lento */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  animation: kbZoom 22s ease-in-out infinite alternate;
  will-change: transform;
  transform-origin: center center;
}
@media (max-width: 700px) {
  .hero-bg {
    /* background-position viene del admin vía inline style — no sobrescribir acá */
    animation: kbZoomMobile 20s ease-in-out infinite alternate;
  }
}
@keyframes kbZoom {
  from { transform: scale(1);    }
  to   { transform: scale(1.18); }
}
@keyframes kbZoomMobile {
  from { transform: scale(1);    }
  to   { transform: scale(1.15); }
}

/* ── Overlay + blur sobre la imagen de fondo ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* backdrop-filter borra la imagen que está detrás (en #hero), sin tocar el texto */
  backdrop-filter: blur(2px) brightness(.78);
  -webkit-backdrop-filter: blur(2px) brightness(.78);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(201,168,124,.07) 0%, transparent 65%),
    linear-gradient(to bottom,
      rgba(10,8,25,.55)  0%,
      rgba(10,8,25,.22) 42%,
      rgba(10,8,25,.68) 100%
    );
}

/* ── Capa 3: destello central animado ── */
.hero-glow {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
  animation: glow-breathe 6s ease-in-out infinite;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(201,168,124,.13) 0%, transparent 65%);
  animation-delay: 0s;
}
.hero-glow-2 {
  width: 300px; height: 300px;
  top: 30%; left: 30%;
  background: radial-gradient(circle, rgba(180,140,210,.10) 0%, transparent 65%);
  animation-delay: -3s;
}
.hero-glow-3 {
  width: 250px; height: 250px;
  top: 55%; left: 65%;
  background: radial-gradient(circle, rgba(201,168,124,.09) 0%, transparent 65%);
  animation-delay: -1.5s;
}

@keyframes glow-breathe {
  0%, 100% { opacity: .6; transform: translate(-50%,-55%) scale(1); }
  50%       { opacity: 1;  transform: translate(-50%,-55%) scale(1.18); }
}
.hero-glow-2 { animation: glow-breathe2 7s ease-in-out infinite; }
.hero-glow-3 { animation: glow-breathe3 5s ease-in-out infinite; }
@keyframes glow-breathe2 {
  0%,100% { opacity:.4; transform:scale(1); }
  50%     { opacity:.9; transform:scale(1.25); }
}
@keyframes glow-breathe3 {
  0%,100% { opacity:.3; transform:scale(1); }
  50%     { opacity:.7; transform:scale(1.15); }
}

/* ── Capa 4: destellos estilo Disney ── */
.disney-spark {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  transform-origin: center;
  overflow: visible;
  filter:
    drop-shadow(0 0 3px rgba(255,245,150,1))
    drop-shadow(0 0 8px rgba(255,210,80,.85))
    drop-shadow(0 0 18px rgba(201,168,124,.55));
}

/* ── Contenido del hero ── */
#hero {
  align-items: flex-start;
  justify-content: center;
  padding: 7rem clamp(1.5rem, 8vw, 8rem) 10rem;
}

.hero-inner {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 52vw;
}

.hero-save-date {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 1.25rem;
}

.hero-couple {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(4.5rem, 14vw, 10rem);
  color: #fff;
  line-height: .9;
  text-shadow:
    0 0  50px rgba(201,168,124,.5),
    0 4px 30px rgba(0,0,0,.7);
  margin-bottom: .25rem;
}

.hero-amp {
  display: block;
  font-size: .4em;
  color: var(--gold-l);
  line-height: 1.2;
  text-shadow: 0 0 24px rgba(201,168,124,.7);
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,.82);
  margin-top: .6rem;
  letter-spacing: .04em;
}

.hero-hashtag {
  font-size: .68rem;
  letter-spacing: .3em;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  margin-top: .6rem;
}

@media (max-width: 700px) {
  /* Mobile: nombres arriba, tagline+contador abajo */
  #hero {
    align-items: center;
    justify-content: flex-start;     /* nombres en la parte superior */
    padding: 5rem 1.25rem 13rem;     /* más espacio inferior para hero-bottom más alto */
  }
  .hero-inner { align-items: center; text-align: center; max-width: 96vw; }
  .hero-couple {
    font-size: clamp(2rem, 10.5vw, 3.2rem);
    line-height: 1.15;
    white-space: nowrap;
  }
  .hero-amp { display: inline; font-size: .85em; }
}

/* ── Fecha + Countdown al fondo ── */
.hero-bottom {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
}

.hero-date-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.hero-date-row .line {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,124,.6), transparent);
}
.hero-date-text {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

/* ── Countdown ── */
#countdown {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cd-box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: .625rem;
  padding: .75rem 1rem;
  min-width: 68px;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.1);
}
.cd-num {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 12px rgba(201,168,124,.4);
}
.cd-label {
  font-size: .56rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-top: .3rem;
  display: block;
}

/* ── Flip clock ── */
.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  /* reset legacy inline styles used by classic mode */
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  min-width: unset;
}

/* Clásico: estilo glassmorphism original */
.cd-box--classic {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: .625rem;
  padding: .75rem 1rem;
  min-width: 68px;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.1);
}

.flip-digit {
  position: relative;
  width: 72px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15,10,30,.75);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 28px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12);
  perspective: 400px;
}
.flip-digit::after {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: rgba(0,0,0,.55);
  z-index: 4;
}
.flip-top,
.flip-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flip-top    { top: 0;    background: rgba(255,255,255,.07); transform-origin: center bottom; }
.flip-bottom { bottom: 0; background: rgba(0,0,0,.12);      transform-origin: center top;   }
.flip-top span,
.flip-bottom span {
  position: absolute;
  font-family: 'Lato', monospace;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
  text-shadow: 0 0 12px rgba(201,168,124,.35);
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}
/* Each span's centre sits on the split line so each half clips the other portion */
.flip-top span    { bottom: 0; transform: translateY(50%);  }
.flip-bottom span { top: 0;    transform: translateY(-50%); }

.flip-top.flipping-out {
  animation: fcTopOut .22s ease-in forwards;
}
.flip-top.flipping-in {
  animation: fcTopIn  .22s ease-out forwards;
  transform: rotateX(-90deg);
}
.flip-bottom.flipping-in {
  animation: fcBotIn  .22s ease-out forwards;
  transform: rotateX(90deg);
}
@keyframes fcTopOut {
  from { transform: rotateX(0deg);   }
  to   { transform: rotateX(-90deg); }
}
@keyframes fcTopIn {
  from { transform: rotateX(-90deg); }
  to   { transform: rotateX(0deg);   }
}
@keyframes fcBotIn {
  from { transform: rotateX(90deg); }
  to   { transform: rotateX(0deg);  }
}

/* ── "Hoy es el gran día" banner ── */
#today-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .75rem 1.5rem;
  background: rgba(201,168,124,.18);
  border: 1px solid rgba(201,168,124,.35);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  animation: todayPulse 2s ease-in-out infinite;
}
.today-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
}
.today-emoji { font-size: 1.6rem; }
@keyframes todayPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,168,124,.4); }
  50%      { box-shadow: 0 0 0 14px rgba(201,168,124,0); }
}

/* ── Flecha scroll ── */
.scroll-arrow {
  position: absolute;
  bottom: .5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: rgba(255,255,255,.3);
  font-size: 1rem;
  cursor: pointer;
  z-index: 5;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* ── Widget de clima ── */
.weather-widget {
  display: inline-flex;
  align-items: center;
  gap: .875rem;
  margin: 1.5rem auto 0;
  padding: .75rem 1.25rem;
  background: rgba(201,168,124,.1);
  border: 1px solid rgba(201,168,124,.3);
  border-radius: 50px;
  font-size: .875rem;
  color: var(--text);
  cursor: default;
  flex-wrap: wrap;
  justify-content: center;
}
.weather-icon   { font-size: 1.6rem; flex-shrink: 0; }
.weather-info   { display: flex; flex-direction: column; line-height: 1.25; }
.weather-label  { font-weight: 700; color: var(--navy); }
.weather-temps  { color: var(--muted); font-size: .8rem; }
.weather-note   { font-size: .7rem; color: var(--muted); letter-spacing: .06em; }
.weather-widget--pending { opacity: .6; filter: grayscale(.35); }

/* ── SVG Wave Dividers ── */
.svg-divider {
  position: relative;
  line-height: 0;
  overflow: hidden;
  /* Elimina la línea de 1px que aparece por sub-pixel rendering entre divs adyacentes */
  margin-top: -2px;
  margin-bottom: -2px;
}
.svg-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}
.svg-divider--hero-bottom {
  margin-top: -2px;
  margin-bottom: -2px;
  background: transparent;
}
.svg-divider--to-dark svg,
.svg-divider--to-alt svg {
  height: 60px;
}
.svg-divider--to-dark { background: var(--ivory); }
.svg-divider--to-alt  { background: var(--ivory); }

/* ═══════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════ */
.section      { padding: 5.5rem 1.5rem; max-width: 960px; margin: 0 auto; }
.section-dark { padding: 5.5rem 1.5rem; background: var(--navy); }
.section-alt  { padding: 5.5rem 1.5rem; background: var(--light); }
.section-dark > *, .section-alt > * { max-width: 960px; margin-left: auto; margin-right: auto; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title .script {
  font-size: 1.5rem;
  display: block;
  margin-bottom: .5rem;
}

.section-title h2 {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
}

.section-dark .section-title h2 { color: #fff; }

/* Geometric divider */
.geo-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem auto 3rem;
  max-width: 280px;
}

.geo-divider::before,
.geo-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: .4;
}

.geo-divider span {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   EVENT CARDS
═══════════════════════════════════════════ */
/* Mobile: columna vertical */
.event-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.event-cards-wrap { position: relative; }

/* Desktop: grid que ocupa todo el ancho sin scroll */
@media (min-width: 640px) {
  .event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
  }
}

.event-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--r);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 16px var(--shadow);
  transition: transform .2s;
}
@media (min-width: 640px) {
  .event-card {
    width: 100%;
  }
}

.event-card:hover { transform: translateY(-4px); }

.event-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--light);
  border-radius: .5rem;
}

.event-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}

.event-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════
   MAPS SECTION
═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   BOTONES
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 2rem;
  border-radius: .5rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-m); border-color: var(--navy-m); color: #fff; }

.btn-gold {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-d); border-color: var(--gold-d); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn-white {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-white:hover { background: var(--gold-l); border-color: var(--gold-l); }

.btn-lg { padding: 1rem 2.5rem; font-size: .925rem; }

/* ═══════════════════════════════════════════
   FORMULARIOS
═══════════════════════════════════════════ */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: .5rem;
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  color: var(--dark);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,39,68,.12);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 30px var(--shadow);
  max-width: 580px;
  margin: 0 auto;
}

/* Glassmorphism: tarjetas en secciones oscuras */
.section-alt .form-card,
.section-dark .form-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 32px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.12);
  color: #fff;
}
.section-alt .form-card {
  background: rgba(255,255,255,.65);
  border-color: rgba(255,255,255,.8);
  color: var(--text);
}

.radio-group { display: flex; gap: .75rem; flex-wrap: wrap; }

.radio-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  font-size: .875rem;
  padding: .55rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: .5rem;
  transition: all .2s;
  font-weight: 700;
}
.radio-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.radio-label.selected,
.radio-label:has(input:checked) {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.alert {
  padding: .875rem 1.125rem;
  border-radius: .5rem;
  font-size: .9rem;
  margin-top: 1rem;
  display: none;
}
.alert-success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #064e3b; }
.alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d; }
.alert.show    { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; } }

/* ═══════════════════════════════════════════
   MÚSICA — URL style
═══════════════════════════════════════════ */
.music-url-list {
  list-style: none;
  max-width: 560px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.music-url-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: .5rem;
  padding: .7rem 1rem;
  font-size: .875rem;
  animation: fadeIn .3s ease;
}

.platform-badge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: .25rem;
  background: var(--light);
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
}

.music-url-list a {
  color: var(--navy);
  text-decoration: underline;
  font-size: .82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   QR & FOTOS
═══════════════════════════════════════════ */
.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.qr-box {
  background: #fff;
  border: 3px solid var(--gold);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 24px var(--shadow);
  display: inline-block;
}

.qr-box img { border-radius: .375rem; display: block; }

.qr-help {
  font-size: .875rem;
  color: var(--muted);
  max-width: 260px;
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
  margin-top: 2rem;
}

.photo-item {
  position: relative;
  border-radius: .625rem;
  overflow: visible;        /* reactions pueden salir del borde */
  cursor: pointer;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform .2s;
}
.photo-item:hover { transform: scale(1.03); }
/* El clip de la imagen va en el wrapper interno */
.photo-img-clip {
  border-radius: .625rem;
  overflow: hidden;
  aspect-ratio: 1;
  width: 100%;
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.4rem .6rem .45rem;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: rgba(255,255,255,.92);
  font-size: .62rem;
  line-height: 1.35;
  pointer-events: none;
}
.photo-caption-name {
  display: block;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photo-caption-date { color: rgba(255,255,255,.6); }

.like-btn {
  position: absolute;
  bottom: .5rem;
  right: .5rem;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .2rem .55rem;
  font-size: .72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .25rem;
  transition: background .2s;
}
.like-btn:hover { background: rgba(201,168,124,.8); }

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
#lightbox.open     { opacity: 1; pointer-events: all; }
#lightbox img      { max-height: 90svh; max-width: 90vw; border-radius: .5rem; }
#lightbox-close    { position: absolute; top: 1rem; right: 1.5rem; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; line-height: 1; }

/* ═══════════════════════════════════════════
   UPLOAD PAGE
═══════════════════════════════════════════ */
.upload-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: var(--navy);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(201,168,124,.05) 0px, rgba(201,168,124,.05) 1px,
    transparent 1px, transparent 50px
  );
}

.upload-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  text-align: center;
}

.upload-card h2 { font-size: 1.5rem; color: var(--navy); margin-bottom: .25rem; }
.upload-card p  { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: .75rem;
  padding: 2.5rem 1rem;
  cursor: pointer;
  transition: all .2s;
  background: var(--light);
  position: relative;
}
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--navy); background: #e8eaf4; }
.drop-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop-icon   { font-size: 2.25rem; margin-bottom: .5rem; }
.drop-text   { font-size: .82rem; color: var(--muted); }

.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; }
.preview-img  { aspect-ratio: 1; border-radius: .375rem; object-fit: cover; border: 2px solid var(--border); }

.upload-progress     { height: 5px; background: var(--light); border-radius: 3px; margin-top: 1rem; overflow: hidden; display: none; }
.upload-progress-bar { height: 100%; background: linear-gradient(90deg, var(--navy), var(--gold)); transition: width .3s; border-radius: 3px; }

/* ═══════════════════════════════════════════
   GALLERY PAGE
═══════════════════════════════════════════ */
.gallery-full   { min-height: 100svh; background: var(--dark); padding: 1.5rem; }
.gallery-header { text-align: center; color: #fff; margin-bottom: 1.5rem; }
.gallery-header .script { font-size: 2.25rem; }
.gallery-header p { color: rgba(255,255,255,.45); font-size: .8rem; }
.gallery-full .photo-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }

/* ═══════════════════════════════════════════
   MUSIC SEARCH AUTOCOMPLETE
═══════════════════════════════════════════ */
.music-search-wrap { position: relative; }
.music-search-wrap input[type=text] { width: 100%; }

.music-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: .625rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  max-height: 300px;
  overflow-y: auto;
  z-index: 200;
}
.music-dropdown.open { display: block; }

.music-dropdown-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .85rem;
  cursor: pointer;
  transition: background .15s;
}
.music-dropdown-item:hover { background: var(--light); }
.music-dropdown-item img {
  width: 44px; height: 44px;
  border-radius: .375rem;
  object-fit: cover;
  flex-shrink: 0;
}
.music-dropdown-item b { display: block; font-size: .88rem; color: var(--dark); }
.music-dropdown-item span { font-size: .75rem; color: var(--muted); }

.music-selected {
  display: none;
  align-items: center;
  gap: .75rem;
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: .625rem;
  padding: .55rem .85rem;
  margin-top: .5rem;
}
.music-selected img { width: 40px; height: 40px; border-radius: .375rem; flex-shrink: 0; }
.music-selected-info { flex: 1; min-width: 0; }
.music-selected-info strong { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-selected-info span { font-size: .75rem; color: var(--muted); }
#music-clear {
  background: none; border: none; font-size: 1rem;
  color: var(--muted); cursor: pointer; padding: .2rem;
  line-height: 1; flex-shrink: 0;
}
#music-clear:hover { color: var(--dark); }

/* ═══════════════════════════════════════════
   AMBIENT MUSIC PLAYER
═══════════════════════════════════════════ */
#ambient-player {
  position: fixed;
  bottom: 1.75rem;
  right: 1.5rem;
  z-index: 400;
}
#ambient-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform .2s, box-shadow .2s;
}
#ambient-btn:hover { transform: scale(1.1); }
#ambient-btn.playing {
  animation: ambient-pulse 2.2s ease-in-out infinite;
}
@keyframes ambient-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,.3); }
  50%       { box-shadow: 0 4px 28px rgba(201,168,124,.65); }
}

/* ═══════════════════════════════════════════
   CONSTRUCTOR — SECCIONES CUSTOM
═══════════════════════════════════════════ */

/* Inner container */
.custom-sec-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem clamp(1.25rem, 5vw, 3rem);
}

/* Text section */
.custom-sec-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--dark);
  margin-bottom: .75rem;
}
.custom-sec-heading.text-white { color: #fff; }
.custom-sec-body {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: var(--text);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
}
.custom-sec-body.text-white-70 { color: rgba(255,255,255,.78); }

/* Image section */
.custom-sec-fig { margin: 0 auto; }
.custom-sec-img-small  { max-width: 340px; }
.custom-sec-img-medium { max-width: 620px; }
.custom-sec-img-full   { max-width: 100%; }
.custom-sec-fig img {
  width: 100%;
  border-radius: .75rem;
  box-shadow: 0 4px 24px var(--shadow);
  display: block;
}
.custom-sec-fig figcaption {
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  margin-top: .65rem;
  font-style: italic;
}
.custom-sec-fig figcaption.text-white-70 { color: rgba(255,255,255,.6); }

/* Columns section */
.custom-sec-cols-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 640px) {
  .custom-sec-cols-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.custom-col-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: .5rem;
}
.custom-col-heading.text-white { color: #fff; }
.custom-col-body {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.75;
}
.custom-col-body.text-white-70 { color: rgba(255,255,255,.78); }

/* Column: image */
.custom-col-fig { margin: 0; }
.custom-col-fig img { width: 100%; border-radius: .5rem; display: block; }
.custom-col-fig figcaption { font-size: .78rem; color: var(--muted); margin-top: .35rem; text-align: center; font-style: italic; }
.custom-col-fig figcaption.text-white-70 { color: rgba(255,255,255,.6); }

/* Column: video (responsive 16:9) */
.custom-col-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: .5rem; }
.custom-col-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Column: countdown */
.custom-col-countdown { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: .25rem; }

/* Column: map */
.custom-col-map iframe { border: 0; border-radius: .5rem; display: block; width: 100%; }

/* Column: html */
.custom-col-html { font-size: .95rem; line-height: 1.7; }

/* Divider */
.custom-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
}
.custom-divider span { display: block; }
.custom-divider-line span:not(.custom-divider-icon) {
  height: 1px;
  width: 80px;
  background: var(--gold);
  flex-shrink: 0;
}
.custom-divider-icon { color: var(--gold); font-size: 1.1rem; }
.custom-divider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.custom-divider-floral {
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: .5rem;
}

/* ═══════════════════════════════════════════
   GIFTS (Mesa de regalos)
═══════════════════════════════════════════ */
.gifts-bank {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.5rem;
  max-width: 480px;
}
.gifts-bank-card {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  width: 100%;
}
.gifts-bank-label {
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--navy);
  margin-bottom: .75rem;
  opacity: .8;
}
.gifts-bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.gifts-bank-row:last-child { border-bottom: none; }
.gifts-bank-row span { color: var(--muted); font-size: .78rem; flex-shrink: 0; }
.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
  padding: 0;
  word-break: break-all;
  transition: color .15s;
}
.copy-btn:hover { color: var(--gold); }
.gifts-links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .5rem;
}

/* ═══════════════════════════════════════════
   GUESTBOOK (Libro de visitas)
═══════════════════════════════════════════ */
.guestbook-list {
  max-width: 620px;
  margin: 1.75rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.guestbook-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .875rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px var(--shadow);
}
.gb-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: .35rem;
}
.gb-message {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: .35rem;
}
.gb-date {
  font-size: .72rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════
   TIMELINE (sección constructor)
═══════════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  padding: .5rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 88px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
  opacity: .45;
}
.timeline-item {
  display: grid;
  grid-template-columns: 80px 18px 1fr;
  gap: 0 1rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-time {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold);
  text-align: right;
  padding-top: .15rem;
  letter-spacing: .04em;
}
.timeline-dot {
  width: 14px; height: 14px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: .22rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(201,168,124,.2);
}
.timeline-title { font-size: .95rem; font-weight: 700; color: var(--dark); }
.timeline-title.text-white { color: #fff; }
.timeline-desc { font-size: .85rem; color: var(--text); line-height: 1.6; margin-top: .2rem; }
.timeline-desc.text-white-70 { color: rgba(255,255,255,.78); }
@media (max-width: 480px) {
  .timeline::before { left: 64px; }
  .timeline-item { grid-template-columns: 56px 14px 1fr; gap: 0 .6rem; }
}

/* RSVP companion fields */
.rsvp-attending-fields { transition: opacity .2s; }

/* ═══════════════════════════════════════════
   SEATING CHART
═══════════════════════════════════════════ */
.seating-search-wrap {
  max-width: 420px;
  margin: 0 auto 1.5rem;
}
.seating-search-wrap input {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: .75rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .15s;
}
.seating-search-wrap input:focus { border-color: var(--navy); outline: none; }
#seating-results { margin-top: .75rem; }
.seating-hit {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .625rem;
  padding: .65rem 1rem;
  margin-bottom: .4rem;
  font-size: .9rem;
  box-shadow: 0 1px 4px var(--shadow);
}
.seating-hit em { color: var(--gold); font-style: normal; font-weight: 700; }
.seating-nope { color: var(--muted); font-size: .875rem; text-align: center; }
.seating-full-list {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: .75rem 1rem;
  background: #fff;
}
.seating-full-list summary { cursor: pointer; font-size: .82rem; color: var(--muted); font-weight: 600; }
.seating-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
  margin-top: .75rem;
}
.seating-table-card { background: var(--light); border-radius: .5rem; padding: .75rem; }
.seating-table-name { font-weight: 700; font-size: .82rem; color: var(--navy); margin-bottom: .35rem; }
.seating-table-card ul { font-size: .8rem; padding-left: 1rem; margin: 0; color: var(--text); line-height: 1.7; }

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  padding: 1rem .25rem;
  font-weight: 700;
  font-size: .95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  color: var(--dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--gold); flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 .25rem .875rem; font-size: .9rem; color: var(--text); line-height: 1.7; }
.faq-item.text-white summary { color: #fff; }
.faq-item.text-white .faq-answer { color: rgba(255,255,255,.78); }

/* ═══════════════════════════════════════════
   HOTELS / ACCOMMODATION
═══════════════════════════════════════════ */
.hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}
.hotel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 2px 8px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.hotel-name { font-weight: 700; font-size: 1rem; color: var(--navy); }
.hotel-desc { font-size: .875rem; color: var(--text); line-height: 1.55; }
.hotel-meta { font-size: .78rem; color: var(--muted); display: flex; gap: .75rem; flex-wrap: wrap; }
.hotel-actions { margin-top: .25rem; display: flex; gap: .5rem; flex-wrap: wrap; }

/* ═══════════════════════════════════════════
   PERSONAL OVERLAY
═══════════════════════════════════════════ */
#personal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}
.personal-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  position: relative;
}
.personal-close {
  position: absolute;
  top: .75rem; right: .875rem;
  background: none; border: none;
  font-size: 1.1rem; cursor: pointer;
  color: var(--muted);
}
.personal-msg {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   WHATSAPP FLOAT BUTTON
═══════════════════════════════════════════ */
#whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 52px; height: 52px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37,211,102,.45);
  z-index: 900;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
#whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,.55); }

/* ═══════════════════════════════════════════
   LIGHTBOX DOWNLOAD
═══════════════════════════════════════════ */
.lightbox-download-btn {
  position: absolute;
  bottom: 1rem; right: 1rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  border-radius: .5rem;
  padding: .4rem .75rem;
  font-size: .88rem;
  text-decoration: none;
  transition: background .15s;
}
.lightbox-download-btn:hover { background: rgba(0,0,0,.8); }

/* ═══════════════════════════════════════════
   DARK MODE
═══════════════════════════════════════════ */
body.dark-mode {
  --ivory:  #111827;
  --light:  #1f2937;
  --dark:   #f9fafb;
  --text:   #d1d5db;
  --muted:  #9ca3af;
  --border: rgba(255,255,255,.08);
  --shadow: rgba(0,0,0,.5);
}
body.dark-mode .section        { background: #111827; }
body.dark-mode .section-alt    { background: #1f2937; }
body.dark-mode .form-card,
body.dark-mode .event-card,
body.dark-mode .guestbook-item,
body.dark-mode .gifts-bank-card,
body.dark-mode .hotel-card     { background: #1f2937; border-color: rgba(255,255,255,.08); }
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select          { background: #111827; color: var(--text); border-color: rgba(255,255,255,.12); }
body.dark-mode #dark-toggle    { color: #fbbf24; }

/* ═══════════════════════════════════════════
   INVITE LIST (admin)
═══════════════════════════════════════════ */
.invite-row { transition: background .2s; }
.invite-row.invite-sent td { opacity: .55; }
.invite-badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-sent { background: #d1fae5; color: #065f46; }
.badge-pend { background: #fef3c7; color: #92400e; }
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .65rem;
  border-radius: .4rem;
  border: 1.5px solid #25D366;
  background: #25D366;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
  font-family: inherit;
}
.btn-wa:hover { background: #1ebe5d; transform: scale(1.03); }
.btn-wa.btn-wa-sent {
  background: #e6f4ea;
  color: #388e3c;
  border-color: #a5d6a7;
}
.btn-wa.btn-wa-sent:hover { background: #c8e6c9; }

/* Admin builder styles */
.sec-item { transition: box-shadow .15s; }
.sec-item.dragging { opacity: .5; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.sec-item.drag-over { border-color: var(--navy) !important; }
.sec-drag-handle:active { cursor: grabbing; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--dark);
  color: rgba(255,255,255,.4);
  font-size: .8rem;
}
footer .script { font-size: 2.5rem; color: var(--gold); display: block; margin-bottom: .75rem; }
footer a { color: rgba(255,255,255,.5); }
footer a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════
   SPINNER & UTILS
═══════════════════════════════════════════ */
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.text-center { text-align: center; }
.text-muted  { color: var(--muted); font-size: .875rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ── Trivia FAB + modal ── */
#trivia-fab {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--gold);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 400;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
#trivia-fab:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
#trivia-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .22s;
}
#trivia-modal.open { opacity: 1; pointer-events: all; }
#trivia-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  max-width: 480px; width: 92vw;
  position: relative;
  box-shadow: 0 12px 48px rgba(0,0,0,.3);
}
#trivia-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--muted); line-height: 1; }
.trivia-progress { font-size: .72rem; color: var(--muted); letter-spacing: .1em; margin-bottom: .75rem; }
.trivia-q-text { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 1.25rem; line-height: 1.4; }
.trivia-options { display: flex; flex-direction: column; gap: .6rem; }
.trivia-opt { padding: .7rem 1rem; border-radius: .6rem; border: 1.5px solid var(--border); background: #fff; font-size: .9rem; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.trivia-opt:hover:not(:disabled) { border-color: var(--navy); background: var(--light); }
.trivia-opt.correct { border-color: #6ee7b7; background: #ecfdf5; color: #065f46; font-weight: 600; }
.trivia-opt.wrong   { border-color: #fca5a5; background: #fef2f2; color: #7f1d1d; }
.trivia-result { text-align: center; padding: 1rem 0; }
.trivia-score { font-size: 2.5rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.trivia-result p { color: var(--muted); margin: 0 0 1.25rem; font-size: .9rem; }

/* ── Ticker de mensajes ── */
.msg-marquee-wrap {
  overflow: hidden;
  background: var(--navy);
  padding: .55rem 0;
  position: relative;
}
.msg-marquee-wrap::before,
.msg-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 3rem;
  z-index: 2;
  pointer-events: none;
}
.msg-marquee-wrap::before { left:  0; background: linear-gradient(to right, var(--navy), transparent); }
.msg-marquee-wrap::after  { right: 0; background: linear-gradient(to left,  var(--navy), transparent); }
.msg-marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}
.msg-marquee:hover { animation-play-state: paused; }
.msg-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0 2rem;
  font-size: .8rem;
  white-space: nowrap;
  color: rgba(255,255,255,.65);
}
.msg-marquee-item::after {
  content: '|';
  color: var(--gold);
  opacity: .5;
  margin-left: 1rem;
}
.msg-marquee-name {
  font-family: 'Great Vibes', cursive;
  font-size: 1.05rem;
  color: var(--gold);
  line-height: 1;
}
.msg-marquee-arrow {
  color: var(--gold);
  font-size: .7rem;
  opacity: .8;
}
.msg-marquee-text {
  color: rgba(255,255,255,.85);
  font-style: italic;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .msg-marquee { animation: none; }
}

/* ═══════════════════════════════════════════
   TRANSICIÓN DE PÁGINA (#11)
═══════════════════════════════════════════ */
body.page-trans { opacity: 0; }
body.page-trans.page-trans--in  { opacity: 1; transition: opacity var(--page-trans-dur,.35s) ease; }
body.page-trans.page-trans--out { opacity: 0; transition: opacity var(--page-trans-dur,.35s) ease; }

/* ═══════════════════════════════════════════
   FADE-IN DE SECCIONES (#3)
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transition: opacity .65s ease, transform .65s ease;
  will-change: opacity, transform;
}
.reveal--slide-up    { transform: translateY(30px); }
.reveal--slide-left  { transform: translateX(-28px); }
.reveal--slide-right { transform: translateX(28px); }
.reveal--zoom        { transform: scale(.96); }
.reveal.is-visible   { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ═══════════════════════════════════════════
   CURSOR PERSONALIZADO (#4)
═══════════════════════════════════════════ */
body.cursor-custom, body.cursor-custom *   { cursor: none !important; }
body.cursor-heart,  body.cursor-heart  *   { cursor: none !important; }
#wcursor-ring {
  position: fixed; top: 0; left: 0; width: 34px; height: 34px;
  border-radius: 50%; border: 2px solid var(--cursor-clr, var(--gold));
  pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%); opacity: 0;
  transition: width .18s, height .18s, opacity .2s, background .18s;
}
#wcursor-dot {
  position: fixed; top: 0; left: 0; width: 7px; height: 7px;
  border-radius: 50%; background: var(--cursor-clr, var(--gold));
  pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%); opacity: 0; transition: opacity .2s;
}
#wcursor-heart {
  position: fixed; top: 0; left: 0; font-size: .95rem;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%,-60%); opacity: 0; transition: opacity .2s;
  user-select: none;
}
body.cursor-custom #wcursor-ring,
body.cursor-custom #wcursor-dot,
body.cursor-heart  #wcursor-heart { opacity: 1; }
#wcursor-ring.hover { width: 46px; height: 46px; background: var(--cursor-clr, var(--gold)); opacity: .18; }

/* ═══════════════════════════════════════════
   SEPIA GLOBAL (#8)
═══════════════════════════════════════════ */
body.sepia-global {
  filter: sepia(var(--sepia-int,.5)) brightness(1.03);
  transition: filter .4s ease;
}

/* ═══════════════════════════════════════════
   GRADIENTE EN NOMBRES DEL HERO (#10)
═══════════════════════════════════════════ */
.hero-couple.hero-grad {
  background: var(--hero-grad, linear-gradient(90deg, var(--gold-l), #fff));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════
   PARALLAX HERO (#2) — el JS anima transform
═══════════════════════════════════════════ */
#hero .hero-bg { will-change: transform; }

/* ═══════════════════════════════════════════
   GALERÍA LIGHTBOX (#1)
═══════════════════════════════════════════ */
#wlb-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
#wlb-overlay.open { opacity: 1; pointer-events: auto; }
#wlb-img {
  max-width: min(92vw, 1100px); max-height: 88vh;
  object-fit: contain; border-radius: .5rem;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
  transition: opacity .2s;
}
#wlb-close {
  position: fixed; top: 1.25rem; right: 1.5rem;
  font-size: 1.75rem; color: #fff; background: none; border: none;
  cursor: pointer; line-height: 1; opacity: .8;
  transition: opacity .15s; z-index: 9001;
}
#wlb-close:hover { opacity: 1; }
#wlb-prev, #wlb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  font-size: 2rem; color: #fff; background: rgba(255,255,255,.1);
  border: none; cursor: pointer; padding: .75rem 1.1rem;
  border-radius: .5rem; opacity: .75; transition: opacity .15s, background .15s;
  z-index: 9001;
}
#wlb-prev { left: .75rem; }
#wlb-next { right: .75rem; }
#wlb-prev:hover, #wlb-next:hover { opacity: 1; background: rgba(255,255,255,.2); }
#wlb-caption {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.75); font-size: .82rem; background: rgba(0,0,0,.5);
  padding: .35rem .875rem; border-radius: 20px; max-width: 90vw; text-align: center;
  z-index: 9001;
}

/* ═══════════════════════════════════════════
   GALERÍA MASONRY (#19)
═══════════════════════════════════════════ */
.gallery-masonry {
  columns: 3; column-gap: .75rem;
}
.gallery-masonry .photo-item {
  break-inside: avoid; margin-bottom: .75rem;
  display: block;
}
.gallery-masonry .photo-item img { height: auto; border-radius: .5rem; }
@media (max-width: 600px) { .gallery-masonry { columns: 2; } }

/* ═══════════════════════════════════════════
   REACCIONES EN FOTOS (#16)
═══════════════════════════════════════════ */
.photo-reactions {
  display: flex; gap: .35rem; flex-wrap: wrap;
  padding: .4rem .5rem 0; justify-content: center;
}
.reaction-btn {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px; padding: .2rem .55rem; font-size: .78rem;
  cursor: pointer; color: #fff; transition: background .15s, transform .1s;
  display: inline-flex; align-items: center; gap: .25rem;
}
.reaction-btn:hover      { background: rgba(255,255,255,.18); transform: scale(1.08); }
.reaction-btn.reacted    { border-color: var(--gold); color: var(--gold); }
.reaction-count          { font-size: .72rem; opacity: .8; }

/* ═══════════════════════════════════════════
   SLIDESHOW (#17)
═══════════════════════════════════════════ */
#wss-overlay {
  position: fixed; inset: 0; z-index: 9100;
  background: #000; display: none;
  flex-direction: column; align-items: center; justify-content: center;
}
#wss-overlay.open { display: flex; }
#wss-img { max-width: 100vw; max-height: 90vh; object-fit: contain; }
#wss-controls {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .75rem; align-items: center;
}
#wss-controls button {
  background: rgba(255,255,255,.15); border: none; color: #fff;
  border-radius: .5rem; padding: .5rem .875rem; cursor: pointer; font-size: .875rem;
}
#wss-counter { color: rgba(255,255,255,.6); font-size: .8rem; min-width: 60px; text-align: center; }
#wss-close {
  position: fixed; top: 1rem; right: 1.25rem;
  font-size: 1.6rem; color: #fff; background: none; border: none; cursor: pointer; z-index: 9101;
}

/* ═══════════════════════════════════════════
   TIMELINE (#7)
═══════════════════════════════════════════ */
.timeline-wrap {
  position: relative; max-width: 680px; margin: 0 auto;
  padding: 1rem 0;
}
.timeline-wrap::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0; width: 2px; background: var(--gold); opacity: .35;
}
.timeline-event {
  display: flex; align-items: flex-start; gap: 1.5rem;
  margin-bottom: 2.5rem; position: relative;
}
.timeline-event:nth-child(odd)  { flex-direction: row; }
.timeline-event:nth-child(even) { flex-direction: row-reverse; }
.timeline-event-dot {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--ivory); flex-shrink: 0; top: .25rem;
}
.timeline-event-body {
  width: calc(50% - 2rem); background: var(--ivory);
  border-radius: .75rem; padding: 1rem 1.25rem;
  box-shadow: 0 2px 12px var(--shadow);
}
.timeline-event:nth-child(odd)  .timeline-event-body { margin-left: auto; text-align: right; }
.timeline-event:nth-child(even) .timeline-event-body { margin-right: auto; }
.timeline-event-year  { font-size: .72rem; color: var(--gold-d); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .2rem; }
.timeline-event-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--navy); margin-bottom: .35rem; }
.timeline-event-desc  { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.timeline-event-photo { width: 100%; border-radius: .5rem; margin-top: .75rem; object-fit: cover; max-height: 160px; }
@media (max-width: 600px) {
  .timeline-wrap::before { left: 16px; transform: none; }
  .timeline-event, .timeline-event:nth-child(even) { flex-direction: column; }
  .timeline-event-dot { left: 16px; transform: none; }
  .timeline-event-body { width: calc(100% - 3rem); margin-left: 3rem !important; margin-right: 0 !important; text-align: left !important; }
}

/* ═══════════════════════════════════════════
   FOTO DEL VENUE EN MAPA (#6)
═══════════════════════════════════════════ */
.venue-photo {
  width: 100%; max-width: 520px; margin: 0 auto 1.75rem;
  border-radius: .875rem; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.venue-photo img { width: 100%; height: 220px; object-fit: cover; display: block; }

/* ═══════════════════════════════════════════
   FOTO DESTACADA (#20)
═══════════════════════════════════════════ */
.photo-featured-badge {
  position: absolute; top: .5rem; left: .5rem;
  background: var(--gold); color: #fff; font-size: .62rem;
  padding: .15rem .4rem; border-radius: 20px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.photo-featured-item { order: -9999; }

/* ═══════════════════════════════════════════
   VIDEO HERO (#9)
═══════════════════════════════════════════ */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}

/* ═══════════════════════════════════════════
   RSVP — contador + código + waitlist (#24 #25 #29)
═══════════════════════════════════════════ */
.rsvp-capacity-bar {
  width: 100%; height: 6px; background: var(--border);
  border-radius: 3px; overflow: hidden; margin: .5rem 0 .25rem;
}
.rsvp-capacity-fill {
  height: 100%; background: linear-gradient(90deg, var(--navy), var(--gold));
  border-radius: 3px; transition: width .6s ease;
}
.rsvp-waitlist-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(201,168,124,.15); border: 1px solid var(--gold);
  color: var(--gold-d); border-radius: 20px; padding: .25rem .75rem; font-size: .78rem;
  margin-bottom: 1rem;
}
.rsvp-code-gate {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  padding: 1.5rem; text-align: center;
}
.invite-code-form { display: flex; gap: .5rem; max-width: 280px; width: 100%; }
.invite-code-form input { flex: 1; text-align: center; letter-spacing: .2em; font-weight: 700; text-transform: uppercase; }

/* ═══════════════════════════════════════════
   GRUPOS FAMILIA (#27)
═══════════════════════════════════════════ */
.family-member-row {
  display: grid; grid-template-columns: 1fr 1fr auto;
  gap: .5rem; align-items: center; margin-bottom: .5rem;
}
.family-member-remove {
  background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: .25rem;
}
.family-member-remove:hover { color: #ef4444; }
