/* ==========================================
   0. RESET Y CONFIGURACIÓN GENERAL
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Montserrat', sans-serif;
  color: #6b5b52;
  scroll-behavior: smooth;
  position: relative;
}

/* Clases utilitarias globales */
.fade-out {
  opacity: 0;
  visibility: hidden;
}

.hidden {
  opacity: 0;
  visibility: hidden;
}

.visible {
  opacity: 1;
  visibility: visible;
}

.section-fade-out {
  opacity: 0 !important;
  transform: translateY(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}


/* ==========================================
   1. PANTALLA INICIAL DE APERTURA & SECUENCIA CINEMÁTICA
   ========================================== */
#start-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.start-card {
  text-align: center;
  padding: 20px;
}

.intro-element {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 12;
  text-align: center;
  width: 85%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.0s cubic-bezier(0.4, 0, 0.2, 1), transform 2.0s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-element.appear {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.intro-element.fade-out {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(1.03) !important;
  transition: opacity 2.0s ease-in-out, transform 2.0s ease-in-out !important;
  pointer-events: none;
}

/* Estilo Oro Rosa Brillante con Destello en Movimiento para el nombre del invitado */
.guest-name-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.4;
  background: linear-gradient(
    135deg, 
    #d4af37 0%, 
    #f3e5ab 25%, 
    #e0a899 50%, 
    #fcf6ba 75%, 
    #c59b76 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.7))
          drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.9));
  animation: shineGold 4s linear infinite;
}

@keyframes shineGold {
  0% { background-position: 0% center; }
  100% { background-position: -200% center; }
}

/* Estilo para los textos emotivos de la intro */
.intro-message {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.6;
  color: #fcece8;
  filter: drop-shadow(0px 3px 8px rgba(0, 0, 0, 0.8));
}

.names-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  margin: 15px 0 30px 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.btn-start {
  background-color: #a39585;
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  border-radius: 30px;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s, background-color 0.3s;
}

.btn-start:active {
  transform: scale(0.95);
}


/* ==========================================
   2. OVERLAY DEL VIDEO DE INTRODUCCIÓN
   ========================================== */
#video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out, filter 1.2s ease-in-out;
}

#intro-video {
  width: 100%;
  max-width: 420px;       /* Limita el ancho en computadoras para mantener formato vertical tipo celular */
  height: 100%;
  max-height: 90vh;       /* Deja espacio estético arriba y abajo en pantallas grandes */
  object-fit: contain;    /* Mantiene la proporción original del video sin estirar ni deformar */
  object-position: center center;
  pointer-events: none;
  border-radius: 8px;     /* Opcional: le da un toque de tarjeta elegante */
  box-shadow: 0 20px 40px rgba(0,0,0,0.2); /* Sombra elegante para que resalte sobre el fondo */
  transition: transform 1.2s ease-out, opacity 1.2s ease;
}

.magic-flash {
  opacity: 0 !important;
  visibility: hidden !important;
  filter: brightness(1.8) contrast(1.1) blur(2px);
}

.magic-flash video {
  transform: scale(1.05);
}


/* ==========================================
   3. CONTENEDOR PRINCIPAL Y SECCIONES
   ========================================== */
#main-content {
  width: 100%;
  transition: opacity 1.2s ease-in-out;
  background: transparent;
  position: relative;
  z-index: 2;
}

