/* Botón para abrir modal */
.boton-modal {
  background-color: #000;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-size: 16px;
  padding: 12px 24px;
  transition: background-color 0.3s;
}

.boton-modal:hover {
  background-color: #000;
}

/* Estilos para el modal */
.modal {
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9999;
}

.modal__container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #000;
  max-height: 80vh; /* Limita la altura al 80% del viewport */
  max-width: 680px;
  overflow-y: auto; /* Permite scroll vertical cuando el contenido es mayor que max-height */
  padding: 30px;
}

.modal__header {
  align-items: center;
  background-color: white;
  background-image: none;
  display: flex;
  justify-content: space-between;
}

.modal__title {
  background-color: white;
  color: #baa15f;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0;
  margin-top: 0;
}

.modal__close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.5rem;
}

.modal__content {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  margin-top: 20px;
  /* Altura máxima para contenido extenso */
  max-height: 60vh; /* El contenido dentro del modal también puede tener su propio scroll */
  overflow-y: auto; /* Habilita scroll solo cuando es necesario */
  padding-right: 10px; /* Espacio para la barra de scroll */
}

.modal__content p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.modal__content ul {
  list-style-type: disc;
  margin-bottom: 10px;
  margin-left: 10px;
}

.modal__content a {
  color: #000;
}

.modal__content strong {
  font-weight: 700;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
}

.modal__btn {
  background-color: #353535;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
  padding: 10px 15px;
}

.modal__btn:hover {
  background-color: #000;
}

.info-box {
  background-color: #eeeeee;
  border-left: 4px solid #b9b9b9;
  margin: 20px 0;
  padding: 10px 15px;
}
