* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  overflow-x: hidden;
  background-color: #1a0b2e;
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
}

/* ==========================================
   BLOQUE 1: HERO & STICKY CONTAINER
   ========================================== */
.hero {
  height: 200vh;
  position: relative;
  width: 100%;
}

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  z-index: 10;
}

/* --- FONDO COMPLETO --- */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/2.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.hero-content__logo {
  position: absolute;
  top: 25px;
  left: 25px;
  height: 48px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* --- AÑO VERTICAL: 2026 --- */
.hero-content__year-vertical {
  position: absolute;
  right: 35px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 8px;
  user-select: none;
  /* Sombra para separar del fondo oscuro */
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

/* --- SUBTÍTULO: FIESTA PATRONAL --- */
.hero-content__subtitle {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 3.0vw, 1.4rem);
  letter-spacing: 6px;
  /* Color dorado más oscuro y cálido para mayor contraste */
  color: #b8860b; 
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: 700;
  /* Sombras múltiples para resaltar el texto sobre el fondo */
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(0, 0, 0, 0.7);
}

/* Imagen circular de la Virgen (Aumentada un 200%) */
.hero-content__virgen-container {
  position: absolute;
  top: 25px;
  right: 25px;
  width: clamp(140px, 24vw, 220px); /* Tamaño ampliado */
  height: clamp(140px, 24vw, 220px);
  border-radius: 50%;
  border: 3px solid #d4af37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
  overflow: hidden;
  z-index: 5;
}

.hero-content__virgen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- TÍTULO: Virgen del Carmen --- */
.hero-content__title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  color: #ffffff;
  font-weight: 400;
  line-height: 1.1;
  /* Sombra más pronunciada y definida */
  text-shadow: 
    2px 2px 8px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 0, 0, 0.8);
}

/* --- EMPRESA: Electrocentro --- */
.hero-content__company {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #e2c08d;
  font-style: italic;
  margin-top: 0.2rem;
  margin-bottom: 1.2rem;
  /* Sombra para mejorar legibilidad */
  text-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(0, 0, 0, 0.7);
}

.hero-content__date-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 80%;
  max-width: 500px;
}

.hero-content__line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, #e2c08d, transparent);
}

/* --- FECHA: 24 y 25 de Setiembre de 2026 --- */
.hero-content__date {
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  font-weight: 600;
  /* Sombra oscura contundente */
  text-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.95),
    0 0 8px rgba(0, 0, 0, 0.8);
}

/* ==========================================
   WIDGET DE AUDIO Y TEXTO CIRCULAR ANIMADO
   ========================================== */
.audio-widget {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 20;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-widget__text-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: rotateRing 12s linear infinite;
  overflow: visible;
}

.audio-widget__text-ring text {
  font-family: 'Cinzel', serif;
  font-size: 7.2px;
  font-weight: 700;
  letter-spacing: 1.5px;
  fill: #e2c08d;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.audio-btn {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(226, 192, 141, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.4);
}

.audio-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}

.audio-btn svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.audio-btn::before,
.audio-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(226, 192, 141, 0.8);
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  opacity: 0;
}

.audio-btn.is-playing::before { animation: pulseWave 2s infinite ease-out; }
.audio-btn.is-playing::after { animation: pulseWave 2s infinite ease-out 0.8s; }

@keyframes pulseWave {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.7); opacity: 0; }
}



/* ==========================================
   WIDGET DE AUDIO - CENTRADO ABSOLUTO BLINDADO
   ========================================== */
.audio-widget {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 30;
  width: 110px;
  height: 110px;
}

/* SVG giratorio en el centro exacto */
.audio-widget__text-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: rotateRing 12s linear infinite;
  transform-origin: center center;
}

.audio-widget__text-ring text {
  font-family: 'Cinzel', 'Montserrat', serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  fill: #f3d8a2;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.95);
  text-transform: uppercase;
}

@keyframes rotateRing {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Botón fijado al centro (SIEMPRE MANTIENE translate(-50%, -50%)) */
.audio-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(226, 192, 141, 0.9);
  color: #ffffff;
  padding: 0;
  margin: 0;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Hover sin mover el eje del centro */
.audio-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: #ffffff;
  transform: translate(-50%, -50%); /* Evita que scale desplace el eje */
}

/* Íconos internos alineados al centro */
.audio-btn .icon-audio {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.audio-btn #icon-play {
  transform: translate(-40%, -50%);
}