.wedding-section {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent !important;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wedding-section.section-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================
   4. MARCOS Y ESTILOS EDITORIALES GENERALES
   ========================================== */
.editorial-frame {
  width: 100%;
  max-width: 440px;
  min-height: 90vh;
  border: 1px solid rgba(163, 149, 133, 0.35);
  box-shadow: inset 0 0 40px rgba(163, 149, 133, 0.08), 0 20px 40px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 35px 20px;
  position: relative;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
  border-radius: 4px;
}

.welcome-container {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.welcome-subtitle {
  font-size: 0.75rem;
  letter-spacing: 6px;
  color: #8c857b;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.editorial-photo-wrapper {
  position: relative;
  width: 190px;
  height: 250px;
  margin-bottom: 25px;
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 0 0 1px rgba(220, 210, 200, 0.5);
  transform: rotate(-1.5deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.editorial-photo-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
}

.editorial-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
}

.welcome-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: #6b5b52;
  margin-bottom: 15px;
  line-height: 1.15;
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.welcome-names .name-item {
  font-style: italic;
  font-weight: 600;
}

.welcome-names .ampersand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1.8rem;
  color: #a39585;
  margin: 0 8px;
  display: inline-block;
  vertical-align: middle;
}

.welcome-date-badge {
  position: relative;
  padding: 8px 0;
  margin-bottom: 20px;
  width: 100%;
  max-width: 200px;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.welcome-date-badge::before,
.welcome-date-badge::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background-color: #a39585;
}

.welcome-date-badge::before { top: 0; }
.welcome-date-badge::after { bottom: 0; }

.welcome-date-badge span {
  font-size: 0.95rem;
  letter-spacing: 4px;
  color: #a39585;
  font-weight: 400;
}

.welcome-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 15px;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.scroll-indicator {
  margin-top: 10px;
  text-align: center;
  color: #a39585;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.arrow-down {
  font-size: 1rem;
  margin-top: 4px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-2px); }
}


/* ==========================================
   5. SECCIÓN 0: TARJETA CON VIDEO INTERNO & DOBLEZ HORIZONTAL
   ========================================== */
.wedding-section.section-0 {
  opacity: 0;
  transform: none !important;
  transition: opacity 6.5s ease;
}

.section-0 .editorial-frame {
  opacity: 0;
  transform-origin: top center;
  transform: perspective(1200px) rotateX(-35deg) scaleY(0.9);
  filter: brightness(1.2);
  transition: opacity 2.5s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 2.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.wedding-section.section-0.section-visible {
  opacity: 1;
}

.wedding-section.section-0.section-visible .editorial-frame {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) scaleY(1);
  filter: brightness(1);
}

.card-with-video {
  position: relative;
  overflow: hidden;
  background: rgba(80, 40, 50, 0.10) !important;
  backdrop-filter: blur(2px);
  transition: background 2.0s ease-in-out, backdrop-filter 2.0s ease-in-out;
}

.card-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.bg-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) brightness(0.95);
  transform: scale(1.1);
  transition: filter 2.0s ease-in-out;
}

.card-with-video.blur-active {
  background: rgba(80, 40, 50, 0.75) !important;
  backdrop-filter: blur(8px);
}

.card-with-video.blur-active .bg-video-element {
  filter: blur(4px) brightness(0.92);
}

.card-with-video .welcome-container {
  position: relative;
  z-index: 2;
}

.section-0 .welcome-quote, 
.section-0 .story-pro-title {
  color: #fce8e2 !important;
}

.section-0 .story-main-title {
  background: linear-gradient(
    135deg, 
    #fcf6ba 0%, 
    #e0a899 35%, 
    #fcf6ba 45%, 
    #e0a899 50%, 
    #fcf6ba 55%, 
    #e0a899 65%, 
    #fcf6ba 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, 0.3));
  animation: roseGoldBurstSlow 16s ease-in-out infinite;
}

@keyframes roseGoldBurstSlow {
  0%, 60% { background-position: 100% center; }
  100% { background-position: -100% center; }
}


/* ==========================================
   6. SECCIÓN 2: RASPABLES Y CONTADOR
   ========================================== */
.scratch-card-container {
  width: 100%;
  max-width: 380px;
  min-height: 520px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(163, 149, 133, 0.3);
  border-radius: 20px;
  padding: 45px 25px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.scratch-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #6b5b52;
  margin-bottom: 8px;
}

.scratch-instructions {
  font-size: 0.75rem;
  color: #8c857b;
  letter-spacing: 2px;
  margin-bottom: 35px;
  text-transform: uppercase;
}

.circles-wrapper {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.scratch-item {
  position: relative;
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: #fdfbf7;
  border: 1.5px solid #a39585;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

.secret-content {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: #6b5b52;
  z-index: 1;
}

.scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.scratch-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8c857b;
  margin-top: 5px;
}

.floral-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 25px 0 15px 0;
  opacity: 0.8;
}

.floral-divider .line {
  flex: 1;
  height: 1px;
  background-color: #a39585;
  max-width: 70px;
}

.floral-divider .flower-icon {
  font-size: 0.9rem;
  color: #a39585;
  margin: 0 12px;
  letter-spacing: 2px;
}

#countdown-wrapper {
  width: 100%;
  margin-top: 10px;
  opacity: 1;
  transition: opacity 1s ease, transform 1s ease;
}

