:root {
  --color-titulo: #9e5adf;
  --color-texto: #f7eaff;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}

/* Secci¨Žn principal con imagen y texto */
.hero {
  display: flex;
  height: 100vh;
  transition: opacity 0.5s ease;
}

.hero-content {
  display: flex;
  width: 100%;
  flex-direction: row;
}

.hero-image {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(247, 240, 255, 0.85);
  padding: 40px;
}

.nombre {
  font-family: 'Great Vibes', cursive;
  font-size: 4rem;
  color: #9e5adf;
}

.fecha {
  font-size: 1.5rem;
  color: #555;
}

.mobile-text {
  display: none;
  position: absolute;
  bottom: 20px;
  left: 5%;
  right: 5%;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  padding: 12px;
  border-radius: 10px;
}

.seccion {
  padding: 60px 20px;
  text-align: center;
}

.seccion.blanca {
  background-color: #fff;
  background-image: url('fondo-mariposas.png');
  background-size: contain;
  background-repeat: repeat;
  background-position: center;
}

body.scrolled .hero {
  opacity: 0.4;
}

.contador {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 40px;
  font-size: 1.2rem;
  flex-wrap: wrap;
}

.contador div {
  background-color: #f7eaff;
  padding: 10px 20px;
  border-radius: 10px;
  text-align: center;
  min-width: 100px;
  flex: 1 1 120px;
}

.contador span {
  font-size: 2rem;
  font-weight: bold;
  color: #9e5adf;
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    padding: 10px;
  }

  .hero-text {
    display: none;
  }

  .mobile-text {
    display: block;
  }

  .contador {
    gap: 10px;
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .contador div {
    flex: 1 1 45%;
    padding: 8px 12px;
  }
}

.seccion.rosa {
  background-color: #f7f0ff; /* Lila muy claro */
}

.mapa {
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.boton-confirmar {
  display: inline-block;
  margin-top: 20px;
  background-color: #9e5adf;
  color: #fff;
  padding: 12px 25px;
  font-size: 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.boton-confirmar:hover {
  background-color: #823fc5;
}

.slider {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 80%;
  max-width: 300px;
  height: 400px;
  margin: 0 auto;
}

.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.slider::-webkit-scrollbar {
  display: none;
}

.itinerario {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.itinerario li {
  padding: 10px 0;
  font-size: 1.1rem;
}

.seccion.doble {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
}

.columna {
  flex: 1 1 300px;
  max-width: 400px;
}

.footer {
  background-color: #f8f8f8;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

.footer a {
  color: #9e5adf;
  text-decoration: none;
}

#btnArriba {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  font-size: 22px;
  background-color: #9e5adf;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}

#btnArriba:hover {
  background-color: #823fc5;
}

.control-musica {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 999;
  font-size: 20px;
  background-color: #9e5adf;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}

.control-musica:hover {
  background-color: #823fc5;
}

.spotify-embed {
  max-width: 600px;
  margin: 30px auto 0 auto;
}

.imagen-vestimenta {
  width: 100%;
  max-width: 300px;
  margin: 20px auto 10px;
  display: block;
}

.etiqueta-vestimenta {
  font-size: 1.2rem;
  font-weight: bold;
  color: #9e5adf;
}

