/* ==========================================================================
   CSS PRINCIPAL - INVITACIÓN GENDER REVEAL PREMIUM
   ========================================================================== */

/* Variables de Diseño (Sistema de Diseño de Lujo - Bajo las Estrellas Dark Mode) */
:root {
  --color-primary: #ffffff;
  --color-secondary: #cbd5e1;
  --color-cream: #000000;
  /* Midnight Blue */
  --color-dark-bg: #000000;
  --color-gold: #d1b894;
  --color-gold-hover: #bda27a;
  --color-boy: #8ebbcf;
  --color-boy-light: rgba(142, 187, 207, 0.15);
  --color-girl: #eaa3b8;
  --color-girl-light: rgba(234, 163, 184, 0.15);
  --color-lavender: #bda6d8;
  --color-lavender-light: rgba(189, 166, 216, 0.15);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', Helvetica, Arial, sans-serif;
  --font-cursive: 'Great Vibes', cursive;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 20px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 35px -5px rgba(0, 0, 0, 0.5);

  --border-radius-sm: 8px;
  --border-radius-md: 18px;
  --border-radius-lg: 35px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-cream);
  color: var(--color-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
}

/* Clases de Utilidad */
.cursive {
  font-family: var(--font-cursive);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.5px;
}

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

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. REPRODUCTOR DE MÚSICA FLOTANTE
   ========================================================================== */
.music-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  transition: all 0.5s ease;
}

.music-player {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(209, 184, 148, 0.4);
  padding: 8px 16px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.music-player:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.song-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.player-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.player-btn:active {
  transform: scale(0.85);
}

.music-icon.playing {
  animation: spin 3s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   2. SOBRE INTERACTIVO (PÁGINA DE BIENVENIDA)
   ========================================================================== */
#envelope-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('_assets/media/fondo_intro.png') no-repeat center center;
  background-size: cover;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease;
  overflow: hidden;
  /* Evitar scroll de globos saliendo de pantalla */
}

.welcome-balloon {
  position: absolute;
  z-index: 1990;
  pointer-events: none;
  opacity: 1;
}

/* Animación de estrellas ascendentes (de abajo hacia arriba) */
@keyframes riseUp {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0.6);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translate(40vw, -115vh) rotate(360deg) scale(1);
    opacity: 0;
  }
}

/* Posicionamiento y Tiempos de las Estrellas */
.balloon-left-1 {
  top: 105vh;
  left: -10%;
  width: 40px;
  animation: riseUp 1.5s infinite linear;
  animation-delay: 0s;
}

.balloon-left-2 {
  top: 105vh;
  left: 5%;
  width: 55px;
  animation: riseUp 2.2s infinite linear;
  animation-delay: 0.4s;
}

.balloon-left-3 {
  top: 105vh;
  left: 20%;
  width: 45px;
  animation: riseUp 1.8s infinite linear;
  animation-delay: 0.8s;
}

.balloon-left-4 {
  top: 105vh;
  left: 35%;
  width: 50px;
  animation: riseUp 2.5s infinite linear;
  animation-delay: 1.2s;
}

.balloon-right-1 {
  top: 105vh;
  left: 50%;
  width: 40px;
  animation: riseUp 2.0s infinite linear;
  animation-delay: 0.2s;
}

.balloon-right-2 {
  top: 105vh;
  left: 65%;
  width: 55px;
  animation: riseUp 1.4s infinite linear;
  animation-delay: 0.6s;
}

.balloon-right-3 {
  top: 105vh;
  left: 80%;
  width: 45px;
  animation: riseUp 2.4s infinite linear;
  animation-delay: 1.0s;
}

.balloon-right-4 {
  top: 105vh;
  left: 95%;
  width: 50px;
  animation: riseUp 1.6s infinite linear;
  animation-delay: 1.4s;
}

#envelope-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(209, 184, 148, 0.15) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}

#envelope-overlay.envelope-opened {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.envelope-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 90%;
  max-width: 480px;
}

.envelope-names-header {
  text-align: center;
  animation: fadeInDown 1s ease;
}

.welcome-moon {
  max-width: 80%;
  height: auto;
  margin: 0 auto 15px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(209, 184, 148, 0.4));
  animation: float 4s ease-in-out infinite;
}

.title-pre-envelope {
  font-size: 2.2rem;
  color: var(--color-gold);
  display: block;
}