.countdown-hidden {
  opacity: 0 !important;
  transform: translateY(15px);
  pointer-events: none;
  height: 0;
  overflow: hidden;
  margin: 0 !important;
}

.countdown-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #8c857b;
  margin-bottom: 12px;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.countdown-box {
  background: #ffffff;
  border: 1px solid #f0eae1;
  padding: 8px 10px;
  border-radius: 8px;
  min-width: 60px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.countdown-box span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #6b5b52;
  display: block;
}

.countdown-box p {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8c857b;
}

.countdown-footer-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #8c857b;
  margin-top: 5px;
}


/* ==========================================
   7. SECCIÓN 3: OUR STORY (DOBLEZ DE HOJA)
   ========================================== */
.section-3 {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1), transform 3.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-3.section-visible {
  opacity: 1;
  transform: translateX(0);
}

.story-fade-out {
  opacity: 0 !important;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

@keyframes pageFoldSlow {
  0% {
    opacity: 0;
    transform: perspective(1000px) rotateY(-60deg) scale(0.85);
    filter: brightness(1.4);
  }
  100% {
    opacity: 1;
    transform: perspective(1000px) rotateY(-1.5deg) scale(1);
    filter: brightness(1);
  }
}

.s3-page-fold {
  opacity: 0;
  transform-origin: left center;
  animation: none;
}

.section-3.section-visible .s3-page-fold {
  animation: pageFoldSlow 7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.story-monogram {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 4px;
  color: #a39585;
  margin-bottom: 10px;
  font-weight: 600;
  border-bottom: 1px solid rgba(163, 149, 133, 0.3);
  padding-bottom: 6px;
  display: inline-block;
}

.story-main-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 400;
  font-style: italic;
  color: #6b5b52;
  margin-bottom: 20px;
  line-height: 1;
}

.story-pro-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #6b5b52;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.story-next-btn {
  margin-top: 15px;
  cursor: pointer;
  text-decoration: none;
}


/* ==========================================
   8. SECCIÓN 5: UBICACIÓN Y MAPAS (CON EFECTO TYPEWRITER)
   ========================================== */
.location-composition {
  width: 100%;
  max-width: 500px;
  padding: 40px;
  position: relative;
}

.sub-label {
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #a39585;
  display: block;
  margin-bottom: 10px;
}

.location-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  font-weight: 300;
  color: #6b5b52;
  line-height: 0.85;
  margin-bottom: 50px;
}

.venue-block {
  margin-bottom: 30px;
}

.venue-type {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #8c857b;
}

.venue-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 500;
  margin: 5px 0;
}

.venue-time {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: #666;
  margin-top: 4px;
}

.typewriter-text {
  position: relative;
}

