@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400&family=Great+Vibes&display=swap');

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

:root {
  --cream: #FAF8F5;
  --gold: #C9A96E;
  --gold-dark: #B8956A;
  --gold-light: #E5D3A6;
  --text-dark: #3D3D3D;
  --text-gray: #888888;
  --white: #ffffff;
  --overlay: rgba(0, 0, 0, 0.45);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  max-width: 480px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════ */
/* SOBRE ANIMADO (SPLASH INICIAL)                     */
/* ══════════════════════════════════════════════════ */
.envelope-splash {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #2a2420 0%, #13100e 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.envelope-splash.closing {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.15);
}

/* Resplandor dorado que explota al abrir */
.envelope-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,223,150,0.9) 0%, rgba(255,200,100,0.5) 30%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

.envelope-splash.igniting .envelope-glow {
  animation: glowBurst 1.4s ease-out forwards;
}

@keyframes glowBurst {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  30%  { opacity: 1; transform: translate(-50%, -50%) scale(40); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(120); }
}

.envelope-bg-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.envelope-bg-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #E5D3A6 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  animation: envParticleRise linear infinite;
}

@keyframes envParticleRise {
  0%   { opacity: 0; transform: translateY(20px) scale(0.5); }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1.5); }
}

.envelope-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  perspective: 1200px;
  perspective-origin: 50% 0%;
  z-index: 2;
}

.envelope {
  position: relative;
  width: 280px;
  height: 190px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .envelope:hover {
    transform: translateY(-4px);
  }
}

/* Shake previo cuando se presiona y el sello cruje */
.envelope.shaking {
  animation: envelopeShake 0.4s ease-in-out;
}

@keyframes envelopeShake {
  0%, 100% { transform: translateX(0) rotate(0); }
  15%      { transform: translateX(-3px) rotate(-0.6deg); }
  30%      { transform: translateX(3px)  rotate(0.6deg); }
  45%      { transform: translateX(-2px) rotate(-0.4deg); }
  60%      { transform: translateX(2px)  rotate(0.4deg); }
  80%      { transform: translateX(-1px) rotate(-0.2deg); }
}

/* Caída ligera del sobre después de abrirse */
.envelope.opened {
  animation: envelopeSink 1.5s 1.4s ease-in forwards;
}

@keyframes envelopeSink {
  0%   { transform: translateY(0) rotate(0); }
  100% { transform: translateY(30px) rotate(-2deg); opacity: 0.85; }
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 140px solid transparent;
  border-right: 140px solid transparent;
  border-top: 105px solid var(--gold);
  transform-origin: top center;
  transform: rotateX(0deg) translateZ(0);
  transition: border-top-color 0.3s;
  z-index: 3;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* Apertura con bounce: sobrepasa un poco y se asienta */
.envelope.opened .envelope-flap {
  animation: flapOpen 1.2s 0.4s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
  z-index: 1;
}

@keyframes flapOpen {
  0%   { transform: rotateX(0deg) translateZ(0); }
  60%  { transform: rotateX(192deg) translateZ(0); border-top-color: var(--gold-dark); }
  80%  { transform: rotateX(172deg) translateZ(0); }
  100% { transform: rotateX(180deg) translateZ(0); border-top-color: var(--gold-dark); }
}

.envelope-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #D4B884 0%, #B8956A 100%);
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(255,255,255,0.1);
  overflow: visible;
}

.envelope-body::before,
.envelope-body::after {
  content: '';
  position: absolute;
  background: rgba(0,0,0,0.15);
  z-index: 3;
}

.envelope-body::before {
  width: 0;
  height: 0;
  border-top: 95px solid transparent;
  border-right: 140px solid rgba(0,0,0,0.1);
  bottom: 0;
  left: 0;
}

.envelope-body::after {
  width: 0;
  height: 0;
  border-top: 95px solid transparent;
  border-left: 140px solid rgba(0,0,0,0.1);
  bottom: 0;
  right: 0;
}

/* Bolsillo frontal — trapecio/V que oculta la carta hasta que sale */
.envelope-pocket {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background:
    linear-gradient(135deg, #C9A96E 0%, #A68551 100%);
  clip-path: polygon(0 45%, 50% 100%, 100% 45%, 100% 100%, 0 100%);
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.25), inset 0 -2px 0 rgba(255,255,255,0.06);
  z-index: 4;
  pointer-events: none;
}

