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

body {
    background-color: #000; /* Fondo oscuro para resaltar la invitación */
    font-family: 'Arial', sans-serif; /* Cambiaremos la fuente más adelante */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.mobile-container {
    width: 100%;
    max-width: 480px; /* Tamaño típico de smartphone */
    min-height: 100vh;
    background-color: #000;
    position: relative;
    overflow-x: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.cover-section {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.pase-invitado {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  opacity: 0;
  white-space: nowrap;
  padding: 20px 40px;
}

/* Fondo oscuro sutil para legibilidad */
.pase-invitado::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 80%);
  z-index: -1;
  filter: blur(10px);
}

.pase-para {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: #FAF6F0;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
  font-weight: 500;
}

.pase-nombre {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(32px, 8vw, 46px);
  background: linear-gradient(135deg, #FFE9C7 0%, #F4D88A 50%, #C9A56B 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.9));
  margin: 2px 0 0;
  line-height: 1;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.cover-background {
    width: 100%;
    height: 100%;
    background-image: url('public/images/portada.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.envelope-container {
    position: absolute;
    top: 65%; /* Movido más abajo */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 85%; /* Tamaño aumentado */
    max-width: 380px;
    cursor: pointer;
    /* Animación de respiración suave */
    animation: breathe 3s ease-in-out infinite;
}

.envelope-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}

/* Efecto hover ligero adicional para interactividad */
.envelope-container:hover .envelope-img {
    transform: scale(1.02) rotate(-1deg);
}

@keyframes breathe {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.04); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Restablecer botón */
button.envelope-container {
    background: none;
    border: none;
    outline: none;
    padding: 0;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* Microcopy */
.microcopy {
    display: block;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    font-size: 0.9rem;
    margin-top: 15px;
    opacity: 0.9;
    text-align: center;
    letter-spacing: 1px;
}

/* Overlay del portal animado */
#portal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: #fff;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

#portal-overlay.hidden,
#contenido.hidden,
.cover-section.hidden {
    display: none !important;
}

.portal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#portal-overlay.fade-out {
    opacity: 0;
}

/* Ocultar scroll cuando el portal está activo */
body.no-scroll {
    overflow: hidden;
}

/* Partículas doradas */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 8px 2px rgba(255, 215, 0, 0.6);
    opacity: 0;
    animation: floatParticle 4s infinite ease-in-out;
}

.p1 { top: 70%; left: 20%; animation-delay: 0s; }
.p2 { top: 60%; left: 80%; animation-delay: 1s; }
.p3 { top: 80%; left: 50%; animation-delay: 2s; }
.p4 { top: 50%; left: 30%; animation-delay: 1.5s; }
.p5 { top: 75%; left: 70%; animation-delay: 0.5s; }

@keyframes floatParticle {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-50px) scale(0.5); opacity: 0; }
}

/* Animación de apertura del sobre */
.envelope-img.open-anim {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    transition: all 0.5s ease;
}

/* Estilos básicos para el contenido (placeholder) */
/* Update #contenido for dynamic background */
#contenido {
    width: 100%;
    min-height: 100vh;
    position: relative;
    color: #fff;
    z-index: 100;
}

main,
.zona,
.zona-1,
.zona-2,
.zona-3 {
  position: relative;
  z-index: 100;
}

.fondo-dinamico {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.fondo-dinamico::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(20, 10, 25, 0.15) 0%,
    rgba(20, 10, 25, 0.40) 55%,
    rgba(20, 10, 25, 0.60) 90%,
    rgba(20, 10, 25, 0.70) 100%
  );
  pointer-events: none;
  z-index: 50;
}

.fondo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
}

.fondo.activo {
    opacity: 1;
}

.content-scroll {
    position: relative;
    z-index: 1;
    width: 100%;
}

.zona {
    padding: 60px 8px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.zona > * {
    width: 100%;
    display: block;
    position: relative;
}

#zona1 {
    min-height: auto;
    padding: 60px 8px 0;
}

#zona2 {
    padding-top: 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.action-placeholder, .info-placeholder {
    margin: 15px 0;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    font-size: 0.9rem;
}

