/* Overlay del popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999; /* Por encima de las cookies */
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  
  
}

/* Contenedor del contenido */
.popup-content {
  background-image: url('../img/eventos/alcachofa1.png'); 
  background-size: contain;
  background-position: center;
  width: 80%;
  max-width: 300px;
  height: 60%; /* Se aumenta la altura */
  max-height: 70%; /* Restricción para pantallas más pequeñas */
  padding: 20px;
  color: white;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: auto; /* Permite scroll si el contenido es muy largo */
}



/* Mostrar el popup */
.popup-overlay.show {
  visibility: visible;
  opacity: 1;
}

/* Fondo semitransparente para el texto */
.popup-text {
  background: #164968; /* Fondo gris semitransparente */
  padding: 20px;
  border-radius: 10px; /* Bordes redondeados para un efecto más elegante */
  display: inline-block; /* Ajusta el tamaño al contenido */
  max-width: 90%; /* Limita el ancho en dispositivos pequeños */
  margin-top: 80px;
  text-align: center; /* Centra el contenido del texto */
}

.popup-text h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: white; /* El texto del título resalta sobre el fondo */
}

.popup-text p {
  font-size: 1.2em;
  margin: 0;
  color: white; /* El texto del párrafo también resalta */
  font-weight: bolder;
}



/* Botón de cierre */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: red;
  border: 2px solid black;
  border-radius: 50%;
  color: black;
  font-size: 18px;
  cursor: pointer;
  padding: 5px 10px;
}
