/* Overlay fullpage compatible con Safari */
#eOverlay {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.55);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* Safari fix */

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow: hidden; /* evita scroll buggy en safari */
}

#eOverlay.show {
  opacity: 1;
  pointer-events: all;
}

#ePopup {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: top 0.25s ease;
}

#ePopup img {
  max-width: 80vw;
  max-height: 80vh;
  animation: popupIn 0.35s ease;
}

/* Animación */
@keyframes popupIn {
  from { transform: translateX(-50%) scale(0.85); opacity: 0; }
  to   { transform: translateX(-50%) scale(1); opacity: 1; }
}

.hidden {
  display: none;
}