.typewriter-text.typing::after {
  content: '|';
  display: inline-block;
  font-weight: 300;
  color: #a39585;
  animation: cursorBlink 0.7s infinite;
  margin-left: 2px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.map-buttons-container {
  display: flex;
  gap: 15px;
  width: 100%;
  max-width: 400px;
  margin-top: 10px;
}

.btn-map {
  flex: 1;
  min-width: 160px;
  background: transparent;
  border: 1px solid #6b5b52;
  padding: 12px 20px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-map:hover {
  background: #6b5b52;
  color: #ffffff;
}

.map-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 3.2s ease;
}

.map-overlay.active {
  opacity: 1;
  visibility: visible;
}

.map-modal {
  width: 90%;
  max-width: 600px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.1);
  position: relative;
}


/* ==========================================
   9. SECCIÓN FINAL (DRESS CODE, REGALOS, RSVP)
   ========================================== */
.final-slider-frame {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
}

.final-slider-track {
  display: flex;
  transition: transform 2.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.final-slide {
  min-width: 100%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
}

.nav-arrow {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50px;
  background: rgba(255,255,255,0.05);
  border: none;
  font-size: 2rem;
  color: #a39585;
  cursor: pointer;
  z-index: 10;
  transition: background 2.3s;
}

.nav-arrow:hover { background: rgba(163,149,133,0.1); }
.nav-arrow.left { left: 0; }
.nav-arrow.right { right: 0; }

.editorial-dress-card {
  display: flex;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dress-photo-side {
  flex: 0.8;
  position: relative;
  overflow: hidden;
}

.dress-photo-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fade-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.95) 100%);
}

.dress-text-side {
  flex: 1.2;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  text-align: left;
}

.title-bold {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  line-height: 0.9;
  text-transform: uppercase;
  color: #6b5b52;
  margin-bottom: 10px;
}

.subtitle-italic {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #a39585;
  margin-bottom: 15px;
}

.divider {
  width: 40px; height: 1px; background: #a39585; margin-bottom: 15px;
}

.dress-list h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-top: 10px;
  color: #6b5b52;
}

.dress-list ul {
  list-style: none;
  font-size: 0.85rem;
  color: #666;
  margin-left: 0;
}


/* ==========================================
   10. ANIMACIONES GLOBALES
   ========================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}



/* ==========================================
   ESTILOS: CARRUSEL EDITORIAL & LIGHTBOX PRO (320px AJUSTADO)
   ========================================== */
.wedding-section.section-editorial-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  width: 100%;
}

.editorial-gallery-composition {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gallery-header {
  margin-bottom: 25px;
}

.gallery-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  font-style: italic;
  color: #6b5b52;
  line-height: 0.95;
  margin-top: 5px;
}

/* Contenedor del Carrusel ajustado a 320px exactos */
.luxury-slider-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.luxury-track-wrapper {
  width: 320px;
  height: 440px;
  overflow: hidden;
  position: relative;
  border-radius: 6px;
}

.luxury-track {
  display: flex;
  height: 100%;
  transition: transform 2.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.luxury-slide {
  min-width: 320px;
  flex: 0 0 320px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px;
  opacity: 0.3;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.luxury-slide.active {
  opacity: 1;
  transform: scale(1);
}

.luxury-photo-card {
  width: 100%;
  height: 100%;
  background: #ffffff;
  padding: 10px 10px 15px 10px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.12), 0 0 0 1px rgba(220, 210, 200, 0.4);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.luxury-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.18);
}

.luxury-photo-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 2px;
}

.luxury-caption {
  text-align: center;
  padding-top: 8px;
}

.luxury-caption h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #6b5b52;
  margin-bottom: 2px;
}

.luxury-caption p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: #777;
}

/* Botones del Carrusel */
.luxury-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #a39585;
  color: #a39585;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.luxury-nav-btn:hover {
  background: #a39585;
  color: #ffffff;
}

.prev-luxury { left: -10px; }
.next-luxury { right: -10px; }

/* Puntos indicadores */
.luxury-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.luxury-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dcd2c8;
  cursor: pointer;
  transition: all 0.3s ease;
}

.luxury-dot.active {
  background: #a39585;
  transform: scale(1.3);
}

