/* Reset y base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}


body {
  font-family: 'Georgia', serif;
  background-color: linear-gradient(180deg, #94A681 0%, #AABF95 25%, #E3F2D8 50%, #94A681 75%,#AABF95 100%);
  color: #5e3d1e;
  text-align: center;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Fuentes princesa */
.titulo {
  font-family: 'Princess Sofia', cursive;
  font-size: 3em;
  color: #E4D88C;
  animation: fadeInUp 1.2s ease forwards;
}

.nombre {
  font-family: 'Great Vibes', cursive;
  font-size: 2.6em;
  color: #f4e9c2;
  margin-bottom: 10px;
  animation: fadeInUp 1.5s ease forwards;
}

.fecha {
  font-family: 'Georgia', serif;
  font-size: 1.3em;
  color: #d2c17d;
  margin-bottom: 20px;
  animation: fadeInUp 1.7s ease forwards;
}

/* Animaciones fadeInUp */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
header.hero {
  position: relative;
  max-height: 520px;
  overflow: hidden;
}

.foto-header {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  opacity: 0.8;
  animation: fadeIn 2s ease forwards;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 0.8;}
}

.texto-header {
  position: absolute;
  top: 10px;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 20px;
  border-radius: 15px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.4);
  width: 80%;
}

/* Flores y hojas decorativas */


@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Contador */
.contador {
  background-color: #F2F2F2;
  color: #5e3d1e;
  margin: 5px auto;
  padding: 5px;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  font-weight: bold;
  font-size: 1.3em;
}

#cuenta-regresiva {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: nowrap; /* Nunca romper la línea */
  font-weight: bold;
  overflow-x: auto; /* Para evitar overflow forzado, pero solo si es necesario */
  -webkit-overflow-scrolling: touch; /* suaviza scroll en iOS */
}

#cuenta-regresiva::-webkit-scrollbar {
  display: none; /* Oculta barra de scroll si aparece */
}

#cuenta-regresiva span {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 6px;
  background-color: #BECFB4;
  border-radius: 12px;
  font-size: 1.1em;
  color: #9a5f27;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.12);
  white-space: nowrap;
}


/* Vestimenta */
.vestimenta {
  background: linear-gradient(180deg,#94A681 0%, #E3F2D8  50%,  #94A681 100%);
  color: #fff;
  max-width: 600px;
  margin: 0px auto;
  padding: 0px;
  border-radius: 5px;
  box-shadow: 0 0px 0px rgb(254, 254, 254);
  font-size: 1.15em;

}

.vestimenta-iconos {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 15px;
}

.vestimenta-iconos img {
  width: 60px;
}

.colores-prohibidos {
  margin-top: 20px;
  text-align: center;
  color: #fff;
}

.muestras-color {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
  margin-bottom: 5px;
}

.muestras-color div {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Botones */
.acciones {
  display: flex;
  justify-content: center;
  gap: 0px;
  margin: 0px 0px;
  background-color: #fff;
}

.boton-container {
  text-align: center;
}

.icono {
  width: 90px;
  height: 90px;
  transition: transform 0.3s ease;
}

.icono:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px #AABF95);
}
.boton-container a {
  color: inherit;
  text-decoration: none;
}


/* Galería deslizable */
.galeria-interactiva {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 10px auto;
  border-radius: 10px;
  overflow: hidden;
  border: 4px solid #E4D88C;
  box-shadow: 0 6px 15px rgba(228, 216, 140, 0.6);
}

.galeria-interactiva img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  transition: opacity 0.3s ease;
  cursor: pointer;
  border-radius: 10px;
}

.galeria-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2em;
  background: rgba(0,0,0,0.3);
  border: none;
  color: white;
  padding: 10px;
  cursor: pointer;
  user-select: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 32px;
  text-align: center;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  transition: background-color 0.25s ease;
}

.galeria-btn:hover {
  background: rgba(0,0,0,0.6);
}

.galeria-btn.izq { left: 10px; }
.galeria-btn.der { right: 10px; }

