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

body {
    background-color: oklch(12% 0.015 320); /* Fondo neutral oscuro tintado de mora */
    font-family: 'Cormorant Garamond', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.mobile-container {
    width: 100%;
    max-width: 480px; /* Tamaño típico de smartphone */
    min-height: 100vh;
    background-color: oklch(12% 0.015 320); /* Fondo neutral oscuro tintado de mora */
    position: relative;
    overflow-x: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

.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%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

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

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

/* 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 {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 9999;
    pointer-events: none;
}

#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;
}



/* === FRASE DE INVITACIÓN === */
.bloque-frase {
  margin-top: 0;
  margin-bottom: 60px;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 5;
}

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

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

/* === CALENDARIO Y CUENTA REGRESIVA === */
.zona-calendario {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 24px;
    width: 100%;
}

.bloque-calendario-countdown {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    box-sizing: border-box;
    z-index: 7;
}

.fecha-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;
}

.fecha-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Botón de Agendar en Google Calendar */
.btn-calendario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    background: rgba(30, 15, 25, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(229, 198, 135, 0.45);
    border-radius: 50px;
    color: #FAF6F0;
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-calendario:hover {
    background: rgba(229, 198, 135, 0.15);
    border-color: rgba(229, 198, 135, 0.6);
    box-shadow: 0 6px 20px rgba(229, 198, 135, 0.25);
}

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

.icono-calendario {
    stroke: #e5c687;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn-calendario:hover .icono-calendario {
    transform: rotate(-10deg) scale(1.1);
}

.contador-container {
  width: 100%;
  max-width: 380px;
  background: rgba(30, 15, 25, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  padding: 24px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 
              inset 0 0 15px rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.contador-contenido {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.contador-divisor-punto {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.6);
  align-self: center;
  margin-top: -16px;
  line-height: 1;
}

.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(32px, 8vw, 44px);
  font-weight: 500;
  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 2px 4px rgba(0,0,0,0.4));
  text-align: center;
}

.etiqueta {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  margin-top: 6px;
  white-space: nowrap;
}

/* === SECCIÓN ITINERARIO === */
.itinerario-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
}

.itinerario-seccion {
  position: relative;
  z-index: 1; /* Se superpone a los brillos del contenedor wrapper */
  width: 100%;
  padding: 32px 12px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: rgba(20, 10, 25, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(229, 198, 135, 0.35);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 
              inset 0 0 20px rgba(229, 198, 135, 0.05);
  box-sizing: border-box;
}

/* Efecto de luz rosa y dorada en los bordes */
.itinerario-wrapper::before,
.itinerario-wrapper::after {
  --size: 6px;
  content: "";
  position: absolute;
  top: calc(var(--size) / -2);
  left: calc(var(--size) / -2);
  width: calc(100% + var(--size));
  height: calc(100% + var(--size));
  background: radial-gradient(circle at 0% 0%, #e5c687, transparent 65%),
              radial-gradient(circle at 100% 0%, #ffb6c1, transparent 65%),
              radial-gradient(circle at 0% 100%, #ff6b8b, transparent 65%),
              radial-gradient(circle at 100% 100%, #C9A56B, transparent 65%);
  border-radius: 16px;
  pointer-events: none;
}

.itinerario-wrapper::after {
  --size: 2px;
  z-index: -1;
}

.itinerario-wrapper::before {
  --size: 12px;
  z-index: -2;
  filter: blur(12px);
  animation: itinerario-glow 4s ease-in-out alternate infinite;
}

@keyframes itinerario-glow {
  0% {
    filter: blur(10px);
    transform: scale(1.005);
    opacity: 0.8;
  }
  100% {
    filter: blur(18px);
    transform: scale(1.025);
    opacity: 1;
  }
}

.itinerario-linea {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(229, 198, 135, 0.4) 10%, rgba(229, 198, 135, 0.4) 90%, transparent);
  z-index: 1;
}

.itinerario-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  width: 100%;
  align-items: center;
  position: relative;
}

.itinerario-nodo {
  grid-column: 2;
  justify-self: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FAF6F0;
  border: 2px solid #e5c687;
  box-shadow: 0 0 10px rgba(229, 198, 135, 0.8), 0 0 4px rgba(255, 255, 255, 0.5);
  z-index: 2;
}

.itinerario-img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.item-derecha .itinerario-img-container {
  grid-column: 1;
  justify-content: flex-end;
  padding-right: 15px;
}

.item-izquierda .itinerario-img-container {
  grid-column: 3;
  justify-content: flex-start;
  padding-left: 15px;
}

.itinerario-img-icono {
  width: 55px;
  height: 55px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 2px rgba(229, 198, 135, 0.15));
  transition: transform 0.3s ease;
  animation: pulso-itinerario-img 4s ease-in-out infinite alternate;
}

.itinerario-img-icono:hover {
  transform: scale(1.1);
}

.svg-estrella {
  width: 48px;
  height: 48px;
  padding: 4px;
}

@keyframes pulso-itinerario-img {
  0% { transform: translateY(0) rotate(-1deg); }
  100% { transform: translateY(-4px) rotate(2deg); }
}

.itinerario-contenido {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-derecha .itinerario-contenido {
  grid-column: 3;
  text-align: left;
  padding-left: 15px;
}

.item-izquierda .itinerario-contenido {
  grid-column: 1;
  text-align: right;
  padding-right: 15px;
}

.itinerario-hora {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(135deg, #FFE9C7 0%, #F4D88A 50%, #C9A56B 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85));
}

.itinerario-divisor-mini {
  font-size: 8px;
  color: rgba(229, 198, 135, 0.5);
  letter-spacing: 1px;
}

.itinerario-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FAF6F0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95);
}

.itinerario-lugar {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 12px;
  color: rgba(250, 246, 240, 0.85);
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}

/* === 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));
}

/* === CÓDIGO DE VESTIMENTA === */
.bloque-vestimenta {
    margin-top: 35px;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 8;
}

.vestimenta-container {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(rgba(20, 10, 25, 0.55), rgba(20, 10, 25, 0.75)), url('public/images/ves.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(229, 198, 135, 0.45);
    border-radius: 4px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                inset 0 0 15px rgba(229, 198, 135, 0.08),
                0 0 15px 1px rgba(229, 198, 135, 0.25);
    animation: borderGlow 4s infinite ease-in-out;
}

/* Brillos mágicos en las esquinas */
.card-sparkle {
    position: absolute;
    width: 16px;
    height: 16px;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 0 5px rgba(229, 198, 135, 0.85));
    animation: sparklePulse 2.5s infinite alternate ease-in-out;
}

.card-sparkle-tl {
    top: -8px;
    left: -8px;
    animation-delay: 0s;
}

.card-sparkle-tr {
    top: -8px;
    right: -8px;
    animation-delay: 0.6s;
}

.card-sparkle-bl {
    bottom: -8px;
    left: -8px;
    animation-delay: 1.2s;
}

.card-sparkle-br {
    bottom: -8px;
    right: -8px;
    animation-delay: 1.8s;
}

@keyframes sparklePulse {
    0% {
        transform: scale(0.6) rotate(0deg);
        opacity: 0.35;
    }
    100% {
        transform: scale(1.15) rotate(180deg);
        opacity: 1;
    }
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                    inset 0 0 15px rgba(229, 198, 135, 0.08),
                    0 0 15px 1px rgba(229, 198, 135, 0.2);
        border-color: rgba(229, 198, 135, 0.45);
    }
    50% {
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 
                    inset 0 0 20px rgba(229, 198, 135, 0.15),
                    0 0 25px 3px rgba(229, 198, 135, 0.45);
        border-color: rgba(229, 198, 135, 0.7);
    }
}

.vestimenta-icono-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(229, 198, 135, 0.08);
    border: 1px solid rgba(229, 198, 135, 0.2);
    margin-bottom: 4px;
}

.vestimenta-svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 6px rgba(229, 198, 135, 0.3));
}

