@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Manrope:wght@400;500;600;700&display=swap");

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

/* MAIN */

.paquete-container {
  max-width: 90%;
  margin: 30px auto;
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  background: rgb(248, 247, 247);
}

.cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "DM Serif Display", serif;
  margin-bottom: 20px;
  letter-spacing: 1.2px;
  color: #f57d26;
}

.cabecera-izquierda {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cabecera h1 {
  margin: 0;
  font-size: 1.8rem;
}

.estadia {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #22221c;
  margin-top: 5px;
}

.fecha-salida {
  font-family: "Manrope", sans-serif;
  font-weight: bold;
  font-size: 18px;
  color: #f57d26;
}

.contenido-paquete {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.imagenes-paquete {
  flex: 1 1 50%;
  position: relative;
}

.imagen-principal {
  position: relative;
}

.imagen-principal img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  display: block;
}

.row {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  z-index: 2;
}

.row.izquierda {
  left: 10px;
}
.row.derecha {
  right: 10px;
}

.miniaturas {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  overflow-x: auto;
}

.linea-inferior {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 25px;
  gap: 20px;
}

.puntos-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* espacio entre puntos */
  align-items: center;
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #333;
}

.puntos-inline span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.puntos-inline i.fa-location-dot {
  color: #f57d26; /* color que combine con el diseño */
  font-size: 16px;
}

.grupo-info .btn-descarga {
  background: #4178b0;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-weight: bold;
  transition: background 0.3s ease;
  display: inline-block;
  margin-top: 5px;
  text-decoration: none;
}

/*
.itinerario .btn-descarga:hover {
  background: #0056b3;
}
*/

.thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 6px;
  transition: border 0.3s ease;
}

.thumb:hover {
  border: 2px solid #007bff;
}

.info-paquete {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(rgb(248, 247, 247), rgba(248, 247, 247, 0.897)),
    url("../assets/main/favicon.png");
  background-size: 300px auto;
  background-position: center;
  background-repeat: no-repeat;
}

.grupo-info h3 {
  font-family: "DM Serif Display", serif;
  margin-bottom: 6px;
  font-size: 18px;
  letter-spacing: 1.2px;
  color: #22221c;
}

.grupo-info a {
  font-family: "Manrope", sans-serif;
  text-decoration: underline;
}

.grupo-info p {
  font-family: "Manrope", sans-serif;
  letter-spacing: 0.7px;
}

.grupo-info.servicios ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-left: 20px; /* o ajustar según tu diseño */
  margin: 0;
}

.grupo-info.servicios ul li {
  font-family: "Manrope", sans-serif;
  list-style: none;
  margin-bottom: 8px;
  font-size: 1rem;
}

.grupo-info.servicios i {
  margin-right: 8px;
  color: #f57d26;
}

.grupo-info.servicios h3 {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

.precio-comprar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 15px 25px;
  background: #f2f2f2;
  border-radius: 10px;
}

.precio {
  font-size: 1.6rem;
}

.separador {
  width: 1px;
  height: 35px;
  background-color: #ccc;
  opacity: 0.5;
}

.linea-alerta-fechas {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
  gap: 15px;
}

.alerta-ultimos-lugares,
.alerta-sin-lugares {
  font-family: "Manrope", sans-serif;
  text-align: right;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: bold;
  color: red;
  width: 80%;
  letter-spacing: 0.8px;
}
.alerta-sin-lugares {
  color: gray;
}

.fechas-tarifas-wrapper {
  margin-top: 20px;
  flex: 1 1 100%;
  max-width: 100%;
  transition: all 0.5s ease;
  overflow: hidden;
}

.btn-descarga {
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  display: inline-block;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  transition: background 0.3s ease;
  width: fit-content;
  letter-spacing: 1px;
}

.btn-descarga {
  background: #007bff;
}

/* Contenedor del botón */
.whatsapp-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
}

/* Botón principal */
.whatsapp-boton {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  text-decoration: none;
  color: #25d366;
  font-size: 2.5rem;
}

/* Ícono de WhatsApp */
.whatsapp-boton i {
  z-index: 2;
}

/* Globo de mensaje */
.whatsapp-mensaje {
  position: absolute;
  bottom: 110%;
  right: 0;
  background: #fff;
  color: #222;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  line-height: 1.1;
  padding: 8px 18px;
  border-radius: 10px;
  width: max-content;
  max-width: 160px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-align: left;
  white-space: normal;
  letter-spacing: 0.5px;
}

/* Punta del globo (triángulo) */
.whatsapp-mensaje::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 10px;
  border-width: 6px;
  border-style: solid;
  border-color: #f0f0f0 transparent transparent transparent;
}

/* Onda expansiva */
.onda {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: onda 1.6s infinite;
  z-index: 1;
}