.parents-names-envelope {
  font-size: 1.4rem;
  letter-spacing: 4px;
  color: #ffffff;
}

.envelope-divider {
  width: 60px;
  height: 1px;
  background-color: var(--color-gold);
  margin: 12px auto 0;
}

.envelope-container {
  position: relative;
  width: 100%;
  cursor: pointer;
  perspective: 1000px;
  animation: float 4s ease-in-out infinite;
}

.envelope-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(110, 94, 120, 0.15));
  transition: transform 0.5s ease;
}

.envelope-container:hover .envelope-img {
  transform: scale(1.03);
}

/* Lacre / Sello de Cera */
.envelope-seal {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65px;
  height: 65px;
  background-color: var(--color-lavender);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: all 0.3s ease;
  border: 2px solid #fff;
}

.envelope-container:hover .envelope-seal {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--color-gold);
}

.seal-inner {
  font-size: 1.8rem;
  animation: pulse 2s infinite;
}

.envelope-btn-container {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
}

.btn-primary-envelope {
  background-color: var(--color-primary);
  color: var(--color-cream);
  border: 1px solid var(--color-gold);
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-primary-envelope:hover {
  background-color: var(--color-gold);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(209, 184, 148, 0.3);
}

.envelope-tip {
  font-size: 1.2rem;
  color: var(--color-secondary);
  opacity: 0.8;
  margin-top: 10px;
}

/* ==========================================================================
   3. CONTENIDO PRINCIPAL
   ========================================================================== */
#main-content {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#main-content.visible {
  opacity: 1;
}

/* Barra de Navegación */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(209, 184, 148, 0.2);
  z-index: 500;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 24px;
}

.nav-logo {
  font-size: 1.8rem;
  color: #ceb995;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--color-gold);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Simplificado para móviles */
  }

  .nav-container {
    justify-content: center;
  }
}

/* Sección Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: transparent;
}

.hero-content {
  max-width: 700px;
  z-index: 10;
}

.hero-sub {
  font-size: 2.2rem;
  color: var(--color-gold);
  display: block;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero-intro-text {
  font-size: 1rem;
  color: var(--color-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Contenedor de Foto con Capas (Diseñador Gráfico) */
.hero-photo-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-container {
  width: 78%;
  height: 78%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-photo-couple {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  /* Foto cuadrada */
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 15px 30px rgba(110, 94, 120, 0.12);
}

.hero-photo-wrapper:hover .hero-photo-couple {
  transform: scale(1.05);
}

.hero-frame-balloons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

.wedding-date {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-top: 10px;
}

.wedding-location {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 30px;
}

/* Botones Premium */
.btn-primary {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-cream);
  border: 1px solid var(--color-gold);
  padding: 14px 32px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-gold);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-outline-location {
  display: inline-block;
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-gold);
  padding: 14px 32px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.btn-outline-location:hover {
  background-color: var(--color-gold);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary-submit {
  display: block;
  width: 100%;
  background-color: #25d366;
  /* Color de WhatsApp */
  color: #fff;
  border: none;
  padding: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.btn-primary-submit:hover {
  background-color: #20ba59;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   4. CUENTA REGRESIVA
   ========================================================================== */
.countdown-section {
  background-color: transparent;
  padding: 80px 0;
  border-top: 1px solid rgba(209, 184, 148, 0.15);
  border-bottom: 1px solid rgba(209, 184, 148, 0.15);
}

.section-title {
  font-size: 2.8rem;
  color: var(--color-primary);
  margin-bottom: 10px;
  text-align: center;
}

.section-subtitle {
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--color-secondary);
  margin-bottom: 50px;
  text-align: center;
  text-transform: uppercase;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  padding: 20px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  background: url('_assets/media/fondo_intro.png') no-repeat center center;
  background-size: cover;
  color: #ffffff;
}

/* Días y Minutos (Azul Pastel) */
.countdown-item:nth-child(1),
.countdown-item:nth-child(3) {
  border: 1px solid rgba(142, 187, 207, 0.6);
}

.countdown-item:nth-child(1) .label,
.countdown-item:nth-child(3) .label {
  color: var(--color-boy);
}

/* Horas y Segundos (Rosa Pastel) */
.countdown-item:nth-child(2),
.countdown-item:nth-child(4) {
  border: 1px solid rgba(234, 163, 184, 0.6);
}

.countdown-item:nth-child(2) .label,
.countdown-item:nth-child(4) .label {
  color: var(--color-girl);
}

.countdown-item .number {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: #ffffff;
  font-weight: 500;
}

.countdown-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

/* ==========================================================================
   5. SECCIÓN DE VOTACIÓN INTERACTIVA
   ========================================================================== */
.voting-section {
  padding: 100px 0;
  position: relative;
}

.relative-container {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  padding: 40px 20px;
  background: url('_assets/media/fondo_general.jpg') no-repeat center center;
  background-size: cover;
  border: 1px solid rgba(209, 184, 148, 0.2);
}

/* Contenedor de efectos de humo */
.smoke-effect-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.85);
  animation: fadeIn 0.8s forwards;
}