.vestimenta-titulo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(250, 246, 240, 0.85);
    line-height: 1.2;
}

.vestimenta-tipo {
    font-family: 'Pinyon Script', cursive;
    font-size: clamp(34px, 9vw, 44px);
    background: linear-gradient(135deg, #FFE9C7 0%, #F4D88A 50%, #C9A56B 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    line-height: 1;
    margin: 2px 0;
}

.vestimenta-descripcion {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: rgba(250, 246, 240, 0.75);
    line-height: 1.4;
    padding: 0 10px;
}

.vestimenta-nota {
    font-family: 'Cormorant Garamond', serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #e5c687;
    margin-top: 6px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* === SECCIÓN GALERÍA === */
.seccion-galeria {
  width: 100%;
  margin: 50px 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);
  }
}


.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;
  resize: none;
}

.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 particula-flotar {
    0% { opacity: 0; transform: translate(0, 0); }
    15% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--tx, 20px), -150px); }
}

/* === DIVISOR ROSA ENCANTADA === */
.bloque-divisor-rosa {
    margin-top: 45px;
    margin-bottom: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.bloque-divisor-rosa::before,
.bloque-divisor-rosa::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to var(--direction, right), rgba(229, 198, 135, 0.8), transparent);
}

.bloque-divisor-rosa::before {
    --direction: left;
    margin-right: 25px;
}

