/* Fondo oscuro del modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  overflow: auto;
  padding-top: 50px;
}

/* Contenido del modal */
.modal-contenido {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
  position: relative;
  text-align: center;
  animation: aparecer 0.3s ease-in-out;
}

/* Animación de entrada */
@keyframes aparecer {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Botón cerrar */
.cerrar {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
}
.cerrar:hover {
  color: #000;
}

/* Imagen responsiva */
.modal-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.modal p {
    color: #000;
    font-size: 18px;
}

/* Botón rojo */
.btn-modal {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #dc3545;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}
.btn-modal:hover {
  background-color: #c82333;
}
