/* CSS Variables */
:root {
  --primary: #e91e63;
  --secondary: #9c27b0;
  --accent: #ff6b9d;
  --dark: #000000;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Glassmorphism Effect */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(233, 30, 99, 0.1);
}

/* Glow Effects */
.glow-text {
  text-shadow: 0 0 10px rgba(233, 30, 99, 0.5), 0 0 20px rgba(233, 30, 99, 0.3),
    0 0 30px rgba(233, 30, 99, 0.2);
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(233, 30, 99, 0.5),
      0 0 20px rgba(233, 30, 99, 0.3), 0 0 30px rgba(233, 30, 99, 0.2);
  }
  50% {
    text-shadow: 0 0 20px rgba(233, 30, 99, 0.8),
      0 0 30px rgba(233, 30, 99, 0.5), 0 0 40px rgba(233, 30, 99, 0.3);
  }
}

.glow-section {
  position: relative;
}

.glow-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(233, 30, 99, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.glow-section > * {
  position: relative;
  z-index: 1;
}

/* Sparkle Text Animation */
.sparkle-text {
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--secondary) 50%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  border: none;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.6);
}

.btn-primary:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  border: 1px solid var(--glass-border);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-secondary:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Pulse Animation */
.pulse-animation {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Fade In Up Animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--dark);
  box-shadow: 0 0 0 3px var(--primary);
}

.timeline-content {
  margin-left: 1rem;
}

/* Gift Pills */
.gift-pill {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
}

.gift-pill:hover {
  background: rgba(233, 30, 99, 0.2);
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

/* Swiper Customization */
.gallery-swiper {
  padding: 2rem 0;
}

.gallery-swiper .swiper-slide {
  height: 500px;
}

.gallery-swiper .swiper-slide img {
  border-radius: 1.5rem;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary) !important;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 50%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.25rem !important;
}

.swiper-pagination-bullet {
  background: white !important;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
  opacity: 1;
}

/* Countdown Items */
.countdown-item {
  transition: transform 0.3s ease;
}

.countdown-item:hover {
  transform: scale(1.05);
}

/* Hero Content Animation */
.hero-content {
  animation: fadeInScale 1.5s ease-out;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .pulse-animation,
  .glow-text,
  .sparkle-text {
    animation: none;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-marker {
    left: -2rem;
  }

  .gallery-swiper .swiper-slide {
    height: 350px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
}

/* Focus Visible for Accessibility */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.bg-decorations {
  position: fixed; /* siempre pegado */
  inset: 0; /* ocupa toda la pantalla */
  z-index: -1; /* debajo de todo */
  pointer-events: none; /* no bloquea clics */
  overflow: hidden;
}

.bg-decorations {
  position: fixed;
  inset: 0;
  z-index: -1; /* debajo de todo */
  pointer-events: none; /* no bloquea clics */
  overflow: hidden;
}

.bg-flower {
  position: absolute;
  opacity: 0.85;
  transform-origin: center;
}

/* Flor 1 - izquierda, más grande, no completa */
.flower-1 {
  top: 10%;
  left: -5%; /* cargada a la izquierda */
  width: 220px; /* ligeramente más grande */
}

/* Flor 2 - derecha arriba, casi borde */
.flower-2 {
  top: -10%; /* para que no se vea completa */
  right: -5%;
  width: 200px;
}

/* Flor 3 - esquina inferior derecha, más grande */
.flower-3 {
  bottom: -10%; /* se corta un poco */
  right: -5%;
  width: 250px;
}

/* Flor 4 - inferior izquierda, más pequeña, completa */
.flower-4 {
  bottom: 5%;
  left: 5%;
  width: 120px;
}
.bg-decorations {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 99; /* oculto al inicio */
  transition: opacity 0.6s ease; /* fade-in */
}

/* Flores individuales */
.bg-flower {
  position: absolute;
  transform-origin: center;
  opacity: 0.85;
}

/* Ejemplo posiciones y tamaños */
.flower-1 {
  top: 10%;
  left: -5%;
  width: 220px;
}
.flower-2 {
  top: -10%;
  right: -5%;
  width: 200px;
}
.flower-3 {
  bottom: -10%;
  right: -5%;
  width: 250px;
}
.flower-4 {
  bottom: 5%;
  left: 5%;
  width: 120px;
}
.btn-secondary {
  background-color: rgba(
    20,
    20,
    20,
    0.6
  ); /* gris muy oscuro con transparencia */
  backdrop-filter: blur(8px); /* efecto glassmorphism */
  color: #fff; /* texto blanco para contraste */
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
}

.btn-secondary:hover {
  background-color: rgba(20, 20, 20, 0.8); /* un poco más oscuro al hover */
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.bg-decorations {
  position: fixed;
  inset: 0;
  z-index: -1; /* debajo de todo */
  pointer-events: none; /* no bloquea clics */
  overflow: hidden;
}

.bg-flower {
  position: absolute;
  opacity: 0.85;
  transform-origin: center;
}

/* Flor 1 - izquierda, más grande, no completa */
.flower-1 {
  top: 10%;
  left: -5%; /* cargada a la izquierda */
  width: 220px; /* ligeramente más grande */
}

/* Flor 2 - derecha arriba, casi borde */
.flower-2 {
  top: -10%; /* para que no se vea completa */
  right: -5%;
  width: 200px;
}

/* Flor 3 - esquina inferior derecha, más grande */
.flower-3 {
  bottom: -10%; /* se corta un poco */
  right: -5%;
  width: 250px;
}

/* Flor 4 - inferior izquierda, más pequeña, completa */
.flower-4 {
  bottom: 5%;
  left: 5%;
  width: 120px;
}