.envelope-letter {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: linear-gradient(180deg, #FFF9EF, #FAF0DC);
  border-radius: 2px;
  padding: 1.2rem 0.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 0 0 0 1px rgba(201,169,110,0.2);
  z-index: 2;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  transform: translateY(0) scale(1);
  transform-origin: center bottom;
}

.envelope-letter-inner {
  opacity: 1;
  transition: opacity 0.3s;
}

/* Salida de la carta en 3 tiempos: sube un poco, sale completa, se expande */
.envelope.opened .envelope-letter {
  animation: letterSlide 2s 1.2s cubic-bezier(0.25, 0.9, 0.3, 1) forwards;
  z-index: 6;
}

@keyframes letterSlide {
  0%   { transform: translateY(0) translateZ(0) scale(1) rotate(0deg); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
  25%  { transform: translateY(-20%) translateZ(0) scale(1) rotate(-1deg); }
  60%  { transform: translateY(-95%) translateZ(0) scale(1.05) rotate(1deg); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
  100% { transform: translateY(-125%) translateZ(0) scale(1.25) rotate(0deg); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
}

.envelope-letter-from {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  color: var(--text-gray);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.envelope-letter-names {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: var(--gold-dark);
  line-height: 1;
}

.envelope-letter-divider {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 0.6rem auto;
}

.envelope-letter-date {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  letter-spacing: 0.05em;
}

.envelope-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #E05050, #A01010 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFE4C4;
  font-family: 'Great Vibes', cursive;
  font-size: 1.3rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4), inset 0 0 8px rgba(0,0,0,0.2);
  z-index: 5;
  animation: sealPulse 2.5s ease-in-out infinite;
}

@keyframes sealPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 3px 8px rgba(0,0,0,0.4), inset 0 0 8px rgba(0,0,0,0.2), 0 0 0 0 rgba(224,80,80,0.5); }
  50%      { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 3px 8px rgba(0,0,0,0.4), inset 0 0 8px rgba(0,0,0,0.2), 0 0 0 10px rgba(224,80,80,0); }
}

.envelope.opened .envelope-seal {
  animation: sealBreak 0.6s 0.15s cubic-bezier(0.4, 0, 1, 0.7) forwards;
  z-index: 8;
}

@keyframes sealBreak {
  0%   { transform: translate(-50%, -50%) scale(1)   rotate(0deg);  opacity: 1; filter: brightness(1); }
  30%  { transform: translate(-50%, -50%) scale(1.4) rotate(-8deg); opacity: 1; filter: brightness(1.6); }
  60%  { transform: translate(-55%, -80%) scale(1.1) rotate(18deg); opacity: 0.9; }
  100% { transform: translate(-60%, 60%)  scale(0.5) rotate(45deg); opacity: 0; filter: brightness(0.7); }
}

/* Sparkles dorados que emergen al abrir el sobre */
.envelope-sparkles {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 7;
}

.envelope-sparkles span {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  background: radial-gradient(circle, #FFE8A8 0%, #E8C27A 40%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 8px rgba(255,220,150,0.9);
}

.envelope.opened .envelope-sparkles span {
  animation: sparkleBurst 1.4s ease-out forwards;
}

@keyframes sparkleBurst {
  0%   { opacity: 0; transform: translate(0, 0) scale(0); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, -120px)) scale(1.5); }
}

.envelope-open-btn {
  padding: 12px 32px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(201,169,110,0.4);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: btnBounce 2s ease-in-out infinite;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .envelope-open-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,169,110,0.6); }
}

@keyframes btnBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.envelope-tap-hint {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  font-style: italic;
}

/* Optimización móvil: el filter:drop-shadow sobre border-triangle + rotateX
   produce vibración/jitter en GPU móviles. Se sustituye por sombra simple. */
/* ═══════════════ KEYFRAMES MÓVIL (scope global) ═══════════════ */
/* Deben estar fuera del @media para que algunos navegadores móviles
   los reconozcan al referenciarlos desde reglas condicionales. */