.audio-btn .hidden {
  display: none !important;
}

/* --- ONDAS DE PULSO (EFECTO IS-PLAYING) --- */
/* Se ajusta para expandirse desde el centro sin empujar el botón */
.audio-btn::before,
.audio-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(243, 216, 162, 0.8);
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  opacity: 0;
  box-sizing: border-box;
}

.audio-btn.is-playing::before {
  animation: pulseWave 2s infinite ease-out;
}

.audio-btn.is-playing::after {
  animation: pulseWave 2s infinite ease-out 0.8s;
}

@keyframes pulseWave {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.4); /* Escala contenida sin tocar las letras */
    opacity: 0;
  }
}

/* Adaptación Responsive en Móviles */
@media (max-width: 768px) {
  .audio-widget {
    bottom: 15px;
    right: 15px;
    width: 98px;
    height: 98px;
  }

  .audio-btn {
    width: 42px;
    height: 42px;
  }

  .audio-btn .icon-audio {
    width: 19px;
    height: 19px;
  }

  .audio-widget__text-ring text {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
/* - MODIF LOGO VIRGEN DERECHA ---- MADRUGADA */
  .hero-content__logo {
    top: 15px;
    left: 15px;
    height: 38px;
  }

  /* Añadir este ajuste para móviles: */
.hero-content__virgen-container {
    top: 15px;
    right: 15px;
    width: 110px;  /* Ajuste ideal para pantallas móviles */
    height: 110px;
  }

}

/* ==========================================
   ESCENA DE PUERTAS FLORALES (.door-scene)
   ========================================== */
.door-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.door {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50.1%; /* 50.1% para unirse perfectamente sin hendidura */
  object-fit: cover;
  will-change: transform;
}

/* Desplazamiento compensatorio inicial (-12px / +12px) equivalente a media letra en píxeles */
.door-left {
  left: 0;
  object-position: right center;
  transform: translateX(calc(-0px - (100% * var(--tx, 0)))) ;/*scale(1.05);*/
}

.door-right {
  right: 0;
  object-position: left center;
  transform: translateX(calc(0px + (100% * var(--tx, 0)))) ;/*scale(1.05);*/
}

/* --- CAPA OVERLAY INTERACTIVA --- */
.door-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: var(--overlay-opacity, 1);
  will-change: opacity;
  pointer-events: auto;
  text-align: center;
  width: 90%;
  max-width: 450px;
}

.door-overlay__text {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: #ffffff;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8), 0 0 25px rgba(226, 192, 141, 0.6);
  letter-spacing: 1px;
  user-select: none;
}

.door-overlay__scroll-indicator {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatBounce 2.4s infinite ease-in-out;
  cursor: pointer;
}

.door-overlay__arrow {
  width: 26px;
  height: 26px;
  color: #3a1c5c;
}

@keyframes floatBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(12px) scale(1.05);
  }
}

/* --- RESPONSIVE MÓVILES (Optimización anti-traslape) --- */
@media (max-width: 768px) {
  .door {
    width: 50.0%;
    height: 100%;
    /*top: -12.5%;*/
  }

  .door-left {
    transform: translateX(calc(-0px - (100% * var(--tx, 0))));/* scale(1.2);*/
  }

  .door-right {
    transform: translateX(calc(0px + (100% * var(--tx, 0)))) /*scale(1.2);*/
  }

  .hero-content__year-vertical {
    right: 10px;
    font-size: 3rem;
  }

  .hero-content__logo {
    top: 15px;
    left: 15px;
    height: 38px;
  }

  .hero-content__date-wrapper {
    width: 95%;
  }

  .audio-btn {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .audio-btn svg {
    width: 24px;
    height: 24px;
  }
}


/* ==========================================
   BLOQUE 2: PORTADA (COVER SECTION)
   ========================================== */
.cover-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url('../img/fondo5.jpg') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Capa de sombreado para realzar el contraste */
.cover-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 8, 15, 0.45);
  z-index: 1;
}

/* Tarjeta Glassmorphism Centrada */
.glass-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 650px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 45px 30px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
              inset 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Textos e Titulares */
.cover-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #f3e5ab;
  margin-bottom: 10px;
}

