/* ══════════════════════════════════════════
   MODAL — imagen con marco neón
══════════════════════════════════════════ */

.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.img-modal.open {
  display: flex;
}

/* ── Contenedor de la imagen ── */
.img-modal-box {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #00c6ff;
  box-shadow:
    0 0  8px  #00c6ff,
    0 0  22px #00c6ff,
    0 0  55px rgba(0, 198, 255, .55),
    0 0 110px rgba(0, 198, 255, .25);
  animation: modalIn .25s cubic-bezier(.34,1.3,.64,1) both;
}

@keyframes modalIn {
  from { transform: scale(.88); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Imagen ── */
.img-modal-box img {
  display: block;
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
}

/* ── Botón cerrar ── */
.img-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(5, 5, 8, .8);
  border: 1.5px solid #00c6ff;
  color: #00c6ff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, box-shadow .2s;
  z-index: 1;
}

.img-modal-close:hover {
  background: rgba(0, 198, 255, .18);
  box-shadow: 0 0 12px rgba(0, 198, 255, .5);
}