.content-header {
    text-align: center;
}

.floral-medallion {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #e8a87c;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(252, 236, 235, 0.8);
}

/* === ZONA 1: BIENVENIDA === */
.bienvenida {
    padding: 80px 24px 60px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    width: 100%;
}

.bloque {
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 40px;
}

.bloque:last-child {
    margin-bottom: 0;
}

.bloque.visible {
    animation: entrada-bloque 1s ease-out forwards;
}

/* === TÍTULO PRINCIPAL === */
.titulo-principal-img {
    width: clamp(260px, 80vw, 380px);
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
    margin-bottom: 20px;
}

/* === MÚSICA === */
.bloque-musica {
    margin-bottom: 24px;
    z-index: 10;
}

.btn-musica {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-musica:active {
    transform: scale(0.95);
}

.icono-musica {
    width: clamp(80px, 22vw, 110px);
    height: auto;
    animation: pulso-boton 1.5s infinite ease-in-out;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.icono-musica.pausado {
    animation: boton-respira 3.5s infinite ease-in-out;
    opacity: 0.9;
}

@keyframes boton-respira {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulso-boton {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(229,198,135,0.8)); }
}

/* === ESPEJO === */
.espejo-container {
    position: relative;
    width: clamp(280px, 82vw, 400px);
    margin: 24px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bloque-espejo {
    margin-bottom: 0;
}

.espejo-completo {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    animation: espejo-respira 5s ease-in-out infinite;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.35));
}