/* ==========================================
   LIGHTBOX (VISOR DE PANTALLA COMPLETA)
   ========================================== */
.luxury-lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #6b5b52;
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
}

.luxury-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  /* Aquí le das los segundos que quieras de lentitud a la transición visual */
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease-in-out;
  opacity: 1;
}

.luxury-lightbox.active .lightbox-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  border: 2px solid rgba(255,255,255,0.12);
transition: opacity 5.8s ease-in-out, transform 5.8s ease-in-out;
}

.lightbox-caption-box {
  margin-top: 15px;
  text-align: center;
  color: #f5f0eb;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 2.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.luxury-lightbox.active .lightbox-caption-box {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 30px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 100;
  transition: color 0.3s;
}

.lightbox-close:hover { color: #d4af37; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }


/* ==========================================
   CONTENEDOR CLICKEABLE DE RSVP
   ========================================== */
.rsvp-click-wrapper {
  display: inline-block;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  text-align: center;
}

.interactive-rsvp-title {
  background: linear-gradient(
    135deg, 
    #fcf6ba 0%, 
    #e0a899 35%, 
    #f2c4b8 45%, 
    #e0a899 50%, 
    #f2c4b8 55%, 
    #e0a899 65%, 
    #fcf6ba 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0px 2px 8px rgba(190, 110, 125, 0.4));
  animation: roseGoldBurstSlow 6s ease-in-out infinite, pulseGlowText 2.5s ease-in-out infinite;
  transition: transform 0.3s ease;
  pointer-events: none; /* Hace que el texto interior no bloquee el clic del contenedor padre */
}

.rsvp-click-wrapper:hover .interactive-rsvp-title {
  transform: scale(1.03);
  filter: drop-shadow(0px 4px 12px rgba(212, 143, 156, 0.7));
}

@keyframes pulseGlowText {
  0%, 100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0px 3px 14px rgba(212, 143, 156, 0.8));
  }
}



















/* ==========================================
   TÍTULO INTERACTIVO CON HAZ DE LUZ (RSVP)
   ========================================== */
.interactive-rsvp-title {
  background: linear-gradient(
    135deg, 
    #fcf6ba 0%, 
    #e0a899 35%, 
    #f2c4b8 45%, 
    #e0a899 50%, 
    #f2c4b8 55%, 
    #e0a899 65%, 
    #fcf6ba 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0px 2px 8px rgba(190, 110, 125, 0.4));
  animation: roseGoldBurstSlow 6s ease-in-out infinite, pulseGlowText 2.5s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.interactive-rsvp-title:hover {
  transform: scale(1.03);
  filter: drop-shadow(0px 4px 12px rgba(212, 143, 156, 0.7));
}

@keyframes pulseGlowText {
  0%, 100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0px 3px 14px rgba(212, 143, 156, 0.8));
  }
}


.final-slider-track {
  display: flex;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); /* Transición más fluida y elegante para el auto-play */
}



/* ==========================================
   SECCIÓN DRESS CODE: IMAGEN CINEMÁTICA PRO (3D)
   ========================================== */
.wedding-section.section-dress-code {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  perspective: 1500px;
  width: 100%;
}

.dress-code-editorial-frame {
  width: 100% !important;
  max-width: 440px !important;
  min-height: 520px !important;
  padding: 15px !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  
  background: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(163, 149, 133, 0.4);
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
  border-radius: 6px;
  
  opacity: 0;
  transform: translateY(50px) rotateX(20deg) scale(0.90);
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.wedding-section.section-dress-code.section-visible .dress-code-editorial-frame {
  opacity: 1;
  transform: translateY(0) rotateX(0deg) scale(1);
}

.dress-code-standalone-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.dress-code-cinematic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  filter: contrast(1.05) drop-shadow(0px 12px 30px rgba(0, 0, 0, 0.12));
  transform: scale(1.03);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wedding-section.section-dress-code.section-visible .dress-code-cinematic-img {
  transform: scale(1);
}