@keyframes glowBurstMobile {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  35%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}

@keyframes letterSlideMobile {
  0%   { transform: translateY(0) scale(1); }
  100% { transform: translateY(-115%) scale(1.15); box-shadow: 0 16px 32px rgba(0,0,0,0.4); }
}

@keyframes flapOpenMobile {
  0%   { transform: rotateX(0deg); }
  100% { transform: rotateX(180deg); border-top-color: var(--gold-dark); }
}

/* ═══════════════ OPTIMIZACIÓN MÓVIL ═══════════════ */
/* Las GPU móviles se saturan con múltiples compositor layers, clip-path
   animado, box-shadow grande y filter:drop-shadow sobre 3D. Se simplifica. */
@media (max-width: 768px) {
  .envelope {
    transition: none;
  }
  .envelope-flap {
    filter: none;
    border-top-color: var(--gold-dark);
  }
  /* Resplandor más ligero: elemento grande desde el inicio, solo opacity */
  .envelope-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,223,150,0.75) 0%, transparent 60%);
  }
  .envelope-splash.igniting .envelope-glow {
    animation: glowBurstMobile 1.2s ease-out forwards;
  }
  /* Pocket con border-triangles (más barato que clip-path) */
  .envelope-pocket {
    clip-path: none;
    background: transparent;
    box-shadow: none;
  }
  .envelope-pocket::before,
  .envelope-pocket::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-top: 95px solid transparent;
  }
  .envelope-pocket::before {
    left: 0;
    border-left: 140px solid #A68551;
  }
  .envelope-pocket::after {
    right: 0;
    border-right: 140px solid #A68551;
  }
  /* Sparkles: sin box-shadow (glow caro en móvil), más pequeños */
  .envelope-sparkles span {
    box-shadow: none;
    background: #FFE8A8;
  }
  /* Letter: animación más corta y simple */
  .envelope.opened .envelope-letter {
    animation: letterSlideMobile 1.4s 1s ease-out forwards;
  }
  /* Flap: animación sin overshoot (menos frames) */
  .envelope.opened .envelope-flap {
    animation: flapOpenMobile 0.7s 0.35s ease-out forwards;
  }
  /* Desactivar sink/shake/btnBounce/sealPulse en móvil */
  .envelope.opened { animation: none; }
  .envelope.shaking { animation-duration: 0.25s; }
  .envelope-open-btn { animation: none; }
  .envelope-seal { animation: none; }
}

/* ══════════════════════════════════════════════════ */
/* BOTONES                                            */
/* ══════════════════════════════════════════════════ */
.btn-gold {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background-color: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.2s ease, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.btn-gold:hover {
  background-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201,169,110,0.35);
}

.btn-gold:active { transform: translateY(0); }

/* Shimmer effect */
.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s;
}

.btn-gold:hover::after { left: 125%; }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline:hover { background: var(--gold); color: var(--white); }

/* ══════════════════════════════════════════════════ */
/* BOTÓN MÚSICA STICKY                                */
/* ══════════════════════════════════════════════════ */
.music-toggle {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s;
}

.music-toggle:hover { transform: scale(1.08); }

.music-toggle .music-icon-on { display: none; }
.music-toggle.playing .music-icon-on { display: block; }
.music-toggle.playing .music-icon-off { display: none; }

.music-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  pointer-events: none;
}

.music-toggle.playing .music-pulse {
  animation: musicPulse 1.6s ease-out infinite;
}

@keyframes musicPulse {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.8); }
}

/* ══════════════════════════════════════════════════ */
/* CURSOR PERSONALIZADO                               */
/* ══════════════════════════════════════════════════ */
.cursor-heart {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out;
  mix-blend-mode: multiply;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-heart { display: block; }
}

.cursor-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  animation: trailFade 0.7s ease-out forwards;
}

@keyframes trailFade {
  0%   { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
}

/* ══════════════════════════════════════════════════ */
/* CONFETTI                                           */
/* ══════════════════════════════════════════════════ */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9996;
}