.cover-title {
  font-family: 'Great Vibes', cursive;
  font-size: 4.2rem;
  font-weight: 400;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5),
               0 0 20px rgba(226, 192, 141, 0.4);
  line-height: 1.1;
}

.divider-gold {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e2c08d, transparent);
  margin: 20px auto;
}

.cover-description {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: #e2e8f0;
  margin-bottom: 18px;
}

.cover-date-badge {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  background: rgba(226, 192, 141, 0.2);
  border: 1px solid rgba(226, 192, 141, 0.5);
  color: #fff8e7;
  padding: 8px 22px;
  border-radius: 30px;
  margin-bottom: 25px;
  backdrop-filter: blur(5px);
}

/* Encabezado FALTAN */
.countdown-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #f1c40f;
  margin: 10px 0 20px 0;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6),
               0 0 12px rgba(241, 196, 15, 0.4);
}

/* ==========================================
   CUENTA REGRESIVA
   ========================================= */
.countdown-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 65px;
}

.time-block .number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  line-height: 1;
}

.time-block .label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #cbd5e1;
  margin-top: 6px;
}

.time-separator {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: rgba(226, 192, 141, 0.7);
  margin-bottom: 18px;
}

/* Destacado especial para Segundos */
.time-block.highlight-block {
  position: relative;
}

.number-seconds {
  font-size: 3rem !important; /* Más grande que d/h/m */
  color: #ffd700 !important; /* Dorado vivo brillante */
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7),
               0 2px 10px rgba(0,0,0,0.6) !important;
  animation: pulseSecond 1s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.label-seconds {
  color: #ffd700 !important;
  font-weight: 600 !important;
}

/* Animación de latido y resplandor para los segundos */
@keyframes pulseSecond {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.14);
  }
}

/* ==========================================
   RESPONSIVE EN MÓVILES
   ========================================== */
@media (max-width: 576px) {
  .glass-card {
    padding: 35px 18px;
  }

  .cover-title {
    font-size: 3.3rem;
  }

  .cover-subtitle {
    font-size: 0.8rem;
  }

  .cover-description {
    font-size: 0.95rem;
  }

  .cover-date-badge {
    font-size: 0.85rem;
    padding: 6px 16px;
  }

  .countdown-heading {
    font-size: 1.5rem;
    letter-spacing: 3px;
  }

  .time-block {
    min-width: 50px;
  }

  .time-block .number {
    font-size: 1.7rem;
  }

  .number-seconds {
    font-size: 2.3rem !important;
  }

  .time-separator {
    font-size: 1.4rem;
    margin-bottom: 14px;
  }
}

/* ==========================================
   BLOQUE 3: MENCIONES ESPECIALES (.special-section)
   ========================================== */
.special-section {
  width: 100%;
  padding: 80px 20px;
  background: linear-gradient(180deg, #fce4ec 0%, #fff0f5 40%, #ffffff 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.special-container {
  max-width: 720px;
  width: 100%;
  text-align: center;
  color: #4a4a4a;
}

/* Tipografías y Textos */
.special-intro {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: #7a5265;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.special-heading {
  font-family: 'Great Vibes', cursive;
  font-size: 4.8rem;
  font-weight: 400;
  color: #9c27b0;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(156, 39, 176, 0.15);
}

.special-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #333333;
  margin: 15px 0 10px 0;
  line-height: 1.6;
}

