/* Popup de convocatoria — <dialog> nativo.
   Reglas clave: no se toca `display` del dialog (el estado cerrado lo maneja
   el navegador), el centrado sale de margin:auto, y el scroll del body se
   bloquea mientras está abierto. */

.site-popup {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 560px);
  max-height: 90vh;
  overflow: visible;
  filter: drop-shadow(0 24px 60px rgba(0, 12, 20, .45));
}

.site-popup::backdrop {
  background: rgba(0, 19, 29, .78);
  backdrop-filter: blur(3px);
}

.site-popup__card {
  position: relative;
  display: flex;
  justify-content: center;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-card, #06202d);
}

.site-popup__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 86vh;
  object-fit: contain;
}

.site-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 19, 29, .72);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s;
}

.site-popup__close:hover,
.site-popup__close:focus-visible {
  background: var(--color-accent, #ff6900);
  color: var(--text-on-accent, #fff);
}

.site-popup__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body.has-modal {
  overflow: hidden;
}

@media (max-width: 640px) {
  .site-popup__card { border-radius: 18px; }
  .site-popup__close { top: 8px; right: 8px; width: 40px; height: 40px; }
}