/* ══════════════════════════════════════════════════ */
/* REVEAL ON SCROLL                                   */
/* ══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════ */
/* CARD                                               */
/* ══════════════════════════════════════════════════ */
.card {
  background-color: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ══════════════════════════════════════════════════ */
/* FLORAL DIVIDER                                     */
/* ══════════════════════════════════════════════════ */
.floral-divider {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.floral-divider svg { width: 100%; height: 60px; }

/* ══════════════════════════════════════════════════ */
/* MODAL                                              */
/* ══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background-color: var(--white);
  border-radius: 16px;
  padding: 2rem;
  max-width: 380px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-gray);
  cursor: pointer;
  line-height: 1;
}

/* Inputs */
input[type="text"],
input[type="url"],
textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--gold);
  outline: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  padding: 8px 0;
  margin-bottom: 1.2rem;
  resize: none;
}

input::placeholder,
textarea::placeholder { color: var(--text-gray); }

input:focus,
textarea:focus { border-bottom-color: var(--gold-dark); }

/* Utilidades texto */
.title-gold {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  text-align: center;
}

.subtitle-gray {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: var(--text-gray);
  text-align: center;
}

section { padding: 3rem 1.5rem; }

/* ══════════════════════════════════════════════════ */
/* HERO                                               */
/* ══════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20px;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  background-color: #2c2c2c;
  z-index: 0;
  will-change: transform;
  transition: transform 0.08s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.75) 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 0.75rem 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  color: var(--white);
  letter-spacing: 0.04em;
  text-align: center;
}

.hero-topbar span:first-child { text-align: left; }
.hero-topbar span:last-child  { text-align: right; }

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(64px, 18vw, 80px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(30px);
}

.hero-ampersand {
  width: 48px;
  height: 48px;
  background-color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  margin: 0.5rem 0;
  box-shadow: 0 2px 10px rgba(201, 169, 110, 0.5);
  opacity: 0;
  transform: scale(0);
}

.hero-wedding-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-top: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-phrase {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.5rem;
  font-style: italic;
  min-height: 1.4em;
  opacity: 0;
}

.hero-anim-1 { animation: heroSlideIn 0.9s 0.3s ease-out forwards; }
.hero-anim-2 { animation: heroPopIn   0.6s 1s ease-out forwards; }
.hero-anim-3 { animation: heroSlideIn 0.9s 1.3s ease-out forwards; }
.hero-anim-4 { animation: heroSlideIn 0.8s 2s ease-out forwards; }
.hero-anim-5 { animation: heroFadeIn  0.8s 2.5s ease-out forwards; }

@keyframes heroSlideIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroPopIn {
  to { opacity: 1; transform: scale(1); }
}

@keyframes heroFadeIn {
  to { opacity: 1; }
}

.hero-floral {
  position: absolute;
  bottom: 56px;
  left: 0;
  right: 0;
  z-index: 3;
  height: 60px;
}

.hero-scroll-arrow {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Live banner (día de la boda) */
.live-banner {
  position: absolute;
  top: 3.2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(201, 80, 80, 0.85);
  color: var(--white);
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: liveDotBlink 1.4s ease-in-out infinite;
}

@keyframes liveDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.7); }
}

/* ══════════════════════════════════════════════════ */
/* COUNTDOWN                                          */
/* ══════════════════════════════════════════════════ */
#countdown {
  background-color: var(--cream);
  text-align: center;
  padding-top: 0;
  padding-bottom: 0;
}

.countdown-label {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  margin: 2rem 0 1.5rem;
}

.countdown-blocks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 12vw, 64px);
  color: var(--text-dark);
  line-height: 1;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.25s ease;
}

.countdown-num.pulse {
  animation: numPulse 0.5s ease;
}

@keyframes numPulse {
  0%   { transform: scale(1); color: var(--text-dark); }
  50%  { transform: scale(1.2); color: var(--gold); }
  100% { transform: scale(1); color: var(--text-dark); }
}

.countdown-unit {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.countdown-sep {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  padding-bottom: 1rem;
}

.countdown-heart {
  margin: 1.5rem auto 2rem;
  display: flex;
  justify-content: center;
  animation: heartBeat 1.4s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.15); }
  30%      { transform: scale(1); }
  45%      { transform: scale(1.1); }
  60%      { transform: scale(1); }
}

.countdown-done {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin: 1.5rem 0;
}

