/* Popup Overlay */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  overflow: hidden;
  padding-top: 10%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  justify-content: center;
  align-items: center;
}

/* Contenido del popup */
.popup-content {
  display: flex;
  flex-direction: column;
  background: white;
  max-width: 800px;
  max-height: 660px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  width: 90%;
  margin: 0 auto;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.close-btn:hover {
  opacity: 1;
}

.popup-body {
  display: flex;
  height: 100%;
  width: 100%;
}

/* Contenido de la imagen */
.image-container-popup {
  flex: 1;
  height: inherit;
  overflow: hidden;
  position: relative;
}
.image-container-popup-mobile {
  display: none;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.image-container-popup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenido del texto */
.content-container {
  flex: 1;
  background-image: url("https://vallemistico.studio10.com.mx/wp-content/uploads/2025/09/background_boton_popup.jpg");
  background-size: cover;
  background-position: center;
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  position: relative;
}

.logo {
  background-color: #ffffff;
  text-align: center;
  margin-bottom: 1.5rem;
  height: 30%;
}

.logo svg {
  height: 120%;
  margin-top: -17px;
}

.logo h2 {
  font-size: 1.8rem;
  color: #d4c1a8;
  font-weight: normal;
  margin-bottom: 0.2rem;
}

.logo p {
  font-size: 0.9rem;
  color: #d4c1a8;
}

.info-text {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #f5f5f5;
}

.info-text ul {
  list-style: none;
  text-align: left;
  margin-top: 1rem;
}

.info-text li {
  margin: 0.5rem 0;
}

.reserve-btn {
  background-color: #d4c1a8;
  color: #333;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: bold;
  margin: 0 auto;
  display: block;
}

.popup-down {
  text-align: center;
  margin: 3rem;
}
.popup-down p {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 21px;
  color: #ad9b7c;
}

.popup-down .bold {
  font-size: 21px;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: bold;
  line-height: unset;
  margin-bottom: 0px;
}
/* Botón principal */
#popup-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: #ad9b7c; /* Color WordPress admin */
  color: white;
  text-decoration: none;
  font-size: 21px;
  border: 1px solid transparent;
  transition: background-color 0.2s;
  align-self: center;
}

#popup-button:hover {
  background-color: transparent;
  border: 1px solid #fff;
}
/* Botón de cerrar */
#popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 35px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s;
}

#popup-close:hover {
  color: #333;
}

/* Mostrar el popup */
#popup.active {
  opacity: 1;
  visibility: visible;
}
#popup.active #popup-content {
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}
body.popup-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}
/* Responsive Design */
@media (max-width: 1390px) {
	.popup{
		padding-top:1%;
	}
  .popup-content {
    height: 615px;
  }
  .popup-down {
    text-align: center;
    margin: 3rem;
  }
  .popup-down p {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: #ad9b7c;
  }

  .popup-down .bold {
    font-size: 18px;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-weight: bold;
    line-height: unset;
    margin-bottom: 0px;
  }
}
/* Responsive Design */
@media (max-width: 768px) {
  .image-container-popup-mobile {
    display: contents;
  }
  .image-container-popup {
    display: none;
  }
  .popup-content {
    width: 95%;
    height: 90vh;
    border-radius: 8px;
  }
  .popup-body {
    flex-direction: column;
    overflow-y: auto;
  }

  .image-container-popup-mobile {
    height: 180px;
  }

  .image-container-popup img {
    height: 100%;
  }

  .content-container {
    text-align: center;
  }

  .logo h2 {
    font-size: 1.4rem;
  }

  .info-text {
    font-size: 0.9rem;
  }

  .reserve-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }

  #popup-button {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .popup-content {
    width: 90%;
  }
  .popup-content {
    max-height: 770px;
  }

  .logo {
    margin-bottom: 1rem;
  }

  .logo svg {
    width: 100px;
  }

  .logo h2 {
    font-size: 1.2rem;
  }

  .info-text {
    font-size: 0.8rem;
  }

  .reserve-btn {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
}
