/*-----------------------------------*\
  #MODAL POPUP
\*-----------------------------------*/

/* Modal overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease-in;
}

/* Animación de entrada */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal activo */
.modal.show {
  display: block;
}

/* Contenido del modal (imagen) */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  animation: zoomIn 0.3s ease-in;
}

/* Animación de zoom */
@keyframes zoomIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* Botón de cerrar */
.modal-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: var(--white);
  font-size: 50px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10000;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--gold-crayola);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
  }
  
  .modal-close {
    top: 10px;
    right: 20px;
    font-size: 40px;
  }
}