/* ══════════════════════════════════════════════════ */
/* TIMELINE — NUESTRA HISTORIA                        */
/* ══════════════════════════════════════════════════ */
#historia {
  background-color: var(--cream);
  text-align: center;
  padding: 3rem 1.25rem 3.5rem;
}

.historia-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.historia-title {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.historia-subtitle {
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 14px;
  width: 18px;
  height: 18px;
  background: var(--cream);
  border: 3px solid var(--gold);
  border-radius: 50%;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.visible .timeline-dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 5px rgba(201, 169, 110, 0.2);
}

.timeline-dot-highlight {
  background: var(--gold);
  border-color: var(--gold);
}

.timeline-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  text-align: left;
  box-shadow: 0 3px 14px rgba(0,0,0,0.07);
  position: relative;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 18px;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid var(--white);
}

.timeline-card-highlight {
  background: linear-gradient(135deg, #FFF7E6, var(--white));
  border: 1px solid var(--gold-light);
}

.timeline-card-final {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
}

.timeline-card-final::before { border-right-color: var(--gold); }

.timeline-date {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.timeline-card-final .timeline-date { color: var(--white); opacity: 0.9; }

.timeline-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.timeline-card-final .timeline-heading { color: var(--white); }

.timeline-text {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.timeline-card-final .timeline-text { color: rgba(255,255,255,0.9); }

/* ══════════════════════════════════════════════════ */
/* GALERÍA                                            */
/* ══════════════════════════════════════════════════ */
#galeria {
  background-color: var(--cream);
  text-align: center;
  padding: 3rem 0 2.5rem;
}

.galeria-icon { display: flex; justify-content: center; margin-bottom: 1rem; }
.galeria-title { font-size: 1.6rem; margin-bottom: 0.4rem; }
.galeria-subtitle { font-size: 0.9rem; margin-bottom: 2rem; }

.carousel-wrapper { position: relative; overflow: hidden; width: 100%; touch-action: pan-y; }
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.25,0.8,0.25,1); will-change: transform; }
.carousel-slide { flex: 0 0 100%; display: flex; justify-content: center; align-items: center; padding: 0.5rem 2rem 1rem; }

.polaroid-card {
  background: var(--white);
  padding: 0.75rem 0.75rem 2.5rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12), 2px 2px 8px rgba(0,0,0,0.06);
  transform: rotate(var(--rot, 0deg));
  max-width: 280px;
  width: 100%;
  transition: transform 0.4s ease;
}

.polaroid-card:hover {
  transform: rotate(var(--rot, 0deg)) scale(1.03);
}

.slide-img { width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.slide-placeholder { font-family: 'Lato', sans-serif; font-size: 0.85rem; color: var(--text-gray); letter-spacing: 0.05em; }

.carousel-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 2;
}

.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }

@media (hover: hover) {
  .carousel-arrow { display: flex; align-items: center; justify-content: center; }
}

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 0.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background-color: #cccccc; cursor: pointer; transition: background-color 0.2s, transform 0.2s; }
.dot.active { background-color: var(--gold); transform: scale(1.3); }

/* ══════════════════════════════════════════════════ */
/* EVENTOS + MAPA                                     */
/* ══════════════════════════════════════════════════ */
#eventos {
  position: relative;
  background: linear-gradient(160deg, #2c2828 0%, #1a1515 60%, #111 100%);
  padding: 3rem 1.5rem;
  overflow: hidden;
}

.eventos-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.eventos-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.evento-card { text-align: center; }
.evento-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.18); }

.evento-icon { display: flex; justify-content: center; margin-bottom: 0.75rem; }

.evento-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.evento-hr { border: none; border-bottom: 1.5px solid var(--gold); margin: 0 auto 1rem; width: 60%; }

.evento-mes {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 0.25rem;
}

.evento-fecha-row { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem; }