/* Animación de onda */
@keyframes onda {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.btn-whatsapp i {
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: #fec200;
  color: black;
}

.btn-whatsapp:hover {
  background: #22221c;
  color: #fff;
}

.btn-comprar {
  font-family: "Manrope", sans-serif;
  background: #f57d26;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.7px;
}

.btn-comprar:hover {
  background: #4178b0;
}

.btn-comprar i {
  padding: 5px;
}

.btn-ver-fechas {
  background: #4178b0;
  font-family: "Manrope", sans-serif;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  margin: 10px auto 0; /* centrado horizontal */
  display: block; /* necesario para que margin auto funcione */
  letter-spacing: 0.5px;
}

.fechas-tarifas-wrapper {
  max-width: 100%;
  flex: 1 1 100%;
  margin: 20px auto;
  transition: all 0.5s ease;
  overflow: hidden;
}

/* Oculta inicialmente */
.oculto {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Se muestra cuando tiene la clase activo */
.fechas-tarifas-wrapper.activo {
  max-height: 800px;
  opacity: 1;
  pointer-events: auto;
}

.tabla-fechas {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 16px;
}

.tabla-mobile {
  display: none;
}

.tabla-fechas th,
.tabla-fechas td {
  font-family: "Manrope", sans-serif;
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
}

.tabla-fechas th {
  background-color: #f7f7f7;
  color: #333;
}

/* PAQUETES RELACIONADOS */

.relacionados-section {
  max-width: 90%;
  margin: 40px auto;
  padding: 30px 0;
  border-top: 2px solid #eee;
}

.relacionados-section h2 {
  font-family: "DM Serif Display", serif;
  font-size: 25px;
  margin-bottom: 20px;
  color: #22221c;
  letter-spacing: 1.2px;
}

.relacionados-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* siempre 4 columnas iguales */
  gap: 20px;
  justify-content: center; /* centra si hay menos de 4 paquetes */
  max-width: 1200px; /* opcional: limita ancho total de la sección */
  margin: 0 auto;
}

.paquete-relacionado {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 15px;
  width: 100%; /* ocupa todo el ancho de su columna */
  box-sizing: border-box;
}


.paquete-relacionado img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.paquete-relacionado h3 {
  font-family: "DM Serif Display", serif;
  font-size: 18px;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.paquete-relacionado p {
  font-family: "Manrope", sans-serif;
  margin: 4px 0;
  color: #22221c;
}

.btn-ver-paquete {
  display: inline-block;
  font-family: "Manrope", sans-serif;
  margin-top: 10px;
  padding: 8px 14px;
  background-color: #f57d26;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-ver-paquete:hover {
  background-color: #22221c;
}

@media only screen and (max-width: 768px) {
  .cabecera {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .cabecera-izquierda {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .cabecera h1 {
    font-size: 1.7rem;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
  }

  .estadia {
    font-size: 1rem;
    margin: 0.5rem 0;
    text-align: center;
    width: 100%;
  }

  .fecha-salida {
    font-size: 1.2rem;
    margin-bottom: 0;
    text-align: center;
  }

  .contenido-paquete {
    flex-direction: column;
    gap: 5px;
  }

  .imagenes-paquete {
    order: 1;
    width: 100%;
  }

  .imagen-principal img {
    height: auto;
    aspect-ratio: 4/3;
    object-fit: contain;
  }

  .row {
    font-size: 12px;
    padding: 6px;
  }

  .precio-comprar {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 5px;
  }

  .precio {
    font-size: 1.2rem;
  }

  .btn-comprar {
    font-size: 1rem;
    padding: 8px 12px;
  }

  .alerta-ultimos-lugares,
  .alerta-sin-lugares {
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
    letter-spacing: 0.5px;
  }

  .grupo-info.servicios ul {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 0;
  }

  .fechas-tarifas-wrapper {
    order: 2;
  }

  .info-paquete {
    order: 3;
    background-size: 180px auto;
  }

  .tabla-fechas {
    display: none;
    border: 0;
    font-size: 14px;
  }

  .tabla-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .card-fecha {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
    background-color: #fff;
  }

  .fila-superior {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-family: "Manrope", sans-serif;
  }

  .linea-divisoria {
    border: none;
    border-top: 1px solid #ccc;
    margin: 10px 0;
  }

  .tabla-fechas thead {
    display: none; /* Oculta encabezado para que no se duplique visualmente */
  }

  .tabla-fechas tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .tabla-fechas td {
    display: block;
    padding: 10px 15px;
    border: none;
    text-align: left;
  }

  .tabla-fechas .fila-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .tabla-fechas .fecha,
  .tabla-fechas .precio {
    font-weight: bold;
    color: #333;
  }

  .tabla-fechas .separador {
    height: 1px;
    background-color: #e0e0e0;
    margin: 10px 0;
  }

  .tabla-fechas .boton-comprar {
    text-align: center;
  }

  .boton-comprar .btn-comprar {
    display: inline-block;
    background-color: #dd792e;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  .boton-comprar .btn-comprar i {
    margin-left: 6px;
  }

  .boton-comprar button:hover {
    background-color: #c96b25;
  }

  .relacionados-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 1rem;
    justify-content: center;
  }

  .paquete-relacionado {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .paquete-relacionado img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: cover;
    border-radius: 6px;
  }

  .paquete-relacionado h3 {
    font-size: 1rem;
    margin: 0.3rem 0;
  }

  .paquete-relacionado p {
    margin: 0.2rem 0;
  }

  .btn-ver-paquete {
    display: inline-block;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    margin-top: auto;
  }
}