.special-subtext {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: #666666;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* ==========================================
   TARJETA FORMA DE SOBRE (.reservation-card)
   ========================================== */
.reservation-card-wrapper {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.reservation-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(156, 39, 176, 0.12),
              0 8px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 192, 141, 0.4);
  padding: 40px 25px 30px 25px;
  box-sizing: border-box;
  animation: floatEnvelope 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.reservation-card:hover {
  transform: translateY(-8px);
}

/* Solapa del sobre y Sello Religioso */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45px;
  background: linear-gradient(135deg, #fdfbf7 0%, #f4eae1 100%);
  border-bottom: 1px solid rgba(226, 192, 141, 0.5);
  border-radius: 16px 16px 50% 50% / 16px 16px 35px 35px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wax-seal {
  position: absolute;
  top: 22px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(170, 124, 17, 0.4);
  border: 2px solid #fff3d1;
}

.cross-icon {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Interior del Sobre */
.envelope-content {
  margin-top: 20px;
  padding: 10px;
}

.envelope-border-inner {
  border: 1px stroke #e2c08d;
  border-style: dashed;
  border-radius: 10px;
  padding: 25px 15px;
  background: #faf8f5;
}

/* Texto de Reservación */
.reservation-badge {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #8e24aa;
  text-transform: uppercase;
  background: rgba(142, 36, 170, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
}

.guest-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  margin: 18px auto 12px auto;
}

/* Nombre del Invitado (Playfair Display) */
.guest-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c2c2c;
  margin: 10px 0;
  line-height: 1.25;
  text-transform: capitalize;
  word-wrap: break-word;
}

.reservation-footer {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: #888888;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 10px;
}

/* Animación de elevación/flotación */
@keyframes floatEnvelope {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 20px 45px rgba(156, 39, 176, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
  }
  50% {
    transform: translateY(-10px);
    box-shadow: 0 30px 55px rgba(156, 39, 176, 0.18), 0 12px 25px rgba(0, 0, 0, 0.08);
  }
}

/* Responsive */
@media (max-width: 576px) {
  .special-section {
    padding: 60px 15px;
  }

  .special-heading {
    font-size: 3.8rem;
  }

  .special-intro, .special-text {
    font-size: 0.95rem;
  }

  .guest-name {
    font-size: 1.7rem;
  }

  .reservation-badge {
    font-size: 0.75rem;
    padding: 5px 12px;
  }
}





/* ==========================================
   BLOQUE 4: SECCIÓN MAPA E ITINERARIO (CORREGIDO)
   ========================================== */

.map-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 800px;
  background-image: url('../img/mapa.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 50px;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  overflow-y: auto;
}

.map-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.map-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 45px;
  align-items: center;
}

/* ------------------------------------------
   PRIMERA TARJETA: ITINERARIO (ESTILO ELEGANTE Y OSCURO)
   ------------------------------------------ */
.card-itinerary {
  background: linear-gradient(145deg, #0f0f13 0%, #1a1a24 100%);
  color: #ffffff;
  border-radius: 26px;
  padding: 45px 40px;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.45);
  width: 100%;
  box-sizing: border-box;
}

.itinerary-header {
  text-align: center;
  margin-bottom: 35px;
}

.itinerary-title {
  font-family: "Great Vibes", cursive;
  font-size: 4.5rem;
  color: #f3e5ab;
  margin: 0;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.golden-underline {
  width: 160px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #d4af37, #f3e5ab, #d4af37, transparent);
  margin: 10px auto 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 10px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #d4af37 0%, #f3e5ab 50%, #d4af37 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  align-items: center;
  margin-bottom: 36px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Alineación exacta con la imagen de referencia: Texto + Icono a la izquierda */
.timeline-day {
  text-align: right;
  padding-right: 18px;
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.15);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.multi-icons {
  gap: 6px;
}

.timeline-icon {
  color: #f3e5ab;
  font-size: 1.3rem;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  background-color: #d4af37;
  border: 4px solid #0f0f13;
  border-radius: 50%;
  justify-self: center;
  z-index: 2;
  box-shadow: 0 0 12px rgba(212, 175, 55, 1);
}

.timeline-details {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
}

.timeline-time {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f3e5ab;
  letter-spacing: 0.5px;
}

.timeline-event {
  font-size: 1.15rem;
  color: #e2e2e2;
  font-weight: 500;
}

/* ------------------------------------------
   COLUMNA DERECHA: TARJETAS BLANCAS Y DIRECCIONES CON GLOBO
   ------------------------------------------ */
.cards-right-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  width: 100%;
}

.location-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.animated-card {
  animation: cardFloat 4.2s ease-in-out infinite alternate;
}

.cards-right-column .location-card:nth-child(1) { animation-delay: 0s; }
.cards-right-column .location-card:nth-child(2) { animation-delay: 1.4s; }
.cards-right-column .location-card:nth-child(3) { animation-delay: 2.8s; }

@keyframes cardFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}

.location-card:hover {
  transform: translateY(-9px) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-subtitle {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ad1457;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.location-title {
  font-family: "Great Vibes", cursive;
  font-size: 2.3rem;
  color: #222222;
  margin: 0 0 4px 0;
  font-weight: 400;
  line-height: 1.1;
}

/* Dirección con icono de globo al inicio */
.location-address {
  font-size: 0.85rem;
  color: #444444;
  margin: 0 0 12px 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.location-globe-icon {
  color: #ad1457;
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* Botón interactivo animado */
.btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #111111 0%, #333333 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.btn-icon {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.btn-map::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-map:hover::before {
  left: 100%;
}

.btn-map:hover {
  background: linear-gradient(135deg, #ad1457 0%, #d81b60 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 27, 96, 0.45);
}

.btn-map:hover .btn-icon {
  transform: translate(2px, -2px);
}

/* Adaptación responsive */
@media (max-width: 960px) {
  .map-section {
    height: auto;
    min-height: 100vh;
    padding: 50px 20px;
  }

  .map-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .card-itinerary {
    padding: 35px 20px;
  }

  .itinerary-title {
    font-size: 3.6rem;
  }
}



/* ==========================================
   BLOQUE 5: CONFIRMACIÓN DE ASISTENCIA (.confirm-section)
   ========================================== */
.confirm-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 80px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../img/fondo3.jpg') no-repeat center center / cover fixed;
  font-family: 'Poppins', sans-serif;
}

/* Capa de contraste */
.confirm-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 10, 25, 0.45);
  z-index: 1;
}

/* Tarjeta Blanca Translúcida */
.confirm-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 580px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 24px;
  border: 1px solid rgba(226, 192, 141, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 25px rgba(212, 175, 55, 0.15);
  padding: 45px 30px;
  text-align: center;
  box-sizing: border-box;
}

/* Icono animado de sobre */
.animated-envelope-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px auto;
  background: linear-gradient(135deg, #f8edf3 0%, #e8d5e5 100%);
  border: 1px solid #d4af37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #8e24aa;
  box-shadow: 0 8px 20px rgba(142, 36, 170, 0.2);
  animation: pulseEnvelope 3s ease-in-out infinite;
}

@keyframes pulseEnvelope {
  0%, 100% {
    transform: scale(1) translateY(0);
    box-shadow: 0 8px 20px rgba(142, 36, 170, 0.2);
  }
  50% {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 30px rgba(142, 36, 170, 0.35);
  }
}

/* Textos e Titulares */
.confirm-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8e24aa;
  margin-bottom: 5px;
}

.confirm-title {
  font-family: 'Great Vibes', cursive;
  font-size: 3.5rem;
  font-weight: 400;
  color: #2c2c2c;
  margin: 0 0 12px 0;
  line-height: 1.1;
}

.confirm-guest-count {
  font-size: 1rem;
  font-weight: 600;
  color: #4a4a4a;
  background: rgba(142, 36, 170, 0.06);
  padding: 8px 18px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 30px;
  border: 1px dashed rgba(142, 36, 170, 0.3);
}

.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-bottom: 30px;
}