.evento-dia {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 14vw, 68px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.evento-dia-semana, .evento-hora {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.evento-lugar {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.evento-btn { max-width: 220px; margin: 0 auto; }

/* Mapa */
.map-wrapper { padding: 1rem; }

.map-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.75rem;
}

.event-map {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
}

.map-hint {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  color: var(--text-gray);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

.leaflet-pin-pulse {
  background: transparent;
  border: none;
  position: relative;
}

.leaflet-pin-pulse::before,
.leaflet-pin-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
}

.leaflet-pin-pulse::before {
  width: 14px;
  height: 14px;
  z-index: 2;
}

.leaflet-pin-pulse::after {
  width: 30px;
  height: 30px;
  opacity: 0.4;
  animation: pinPulse 1.8s ease-out infinite;
}

@keyframes pinPulse {
  0%   { transform: translate(-50%,-50%) scale(0.6); opacity: 0.6; }
  100% { transform: translate(-50%,-50%) scale(2); opacity: 0; }
}

/* ══════════════════════════════════════════════════ */
/* RSVP                                               */
/* ══════════════════════════════════════════════════ */
#rsvp {
  background-color: var(--cream);
  text-align: center;
  padding-top: 0;
  padding-bottom: 0;
}

.rsvp-icon { display: flex; justify-content: center; margin: 2rem 0 1rem; }
.rsvp-title { font-size: 2rem; margin-bottom: 0.5rem; }
.rsvp-subtitle { font-size: 0.95rem; margin-bottom: 1.75rem; padding: 0 1.5rem; }
.rsvp-btn { max-width: 280px; margin: 0 auto 2rem; }

.modal-icon { display: flex; justify-content: center; margin-bottom: 1rem; }

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 1.5rem;
}

.rsvp-radios { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }

.rsvp-radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  user-select: none;
}

.rsvp-radio-label input[type="radio"] { display: none; }

.rsvp-radio-custom {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ccc;
  flex-shrink: 0;
  transition: border-color 0.2s, background-color 0.2s;
  position: relative;
}

.rsvp-radio-label input[type="radio"]:checked + .rsvp-radio-custom {
  border-color: var(--gold);
  background-color: var(--gold);
}

.rsvp-radio-label input[type="radio"]:checked + .rsvp-radio-custom::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background-color: var(--white);
}

.form-msg {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.form-msg.success { color: #2d6a4f; background-color: #d8f3dc; }
.form-msg.error   { color: #9b2226; background-color: #fde8e8; }

/* ══════════════════════════════════════════════════ */
/* TRIVIA                                             */
/* ══════════════════════════════════════════════════ */
#trivia {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, var(--cream) 0%, #f5f0e6 100%);
}

.trivia-icon { display: flex; justify-content: center; margin-bottom: 1rem; }
.trivia-title { font-size: 1.7rem; margin-bottom: 0.4rem; }
.trivia-subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; }
.trivia-start-btn { max-width: 260px; margin: 0 auto; }

.trivia-modal-box { max-width: 420px; }

.trivia-progress {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 1rem;
}

.trivia-step {
  width: 24px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  transition: background 0.3s;
}

.trivia-step.done { background: var(--gold); }
.trivia-step.current { background: var(--gold-dark); }

.trivia-q {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 1.2rem;
  min-height: 3em;
}

.trivia-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.trivia-opt {
  padding: 0.85rem 1rem;
  background: #faf6ec;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.trivia-opt:hover { border-color: var(--gold-light); transform: translateX(3px); }
.trivia-opt.correct   { background: #d8f3dc; border-color: #2d6a4f; color: #2d6a4f; }
.trivia-opt.incorrect { background: #fde8e8; border-color: #9b2226; color: #9b2226; }
.trivia-opt.disabled  { pointer-events: none; opacity: 0.6; }
.trivia-opt.reveal    { background: #fff9e6; border-color: var(--gold); }

.trivia-feedback {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--text-gray);
  text-align: center;
  padding: 0.5rem 0 1rem;
  font-style: italic;
  min-height: 1.5em;
}

.trivia-next-btn { margin-top: 0.5rem; max-width: 200px; margin-left: auto; margin-right: auto; }

.trivia-result {
  text-align: center;
  padding: 1rem 0;
}

.trivia-result-score {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin: 0.5rem 0;
}

.trivia-result-total {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--text-gray);
}

.trivia-result-msg {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text-dark);
  margin: 1rem 0;
}

/* ══════════════════════════════════════════════════ */
/* LIBRO DE FIRMAS                                    */
/* ══════════════════════════════════════════════════ */
#firmas {
  text-align: center;
  padding: 3.5rem 1.25rem;
  background: var(--cream);
}

.firmas-icon { display: flex; justify-content: center; margin-bottom: 1rem; }
.firmas-title { font-size: 1.7rem; margin-bottom: 0.4rem; }
.firmas-subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; }
.firmas-cta { max-width: 260px; margin: 0 auto 2rem; }