.espejo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(
        ellipse at center,
        rgba(255,215,150,0.5) 0%,
        rgba(255,200,130,0.25) 30%,
        transparent 70%
    );
    filter: blur(30px);
    animation: glow-pulse 4s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.particulas-magicas {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.particula-magica {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #E5C687;
    box-shadow: 0 0 8px rgba(229,198,135,0.8), 0 0 16px rgba(229,198,135,0.4);
    animation: particula-flotar 6s ease-out infinite;
}

.bloque-frase {
    margin-top: 0;
    margin-bottom: 60px;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
}

/* === LIBRO (FRASE) === */
.libro-img {
    width: clamp(260px, 85vw, 380px);
    height: auto;
    filter: drop-shadow(0 6px 15px rgba(0,0,0,0.4));
    animation: flotar-libro 6s ease-in-out infinite;
}

/* === FECHA === */
.bloque-fecha {
    margin-top: 20px;
    margin-bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.fecha-container {
    width: clamp(360px, 98vw, 600px);
    height: 300px; /* Ajuste para ver solo la tarjeta superior */
    overflow: hidden;
    display: flex;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 4px;
}

.fecha-img {
    width: 100%;
    height: auto;
    display: block;
    transform: translateY(0);
}

/* === CUENTA REGRESIVA === */
.bloque-countdown {
    margin-top: 0;
    margin-bottom: 0;
    align-self: stretch;
    margin-left: -24px;
    margin-right: -24px;
    z-index: 7;
}

.contador-container {
  position: relative;
  width: clamp(360px, 98vw, 600px);
  aspect-ratio: 2.5 / 1;
  margin: 8px auto 32px;
  max-width: 100%;
}

.contador-marco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

.contador-contenido {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 65%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 2;
  pointer-events: none;
}

.unidad-tiempo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.numero {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 8vw, 48px);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, #E5C687 0%, #F4D88A 50%, #C9A56B 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.7));
  text-align: center;
}

.etiqueta {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(10px, 2.5vw, 15px);
  color: #FAF6F0;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 2px 5px rgba(0,0,0,0.9);
  margin-top: 4px;
  white-space: nowrap;
}

/* === SECCIÓN ITINERARIO === */
.itinerario-container {
  width: 100%;
  max-width: 600px;
  margin: 3px auto 0;
}

.itinerario-imagen {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}

/* === BOTÓN UBICACIÓN === */
.ubicacion-btn-container {
  width: 100%;
  max-width: 600px;
  margin: 24px auto 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-ubicacion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: rgba(30, 15, 25, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 198, 135, 0.4);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

.btn-ubicacion:active {
  transform: scale(0.97);
}

.btn-ubicacion-texto {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 500;
  color: #FAF6F0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Corazón animado */
.corazon-animado {
  width: 24px;
  height: 24px;
  position: relative;
  transform: rotate(45deg);
}

.corazon-animado::before,
.corazon-animado::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 0 50%;
  background: transparent;
  background-image: radial-gradient(circle 6px at 50% 50%, transparent 94%, #ff4747);
}

.corazon-animado::after {
  animation: pulso-corazon 1s infinite;
  transform: perspective(336px) translateZ(0px);
}

@keyframes pulso-corazon {
  to {
    transform: perspective(336px) translateZ(168px);
    opacity: 0;
  }
}

/* Menú desplegable */
.menu-ubicaciones {
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  max-height: 300px;
  opacity: 1;
  transition: all 0.4s ease;
}

.menu-ubicaciones.oculto {
  max-height: 0;
  opacity: 0;
  margin: 0;
  gap: 0;
}

.link-ubicacion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(30, 15, 25, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 198, 135, 0.3);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.link-ubicacion:active {
  transform: scale(0.98);
  border-color: rgba(229, 198, 135, 0.6);
}

.link-icono {
  font-size: 28px;
  flex-shrink: 0;
}

.link-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  color: #FAF6F0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.link-lugar {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
  color: rgba(250, 246, 240, 0.8);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.link-flecha {
  font-size: 20px;
  color: #E5C687;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

/* === SECCIÓN GALERÍA === */
.seccion-galeria {
  width: 100%;
  margin: -80px auto 60px;
  padding: 0 12px 32px;
  overflow: visible;
  position: relative;
  z-index: 10;
}

.titulo-galeria {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  background: linear-gradient(135deg, #FFE9C7 0%, #F4D88A 50%, #C9A56B 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7));
  text-align: center;
}

.carrusel-wrapper {
  width: 100%;
  height: 350px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  overflow: visible;
}

.carrusel-inner {
  --quantity: 10;
  --w: 100px;
  --h: 150px;
  --translateZ: 220px;
  --rotateX: -15deg;
  --perspective: 1000px;
  position: absolute;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
  transform: perspective(var(--perspective));
  animation: carrusel-rotar 25s linear infinite;
}

@keyframes carrusel-rotar {
  from {
    transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(0);
  }
  to {
    transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(1turn);
  }
}

.carrusel-card {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(229, 198, 135, 0.6);
  border-radius: 12px;
  overflow: hidden;
  transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(var(--translateZ));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.carrusel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === SECCIÓN REGALOS === */
.seccion-regalos {
  width: 100%;
  max-width: 600px;
  margin: -60px auto 24px;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-regalo-wrapper {
  position: relative;
  display: inline-block;
}

.btn-regalo-hand {
  text-align: center;
  cursor: pointer;
  background-color: rgba(30, 15, 25, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  filter: url(#handDrawnNoise);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #FAF6F0;
  letter-spacing: 1.5px;
  padding: 14px 32px;
  border: 1px solid rgba(229, 198, 135, 0.4);
  border-radius: 50px;
  box-shadow: rgba(229, 198, 135, 0.3) 4px 4px 0 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  animation: btn-idle 1s infinite ease-in-out;
  position: relative;
  transition: 0.3s ease-in-out;
}

.btn-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  fill: rgba(229, 198, 135, 0.3);
  stroke: rgba(229, 198, 135, 0.4);
  stroke-width: 10;
  stroke-linecap: round;
  pointer-events: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.5s ease-in-out;
}

@keyframes btn-idle {
  0% {
    filter: url(#handDrawnNoise);
  }
  50% {
    rotate: 2deg;
    filter: url(#handDrawnNoise2);
  }
  100% {
    filter: url(#handDrawnNoise);
  }
}

.btn-regalo-hand:active {
  transform: scale(0.97);
  box-shadow: inset rgba(229, 198, 135, 0.3) 4px 4px 0 1px;
}

.btn-regalo-hand:active .btn-highlight {
  stroke-dashoffset: 0;
}

/* Modal regalo */
.modal-regalo {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-regalo.activo {
  display: flex;
}

.modal-regalo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-regalo-contenido {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 480px;
  animation: modal-entrar 0.4s ease-out;
}

.modal-regalo-imagen {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6));
}

.modal-regalo-cerrar {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(229, 198, 135, 0.5);
  background: rgba(30, 15, 25, 0.8);
  color: #FAF6F0;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

@keyframes modal-entrar {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* === SPOTIFY CUSTOM PLAYER === */
.seccion-spotify {
  width: 100%;
  max-width: 400px;
  margin: 32px auto;
  padding: 0 12px;
}

.spotify-card {
  background: rgba(30, 15, 25, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 198, 135, 0.2);
  border-radius: 16px;
  padding: 16px;
}

.spotify-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.spotify-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: #FAF6F0;
  margin: 0;
}

.spotify-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spotify-track {
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  border: none;
}

.spotify-embed {
  border-radius: 12px;
  display: block;
  width: 100%;
}

.hidden {
  display: none !important;
}

/* === RSVP SECTION === */
.seccion-rsvp {
  width: 100%;
  max-width: 400px;
  margin: 40px auto;
  padding: 0 16px;
  position: relative;
}

.seccion-rsvp .titulo-seccion {
  position: relative;
  z-index: 1;
  padding: 10px 0;
}

.seccion-rsvp .titulo-seccion::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(circle, rgba(30, 15, 25, 0.8) 0%, rgba(30, 15, 25, 0) 70%);
  z-index: -1;
  filter: blur(10px);
}

.titulo-rsvp {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  background: linear-gradient(135deg, #FFE9C7 0%, #F4D88A 50%, #C9A56B 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.95)) drop-shadow(0 0 5px rgba(0,0,0,0.5));
  text-align: center;
}

.subtitulo-rsvp {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(15px, 4vw, 18px);
  color: #FAF6F0;
  text-align: center;
  margin: 8px 0 24px;
  text-shadow: 2px 2px 8px rgba(0,0,0,1), 0 0 15px rgba(0,0,0,0.8);
  font-weight: 500;
}

.rsvp-form-container {
  background: rgba(30, 15, 25, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 198, 135, 0.25);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rsvp-campo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rsvp-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  color: #E5C687;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.rsvp-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(229, 198, 135, 0.3);
  border-radius: 12px;
  color: #FAF6F0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.rsvp-input::placeholder {
  color: rgba(250, 246, 240, 0.4);
}

.rsvp-input:focus {
  border-color: rgba(229, 198, 135, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

/* Contador de acompañantes */
.rsvp-contador {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 8px 0;
}

.rsvp-contador-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(229, 198, 135, 0.4);
  background: rgba(229, 198, 135, 0.15);
  color: #E5C687;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.rsvp-contador-btn:active {
  transform: scale(0.9);
  background: rgba(229, 198, 135, 0.3);
}

.rsvp-contador-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  color: #FAF6F0;
  min-width: 40px;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Botón WhatsApp */
.rsvp-btn-enviar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #25D366 0%, #1DB954 100%);
  border: none;
  border-radius: 50px;
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.rsvp-btn-enviar:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

/* === KEYFRAMES === */
@keyframes entrada-bloque {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rotacion-suave {
    to { transform: rotate(360deg); }
}

@keyframes espejo-respira {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes glow-pulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: translate(-50%, -50%) scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.05); 
    }
}

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

@keyframes particula-flotar {
    0% { opacity: 0; transform: translate(0, 0); }
    15% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--tx, 20px), -150px); }
}

/* Accesibilidad: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .envelope-container {
        animation: none;
    }
    .particle {
        animation: none;
        display: none;
    }
    
    .bloque,
    .espejo-completo,
    .espejo-glow,
    .particula-magica {
        animation: none !important;
    }
    .bloque {
        opacity: 1;
        transform: none;
    }
    .particulas-magicas {
        display: none;
    }
}