/* Botón Principal (Tally) */
.btn-confirm-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #8e24aa 0%, #6a1b9a 100%);
  color: #ffffff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(142, 36, 170, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
}

.btn-confirm-primary:hover:not(.disabled) {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(142, 36, 170, 0.5);
  background: linear-gradient(135deg, #ab47bc 0%, #8e24aa 100%);
}

.btn-confirm-primary .btn-icon {
  width: 20px;
  height: 20px;
}

/* Estado Deshabilitado tras confirmación real */
.btn-confirm-primary.disabled {
  background: #bdc3c7 !important;
  color: #7f8c8d !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 0.7;
}

.link-decline.disabled {
  color: #bdc3c7 !important;
  text-decoration: none !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 0.6;
}

/* Mensaje de Confirmación Exitosa */
.confirmation-success-msg {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 16px;
  padding: 15px;
  color: #166534;
  font-size: 0.92rem;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
  animation: fadeInMsg 0.5s ease;
}

.success-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 4px;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Botón Secundario y Enlace */
.btn-confirm-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: #ffffff;
  color: #25d366;
  border: 1.5px solid #25d366;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.btn-confirm-secondary:hover {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transform: translateY(-2px);
}

.wa-icon {
  width: 18px;
  height: 18px;
}

.link-decline {
  font-size: 0.88rem;
  color: #777777;
  text-decoration: underline;
  transition: color 0.3s ease;
  padding: 4px 10px;
}

.link-decline:hover:not(.disabled) {
  color: #e53935;
}

/* Pie de tarjeta */
.confirm-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.confirm-footer p {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #d4af37;
  margin: 0;
}

.gold-star {
  color: #d4af37;
  font-size: 0.8rem;
}