.firmas-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1rem;
  min-height: 100px;
}

.firma-nota {
  padding: 1rem 0.8rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.03);
  transform: rotate(var(--rot, -1deg));
  position: relative;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  animation: firmaAppear 0.6s ease backwards;
}

.firma-nota:hover { transform: rotate(0deg) scale(1.03); z-index: 2; }

@keyframes firmaAppear {
  from { opacity: 0; transform: translateY(20px) rotate(var(--rot, -1deg)); }
  to   { opacity: 1; transform: translateY(0) rotate(var(--rot, -1deg)); }
}

.firma-msg-text {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  text-align: left;
  word-break: break-word;
}

.firma-autor {
  font-family: 'Great Vibes', cursive;
  font-size: 1.2rem;
  color: var(--gold-dark);
  text-align: right;
}

.firmas-loading {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--text-gray);
  grid-column: 1 / -1;
  padding: 1rem;
}

.firma-colors {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.firma-color-opt {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.firma-color-opt:hover { transform: scale(1.15); }
.firma-color-opt.active { border-color: var(--gold); transform: scale(1.15); }

/* ══════════════════════════════════════════════════ */
/* EXTRAS                                             */
/* ══════════════════════════════════════════════════ */
#extras {
  padding: 3rem 1.5rem;
  background-color: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.extra-card { text-align: center; padding: 2rem 1.5rem; }
.extra-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }

.extra-icon { display: flex; justify-content: center; margin-bottom: 0.75rem; }
.extra-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold); margin-bottom: 0.5rem; }
.extra-text { font-family: 'Lato', sans-serif; font-size: 0.9rem; color: #777; line-height: 1.5; margin-bottom: 1.25rem; padding: 0 0.5rem; }

/* Dress Code modal */
.dresscode-tipo { font-family: 'Lato', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text-dark); text-align: center; margin-bottom: 0.25rem; }
.dresscode-sub { font-family: 'Lato', sans-serif; font-size: 0.85rem; color: #999; text-align: center; margin-bottom: 1rem; }
.dresscode-collage { background: #f5f2ee; border-radius: 10px; padding: 1rem; }
.dresscode-placeholder { display: flex; gap: 1rem; }
.dresscode-col { flex: 1; text-align: center; }
.dresscode-col-label { font-family: 'Lato', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--gold-dark); margin-bottom: 0.35rem; }
.dresscode-col-text { font-family: 'Lato', sans-serif; font-size: 0.8rem; color: #666; line-height: 1.4; }

/* Tips */
.tips-list { list-style: none; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 0.85rem; }
.tips-list li { font-family: 'Lato', sans-serif; font-size: 0.92rem; color: var(--text-dark); line-height: 1.5; padding-left: 1.25rem; position: relative; }
.tips-list li::before { content: '•'; color: var(--gold); font-size: 1.2rem; position: absolute; left: 0; top: -1px; }

/* Regalos */
.regalos-text { font-family: 'Lato', sans-serif; font-size: 0.92rem; color: var(--text-dark); line-height: 1.6; text-align: center; margin-bottom: 1rem; }
.regalos-heart { text-align: center; font-size: 1.5rem; }

/* ══════════════════════════════════════════════════ */
/* PLAYLIST                                           */
/* ══════════════════════════════════════════════════ */
#playlist {
  padding: 3rem 1.25rem;
  background: linear-gradient(180deg, #f5f0e6 0%, var(--cream) 100%);
  text-align: center;
}

.playlist-icon { display: flex; justify-content: center; margin-bottom: 1rem; }
.playlist-title { font-size: 1.7rem; margin-bottom: 0.4rem; }
.playlist-subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; }

.playlist-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  padding-right: 4px;
}

.playlist-list::-webkit-scrollbar { width: 4px; }
.playlist-list::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