.smoke-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.85;
}

.smoke-message {
  position: relative;
  z-index: 5;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: bold;
  text-shadow: 0 4px 10px rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: var(--border-radius-md);
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid currentColor;
  max-width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: scaleUp 0.5s ease-out;
}

.blue-text {
  color: #2b7094;
}

.pink-text {
  color: #bf4d6f;
}

.voting-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.vote-card {
  flex: 1;
  max-width: 280px;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(209, 184, 148, 0.25);
  border-radius: var(--border-radius-md);
  padding: 40px 30px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.vote-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.vote-balloon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: transform 0.4s ease;
  z-index: 2;
}

.girl-balloon-placeholder {
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 20px;
  transition: transform 0.4s ease;
  z-index: 2;
}

.vote-card h3 {
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-bottom: 5px;
  z-index: 2;
}

.vote-card p {
  font-size: 0.8rem;
  color: var(--color-secondary);
  margin-bottom: 25px;
  z-index: 2;
}

.btn-vote {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 30px;
  transition: all 0.3s;
  z-index: 2;
}

/* Card Team Boy Hover */
.team-boy:hover {
  transform: translateY(-8px);
  border-color: var(--color-boy);
  box-shadow: 0 15px 30px rgba(142, 187, 207, 0.2);
}

.team-boy:hover .vote-balloon {
  transform: translateY(-5px) scale(1.08);
}

