/* styles.css */
body,
html {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  color: #333;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.hero {
  height: 100vh;
  background: url("images/DALL·E\ 2025-02-10\ 12.23.33\ -\ Un\ elegante\ fondo\ de\ boda\ con\ tonos\ claros\,\ incluyendo\ un\ suave\ degradado\ de\ blanco\ y\ azul\ pastel.\ La\ imagen\ debe\ tener\ detalles\ delicados\ como\ flores.webp")
    no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #333; /* Ajusta el color según convenga */
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-button {
  background-color: #ff7f50;
  color: white;
  padding: 15px 30px;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #ff6347;
}

/* Secciones */
.fondo {
  background: linear-gradient(180deg, #ffffff, #81a1af);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #3e345b; /* Ajusta el color según convenga */
}

.fondo,
#details,
#our-story,
#gallery,
#rsvp,
#activities {
  padding: 50px;
  text-align: center;
}

/* Sección "Nuestra Historia" */
#our-story {
  background: linear-gradient(0deg, #ffffff, #81a1af);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 20px auto;
  max-width: 1000px;
}

.story-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

/* Estilos del Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.modal-content {
  background: white;
  padding: 10px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow-y: auto;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}

/* Línea de Tiempo (Slider) */
.timeline-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 20px auto 10px;
  overflow: hidden;
  text-align: center;
  flex-shrink: 0;
}

.timeline-slider {
  display: flex;
  transition: opacity 1s ease-in-out;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  display: none;
  text-align: center;

  transition: opacity 1s ease-in-out;
}

.slide.active {
  display: block;
}


.slide img {
  max-width: 100%;
  max-height: 50vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  margin: 0 auto;
  display: block;
}

.caption {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
}

/* Media Queries para pantallas pequeñas */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;       /* casi toda la pantalla */
    padding: 15px;
    max-height: 95vh;
  }

  .caption {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 10px;
    width: 95%;
    max-height: 95vh;
  }

  .slide img {
    max-height: 40vh; /* en móviles más pequeños todavía */
    max-width: 100%;
    width: auto;
    height: auto;
  }

  .caption {
    font-size: 13px;
  }
}

/* Botones de navegación */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.prev {
  left: 10px;
}
.next {
  right: 10px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Puntos de navegación */
.dots-container {
  text-align: center;
  margin-top: 10px;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background-color: #333;
}

/* Sección RSVP */
#rsvp {
  background: linear-gradient(180deg, #ffffff, #81a1af);
}

#rsvp h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

#rsvp form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#rsvp label {
  text-align: left;
  font-weight: bold;
}

#rsvp input,
#rsvp select,
#rsvp textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.cta-button {
  background-color: #ff7f50;
  color: white;
  padding: 15px 30px;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
}

.cta-button:hover {
  background-color: #ff6347;
}

#rsvpMessage {
  margin-top: 20px;
  font-size: 1.1rem;
}

/* Sección Galería */
#gallery {
  background: linear-gradient(0deg, #ffffff, #81a1af);
}

#gallery h2 {
  margin-bottom: 20px;
}

#gallery p {
  margin-bottom: 30px;
}

.gallery-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  height: 400px;
}

.slide {
  display: none;
  transition: opacity 1s ease-in-out;
  height: 450px;
}

.slide img {
  width: auto;
  height: 90%;
  border-radius: 10px;
}

/* Controles del slider */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.prev {
  left: 10px;
}
.next {
  right: 10px;
}

/* Dots */
.gallery-dots {
  text-align: center;
  margin-top: 10px;
}

.gallery-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #bbb;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.gallery-dots .dot.active {
  background-color: #333;
}

/* Seccion de alojamiento y actividades*/
.activities, .location-section {
  background: linear-gradient(0deg, #ffffff, #81a1af);
}

.location-container {
  background: linear-gradient(0deg, #ffffff, #81a1af);
  display: grid;
  grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
  gap: 20px; /* espacio entre mapa e info */
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.location-map {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
}

.location-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.location-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.location-info h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.location-info p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.4;
}

.open-modal-btn {
  background-color: #0077cc;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 auto; /* centra el botón */
  transition: background 0.3s ease;
}

.open-modal-btn:hover {
  background-color: #005fa3;
}

/* 📱 En móvil, se apilan */
@media (max-width: 768px) {
  .location-container {
    grid-template-columns: 1fr; /* Una sola columna */
  }

  .location-map {
    height: 300px;
    padding-top: 75%;
  }
}

/* Modal Atividades y Alojamiento */
/* Pestañas */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  justify-content: center;
}
.tab-btn {
  padding: 8px 14px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.tab-btn.active {
  background: #ff7f50;
  color: #fff;
  border-color: #ff7f50;
}

/* Marco del mapa (iframe responsive) */
.map-frame-wrap {
  position: relative;
  width: 100%;
  height: 50vh;            /* alto del mapa en desktop */
  min-height: 300px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
#activitiesMapFrame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Lista de lugares */
#placesList {
  text-align: left;
  max-height: 28vh;
  overflow: auto;
  border: 1px solid #eee;
  border-radius: 8px;
}
.place-item {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.place-item:hover { background: #fafafa; }
.place-name { font-weight: 600; }
.place-cta a { font-size: 0.9rem; text-decoration: underline; }

/* Botón mapa general */
.map-actions { display: flex; justify-content: center; margin-top: 10px; }

/* Responsive */
@media (max-width: 768px) {
  .map-frame-wrap { height: 45vh; }
  #placesList { max-height: 30vh; }
}
