#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto; /* ✅ Permite desplazamiento vertical si hace falta */
  padding: 2rem; /* ✅ Asegura espacio en pantallas pequeñas */
  box-sizing: border-box;
}

#popup-box {
  background-color: #090c11;
  padding: 3rem 2rem;
  border-radius: 12px;
  max-width: 90%;
  width: 500px;
  max-height: 100%;
  text-align: center;
  font-family: "Italiana", serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: white;
  box-sizing: border-box;
  overflow-y: auto; /* ✅ Si el contenido excede, solo el popup hace scroll */
}

#popup-box p {
  margin-bottom: 30px;
  font-size: 1.5rem; /* Texto más grande */
  line-height: 1.6;
  color: white; /* Asegura color blanco */
  word-wrap: break-word;
}

#popup-close {
  background-color: #d4af37; /* Amarillo dorado */
  color: #090c11; /* Texto oscuro para contraste */
  font-size: 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

#popup-close:hover {
  background-color: #c39e33;
  transform: scale(1.03);
}

/* Responsive design for mobile screens */
@media (max-width: 480px) {
  #popup-box {
    padding: 2rem 1rem;
    width: 90%;
  }

  #popup-box p {
    font-size: 1.1rem;
  }

  #popup-close {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}