/* Adaptación Móvil */
@media (max-width: 576px) {
  .confirm-inner { padding: 35px 20px; }
  .confirm-title { font-size: 2.8rem; }
  .btn-confirm-primary { font-size: 0.92rem; padding: 12px 18px; }
  .btn-confirm-secondary { font-size: 0.85rem; }
}



/* ==========================================
   BLOQUE 6: PROGRAMA FESTIVIDAD (.pdf-section)
   ========================================== */
.pdf-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 80px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../img/8.png') no-repeat center center / cover fixed;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

/* Capa sutil de oscurecimiento para maximizar el contraste de los textos */
.pdf-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 8, 22, 0.55);
  z-index: 1;
}

.pdf-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

/* --- ESTILOS DE TEXTO --- */
.pdf-header {
  max-width: 850px;
  width: 100%;
}

.pdf-title-small {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Animación y tipografía "Festividad Virgen del Carmen" */
.pdf-title-animated {
  font-family: "Great Vibes", cursive;
  font-size: 5.5rem;
  font-weight: 400;
  margin: 10px 0;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #e2c08d 45%, #d4af37 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineGlow 4s ease-in-out infinite, floatPulse 3.5s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

@keyframes shineGlow {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

@keyframes floatPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

.pdf-description {
  font-size: 1.05rem;
  font-weight: 400;
  color: #f1f1f1;
  margin: 10px 0 0 0;
  letter-spacing: 0.5px;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* --- VISOR DIRECTO DE HEYZINE FLIPBOOK --- */
.pdf-viewer-frame {
  width: 100%;
  height: 680px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(226, 192, 141, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.25);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pdf-viewer-frame:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 45px rgba(212, 175, 55, 0.4);
}

.pdf-viewer-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* RESPONSIVO MÓVILES */
@media (max-width: 768px) {
  .pdf-title-small {
    font-size: 0.95rem;
    letter-spacing: 2px;
  }
  .pdf-title-animated {
    font-size: 3.8rem;
  }
  .pdf-description {
    font-size: 0.95rem;
  }
  .pdf-viewer-frame {
    height: 500px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .pdf-section {
    padding: 60px 15px;
  }
  .pdf-title-animated {
    font-size: 3.2rem;
  }
  .pdf-viewer-frame {
    height: 420px;
  }
}


/* ==========================================
   BLOQUE 7: GALERÍA DE FOTOS ELEGANTE
   ========================================== */

/* Sección Principal con Fondo Degradado Rosado a Blanco */
.gallery-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  background: linear-gradient(180deg, #fce4ec 0%, #fff0f5 45%, #ffffff 100%);
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  outline: none;
}

.gallery-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Encabezado */
.gallery-header {
  text-align: center;
  margin-bottom: 35px;
}

/* Título con Fuente Great Vibes, Movimiento Flotante y Zoom Pulse */
.gallery-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #ad1457 0%, #d81b60 50%, #880e4f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: titleZoomMove 5s ease-in-out infinite alternate;
}

@keyframes titleZoomMove {
  0% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 4px 10px rgba(216, 27, 96, 0.2));
  }
  50% {
    transform: translateY(-8px) scale(1.07);
    filter: drop-shadow(0 10px 22px rgba(216, 27, 96, 0.35));
  }
  100% {
    transform: translateY(-3px) scale(1.02);
    filter: drop-shadow(0 6px 14px rgba(216, 27, 96, 0.25));
  }
}

/* Subtítulo Elegantemente Tipografiado */
.gallery-subtitle {
  font-size: clamp(1rem, 2.3vw, 1.3rem);
  color: #6a1b40;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* Enmarcado de la Tarjeta */
.carousel-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-frame {
  position: relative;
  width: 100%;
  max-width: 780px;
  height: 490px;
  background: #ffffff;
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 25px 50px -12px rgba(173, 20, 87, 0.22),
              0 10px 20px -5px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.9);
  user-select: none;
  touch-action: pan-y;
  /* Transición fluida para transformaciones suaves */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.4s ease, 
              border-color 0.4s ease;
  will-change: transform;
}

.card-frame:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 60px -10px rgba(173, 20, 87, 0.28);
}

/* Efecto de Zoom Out + Profundidad en el Marco al Cambiar Foto */
.card-frame.frame-zoom-out {
  transform: scale(0.96) translateY(6px);
  box-shadow: 0 10px 25px rgba(173, 20, 87, 0.12);
  border-color: rgba(216, 27, 96, 0.3);
}

/* Efecto de Zoom In Elegante al Mostrar la Nueva Foto */
.card-frame.frame-zoom-in {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 32px 65px -10px rgba(173, 20, 87, 0.32);
}


/* Escenario y Tratamiento Adaptativo de Fotografías */
.image-stage {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background-color: #1a0510;
}

/* Fondo Blur para Rellenar Bordes de Fotos de Diferentes Proporciones */
.bg-blur {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  filter: blur(25px) brightness(0.65);
  transform: scale(1.1);
  transition: background-image 0.6s ease-in-out;
  z-index: 1;
}

.img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ajusta fotos de cualquier tamaño respetando su marco */
  display: block;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.5s ease;
}

