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

/* === RESET BÁSICO === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Arial", sans-serif;
  background-color: #fff; /* color de fondo claro */
  color: #22221c; /* color de texto principal */
  scroll-behavior: smooth;
}

body.flyer-activo {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font-size: 100%;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

/* NAV */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  color: white;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}

.nav.hidden {
  transform: translateY(-100%);
}

.logo img {
  height: 60px;
  width: auto;
}

.contacto,
.soporte {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.contacto a,
.soporte {
  font-family: "Manrope", sans-serif;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contacto i {
  color: #f57d26;
  font-size: 20px;
  animation: pulse 2s infinite;
}

.soporte i {
  color: #0a0a0a;
  font-size: 20px;
  padding: 0 8px;
  animation: pulse 2s infinite;
}

.soporte {
  font-family: "Manrope", sans-serif;
  background: #f57d26;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/* FLYER PRINCIPAL */

.flyer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: all;
}

.blur-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 34, 34, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.flyer-content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 600px;
  height: 80vh;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flyer-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.flyer-encabezado {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}

.flyer-encabezado h2 {
  font-family: "DM Serif Display", serif;
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 4rem;
  margin: 0;
}

.flyer-encabezado .flyer-estadia {
  margin-top: 5px;
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.flyer-inferior {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flyer-inferior .fila1 {
  font-family: "Manrope", sans-serif;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.5rem;
}

.flyer-inferior .fila2 {
  font-family: "Manrope", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
}

.flyer-inferior .fila2 p {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
}

.flyer-inferior a {
  background: #f57d26;
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5em;
  transition: background 0.3s ease;
}

.flyer-inferior a:hover {
  background: #4178b0;
  color: #fff;
}

.flyer-content .cerrar {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f57d26;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 3;
}

body.flyer-activo {
  overflow: hidden;
}

/* SECCION BANNER */

.banner-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.banner-strip {
  display: flex;
  width: max-content;
}

.banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 8px 16px;
  z-index: 10;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
}

.banner-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.banner-btn.left {
  left: 10px;
}

.banner-btn.right {
  right: 10px;
}

.banner-strip img {
  width: 100vw;
  height: 350px;
  max-height: 500px;
  object-fit: cover;
  flex-shrink: 0;
}

/****************/

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

.seccion h2 {
  font-family: "DM Serif Display", serif;
  font-size: 2rem;
  letter-spacing: 1.4px;
  margin-bottom: 1rem;
}

.estadia {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #4178b0;
  margin: 8px 0 4px;
}

.linea-seccion {
  width: 60%;
  margin: 1rem auto; /* auto en los lados horizontal para centrar */
  border: none;
  border-top: 2px solid #f57d26; /* o el color que prefieras */
}

/* DESTACADOS */

.destacados-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  height: 400px;
  margin: 0 auto;
  left: -45px;
  min-height: 360px; /* evita salto de layout */
  position: relative;
  overflow: visible;
}

.tarjeta-destacado {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Distribuye el contenido verticalmente */
  width: 27%;
  height: 380px; /* altura uniforme para todas las tarjetas */
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  box-sizing: border-box;
  text-align: center;
  position: absolute;
  opacity: 0;
  transform-origin: center bottom;
  margin-top: 15px;
  transition: transform 0.3s ease;
}

.imagen-contenedor {
  position: relative;
  width: 100%;
  height: 60%; /* porcentaje del total de la tarjeta */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center; /* centra la imagen vertical y horizontalmente */
}

.tarjeta-destacado img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* cubre el contenedor sin deformarse */
  object-position: center; /* centra la imagen */
  transition: transform 0.4s ease;
}

.tarjeta-destacado:hover img {
  transform: scale(1.05);
}

.imagen-contenedor h3 {
  position: absolute;
  font-family: "DM Serif Display", serif;
  bottom: 0;
  width: 100%;
  margin: 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1.2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.fecha-salida {
  margin: 20px 0 1px;
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
}

.info-extra {
  display: flex;
  font-family: "Manrope", sans-serif;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.precio {
  margin: 0;
  color: #000;
  font-family: "Manrope", sans-serif;
  font-weight: bold;
  text-align: left;
  width: 50%;
}

.btn-info {
  font-family: "Manrope", sans-serif;
  background: #f57d26;
  color: #fff;
  padding: 8px 13px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: transform 0.3s ease, background 0.3s ease;
  text-align: right;
}

.btn-info:hover {
  background: #22221c;
  transform: scale(1.05);
}

#botones-destacado {
  text-align: center;
  margin-top: 10px;
}

#botones-destacado button {
  background: #f57d26;
  color: #fff;
  border: none;
  padding: 8px 10px;
  font-size: 0.7rem;
  margin: 0 5px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

#botones-destacado button:hover {
  background: #2f5d85;
}

/* PROMO ULTIMO MOMENTO */

.promos-container-wrapper {
  overflow: hidden;
  width: 100%;
  margin-top: 20px;
  padding: 1rem 0;
}

.promos-container {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.tarjeta-promo {
  flex: 1 0 300px;
  max-width: 300px;
  background: #fff;
  border-radius: 6px;
  padding: 0 0 20px 0;
  transition: transform 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.tarjeta-promo:hover {
  transform: scale(1.05);
}

.tarjeta-promo img {
  height: 180px; /* ajusta según necesidad */
  object-fit: cover;
  width: 100%;
}

.tarjeta-promo h3 {
  font-family: "DM Serif Display", serif;
  font-size: 1.1rem;
  min-height: 28px; /* dos líneas de texto aprox. */
  margin: 10px 0;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.tarjeta-promo p {
  font-family: "Manrope", sans-serif;
  margin: 4px 0;
  letter-spacing: 1px;
}

.tarjeta-promo a {
  margin-top: auto;
  display: inline-block;
  padding: 8px 16px;
  background-color: #f57d26;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
  align-self: center;
}

.tarjeta-promo a:hover {
  background-color: #22221c;
}

/* TODOS LOS PAQUETES */

.todos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.paquetes h2 {
  padding: 0.6rem 2rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #22221c;
}

.buscador-meses {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.buscador-meses select {
  padding: 0.8rem 3rem;
  background: #4178b0;
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: 1px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.buscador-meses option {
  background: #fff;
  color: #4178b0;
}

.tarjeta-paquete {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  box-sizing: border-box;
}

.tarjeta-paquete img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 8px;
}

/* Contenedor interno que ocupa todo el espacio sobrante */
.contenido-tarjeta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* distribuye uniformemente el contenido */
}

.contenido-tarjeta h3 {
  font-family: "DM Serif Display", serif;
  font-size: 18px;
  text-transform: uppercase;
  margin: 0 0 8px;
  flex-shrink: 0; /* no encoge */
}

.contenido-tarjeta p {
  margin: 0 0 8px;
  text-align: center;
}

/* Botón siempre al final */
.tarjeta-paquete a {
  margin-top: auto;
  align-self: center;
  background: #f57d26;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
}

.tarjeta-paquete a:hover {
  background: #22221c;
}

.paginacion-botones {
  text-align: center;
  margin-top: 20px;
}

.paginacion-botones button {
  padding: 6px 12px;
  margin: 0 4px;
  background-color: #4178b0;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.paginacion-botones button.activo {
  background-color: #22221c;
}

/* FOOTER */

#footer {
  background: #222;
  color: #fff;
  padding: 40px 20px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 90px;
  width: auto;
}

.footer-contacto {
  text-align: center;
  line-height: 1.6;
}

.footer-ubicacion i {
  color: #f57d26;
  margin-right: 5px;
}

.footer-ubicacion p:first-child {
  font-family: "Manrope", sans-serif;
  font-weight: bold;
  color: #f57d26;
  margin-bottom: 5px;
}

.footer-telefono a {
  font-family: "Manrope", sans-serif;
  color: #fff;
  text-decoration: none;
}

.footer-telefono a:hover {
  text-decoration: underline;
}

.footer-redes {
  display: flex;
  gap: 15px;
}

.footer-redes a {
  color: #f57d26;
  font-size: 30px;
  transition: transform 0.3s ease;
}

.footer-redes a:hover {
  transform: scale(1.2);
}

.footer-linea {
  border: none;
  border-top: 1px solid #555;
  margin: 30px 0;
}

.footer-copy {
  text-align: center;
  font-size: 14px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px 20px;
  text-align: center;
}

.footer-copy a {
  font-family: "Manrope", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-footer {
  height: 20px;
  width: auto;
  display: block;
}

/* Responsive: solo íconos en móviles */
@media screen and (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 17px 10px 17px;
  }

  .logo {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .logo img {
    width: 160px; /* más pequeño que el desktop */
    height: auto;
  }

  .contacto {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 8px;
  }

  .contacto a {
    font-size: 0; /* solo iconos */
  }

  .contacto a i {
    margin-top: -30px;
    font-size: 20px;
  }

  .soporte {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
    padding: 0;
    width: auto; /* o simplemente quitá el width: 100%; */
    align-self: center; /* ayuda a centrar dentro de nav si tiene column */
  }

  .soporte a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    background: #f57d26;
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
  }

  /* BANNER */

  .banner-strip img {
    height: 220px; /* más bajo en mobile */
  }

  .banner-btn {
    font-size: 1.5rem;
    padding: 6px 12px;
  }

  .banner-btn.left {
    left: 5px;
  }

  .banner-btn.right {
    right: 5px;
  }

  /* FLYER */

  .flyer-content {
    width: 90%;
    height: 60vh;
    max-width: none;
    border-radius: 8px;
  }

  .flyer-encabezado h2 {
    margin-top: 3rem;
    letter-spacing: 1.3px;
    font-size: 2rem;
  }

  .flyer-encabezado .flyer-estadia {
    font-size: 1rem;
  }

  .flyer-inferior {
    padding: 15px 10px;
    gap: 10px;
  }

  .flyer-inferior .fila1 {
    font-size: 1rem;
  }

  .flyer-inferior .fila2 p {
    font-size: 1.1rem;
  }

  .flyer-inferior a {
    font-size: 1.1rem;
    padding: 6px 12px;
  }

  .flyer-content .cerrar {
    top: 6px;
    right: 6px;
    font-size: 16px;
    padding: 5px 9px;
  }

  /* DESTACADOS */

  .seccion {
    padding: 30px 15px;
  }

  .seccion h2 {
    font-size: 1.5rem;
    line-height: 1.4;
    padding: 0 10px;
  }

  .linea-seccion {
    width: 80%;
  }

  .destacados-container {
    position: relative;
    height: 420px;
    max-width: 100%;
    margin: 0 auto;
  }

  .tarjeta-destacado {
    width: 46%; /* ligeramente menor para que entren 2 con separación */
    min-height: 250px;
    position: absolute;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .imagen-contenedor {
    height: 55%;
  }

  .imagen-contenedor img {
    height: 100%;
  }

  .imagen-contenedor h3 {
    font-size: 1rem;
    padding: 6px;
  }

  .estadia,
  .fecha-salida {
    font-size: 0.9rem;
    margin: 6px 0 2px;
  }

  .info-extra {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }

  .precio {
    width: 100%;
    text-align: center;
    font-size: 1rem;
  }

  .btn-info {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  #botones-destacado {
    margin-top: 0; /* separación natural sin hacks */
    position: relative;
    text-align: center;
    z-index: 2;
  }

  #botones-destacado button {
    font-size: 0.65rem;
    padding: 6px 9px;
    margin: 0 3px;
  }

  /* PROMOCIONES */

  .promos-container {
    flex-wrap: nowrap; /* sin wrap, para el carrusel */
    gap: 10px;
    width: max-content; /* para que el ancho sea el sumatorio de tarjetas */
    align-items: stretch;
  }

  .tarjeta-promo {
    flex: 0 0 200px; /* ancho fijo para cada tarjeta */
    max-width: 200px;
    padding-bottom: 16px;
    display: flex;
    flex-direction: column;
  }

  .tarjeta-promo img {
    height: 130px;
  }

  .tarjeta-promo h3 {
    font-size: 1rem;
    min-height: auto;
    margin: 8px 0;
  }

  .tarjeta-promo p {
    font-size: 0.9rem;
    margin: 3px 0;
  }

  .tarjeta-promo a {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  /* TODOS LOS PAQUETES */

  .todos-container {
    grid-template-columns: 1fr 1fr; /* dos por fila */
    gap: 10px;
  }

  .tarjeta-paquete {
    padding: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .tarjeta-paquete img {
    height: 130px;
  }

  .contenido-tarjeta {
    flex: 1; /* ocupar espacio disponible */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* distribuir contenido uniformemente */
  }

  .contenido-tarjeta h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .contenido-tarjeta p {
    margin-bottom: 8px;
  }

  .tarjeta-paquete a {
    font-size: 0.85rem;
    padding: 5px 9px;
    margin-top: auto; /* siempre abajo */
  }

  .buscador-meses select {
    font-size: 1rem;
    padding: 0.6rem 2rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    justify-content: center;
    margin-bottom: 15px;
  }

  .footer-contacto {
    width: 100%;
    display: flex; /* 🔹 Añadido */
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* 🔹 Asegura alineación vertical superior */
    gap: 4%; /* 🔹 Espacio entre los dos bloques */
    margin-bottom: 20px;
  }

  .footer-ubicacion,
  .footer-telefono {
    width: 100%;
    box-sizing: border-box;
  }

  .footer-redes {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    gap: 30px;
  }

  .footer-redes a {
    font-size: 28px;
  }

  .footer-copy {
    line-height: 20px;
    margin-top: 30px;
  }
}