.bloque-divisor-rosa::after {
    --direction: right;
    margin-left: 25px;
}

.rose-divider-container {
    position: relative;
    width: 120px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.rose-dome-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 12px rgba(229, 198, 135, 0.3));
    z-index: 2;
    position: relative;
}

/* Contenedor de brillos */
.rose-sparkles {
    position: absolute;
    inset: -10px 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

/* Partículas de brillo */
.rose-sparkle {
    position: absolute;
    background-color: #FFD700;
    border-radius: 50%;
    opacity: 0;
    animation: fallSparkle 3s infinite linear;
}

@keyframes fallSparkle {
    0% {
        transform: translateY(-10px) scale(0.5);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translateY(180px) scale(0.3);
        opacity: 0;
    }
}

/* === IMÁGENES DECORATIVAS PERSONALIZADAS === */

/* 1. Hadas Madrinas (Zona 1) */
.bloque-decoracion-adas {
    margin-top: -10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.decoracion-adas-img {
    width: 65%;
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(229, 198, 135, 0.25)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    animation: floatFairies 5s ease-in-out infinite alternate;
}

@keyframes floatFairies {
    0% { transform: translateY(0px) rotate(-1deg); }
    100% { transform: translateY(-8px) rotate(2deg); }
}

/* 2. Baile de Jimena (Zona 1) */
.bloque-decoracion-baile {
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.baile-container {
    width: 90%;
    max-width: 380px;
    background: rgba(30, 15, 25, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(229, 198, 135, 0.3);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.decoracion-baile-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(229, 198, 135, 0.15);
    filter: sepia(5%) contrast(102%);
}

.baile-texto {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    font-weight: 600;
    color: #e5c687;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin-top: 4px;
}

/* 3. Pastel de Quinceañera (Zona 3) */
.bloque-decoracion-pastel {
    margin: 30px auto 40px;
    width: 90%;
    max-width: 380px;
    display: flex;
    justify-content: center;
}

.pastel-frame {
    position: relative;
    width: 100%;
    max-width: 300px;
    background: radial-gradient(circle at center, rgba(255, 220, 225, 0.35) 0%, rgba(20, 10, 25, 0.65) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 150px 150px 16px 16px;
    border: 1.5px solid rgba(229, 198, 135, 0.65);
    padding: 36px 16px 16px 16px; /* Más padding arriba para no recortar las velas del pastel */
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6),
                inset 0 0 20px rgba(229, 198, 135, 0.15),
                0 0 20px 2px rgba(229, 198, 135, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    animation: borderGlow 4s infinite ease-in-out;
}

.decoracion-pastel-img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain; /* Cambiado a contain para evitar recortes de las velas */
    border-radius: 8px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}

.pastel-sparkle {
    position: absolute;
    top: 15px;
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 0 4px rgba(229, 198, 135, 0.8));
    animation: pulseNormal 2s infinite alternate ease-in-out;
}

@keyframes pulseNormal {
    0% { transform: scale(0.8) rotate(0deg); opacity: 0.6; }
    100% { transform: scale(1.1) rotate(45deg); opacity: 1; }
}

/* 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,
    .itinerario-wrapper::before {
        animation: none !important;
    }
    .bloque {
        opacity: 1;
        transform: none;
    }
    .particulas-magicas {
        display: none;
    }
    .rose-sparkle {
        animation: none !important;
        display: none !important;
    }
    .card-sparkle {
        animation: none !important;
        display: none !important;
    }
    .vestimenta-container {
        animation: none !important;
    }
    .decoracion-adas-img {
        animation: none !important;
    }
    .pastel-sparkle {
        animation: none !important;
        display: none !important;
    }
}