/* Efecto de Zoom Continuo Suave */
.img-wrapper img.zoom-effect {
  animation: continuousZoom 8s ease-in-out infinite alternate;
}

@keyframes continuousZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

/* Animación de Mezcla + Zoom al Cambiar Foto */
.img-wrapper img.transition-out {
  opacity: 0;
  transform: scale(0.9) rotate(-1deg);
  filter: blur(4px);
}

.img-wrapper img.transition-in {
  opacity: 1;
  filter: blur(0px);
}

.card-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.25);
}

/* Botones Navegación Estilo Cristal */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #ad1457;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}

.prev-btn { left: 24px; }
.next-btn { right: 24px; }

.nav-btn:hover {
  background: #d81b60;
  color: #ffffff;
  transform: translateY(-50%) scale(1.12);
}

.nav-btn:active {
  transform: translateY(-50%) scale(0.92);
}

/* Contador Elegante (1 / 6) */
.gallery-counter {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(20, 5, 14, 0.7);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 10;
}

/* Indicadores Puntos (Dots) */
.carousel-dots {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #f48fb1;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active {
  width: 30px;
  border-radius: 10px;
  background-color: #ad1457;
  box-shadow: 0 3px 10px rgba(173, 20, 87, 0.4);
}

/* Adaptabilidad para Teléfonos Móviles */
@media (max-width: 600px) {
  .gallery-section {
    padding: 50px 15px;
  }

  .card-frame {
    height: 380px;
    border-radius: 20px;
    padding: 8px;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
  }

  .prev-btn { left: 16px; }
  .next-btn { right: 16px; }

  .gallery-counter {
    bottom: 16px;
    right: 16px;
    font-size: 0.8rem;
    padding: 4px 12px;
  }
}




/* ==========================================
   BLOQUE 8: MURO DE SALUDOS
   ========================================== */

