/* ===========================
   Variables globales
=========================== */
:root {
  --primary-blue: #87CEEB;
  --secondary-blue: #B0E0E6;
  --accent-pink: #FFB6C1;
  --accent-yellow: #FFFACD;
  --text-dark: #2C3E50;
  --text-light: #5D6D7E;
}

/* ===========================
   Body
=========================== */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: #F9F7F3;
}

/* ===========================
   Encabezados
=========================== */
h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
}

/* ===========================
   Fondo Primavera
=========================== */
.spring-bg {
  background-image: url('fondo.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.7);
}

/* ===========================
   1. Animaciones y Transiciones
=========================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-gentle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   2. Hero Sections
=========================== */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1.2s ease;
  margin: auto;
}

.hero-poem{
  height: 100vh;
}

.hero-poem,
.hero-event {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;

}

.hero-event{
  height: 110vh;
  animation: fadeInUp 2s ease;


}

.hero-poem { background-image: url('images/fondofrase.png'); }


.hero-poem .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-poem .hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
  animation: fadeInUp 1.2s ease;
}

@media (max-width: 768px) {
.hero-event { background-image: url('images/edit/Mariana_\ Savethedate-6mobile.jpg'); }
  
}

@media (min-width: 769px) {
.hero-event { background-image: url('images/edit/Mariana_\ Savethedate-6.jpg'); }
  
}

/* ===========================
   3. Text Background Section
=========================== */
.text-bg {
  
  background-size: cover;
  background-position: center;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: white;
  max-width: 900px;
  margin: 0 auto;
}

.text-bg h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
  color: rgb(176, 242, 255);
}

.text-bg p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.6;
  color: var(white);
}

/* ===========================
   4. Tipografía y Encabezados
=========================== */
.main-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 6vw, 3.8rem);
  background: linear-gradient(90deg, #87CEEB, #FFB6C1, #FFFACD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.main-heading::after {
  content: "";
  display: block;
  width: 60%;
  height: 4px;
  margin: 0.5rem auto 0;
  background: linear-gradient(90deg, transparent, #FFB6C1, transparent);
  border-radius: 2px;
}

.secondary-text {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  font-size: clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(90deg, #e0f2fe, #f9d29d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: #FFE4E1;
}

.title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #00d5f1;
}

.location,
.date {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  margin-bottom: 0.5rem;
  color: #FDFEFE;
}

/* ===========================
   5. Countdown
=========================== */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.time-box {
  background: #d1d9f7;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  
  min-width: 70px;
}

.time {
  font-size: 1.5rem;
  font-weight: bold;
  display: block;
  color: #000000;
}

.label {
  font-size: 0.9rem;
  color: #0237f9;
}

@media (max-width: 480px) {
  .time-box { min-width: 60px; }
  .time { font-size: 1rem; }
  .label { font-size: 0.8rem; }
}

/* ===========================
   6. Botones
=========================== */
.btn-primary {
  background-color: #FFB6C1;
  color: #2C3E50;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover { background-color: #ffc1cc; }

.btn-gradient {
  background: linear-gradient(135deg, #87CEEB 0%, #B0E0E6 100%);
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(135, 206, 235, 0.3);
}

/* ===========================
   7. Animaciones Aplicadas
=========================== */
.floating { animation: float 3s ease-in-out infinite; }
.pulse-gentle { animation: pulse-gentle 2s ease-in-out infinite; }
.slide-in { animation: slideIn 0.6s ease-out forwards; }

/* ===========================
   8. Modales y Formularios
=========================== */
dialog {
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

dialog::backdrop {
  background-color: rgba(135, 206, 235, 0.7);
  backdrop-filter: blur(4px);
}

input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.3);
}

/* ===========================
   9. Decoraciones y Efectos
=========================== */
.floral-decoration {
  position: absolute;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

.text-shadow { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.glow { box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); }

.image-overlay {
  position: relative;
  overflow: hidden;
}

.image-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(135, 206, 235, 0.7) 100%);
  pointer-events: none;
}

.color-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.color-circle:hover { transform: scale(1.1); }

.separator {
  height: 3px;
  width: 100px;
  background: linear-gradient(to right, #87CEEB, #FFB6C1);
  border-radius: 2px;
  margin: 1rem auto;
}

/* ===========================
   10. Carousel
=========================== */


  /* Ocultar barra de desplazamiento para un look más limpio */
.scrollbar-hide::-webkit-scrollbar { display: none; }
  .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }



/* ===========================
   12. Glassmorphism
=========================== */
.glass-effect {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===========================
   13. Responsive Adjustments
=========================== */
@media (max-width: 480px) {
  .text-bg {
    padding: 1.5rem;
    border-radius: 10px;
  }

  .text-bg h1 { font-size: 1.6rem; }
  .text-bg p { font-size: 1rem; }
}

@media (max-width: 768px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }

  .countdown-box { padding: 0.5rem; }

  dialog {
    width: 90%;
    max-width: 90%;
  }
}

/* ===========================
   14. Global
=========================== */
html { scroll-behavior: smooth; }


/* ===========================
   Reproductor
=========================== */

.btn-music {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(135deg, #f9d29d, #f8b4d9); /* dorado-rosa */
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .btn-music:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #f8b4d9, #f9d29d);
  }

  /* Botón de pausa con tonos vino */
  #pauseBtn {
    background: linear-gradient(135deg, #d46a6a, #b76e79);
  }

  #pauseBtn:hover {
    background: linear-gradient(135deg, #b76e79, #d46a6a);
  }

  /* ocultar por defecto */
  .hidden {
    display: none;
  }