/* Collage */
.collage {
  margin: 0px auto 0px auto;
  max-width: 700px;
  background: linear-gradient(180deg,#94A681 0%, #94A681 75%, #E3F2D8 100%);
  background-attachment: fixed;;

}

.collage h3 {
  margin-bottom: 20px;
  color: #5e3d1e;
  font-family: 'Princess Sofia', cursive;
  font-size: 2em;
}

.collage-fotos {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.collage-fotos img {
  width: 30%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgb(255, 255, 255);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.collage-fotos img:hover {
  transform: scale(1.05);
}

/* Muro de recuerdos */
.muro-recuerdos {
  background: linear-gradient(180deg,#E3F2D8 0%, #94A681 50%, #E3F2D8 100%);max-width: 900px;
  margin: 60px auto;
  padding: 0 15px;
  border: 4px solid #E4D88C;
  box-shadow: 0 6px 15px rgba(228, 216, 140, 0.6);
}

.muro-recuerdos h3 {
  font-family: 'Princess Sofia', cursive;
  color: #5e3d1e;
  margin-bottom: 20px;
  font-size: 2.4em;
}

.muro-grid {

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 2px; /* Mínima separación */

}

.muro-grid img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 0; /* Elimina redondeado */
  box-shadow: none; /* Sin sombra */
  cursor: pointer;
  transition: transform 0.2s ease;

}


.muro-grid img:hover {
  transform: scale(1.03);
}


/* Ubicación */
.ubicacion {
  max-width: 700px;
  margin: 50px auto 80px auto;
  padding: 0 15px;
}

.ubicacion h3 {
  font-family: 'Princess Sofia', cursive;
  color: #5e3d1e;
  margin-bottom: 15px;
  font-size: 2em;
}

.link-maps {
  color: #5e3d1e;
  font-weight: bold;
  text-decoration: underline;
  display: inline-block;
  margin-bottom: 20px;
}

.mapa-container iframe {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

/* Footer */
footer {
  background-color: #A75933;
  color: white;
  padding: 20px;
  font-weight: bold;
  font-family: 'Princess Sofia', cursive;
  font-size: 1.3em;
  letter-spacing: 0.05em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.7);
}

.cerrar-lightbox {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 2.8em;
  color: white;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
  transition: color 0.3s ease;
  z-index: 10000;
}

.cerrar-lightbox:hover {
  color: #f4e9c2;
}

.lightbox-nav {
  position: fixed;
  bottom: 30px;
  display: flex;
  gap: 40px;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 3em;
  color: white;
  cursor: pointer;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  line-height: 50px;
  user-select: none;
  transition: background-color 0.25s ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Estrellas sutiles */
.stars {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #fff8dc;
  border-radius: 50%;
  animation: twinkle 2s infinite ease-in-out;
  pointer-events: none;
  z-index: 1;
  opacity: 0.2
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Responsivo */
@media (max-width: 600px) {
  .collage-fotos img,
  .muro-grid img {
    width: 90%;
    margin: 0 auto;
  }

  .vestimenta-iconos {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  #cuenta-regresiva span {
    font-size: 0.9em;
    padding: 5px 8px;
  }
}

.acciones {
  display: flex;
  flex-direction: column; /* Ahora los hijos se apilan verticalmente */
  align-items: center;     /* Centra todo horizontalmente */
  gap: 30px;
  margin: 50px 0;
  border: 3px solid #E4D88C;
  background-color: #AABF95;
  padding: 30px 40px;
  border-radius: 25px;
  box-shadow: 0 8px 20px rgba(228, 216, 140, 0.6);
}

.titulo-seccion {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #5e3d1e;;
  font-family: 'Princess Sofia';
  
}

/* Nuevo contenedor para agrupar botones uno al lado del otro */
.contenedor-botones {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap; /* por si es en móvil que se apilen */
}

.boton-container {
  text-align: center;
  padding: 10px 20px;
  border-radius: 15px;
  border: 2px solid #A75933;
  background-color: #FAF3C0;
  transition: background-color 0.3s ease;
}

.boton-container:hover {
  background-color: #f7e597;
}

.icono {
  width: 80px;
  height: auto;
}


/* Estilo para el contenedor del mapa */
.mapa-container {
  border: 3px solid #E4D88C;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(228, 216, 140, 0.7);
  overflow: hidden;
  margin-top: 15px;
}

.scroll-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

#trivia {
  background-color: #FFF6D5;
  border: 3px solid #E4D88C;
  border-radius: 25px;
  max-width: 600px;
  margin: 40px auto;
  padding: 25px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  color: #5e3d1e;
  font-size: 1.1em;
}

#trivia input,
#trivia button {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  margin-top: 12px;
  border-radius: 12px;
  border: 2px solid #A75933;
}

#trivia button {
  background-color: #E4D88C;
  color: #5e3d1e;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#trivia button:hover {
  background-color: #f7e597;
}

#mensaje-adivinanza {
  margin-top: 15px;
  font-weight: bold;
}

/* Animaciones visuales */
.correcta {
  color: green;
  animation: resaltarCorrecta 0.6s ease;
}

.incorrecta {
  color: crimson;
  animation: resaltarIncorrecta 0.6s ease;
}

@keyframes resaltarCorrecta {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes resaltarIncorrecta {
  0% { transform: rotate(0); }
  25% { transform: rotate(2deg); }
  50% { transform: rotate(-2deg); }
  75% { transform: rotate(2deg); }
  100% { transform: rotate(0); }
}

/* Responsive específico */
@media (max-width: 600px) {
  #trivia {
    padding: 15px;
    font-size: 1em;
  }

  #trivia input,
  #trivia button {
    font-size: 0.95em;
  }
}

