/* ===== Accesibilidad y utilidades compartidas ===== */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 300;
  background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 10px;
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { left: 12px; }

:focus-visible { outline: 3px solid #39a0ff; outline-offset: 2px; }
.upload:focus-within { outline: 3px solid #39a0ff; outline-offset: 2px; }

/* Campo trampa: fuera de la pantalla, pero presente en el HTML */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.link-btn {
  background: none; border: 0; padding: 0; margin: 0; font: inherit;
  color: var(--blue); text-decoration: underline; cursor: pointer;
}

.btn-block { width: 100%; margin-top: 0; }
.fs-min { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.fs-min legend { padding: 0; margin-bottom: 10px; }
.fs-end { margin-bottom: 0; }

.hint-center { font-size: 12px; color: var(--gray); text-align: center; }
.err-msg { color: var(--danger); font-size: 13px; font-weight: 600; min-height: 16px; margin: 10px 0 0; }

/* Modales */
body.modal-open { overflow: hidden; }
.modal-box:focus { outline: none; }
.modal-body:focus-visible { outline: 3px solid #39a0ff; outline-offset: -3px; }

/* Tablas del panel: en móvil se convierten en tarjetas */
@media (max-width: 720px) {
  body.admin .card-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  }
  body.admin .card-table tr {
    display: block; border-bottom: 2px solid #e4e9f0; padding: 10px 0;
  }
  body.admin .card-table td {
    display: block; border: 0; padding: 6px 12px;
  }
  body.admin .card-table td::before {
    content: attr(data-label); display: block; font-size: 11px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase; color: var(--gray); margin-bottom: 2px;
  }
}

/* Mantiene el ritmo de los márgenes en la página de inscripción */
.form-head { flex-wrap: wrap; }