/* Estilos del modal */
.modalHG {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Fondo oscuro con opacidad */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Contenedor del GIF */
.modal-body {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Mostrar solo el GIF sin contenedor */
.modal-body img {
  width: 90%;
  max-width: 800px;
  height: auto;
  display: block;
  cursor: pointer;
  border-radius: 10px; /* Opcional: bordes redondeados */
}

/* Botón de cierre (X) dentro del GIF */
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
  color: white;
  border: none;
  font-size: 25px;
  font-weight: bold;
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Hace el botón circular */
  transition: background 0.3s ease;
}

/* Cambio de color al pasar el mouse */
.close:hover {
  background: rgba(34, 85, 8, 0.8); /* Rojo al pasar el cursor */
}

/* Responsivo */
@media (max-width: 768px) {
  .modal-body img {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .modal-body img {
    width: 100%;
    max-width: 100%;
  }

  /* Ajuste del botón de cierre en móviles */
  .close {
    top: 5px;
    right: 5px;
    font-size: 20px;
    width: 30px;
    height: 30px;
  }
}