.greetings-section {
  width: 100%;
  min-height: 100vh;
  background-color: #f6eedb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

.greetings-card {
  background: #fdfaf2;
  border: 1px solid #e3d3b7;
  border-radius: 28px;
  padding: 35px 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

/* Cabecera */
.greetings-header {
  text-align: center;
  margin-bottom: 20px;
}

.greetings-subtitle {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: #8c7b6c;
  text-transform: uppercase;
  font-weight: 600;
}

.greetings-title {
  font-family: "Great Vibes", cursive;
  font-size: 3.2rem;
  color: #3b112c;
  margin: 5px 0 0 0;
  font-weight: 400;
  line-height: 1;
}

/* Formulario */
.greetings-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.greetings-form input,
.greetings-form textarea {
  width: 100%;
  background: #f7eed7;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #3b112c;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s ease;
}

.greetings-form input::placeholder,
.greetings-form textarea::placeholder {
  color: #a89988;
}

.greetings-form input:focus,
.greetings-form textarea:focus {
  border-color: #c48b36;
}

.btn-greeting {
  background: #c48b36;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
}

.btn-greeting:hover {
  background: #a87328;
}

.btn-greeting:active {
  transform: scale(0.98);
}

.btn-greeting:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Frase devocional */
.greetings-middle-devotion {
  text-align: center;
  margin: 20px 0 16px 0;
}

.devotion-text {
  font-family: "Great Vibes", cursive;
  font-size: 1.8rem;
  color: #3b112c;
  margin: 0;
}

/* Lista de saludos */
.greetings-feed {
  max-height: 360px;
  min-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 6px;
}

/* Scrollbar */
.greetings-feed::-webkit-scrollbar {
  width: 6px;
}

.greetings-feed::-webkit-scrollbar-track {
  background: #f0e6d2;
  border-radius: 10px;
}

.greetings-feed::-webkit-scrollbar-thumb {
  background: #a89988;
  border-radius: 10px;
}

/* Contenedor wrapper para cada tarjeta */
.greeting-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Encabezado superior derecho del saludo (Fecha y Número) */
.greeting-header-info {
  text-align: right;
  font-size: 0.68rem;     /* Tamaño de texto más pequeño */
  font-weight: 400;       /* Texto normal, sin negrita */
  color: #333333;         /* Color sutil para lectura legibles */
  padding-right: 4px;
  line-height: 1.2;
}

/* Tarjeta principal */
.greeting-item {
  background: #f7eed7;
  border-radius: 14px;
  padding: 14px 18px;
  border: 1px solid #eedfb9;
}

.greeting-text {
  font-size: 0.92rem;
  color: #4a4238;
  margin: 0 0 10px 0;
  line-height: 1.45;
  white-space: pre-wrap;
}

.greeting-author {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c48b36;
}

.greeting-loading, .greeting-empty {
  text-align: center;
  color: #8c7b6c;
  font-size: 0.9rem;
  padding: 20px 0;
}


/* ==========================================
   BLOQUE 9: BANNER DE PIE DE PÁGINA
   ========================================== */

.footer-banner {
  width: 100%;
  background-color: #fdfaf2;
  border-top: 1px solid #e3d3b7;
  padding: 24px 20px;
  box-sizing: border-box;
  font-family: 'Times New Roman', Times, serif; /* Mantiene la tipografía clásica de la imagen */
  color: #111111;
  overflow: hidden;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

/* Lado Izquierdo */
.footer-left {
  text-align: left;
}

.footer-copyright {
  font-size: 0.95rem;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.footer-rights {
  font-size: 0.9rem;
  margin: 0;
  color: #333333;
}

/* Lado Derecho */
.footer-right {
  text-align: right;
}

.footer-role {
  font-style: italic;
  font-size: 0.92rem;
  margin: 0 0 4px 0;
  line-height: 1.2;
  color: #222222;
}

.footer-author {
  font-size: 0.95rem;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.footer-contact {
  display: inline-block;
  font-size: 0.95rem;
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-contact:hover {
  color: #c48b36;
  transform: scale(1.05);
}

/* ==========================================
   EFECTOS DE MOVIMIENTO Y ZOOM
   ========================================== */

/* Animación sutil de respiración/flotado */
@keyframes floatAndPulse {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    transform: translateY(0px) scale(1);
  }
}

/* Clase con animación activa */
.animated-zoom {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  animation: floatAndPulse 4s ease-in-out infinite;
}

/* Intensificación de Zoom al pasar el cursor */
.animated-zoom:hover {
  animation-play-state: paused;
  transform: scale(1.06) translateY(-2px);
}

/* ==========================================
   RESPONSIVO (MÓVILES)
   ========================================== */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .footer-left, 
  .footer-right {
    text-align: center;
  }
}


/* ==========================================
   BLOQUE 10: SECCIÓN OFRECIMIENTO
   ========================================== */
.Ofrecimiento-section {
  background: linear-gradient(180deg, #fde2e4 0%, #ffffff 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: 16px;
  margin: 2rem auto;
  width: 95%;
  max-width: 800px;
  box-shadow: 0 10px 25px rgba(230, 180, 190, 0.25);
  box-sizing: border-box;
}

.ofrecimiento-subtitle {
  font-size: 1.05rem;
  color: #6b5b60;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.ofrecimiento-title {
  font-family: "Great Vibes", cursive;
  font-size: 3.5rem;
  color: #b56576;
  margin: 0.5rem 0 0.8rem 0;
  line-height: 1.2;
}

.ofrecimiento-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4a4e69;
  margin-bottom: 1.5rem;
}

/* Contenedor e Imagen de la Carta */
.ofrecimiento-card-wrapper {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.ofrecimiento-card-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid #f8c8dc;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .Ofrecimiento-section {
    padding: 2rem 1rem;
    width: 100%;
    border-radius: 12px;
  }
  
  .ofrecimiento-title {
    font-size: 2.8rem;
  }
  
  .ofrecimiento-subtitle {
    font-size: 0.95rem;
  }
}