/*
  El overlay oscuro que cubre toda la pantalla.
  Usa flexbox para centrar el contenido (el pop-up).
*/
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  /* visibility: hidden; */
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.welcome-modal {
  width: 442px;
  height: 736px;
  background-color: #a0813f;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  background-image: url(../../img/pop-ups/welcome/background-welcome.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2vw 1.8vw;
  font-family: "Poppins Regular";
}

.popup-overlay.active .welcome-modal {
  transform: scale(1);
}

.welcome-modal .modal-title {
  font-size: max(4.5vw, 24px);
  font-weight: 700;
  color: white;
  line-height: 0.5;
  letter-spacing: -0.5px;
  margin: 0;
}

.welcome-modal .modal-subtitle {
  font-size: max(2.9vw, 18px);
  font-weight: 600;
  color: white;
  margin: 0;
  margin-top: 0.7vh;
  margin-bottom: 1.5vh;
  line-height: 1.2;
}

.welcome-modal .modal-description {
  text-align: justify;
  font-size: max(0.92vw, 14px);
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  margin-bottom: 2rem;
  font-weight: 400;
}

.amenities-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amenities-flex .amenity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0.5vw;
  background: #000000;
  transition: background 0.3s ease, transform 0.2s ease;
  border-radius: 20px;
  justify-content: center;
  width: 11%;
}

.amenities-flex .amenity-item img {
  width: 2vw;
  height: 1.4vw;
}

.amenities-flex .amenity-item span {
  font-size: max(0.6vw, 10px);
  line-height: 1.2;
  color: #d0d0d0;
  text-align: center;
}

.amenities-flex .amenity-item.xs {
  width: 19%;
}

.amenities-flex .amenity-item.odd {
  width: 15.6%;
}

.amenities-flex .amenity-item.xl {
  width: 32%;
}

.content-button button {
  margin: 2rem 0 1rem;
  width: 100%;
  background-color: #6F6B4D;
  border-radius: 8px;
  padding: 0.8rem;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.content-button button,
.content-button span {
  font-size: 14px;
  color: #ffff;
}

@media (max-width: 1440px) {
  .welcome-modal {
    width: 30dvw;
    height: 100dvh;
  }

  .content-button button {
    margin-bottom: 0;
  }
}

@media (max-width: 1280px) {

  /* Ajustes para 1024–1280px */
  .welcome-modal {
    width: 35dvw;
  }
}

@media (max-width: 1024px) {

  /* Ajustes tablet */
  .welcome-modal {
    width: 40dvw;
  }
}

@media (max-width: 768px) {

  .welcome-modal {
    width: 100%;
    height: 100%;
    padding: 1.5rem 2rem;
  }

  .welcome-modal .modal-title {
    font-size: 5rem;
  }

  .welcome-modal .modal-subtitle {
    font-size: 3rem;
  }

  .welcome-modal .modal-description {
    font-size: 1rem;
  }

  .amenities-flex .amenity-item {
    padding: 0.8rem;
    width: 11%;
  }

  .amenities-flex .amenity-item.odd {
    width: 15.5%;
  }

  .amenities-flex .amenity-item.xl {
    width: 32%;
  }

  .amenities-flex .amenity-item img {
    width: 2rem;
    height: auto;
  }

  .amenities-flex .amenity-item img.xs {
    width: 1.2rem;
  }

  .amenities-flex .amenity-item img.xl {
    width: 3.2rem;
  }

  .amenities-flex .amenity-item span {
    font-size: 0.65rem;
  }

  .content-button button,
  .content-button span {
    font-size: 1.8rem;
    color: #ffff;
  }
}

@media (max-width: 480px) {

  .popup-overlay {
    padding: 0;
  }

  .welcome-modal {
    width: 100%;
    height: 100%;
  }

  .welcome-modal .modal-title {
    font-size: 5rem;
  }

  .welcome-modal .modal-subtitle {
    font-size: 2.6rem;
  }

  .welcome-modal .modal-description {
    font-size: 1rem;
  }

  .amenities-flex .amenity-item {
    width: 11%;
    padding: 0.50rem;
  }

  .amenities-flex .amenity-item img {
    width: 1.6rem;
  }

  .amenities-flex .amenity-item img.xs {
    width: 1rem;
  }

  .amenities-flex .amenity-item img.xl {
    width: 2.6rem;
  }

  .amenities-flex .amenity-item span {
    font-size: 0.6rem;
  }
}