.playlist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  padding: 0.75rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: left;
  transition: transform 0.2s;
  animation: playlistItemIn 0.5s ease;
}

@keyframes playlistItemIn {
  from { opacity: 0; transform: translateX(-15px); }
  to   { opacity: 1; transform: translateX(0); }
}

.playlist-item:hover { transform: translateX(3px); }

.playlist-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playlist-info {
  flex: 1;
  min-width: 0;
}

.playlist-cancion {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-invitado {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  color: var(--text-gray);
  font-style: italic;
}

.playlist-vote {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  color: var(--gold-dark);
  transition: transform 0.2s, background 0.2s;
  font-weight: 700;
}

.playlist-vote:hover { background: rgba(201,169,110,0.12); }

.playlist-vote.voted {
  color: #e74c3c;
  animation: voteTap 0.4s ease;
}

@keyframes voteTap {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.playlist-vote svg { transition: transform 0.2s; }
.playlist-vote:hover svg { transform: scale(1.2); }
.playlist-vote.voted svg path { fill: #e74c3c; }

.playlist-empty {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--text-gray);
  font-style: italic;
  padding: 2rem 1rem;
}

.playlist-add-btn { max-width: 260px; margin: 0 auto; }

/* ══════════════════════════════════════════════════ */
/* MARCO COMPARTIBLE                                  */
/* ══════════════════════════════════════════════════ */
#marco {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--cream);
}

.marco-icon { display: flex; justify-content: center; margin-bottom: 1rem; }
.marco-title { font-size: 1.7rem; margin-bottom: 0.4rem; }
.marco-subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; }

.marco-input {
  max-width: 280px;
  margin: 0 auto 1rem;
  text-align: center;
}

.marco-preview-wrap {
  margin: 1.5rem auto 1rem;
  max-width: 320px;
  position: relative;
}

.marco-canvas {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.marco-canvas.visible { display: block; }

.marco-hint {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  color: var(--text-gray);
  font-style: italic;
  padding: 3rem 1rem;
  border: 2px dashed var(--gold-light);
  border-radius: 12px;
}

.marco-hint.hidden { display: none; }

.marco-actions {
  display: flex;
  gap: 0.75rem;
  max-width: 320px;
  margin: 0 auto;
}

.marco-actions .btn-gold { flex: 1; padding: 10px 12px; font-size: 0.9rem; }

/* ══════════════════════════════════════════════════ */
/* FOTOS                                              */
/* ══════════════════════════════════════════════════ */
#fotos {
  position: relative;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  overflow: hidden;
  padding-bottom: 3rem;
}

.fotos-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 0; }
.fotos-floral-top { position: relative; z-index: 1; }

.fotos-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fotos-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: #fff; margin-bottom: 0.5rem; line-height: 1.3; }
.fotos-subtitle { font-family: 'Lato', sans-serif; font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }

.qr-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem;
  display: inline-block;
  margin-bottom: 1rem;
  animation: qrGlow 3s ease-in-out infinite;
}

@keyframes qrGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,169,110,0.4); }
  50%      { box-shadow: 0 0 0 10px rgba(201,169,110,0); }
}

#qr-code img,
#qr-code canvas { display: block; }

.fotos-qr-text { font-family: 'Lato', sans-serif; font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; }
.fotos-btn { max-width: 240px; }

/* ══════════════════════════════════════════════════ */
/* FOOTER                                             */
/* ══════════════════════════════════════════════════ */
#footer { background: #1a1a1a; text-align: center; padding: 2.5rem 1.5rem; }
.footer-names { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold); margin-bottom: 0.35rem; }
.footer-date { font-family: 'Lato', sans-serif; font-size: 0.85rem; color: rgba(255,255,255,0.5); letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.footer-heart { display: flex; justify-content: center; animation: heartBeat 1.4s ease-in-out infinite; }

/* Inputs en modales */
.modal-box input[type="text"],
.modal-box input[type="url"],
.modal-box textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--gold);
  padding: 0.6rem 0;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  outline: none;
  resize: none;
}

.modal-box input::placeholder,
.modal-box textarea::placeholder { color: #bbb; }

.modal-box input:focus,
.modal-box textarea:focus { border-bottom-color: var(--gold-dark); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
