/* Fondo oscuro semi-transparente que cubre toda la pantalla */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75); /* Oscurece el fondo */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Asegura que quede por encima de todo */
}

/* Contenedor de la imagen y el botón */
.popup-contenido {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  overflow: hidden;
}

/* Estilo para la imagen */
.popup-imagen {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

/* Botón de cerrar (X) */
.btn-cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #ffffff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease;
}

.btn-cerrar:hover {
  background-color: rgba(255, 0, 0, 0.8);
}