.firefly {
  position: fixed;
  width: 2px;
  height: 2px;
  background-color: #ffe066;
  border-radius: 50%;
  box-shadow: 0 0 8px 4px #ffe066;
  pointer-events: none;
  z-index: 1;
  animation: parpadeo 3s infinite ease-in-out;
}

@keyframes parpadeo {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Fondo pastel con degradado */
body {
  background: linear-gradient(180deg, #94A681 0%, #AABF95 25%, #E3F2D8 50%, #94A681 75%,#AABF95 100%);
  background-attachment: fixed;
}

/* Mariposas y flores decorativas */
.decoracion {
  position: fixed;
  width: 80px;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  animation: flotacion 12s infinite ease-in-out;
}

.decoracion1 {
  top: 20px;
  left: 20px;
}

.decoracion2 {
  bottom: 30px;
  right: 40px;
  animation-delay: 4s;
}

.decoracion3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 2s;
}

/* Animación suave */
@keyframes flotacion {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

.decorado {
  border: 2px solid #d4c067;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 8px rgba(212, 192, 103, 0.3);
  padding: 20px;
}

.decorada {
  position: relative;
  overflow: hidden;
}

.decorada::before,
.decorada::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 10;
  z-index: 0;
}

.decorada::before {
  top: -10px;
  left: -10px;
  background-image: url('Logos/flores.png');
}

.decorada::after {
  bottom: -10px;
  right: -10px;
  background-image: url('Logos/flores2.PNG');
}

.itinerario {
  background: linear-gradient(180deg, #E3F2D8 0%,#AABF95 75%, #94A681 100%);
  border: 3px solid #d4c067;
  border-radius: 15px;
  max-width: 400px;
  margin: 10px auto;
  padding: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  color: #5e3d1e;
  text-align: center;
}

.itinerario h3 {
  font-family: 'Princess Sofia', cursive;
  font-size: 2.2em;
  margin-bottom: 30px;
}

.itinerario-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.evento {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.evento img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(228, 216, 140, 0.5));
}

.evento h4 {
  font-size: 1.2em;
  color: #9a5f27;
  margin-bottom: 5px;
}

.evento p {
  font-size: 1em;
  color: #5e3d1e;
  margin: 0;
}

/* ✅ Responsive para celulares */
@media (max-width: 600px) {
  .itinerario {
    padding: 20px 15px;
  }

  .evento {
    width: 100%;
    max-width: 300px;
  }

  .evento img {
    width: 50px;
    height: 50px;
  }

  .evento h4 {
    font-size: 1.1em;
  }

  .evento p {
    font-size: 0.95em;
  }

  .itinerario h3 {
    font-size: 1.8em;
  }
}


/* Estilo común para las decoraciones */
.decor {
  overflow: hidden;
  line-height: 0;
}

.decor svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 10px;
}

.decor path {
  fill: #E3F2D8; /* Color dorado claro */
  fill-opacity: 1;
}

/* Para invertir cualquier decoración si quieres usarla al revés */
.invertida svg {
  transform: rotate(180deg);
}

/* Responsividad */
@media (max-width: 600px) {
  .decor svg {
    max-height: 80px;
  }
}









.linea-decorativa {
  border: 0;
  height: 3px;
  width: 60%;
  margin: 40px auto;
  background: linear-gradient(to right, transparent, #f7e597, transparent);
  border-radius: 10px;
}

#toggle-music {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #E4D88C;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.3s, transform 0.3s;
}

#toggle-music:hover {
  background-color: #D9DDB8;
  transform: scale(1.1);
}

.icono-musica {
  font-size: 20px;
  color: #A75933;
}