.team-boy .vote-card-bg {
  background: radial-gradient(circle, rgba(230, 242, 247, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
}

.team-boy:hover .vote-card-bg {
  opacity: 1;
}

.blue-btn {
  background-color: var(--color-boy-light);
  color: #2b7094;
  border: 1px solid var(--color-boy);
}

.team-boy:hover .blue-btn {
  background-color: var(--color-boy);
  color: #fff;
}

/* Card Team Girl Hover */
.team-girl:hover {
  transform: translateY(-8px);
  border-color: var(--color-girl);
  box-shadow: 0 15px 30px rgba(234, 163, 184, 0.2);
}

.team-girl:hover .girl-balloon-placeholder {
  transform: translateY(-5px) scale(1.08);
}

.team-girl .vote-card-bg {
  background: radial-gradient(circle, rgba(251, 235, 240, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
}

.team-girl:hover .vote-card-bg {
  opacity: 1;
}

.pink-btn {
  background-color: var(--color-girl-light);
  color: #bf4d6f;
  border: 1px solid var(--color-girl);
}

.team-girl:hover .pink-btn {
  background-color: var(--color-girl);
  color: #fff;
}

/* Resultados de votación */
.voting-results {
  max-width: 500px;
  margin: 50px auto 0;
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(209, 184, 148, 0.2);
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.6s ease;
}

.voting-results h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.progress-bar-container {
  display: flex;
  height: 35px;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--color-cream);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.progress-bar-boy {
  background-color: var(--color-boy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  transition: width 1s ease;
}

.progress-bar-girl {
  background-color: var(--color-girl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  transition: width 1s ease;
}

.reset-vote-btn {
  margin-top: 10px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  padding: 8px 18px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover {
  background-color: var(--color-secondary);
  color: #fff;
}

/* ==========================================================================
   6. SECCIÓN GALERÍA DE FOTOS
   ========================================================================== */
.gallery-section {
  background-color: transparent;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  aspect-ratio: 0.9;
  background-color: var(--color-cream);
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(209, 184, 148, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.6s;
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

/* ==========================================================================
   7. DETALLES DEL EVENTO
   ========================================================================== */
.details-section {
  background: transparent;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 45px;
}

.details-card {
  background-color: rgba(27, 6, 6, 0.85);
  border: 1px solid rgba(209, 184, 148, 0.25);
  border-radius: var(--border-radius-md);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}

.details-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.card-time {
  font-weight: 500;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.card-venue {
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.card-address {
  font-size: 0.85rem;
  color: var(--color-secondary);
  margin-bottom: 25px;
}

.btn-card {
  display: inline-block;
  background-color: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-primary);
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-card:hover {
  background-color: var(--color-gold);
  color: #fff;
}

/* Caja de dresscode */
.dresscode-box {
  background-color: rgba(27, 6, 6, 0.85);
  border: 1px solid rgba(209, 184, 148, 0.2);
  border-radius: var(--border-radius-md);
  padding: 35px;
  margin-top: 50px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.dresscode-box h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.dresscode-box p {
  font-size: 0.9rem;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

.colors-flex {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.color-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  cursor: default;
  transition: transform 0.3s;
}

.color-circle:hover {
  transform: scale(1.1);
}

.boy-color {
  background-color: var(--color-boy-light);
  border: 1px solid var(--color-boy);
}

.girl-color {
  background-color: var(--color-girl-light);
  border: 1px solid var(--color-girl);
}

/* ==========================================================================
   8. SECCIÓN RSVP FORM
   ========================================================================== */
.rsvp-section {
  padding: 100px 0;
  background-color: var(--color-cream);
}

.rsvp-box {
  background-color: rgba(27, 6, 6, 0.85);
  max-width: 550px;
  margin: 0 auto;
  border: 1px solid rgba(209, 184, 148, 0.25);
  border-radius: var(--border-radius-md);
  padding: 50px 40px;
  box-shadow: var(--shadow-lg);
}

.rsvp-form {
  margin-top: 35px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group select {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid rgba(110, 94, 120, 0.2);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-primary);
  transition: all 0.3s;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-gold);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(209, 184, 148, 0.15);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 5px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-secondary);
}

.radio-label input {
  accent-color: var(--color-primary);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.main-footer {
  background-color: #000000;
  color: #ffffff;
  padding: 60px 0;
  font-size: 0.8rem;
  border-top: 2px solid var(--color-gold);
}

.footer-signature {
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.wedding-footer-date {
  letter-spacing: 3px;
  font-size: 0.85rem;
  margin-bottom: 25px;
  color: var(--color-lavender);
}

.copyright {
  opacity: 0.6;
  font-size: 0.7rem;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.footer-socials a {
  color: var(--color-cream);
  opacity: 0.7;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-socials a:hover {
  color: var(--color-gold);
  opacity: 1;
  transform: translateY(-3px);
}

.social-icon {
  width: 24px;
  height: 24px;
  display: block;
}


/* ==========================================================================
   ANIMACIONES DE EFECTOS
   ========================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

/* Gotas o Burbujas de Fondo (Vibrante) */
#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.floating-particle {
  position: absolute;
  bottom: -10%;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-110vh) translateX(30px) rotate(360deg);
    opacity: 0;
  }
}

/* Animación del botón de rebote */
.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: translateY(-5px);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Responsividad para pantallas pequeñas/móviles en altura y anchura */
@media (max-height: 780px) {
  .envelope-wrapper {
    gap: 12px;
  }

  .title-pre-envelope {
    font-size: 1.8rem;
  }

  .parents-names-envelope {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }

  .envelope-divider {
    margin: 8px auto 0;
  }

  .envelope-container {
    max-width: 320px;
    margin: 0 auto;
  }

  .envelope-seal {
    width: 52px;
    height: 52px;
    top: 53%;
  }

  .seal-inner {
    font-size: 1.4rem;
  }

  .btn-primary-envelope {
    padding: 10px 22px;
    font-size: 0.75rem;
  }

  .envelope-tip {
    font-size: 1rem;
    margin-top: 5px;
  }
}

@media (max-width: 480px) {
  .envelope-wrapper {
    width: 95%;
    gap: 12px;
  }

  .title-pre-envelope {
    font-size: 1.8rem;
  }

  .parents-names-envelope {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }

  .envelope-container {
    max-width: 330px;
  }
}

/* Estilos decorativos para la imagen de los cubos BABY */
.countdown-decor {
  text-align: center;
  margin-top: 30px;
}

.countdown-decor-img {
  max-width: 110px;
  /* Tamaño chiquito y elegante */
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(110, 94, 120, 0.15));
  animation: float 4s ease-in-out infinite;
}