/* Arenas 360 — Capa visual del panel (app React compilada).
   Solo estilos: no cambia funciones ni datos. Ámbito: Gestión de eventos
   (.exact-eventos-page). Se carga desde static/index.html. */

:root {
  --a3-navy: #0b4789;
  --a3-navy-700: #083a70;
  --a3-navy-900: #061f3d;
  --a3-gold: #ffca7d;
  --a3-gold-700: #e9a94a;
  --a3-ink: #0f172a;
  --a3-muted: #64748b;
  --a3-line: #e2e8f0;
  --a3-tint: #f5f7fb;
}

/* ── Cabecera ─────────────────────────────────────── */
body .exact-eventos-page { gap: 20px; }
body .exact-eventos-page .page-header.exact-eventos-hero {
  position: relative; overflow: hidden;
  padding: 30px 32px; border: 0; border-radius: 20px;
  background:
    radial-gradient(600px 260px at 92% 0%, rgb(255 202 125 / .18), transparent 60%),
    linear-gradient(150deg, var(--a3-navy) 0%, var(--a3-navy-700) 55%, var(--a3-navy-900) 100%);
  box-shadow: 0 18px 40px rgb(6 31 61 / .22);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; flex-wrap: wrap;
}
body .exact-eventos-page .page-header.exact-eventos-hero::after {
  content: ""; position: absolute; right: -120px; top: -140px; width: 380px; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .08); box-shadow: 0 0 0 50px rgb(255 255 255 / .025); pointer-events: none;
}
body .exact-eventos-hero-text { position: relative; z-index: 1; }
body .exact-eventos-page .page-header h1 {
  margin: 0; color: #fff; font-family: "Outfit", "Helvetica Neue", Arial, sans-serif; font-style: italic;
  font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(26px, 3vw, 36px); line-height: 1;
}
body .exact-eventos-subtitle { color: rgb(255 255 255 / .78) !important; margin: 10px 0 14px !important; font-size: 15px; }
body .exact-eventos-meta { gap: 8px; font-size: 12px; }
body .exact-eventos-meta span { color: #fff; }
body .exact-eventos-meta span:nth-child(2) { display: none; }
body .exact-eventos-meta span:not(:nth-child(2)) {
  padding: 5px 12px; border-radius: 999px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .16);
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 11px;
}

/* Botones de la cabecera: secundarios en contorno claro, "Crear" en dorado */
body .exact-eventos-head-actions { position: relative; z-index: 1; gap: 8px; }
body .exact-eventos-head-actions .exact-navy-btn,
body .exact-eventos-head-actions .exact-slate-btn {
  height: 38px; padding: 0 16px; border-radius: 10px; font-size: 12px; font-weight: 600;
  background: rgb(255 255 255 / .08); color: #fff; border: 1px solid rgb(255 255 255 / .28);
  font-family: Oswald, sans-serif !important; text-transform: uppercase !important; letter-spacing: .08em !important; box-shadow: none;
  font-size: 12px !important; font-weight: 500 !important;
  display: inline-flex; align-items: center; gap: 7px; transition: background .15s, border-color .15s, transform .15s;
}
body .exact-eventos-head-actions .exact-navy-btn:hover,
body .exact-eventos-head-actions .exact-slate-btn:hover { background: rgb(255 255 255 / .18); border-color: #fff; transform: translateY(-1px); }
body .exact-eventos-head-actions .exact-gold-btn {
  height: 38px; padding: 0 18px; border-radius: 10px; font-size: 12px;
  background: var(--a3-gold); color: var(--a3-navy-900); border: 0;
  font-family: Oswald, sans-serif !important; text-transform: uppercase !important; letter-spacing: .08em !important; font-weight: 600 !important;
  font-size: 12px !important; box-shadow: 0 6px 16px rgb(255 202 125 / .35); display: inline-flex; align-items: center;
}
body .exact-eventos-head-actions .exact-gold-btn:hover { background: #ffd699; transform: translateY(-1px); }

/* ── Filtros ──────────────────────────────────────── */
body .exact-eventos-filters {
  padding: 16px 18px; border-radius: 16px; border: 1px solid var(--a3-line); background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / .04); align-items: end;
}
body .exact-eventos-filters label { font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 500; color: var(--a3-muted); }
body .exact-eventos-filters select,
body .exact-eventos-filters input {
  height: 44px; border-radius: 12px; border: 1px solid var(--a3-line); background: var(--a3-tint);
  font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--a3-ink);
}
body .exact-eventos-filters select:focus,
body .exact-eventos-filters input:focus { border-color: var(--a3-navy); box-shadow: 0 0 0 4px rgb(11 71 137 / .1); background: #fff; }
body .exact-eventos-filters button {
  height: 44px; border-radius: 12px; border: 0; background: var(--a3-navy); color: #fff;
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; font-size: 13px;
}
body .exact-eventos-filters button:hover { background: var(--a3-navy-700); }

/* ── Tabla ────────────────────────────────────────── */
body .exact-eventos-table { border-radius: 18px; border: 1px solid var(--a3-line); box-shadow: 0 1px 2px rgb(15 23 42 / .04); }
body .exact-eventos-table table { border-collapse: separate; border-spacing: 0; }
body .exact-eventos-table th {
  background: #fff; color: var(--a3-muted); font-family: Oswald, sans-serif; text-transform: uppercase;
  letter-spacing: .12em; font-size: 11px; font-weight: 500; padding: 16px 14px; border-bottom: 2px solid var(--a3-ink);
}
body .exact-eventos-table td { padding: 16px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: #334155; }
body .exact-eventos-table tbody tr { transition: background .15s; }
body .exact-eventos-table tbody tr:hover td { background: #fafbfd; }
body .exact-eventos-table tbody tr:last-child td { border-bottom: 0; }

/* Franja lateral según el estado del evento */
body .exact-eventos-table tbody tr td:first-child { position: relative; padding-left: 22px; }
body .exact-eventos-table tbody tr td:first-child::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: #cbd5e1;
}
body .exact-eventos-table tbody tr:has(.estado-abierto) td:first-child::before { background: #16a34a; }
body .exact-eventos-table tbody tr:has(.estado-iniciado) td:first-child::before { background: #dc2626; }
body .exact-eventos-table tbody tr:has(.estado-cerrado) td:first-child::before { background: var(--a3-gold-700); }
body .exact-eventos-table tbody tr:has(.estado-finalizado) td:first-child::before { background: var(--a3-navy); }
body .exact-eventos-table tbody tr:has(.estado-borrador) td:first-child::before { background: #94a3b8; }

/* Nombre del evento y etiqueta Global/Organización */
body .exact-eventos-table td:first-child { min-width: 260px; font-weight: 600; color: var(--a3-ink); font-size: 14.5px; line-height: 1.35; }
body .exact-eventos-table td:first-child .badge {
  margin-left: 8px !important; padding: 2px 8px; border-radius: 6px; vertical-align: 1px;
  background: #fff7eb; color: #a16207; border: 1px solid #fde7c2;
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 500;
}

/* Estados */
body .exact-eventos-table .badge-estado {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-family: Oswald, sans-serif; letter-spacing: .1em; font-size: 11px; font-weight: 500; border: 0;
  background: #f1f5f9; color: #475569;
}
body .exact-eventos-table .badge-estado::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
body .exact-eventos-table .estado-abierto { background: #e7f6ec; color: #15803d; }
body .exact-eventos-table .estado-iniciado { background: #fee2e2; color: #b91c1c; }
body .exact-eventos-table .estado-cerrado { background: #fff4e0; color: #b45309; }
body .exact-eventos-table .estado-finalizado { background: #e8eef7; color: var(--a3-navy); }
body .exact-eventos-table .estado-borrador { background: #f1f5f9; color: #64748b; }
body .exact-eventos-table .estado-cancelado,
body .exact-eventos-table .estado-suspendido { background: #fef2f2; color: #991b1b; }

/* Fechas y pruebas: sin cortes de línea, cifras alineadas */
body .exact-eventos-table td:nth-last-child(2),
body .exact-eventos-table td:nth-last-child(3),
body .exact-eventos-table td:nth-last-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }
body .exact-eventos-table td:nth-last-child(2) { font-weight: 600; color: var(--a3-ink); }

/* Acciones */
body .exact-eventos-table th:last-child, body .exact-eventos-table td:last-child { min-width: 0; width: 1%; white-space: nowrap; }
body .exact-eventos-actions { gap: 6px; flex-wrap: nowrap; }
body .exact-eventos-actions .exact-icon-btn {
  width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--a3-line); color: var(--a3-navy);
  transition: background .15s, border-color .15s, color .15s;
}
body .exact-eventos-actions .exact-icon-btn:hover { background: var(--a3-navy); border-color: var(--a3-navy); color: #fff; }
body .exact-eventos-actions .chip { border-radius: 8px; font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
body .exact-eventos-actions .chip-open { background: var(--a3-gold); color: var(--a3-navy-900); border-color: transparent; }

/* Menú de acciones (⋮) */
body .eventos-actions-menu .eventos-menu { border-radius: 14px; border: 1px solid var(--a3-line); box-shadow: 0 18px 40px rgb(15 23 42 / .14); padding: 6px; }
body .eventos-actions-menu .eventos-menu { min-width: 220px; }
body .eventos-actions-menu .eventos-menu-item { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; text-align: left; border-radius: 8px; padding: 9px 12px; color: #334155; font-size: 14px; }
body .eventos-actions-menu .eventos-menu-item svg { flex: none; color: var(--a3-navy); }
/* Acción destructiva (icono de papelera) en rojo */
body .eventos-actions-menu .eventos-menu-item:has(svg[class*="trash"]) { color: #b91c1c; border-top: 1px solid #f1f5f9; margin-top: 4px; }
body .eventos-actions-menu .eventos-menu-item:has(svg[class*="trash"]) svg { color: #b91c1c; }
body .eventos-actions-menu .eventos-menu-item:has(svg[class*="trash"]):hover { background: #fef2f2; color: #991b1b; }
body .eventos-actions-menu .eventos-menu-item:hover { background: var(--a3-tint); color: var(--a3-navy); }

/* Paginación */
body .exact-eventos-pagination { border-radius: 14px; border: 1px solid var(--a3-line); box-shadow: none; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  body .exact-eventos-page .page-header.exact-eventos-hero { padding: 24px 20px; align-items: flex-start; }
  body .exact-eventos-head-actions { justify-content: flex-start; }
  body .exact-eventos-table { overflow-x: auto; }
}

/* ══ Captura · Asistencia a pruebas (.exact-asistencia-page) ══════════ */
body .exact-asistencia-page { gap: 18px; }
body .exact-asistencia-page .page-header.exact-asistencia-hero {
  position: relative; overflow: hidden; margin: 0;
  padding: 26px 30px; border: 0; border-radius: 20px;
  background:
    radial-gradient(560px 240px at 95% 0%, rgb(255 202 125 / .18), transparent 60%),
    linear-gradient(150deg, var(--a3-navy) 0%, var(--a3-navy-700) 55%, var(--a3-navy-900) 100%);
  box-shadow: 0 18px 40px rgb(6 31 61 / .2);
}
body .exact-asistencia-hero .badge {
  display: inline-block; width: auto; padding: 4px 10px; border-radius: 999px; margin: 0;
  background: rgb(255 202 125 / .16); color: var(--a3-gold); border: 1px solid rgb(255 202 125 / .3);
  font-family: Oswald, sans-serif; letter-spacing: .14em; text-transform: uppercase; font-size: 11px;
}
body .exact-asistencia-hero h1 {
  color: #fff; margin: 8px 0 6px; font-family: "Outfit", "Helvetica Neue", Arial, sans-serif; font-style: italic;
  font-weight: 600; text-transform: uppercase; font-size: clamp(24px, 2.8vw, 34px); line-height: 1;
}
body .exact-asistencia-hero .muted { color: rgb(255 255 255 / .78) !important; margin: 0; font-size: 15px; }
body .exact-asistencia-hero .muted strong { color: var(--a3-gold); font-weight: 600; }

/* Filtros: Evento | Categoría | Género | Prueba (más ancha) | Unidad | Recargar */
body .exact-asistencia-filtros {
  display: grid; gap: 14px; padding: 18px 20px; margin: 0; align-items: end;
  grid-template-columns: minmax(190px, 1.2fr) minmax(160px, .9fr) minmax(170px, .9fr) minmax(240px, 2fr) minmax(150px, .8fr) auto;
  border-radius: 16px; border: 1px solid var(--a3-line); background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / .04);
}
body .exact-asistencia-filtros label {
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 11px !important;
  font-weight: 500; color: var(--a3-muted) !important;
}
body .exact-asistencia-filtros button[role="combobox"] {
  height: 44px; border-radius: 12px; border: 1px solid var(--a3-line); background: var(--a3-tint);
  font-size: 14px; color: var(--a3-ink); box-shadow: none; padding: 0 12px;
}
body .exact-asistencia-filtros button[role="combobox"]:focus,
body .exact-asistencia-filtros button[role="combobox"][data-state="open"] {
  border-color: var(--a3-navy); background: #fff; box-shadow: 0 0 0 4px rgb(11 71 137 / .1); outline: 0;
}
body .exact-asistencia-filtros button[role="combobox"]:disabled { opacity: .55; }
body .exact-asistencia-filtros > div:last-child button {
  height: 44px; border-radius: 12px; border: 0; background: var(--a3-navy); color: #fff; padding: 0 18px;
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 500;
}
body .exact-asistencia-filtros > div:last-child button:hover:not(:disabled) { background: var(--a3-navy-700); }

/* Resumen de la prueba seleccionada */
body .exact-asistencia-resumen {
  margin: 0; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--a3-line); background: #fff;
  display: grid; gap: 14px; box-shadow: 0 1px 2px rgb(15 23 42 / .04);
}
body .exact-asistencia-resumen-titulo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body .exact-asistencia-resumen-titulo strong { font-size: 18px; color: var(--a3-ink); font-weight: 600; }
body .exact-asistencia-cat {
  padding: 4px 10px; border-radius: 8px; background: var(--a3-navy); color: #fff;
  font-family: Oswald, sans-serif; letter-spacing: .1em; font-size: 12px; font-weight: 500;
}
body .exact-asistencia-tipo {
  padding: 3px 9px; border-radius: 999px; background: #fff7eb; color: #a16207; border: 1px solid #fde7c2;
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: 10px;
}
body .exact-asistencia-cifras { display: flex; flex-wrap: wrap; gap: 10px; }
body .exact-asistencia-cifra {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px;
  background: var(--a3-tint); border: 1px solid var(--a3-line);
}
body .exact-asistencia-cifra:first-child { background: var(--a3-navy-900); border-color: var(--a3-navy-900); }
body .exact-asistencia-cifra:first-child strong, body .exact-asistencia-cifra:first-child span { color: #fff; }
body .exact-asistencia-cifra i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
body .exact-asistencia-cifra strong { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--a3-ink); line-height: 1; }
body .exact-asistencia-cifra span {
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--a3-muted);
}
body .exact-asistencia-cifra[data-estado="COMPITIENDO"] { background: #e7f6ec; border-color: #bbe5c8; }
body .exact-asistencia-vacio {
  margin: 0; padding: 14px 16px; border-radius: 12px; background: #fff7eb; border: 1px dashed #f3c98b;
  color: #92400e; font-size: 14px;
}

/* Tabla de asistencia */
body .exact-asistencia-tabla { padding: 6px 8px; border-radius: 16px; border: 1px solid var(--a3-line); box-shadow: 0 1px 2px rgb(15 23 42 / .04); }
body .exact-asistencia-tabla > p.muted { padding: 28px; text-align: center; margin: 0; }
body .exact-asistencia-tabla thead tr { border-bottom: 2px solid var(--a3-ink); }
body .exact-asistencia-tabla th {
  height: auto; padding: 14px 12px; background: #fff; color: var(--a3-muted);
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 500;
}
body .exact-asistencia-tabla td { padding: 13px 12px; color: #334155; font-variant-numeric: tabular-nums; }
body .exact-asistencia-tabla td:first-child { font-weight: 600; color: var(--a3-ink); }
body .exact-asistencia-tabla tbody tr:hover td { background: #fafbfd; }
body .exact-asistencia-tabla td button { border-radius: 10px; }
body .exact-asistencia-tabla td .bg-primary,
body .exact-asistencia-tabla td button[class*="bg-primary"] { background: var(--a3-navy); }

@media (max-width: 1100px) {
  body .exact-asistencia-filtros { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 700px) {
  body .exact-asistencia-page .page-header.exact-asistencia-hero { padding: 22px 18px; }
  body .exact-asistencia-tabla { overflow-x: auto; }
}

/* ══ Editor de eventos · paso 3 "Pruebas" (.exact-evento-pruebas) ═════ */
body .exact-evento-pruebas { padding: 24px; border-radius: 18px; border: 1px solid var(--a3-line); box-shadow: 0 1px 2px rgb(15 23 42 / .04); }
body .exact-evento-pruebas > h3 {
  margin: 0; font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .06em; font-weight: 500;
  font-size: 18px; color: var(--a3-ink);
}
body .exact-evento-pruebas > p.muted { margin: 6px 0 18px; font-size: 14px; }
body .exact-evento-pruebas-panel { display: grid; gap: 16px; }

/* Deportes como pestañas */
body .exact-evento-pruebas-deportes { display: flex; flex-wrap: wrap; gap: 8px; }
body .exact-evento-pruebas-deportes button {
  height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--a3-line); background: #fff; color: var(--a3-navy); box-shadow: none;
}
body .exact-evento-pruebas-deportes button.exact-gold-btn { background: var(--a3-navy); border-color: var(--a3-navy); color: #fff; }

/* Disciplina: control segmentado */
body .exact-evento-pruebas-segmento { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body .exact-evento-pruebas-segmento .exact-label-title { margin: 0; }
body .exact-evento-pruebas-segmento button {
  height: 34px; padding: 0 14px; margin: 0; border-radius: 0; border: 1px solid var(--a3-line); border-left-width: 0;
  background: #fff; color: #475569; font-size: 13px; font-weight: 500; box-shadow: none;
}
body .exact-evento-pruebas-segmento .exact-label-title + button { border-left-width: 1px; border-radius: 10px 0 0 10px; }
body .exact-evento-pruebas-segmento button:last-child { border-radius: 0 10px 10px 0; }
body .exact-evento-pruebas-segmento button.exact-gold-btn { background: var(--a3-navy); border-color: var(--a3-navy); color: #fff; }

/* Filtros en una fila */
body .exact-evento-pruebas-filtros {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  padding: 14px; border-radius: 14px; background: var(--a3-tint); border: 1px solid var(--a3-line);
}
body .exact-evento-pruebas-filtros label { display: grid; gap: 6px; margin: 0; }
body .exact-evento-pruebas .exact-label-title {
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 500; color: var(--a3-muted);
}
body .exact-evento-pruebas-filtros select,
body .exact-evento-pruebas-filtros input {
  height: 42px; border-radius: 10px; border: 1px solid var(--a3-line); background: #fff; font-size: 14px; color: var(--a3-ink);
}
body .exact-evento-pruebas-filtros select:focus,
body .exact-evento-pruebas-filtros input:focus { border-color: var(--a3-navy); box-shadow: 0 0 0 4px rgb(11 71 137 / .1); outline: 0; }

/* Acciones + conteo */
body .exact-evento-pruebas-acciones { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body .exact-evento-pruebas-acciones button {
  height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 500;
  background: #fff; border: 1px solid var(--a3-line); color: var(--a3-navy);
}
body .exact-evento-pruebas-acciones button:hover { border-color: var(--a3-navy); background: var(--a3-tint); }
body .exact-evento-pruebas-acciones .muted { margin-left: auto; font-size: 13px; }

/* Lista agrupada por categoría */
body .exact-evento-pruebas-lista {
  max-height: 58vh; overflow-y: auto; border: 1px solid var(--a3-line); border-radius: 14px; background: #fff;
  display: flex; flex-direction: column;
}
body .exact-evento-pruebas-lista > p.muted { padding: 22px; margin: 0; text-align: center; }
body .exact-prueba-grupo {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px; background: var(--a3-navy-900); color: #fff;
}
body .exact-prueba-grupo strong { font-family: Oswald, sans-serif; letter-spacing: .08em; font-weight: 500; font-size: 14px; }
body .exact-prueba-grupo span { font-size: 12px; color: rgb(255 255 255 / .7); font-variant-numeric: tabular-nums; }
body .exact-evento-pruebas-lista .exact-prueba-item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  margin: 0; padding: 9px 16px; border: 0; border-bottom: 1px solid #f1f5f9; border-radius: 0; background: #fff; box-shadow: none;
}
body .exact-evento-pruebas-lista .exact-prueba-item:hover { background: #fafbfd; }
body .exact-evento-pruebas-lista .exact-prueba-item.is-on { background: #f6f9fd; }
body .exact-prueba-item > label:first-child { display: flex; align-items: center; gap: 12px; cursor: pointer; margin: 0; }
body .exact-prueba-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--a3-navy); flex: none; }
body .exact-prueba-lbl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; text-transform: none; }
body .exact-prueba-nombre { font-size: 14px; color: var(--a3-ink); font-weight: 500; letter-spacing: 0; text-transform: none; }
body .exact-prueba-gen {
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em;
  background: #f1f5f9; color: #475569;
}
body .exact-prueba-gen[data-g="FEMENINO"] { background: #fdf2f8; color: #be185d; }
body .exact-prueba-gen[data-g="MASCULINO"] { background: #eff6ff; color: #1d4ed8; }
body .exact-prueba-gen[data-g="MIXTO"] { background: #f5f3ff; color: #6d28d9; }
body .exact-prueba-cupo {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; color: var(--a3-muted);
}
body .exact-prueba-cupo input {
  width: 110px; height: 32px; border-radius: 8px; border: 1px solid var(--a3-line); background: #fff;
  font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 13px; padding: 0 8px;
}
@media (max-width: 700px) {
  body .exact-evento-pruebas { padding: 16px; }
  body .exact-evento-pruebas-lista .exact-prueba-item { grid-template-columns: 1fr; }
}

/* ══ Vista Pruebas (.exact-pruebas-page) ═════════════════════════════ */
body .exact-pruebas-page .page-header.exact-pruebas-hero {
  padding: 26px 30px; margin: 0 0 18px; border: 0; border-radius: 20px;
  background:
    radial-gradient(560px 240px at 95% 0%, rgb(255 202 125 / .18), transparent 60%),
    linear-gradient(150deg, var(--a3-navy) 0%, var(--a3-navy-700) 55%, var(--a3-navy-900) 100%);
  box-shadow: 0 18px 40px rgb(6 31 61 / .2);
}
body .exact-pruebas-hero h1 {
  margin: 0; color: #fff; font-family: "Outfit", "Helvetica Neue", Arial, sans-serif; font-style: italic;
  font-weight: 600; text-transform: uppercase; font-size: clamp(24px, 2.8vw, 34px); line-height: 1;
}
body .exact-pruebas-hero .exact-pruebas-subtitle { color: rgb(255 255 255 / .8); margin: 10px 0 0; font-size: 15px; }

/* Filtros: tarjeta blanca (no franja pegada al borde) */
body .exact-pruebas-filtros.sticky {
  margin: 0 0 18px !important; padding: 18px 20px !important; border-radius: 16px;
  background: rgb(255 255 255 / .96); border: 1px solid var(--a3-line); box-shadow: 0 8px 24px rgb(15 23 42 / .06);
}
body .exact-pruebas-filtros label,
body .exact-pruebas-filtros .text-\[11px\] {
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 11px !important;
  font-weight: 500 !important; color: var(--a3-muted) !important;
}
body .exact-pruebas-filtros .border-t { display: grid !important; grid-template-columns: 1fr; gap: 12px !important; border-color: var(--a3-line) !important; padding-top: 14px !important; }
body .exact-pruebas-filtros .border-t > div { display: grid !important; grid-template-columns: 92px 1fr; align-items: center; gap: 10px !important; }
body .exact-pruebas-filtros button.rounded-full {
  height: 32px; padding: 0 13px !important; border-radius: 999px; font-size: 13px !important; font-weight: 500;
  background: var(--a3-tint) !important; border: 1px solid var(--a3-line) !important; color: #334155 !important;
}
body .exact-pruebas-filtros button.rounded-full:hover { border-color: var(--a3-navy) !important; color: var(--a3-navy) !important; }
body .exact-pruebas-filtros button.rounded-full.bg-primary { background: var(--a3-navy) !important; border-color: var(--a3-navy) !important; color: #fff !important; }
body .exact-pruebas-filtros button.rounded-full.h-9 { background: transparent !important; border: 0 !important; }

/* Lista: una fila por prueba, agrupada por categoría */
body .exact-pruebas-grid {
  display: flex !important; flex-direction: column; gap: 0 !important;
  border: 1px solid var(--a3-line); border-radius: 16px; overflow: hidden; background: #fff;
}
body .exact-pruebas-grupo {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 18px;
  background: var(--a3-navy-900); color: #fff;
}
body .exact-pruebas-grupo strong { font-family: Oswald, sans-serif; letter-spacing: .08em; font-weight: 500; font-size: 14px; }
body .exact-pruebas-grupo span { font-size: 12px; color: rgb(255 255 255 / .7); }
body .exact-pruebas-card {
  display: grid !important; grid-template-columns: minmax(260px, 2.2fr) minmax(170px, 1.2fr) minmax(140px, 1fr) auto;
  align-items: center; gap: 16px; padding: 12px 18px;
  border: 0 !important; border-bottom: 1px solid #f1f5f9 !important; border-radius: 0 !important;
  background: #fff !important; box-shadow: none !important; transform: none !important;
}
body .exact-pruebas-card:hover { background: #fafbfd !important; }
body .exact-pruebas-card > :first-child { padding: 0 !important; }
body .exact-pruebas-card > :first-child > :nth-child(2) { display: none !important; } /* evento: ya está en el filtro */
body .exact-pruebas-card > :first-child > :first-child { align-items: center; }
body .exact-pruebas-card > :last-child { display: contents !important; }
body .exact-pruebas-card h3 {
  font-size: 15px !important; font-weight: 600; color: var(--a3-ink); line-height: 1.25;
}
body .exact-pruebas-card .rounded-2xl {
  padding: 0 !important; border: 0 !important; background: transparent !important; margin: 0 !important; font-size: 13px;
}
body .exact-pruebas-card .rounded-2xl p.text-\[11px\] {
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 10px !important; margin: 0 0 2px;
}
body .exact-pruebas-card .rounded-2xl p.mt-1 { margin: 0; }
body .exact-pruebas-card .pt-2 { padding: 0 !important; margin: 0 !important; flex-wrap: nowrap !important; justify-content: flex-end; }
body .exact-pruebas-card .pt-2 a,
body .exact-pruebas-card .pt-2 button {
  height: 32px; padding: 0 12px; border-radius: 10px !important; font-size: 12.5px;
  background: #fff; border: 1px solid var(--a3-line); color: var(--a3-navy); box-shadow: none;
}
body .exact-pruebas-card .pt-2 a:hover,
body .exact-pruebas-card .pt-2 button:hover { border-color: var(--a3-navy); background: var(--a3-tint); }
body .exact-pruebas-card .pt-2 > :last-child.bg-primary,
body .exact-pruebas-card .pt-2 button.bg-primary { background: var(--a3-navy); color: #fff; border-color: var(--a3-navy); }
body .exact-pruebas-card .bg-amber-50 {
  font-variant-numeric: tabular-nums; font-size: 12px; background: #fff7eb !important; border-color: #fde7c2 !important;
}
body .exact-pruebas-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
body .exact-pruebas-cat {
  padding: 2px 8px; border-radius: 6px; background: var(--a3-navy); color: #fff;
  font-family: Oswald, sans-serif; letter-spacing: .08em; font-size: 11px; font-weight: 500;
}
body .exact-pruebas-tipo {
  padding: 2px 8px; border-radius: 999px; background: #fff7eb; color: #a16207; border: 1px solid #fde7c2; font-size: 11px; font-weight: 600;
}
body .exact-pruebas-paginacion { margin-top: 18px !important; }
@media (max-width: 1000px) {
  body .exact-pruebas-card { grid-template-columns: 1fr 1fr; }
  body .exact-pruebas-card > :first-child { grid-column: 1 / -1; }
  body .exact-pruebas-card .pt-2 { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap !important; }
  body .exact-pruebas-filtros .border-t > div { grid-template-columns: 1fr; }
}

/* ══ Editor de eventos · paso 4 "Revisión" (.exact-evento-resumen) ═══ */
body .exact-evento-resumen > header.exact-evento-nuevo-block {
  border: 0; border-radius: 16px; padding: 18px 22px; margin-bottom: 14px;
  background: linear-gradient(150deg, var(--a3-navy) 0%, var(--a3-navy-900) 100%); color: #fff;
}
body .exact-evento-resumen > header strong { color: #fff; font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; font-size: 18px; }
body .exact-evento-resumen > header p { color: rgb(255 255 255 / .75); margin: 4px 0 0; }
body .exact-evento-resumen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
body .exact-evento-resumen-card {
  padding: 18px 20px; border-radius: 16px; border: 1px solid var(--a3-line); background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / .04);
}
body .exact-evento-resumen-card--wide { grid-column: 1 / -1; }
body .exact-evento-resumen-card h4 {
  margin: 0 0 12px; font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 500; color: var(--a3-muted);
}
body .exact-evento-resumen-card > ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
body .exact-evento-resumen-card > ul > li {
  display: grid; grid-template-columns: minmax(84px, 36%) 1fr; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #f1f5f9;
}
body .exact-evento-resumen-card > ul > li:last-child { border-bottom: 0; }
body .exact-evento-resumen-card > ul > li > span { font-size: 12px; color: var(--a3-muted); }
body .exact-evento-resumen-card > ul > li > strong,
body .exact-evento-resumen-card > ul > li > code { font-size: 14px; color: var(--a3-ink); font-weight: 600; overflow-wrap: anywhere; word-break: normal; hyphens: none; }
body .exact-evento-resumen-card > ul > li > code { font-weight: 500; font-size: 12.5px; background: var(--a3-tint); padding: 2px 6px; border-radius: 6px; }
body .exact-evento-resumen-desc {
  margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--a3-tint); color: #475569; font-size: 13px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
body .exact-evento-resumen-desc:hover { -webkit-line-clamp: unset; }
body .exact-evento-resumen-deportes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
body .exact-evento-resumen-deportes > li { display: grid !important; grid-template-columns: 1fr !important; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--a3-tint); border: 1px solid var(--a3-line); }
body .exact-evento-resumen-deportes > li > strong { font-size: 15px; color: var(--a3-ink); }
body .exact-evento-resumen-deportes > li > span { font-size: 13px; color: var(--a3-muted); }
body .exact-resumen-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
body .exact-resumen-cat { display: inline-flex; border-radius: 8px; overflow: hidden; border: 1px solid var(--a3-line); font-size: 12px; }
body .exact-resumen-cat b { background: var(--a3-navy); color: #fff; padding: 3px 8px; font-family: Oswald, sans-serif; letter-spacing: .06em; font-weight: 500; }
body .exact-resumen-cat i { font-style: normal; background: #fff; padding: 3px 9px; color: var(--a3-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  body .exact-evento-resumen-grid { grid-template-columns: 1fr; }
  body .exact-evento-resumen-card > ul > li { grid-template-columns: 1fr; gap: 2px; }
}

/* ══ Detalle del evento (/eventos/:id) ═══════════════════════════════ */
body .exact-evento-overview { border-radius: 20px; border: 1px solid var(--a3-line); box-shadow: 0 1px 2px rgb(15 23 42 / .04); }
body .exact-evento-overview h2 {
  font-family: "Outfit", "Helvetica Neue", Arial, sans-serif; font-weight: 600; letter-spacing: -.01em; color: var(--a3-ink);
}
body .exact-evento-overview .exact-evento-title-block p.muted {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.6;
}
body .exact-evento-overview .exact-evento-title-block p.muted:hover { -webkit-line-clamp: unset; }
body .exact-evento-summary-card { border-radius: 14px; border: 1px solid var(--a3-line); background: var(--a3-tint); }
body .exact-evento-summary-card strong {
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 500; color: var(--a3-muted);
}
body .exact-evento-summary-card p { font-size: 17px; font-weight: 600; color: var(--a3-ink); }
body .exact-evento-summary-icon { background: var(--a3-navy) !important; color: #fff !important; }

/* Pruebas habilitadas */
body .exact-evento-pruebas-card { border-radius: 20px; border: 1px solid var(--a3-line); box-shadow: 0 1px 2px rgb(15 23 42 / .04); }
body .exact-evento-pruebas-head { display: grid !important; gap: 14px; }
body .exact-evento-pruebas-heading h2 {
  margin: 0; font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; font-size: 20px; color: var(--a3-ink);
}
body .exact-evento-pruebas-controls {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: center;
  padding: 12px; border-radius: 14px; background: var(--a3-tint); border: 1px solid var(--a3-line);
}
body .exact-evento-pruebas-controls button[role="combobox"] {
  width: 100% !important; height: 40px; border-radius: 10px; border: 1px solid var(--a3-line); background: #fff; font-size: 13.5px;
}
body .exact-evento-pruebas-link {
  height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 10px;
  background: var(--a3-navy) !important; color: #fff !important; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: none !important;
}
body .exact-evento-pruebas-list {
  display: flex !important; flex-direction: column; gap: 0 !important;
  border: 1px solid var(--a3-line); border-radius: 14px; overflow: hidden;
}
body .exact-evento-dia {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 16px;
  background: var(--a3-navy-900); color: #fff;
}
body .exact-evento-dia strong { font-family: Oswald, sans-serif; letter-spacing: .08em; font-weight: 500; font-size: 14px; }
body .exact-evento-dia span { font-size: 12px; color: rgb(255 255 255 / .7); }
body .exact-evento-prueba-row {
  display: grid !important; grid-template-columns: 170px minmax(220px, 1fr) minmax(170px, .7fr) auto; align-items: center; gap: 16px;
  padding: 11px 16px !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid #f1f5f9 !important;
  border-radius: 0 !important; box-shadow: none !important; background: #fff !important;
}
body .exact-evento-prueba-row:hover { background: #fafbfd !important; }
/* La hora pasa a la primera columna */
body .exact-evento-prueba-row .exact-evento-prueba-meta { display: contents !important; }
body .exact-evento-prueba-row .exact-evento-prueba-meta-item:first-child { grid-column: 1; grid-row: 1; }
body .exact-evento-prueba-row .exact-evento-prueba-main { grid-column: 2; grid-row: 1; min-width: 0; }
body .exact-evento-prueba-row .exact-evento-prueba-meta-item:nth-child(2) { grid-column: 3; grid-row: 1; }
body .exact-evento-prueba-row .exact-evento-prueba-actions { grid-column: 4; grid-row: 1; }
body .exact-evento-prueba-meta-item { display: flex; gap: 8px; align-items: flex-start; }
body .exact-evento-prueba-meta-item svg { margin-top: 3px; color: var(--a3-muted); flex: none; }
body .exact-evento-prueba-meta-item span {
  display: block; font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; color: var(--a3-muted);
}
body .exact-evento-prueba-meta-item p { margin: 0; font-size: 13px; color: var(--a3-ink); }
body .exact-evento-prueba-meta-item:first-child p { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--a3-navy); }
body .exact-evento-prueba-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body .exact-evento-prueba-title h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--a3-ink); }
body .exact-evento-prueba-badges > * { font-size: 11.5px; background: #fff7eb !important; border: 1px solid #fde7c2 !important; color: #92400e !important; }
body .exact-evento-prueba-actions { display: flex; gap: 4px; }
body .exact-evento-prueba-actions .exact-btn-icon {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--a3-line); background: #fff; color: var(--a3-navy);
  display: inline-flex; align-items: center; justify-content: center;
}
body .exact-evento-prueba-actions .exact-btn-icon:hover { background: var(--a3-navy); color: #fff; border-color: var(--a3-navy); }
@media (max-width: 1100px) {
  body .exact-evento-pruebas-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .exact-evento-prueba-row { grid-template-columns: 120px 1fr; }
  body .exact-evento-prueba-row .exact-evento-prueba-meta-item:nth-child(2),
  body .exact-evento-prueba-row .exact-evento-prueba-actions { grid-column: 2; grid-row: auto; }
}
body .exact-evento-prueba-row .exact-evento-prueba-main { display: grid; justify-items: start; gap: 4px; }
body .exact-evento-prueba-row .exact-evento-prueba-title { width: 100%; }
body .exact-evento-prueba-row .exact-pruebas-meta { margin-top: 0; justify-content: flex-start; width: 100%; }
body .exact-evento-prueba-meta-item:first-child p { white-space: nowrap; }

/* ══ Gestión de inscripciones (.exact-inscripciones-page) ════════════ */
body .exact-inscripciones-page { gap: 18px; }
body .exact-inscripciones-page > .page-header {
  position: relative; overflow: hidden; padding: 26px 30px; border: 0; border-radius: 20px;
  background:
    radial-gradient(560px 240px at 95% 0%, rgb(255 202 125 / .18), transparent 60%),
    linear-gradient(150deg, var(--a3-navy) 0%, var(--a3-navy-700) 55%, var(--a3-navy-900) 100%);
  box-shadow: 0 18px 40px rgb(6 31 61 / .2);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap;
}
body .exact-inscripciones-page > .page-header .badge {
  display: inline-block; width: auto; padding: 4px 10px; border-radius: 999px; margin: 0;
  background: rgb(255 202 125 / .16); color: var(--a3-gold); border: 1px solid rgb(255 202 125 / .3);
  font-family: Oswald, sans-serif; letter-spacing: .14em; text-transform: uppercase; font-size: 11px;
}
body .exact-inscripciones-page > .page-header h1 {
  color: #fff; margin: 8px 0 0; font-family: "Outfit", "Helvetica Neue", Arial, sans-serif; font-style: italic;
  font-weight: 600; text-transform: uppercase; font-size: clamp(24px, 2.8vw, 34px); line-height: 1;
}
body .exact-inscripciones-head-actions { gap: 8px; }
body .exact-inscripciones-head-actions .exact-navy-btn,
body .exact-inscripciones-head-actions .exact-gold-btn {
  height: 38px; padding: 0 16px; border-radius: 10px; display: inline-flex; align-items: center; box-shadow: none;
  font-family: Oswald, sans-serif !important; text-transform: uppercase !important; letter-spacing: .08em !important; font-size: 12px !important; font-weight: 500 !important;
}
body .exact-inscripciones-head-actions .exact-navy-btn { background: rgb(255 255 255 / .08); color: #fff; border: 1px solid rgb(255 255 255 / .28); }
body .exact-inscripciones-head-actions .exact-navy-btn:hover { background: rgb(255 255 255 / .18); border-color: #fff; }
body .exact-inscripciones-head-actions .exact-gold-btn,
body .exact-inscripciones-head-actions .exact-aprobar-masivo { background: var(--a3-gold); color: var(--a3-navy-900); border: 0; }
body .exact-inscripciones-head-actions .exact-aprobar-masivo { background: #16a34a; color: #fff; }
body .exact-inscripciones-head-actions .exact-aprobar-masivo:hover { background: #15803d; }

/* Filtros */
body .exact-inscripciones-filters {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end;
  padding: 16px 18px; border-radius: 16px; border: 1px solid var(--a3-line); background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / .04);
}
body .exact-inscripciones-filters label {
  display: grid; gap: 6px; font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 500; color: var(--a3-muted);
}
body .exact-inscripciones-filters select,
body .exact-inscripciones-filters input {
  height: 42px; border-radius: 10px; border: 1px solid var(--a3-line); background: var(--a3-tint);
  font-family: "Geist", "Inter", system-ui, -apple-system, sans-serif; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; color: var(--a3-ink);
}
body .exact-inscripciones-filters select:focus,
body .exact-inscripciones-filters input:focus { border-color: var(--a3-navy); background: #fff; box-shadow: 0 0 0 4px rgb(11 71 137 / .1); outline: 0; }
body .exact-inscripciones-filters label:nth-last-of-type(1) { grid-column: span 2; }
body .exact-inscripciones-filters > button[type="submit"] {
  height: 42px; border-radius: 10px; border: 0; background: var(--a3-navy); color: #fff; box-shadow: none;
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}

/* Tabla */
body .exact-inscripciones-table { border-radius: 16px; border: 1px solid var(--a3-line); background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / .04); overflow-x: auto; }
body .exact-inscripciones-table th {
  background: #fff; color: var(--a3-muted); font-family: Oswald, sans-serif; text-transform: uppercase;
  letter-spacing: .12em; font-size: 11px; font-weight: 500; padding: 14px 12px; border-bottom: 2px solid var(--a3-ink);
}
body .exact-inscripciones-table td { padding: 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; font-size: 13.5px; color: #334155; }
body .exact-inscripciones-table td:nth-child(2) { font-weight: 600; color: var(--a3-ink); }
body .exact-inscripciones-table tbody tr:hover td { background: #fafbfd; }
body .exact-inscripciones-table .badge-tipo {
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #eff6ff; color: #1d4ed8; border: 0;
}
body .exact-inscripciones-table .badge-tipo.tipo-equipo { background: #f5f3ff; color: #6d28d9; }
body .exact-inscripciones-table .row-actions { gap: 6px; flex-wrap: nowrap; }
body .exact-inscripciones-table .exact-icon-btn { width: 32px; height: 32px; border-radius: 10px; }
@media (max-width: 1000px) {
  body .exact-inscripciones-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ══ Marca de inscripción (formulario) y "Ordenar por marca" (startlist) ══ */
body .pruebas-checklist label.exact-prueba-sel { display: flex !important; align-items: center; gap: 10px; }
body .pruebas-checklist label.exact-prueba-sel > span { flex: 1; min-width: 0; }
body .pruebas-checklist label.exact-prueba-sel > input[type="checkbox"] { order: 3; flex: none; }
body .pruebas-checklist label.exact-prueba-sel.is-on { border-color: var(--a3-navy) !important; background: #f6f9fd !important; }
body .exact-marca-input {
  order: 2; width: 200px; height: 34px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--a3-line); background: #fff; font-size: 13px; color: var(--a3-ink);
  font-family: "Geist", "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
body .exact-marca-input:focus { border-color: var(--a3-navy); box-shadow: 0 0 0 3px rgb(11 71 137 / .12); outline: 0; }
body .exact-marca-input.is-error { border-color: #dc2626; box-shadow: 0 0 0 3px rgb(220 38 38 / .12); }
body .exact-sembrar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
body .exact-sembrar .exact-gold-btn { height: 34px; padding: 0 14px; border-radius: 10px; font-size: 12.5px; }
@media (max-width: 700px) { body .exact-marca-input { width: 140px; } }

/* Perfil del deportista: organizaciones por portafolio */
.a3-orgs { display: grid; gap: 14px; }
.a3-orgs-ayuda { margin: 0; font-size: 13px; color: #64748b; line-height: 1.45; }
.a3-orgs-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.a3-orgs-lista li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f6f8fb; font-size: 14px; }
.a3-orgs-lista li strong { flex: 1; font-weight: 600; }
.a3-orgs-lista li em { font-style: normal; font-size: 12px; color: #64748b; }
.a3-orgs-lista li a { font-size: 13px; color: #0b4789; text-decoration: underline; text-underline-offset: 3px; }
.a3-orgs-port { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #e8eef7; color: #0b4789; }
.a3-orgs-port[data-p="INSTITUCIONAL"] { background: #fff4e0; color: #b45309; }
.a3-orgs-motivo { margin: 0; font-size: 13px; color: #b45309; }
.a3-orgs-ok { margin: 0; font-size: 13px; color: #15803d; }
.a3-orgs-acciones { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ── Nuevo / editar deportista: secciones, primero móvil ───────────────── */
.a3d-page { --n: #0b4789; --g: #ffca7d; --ink: #0f172a; --mut: #64748b; --lin: #e5e9f0; --tint: #f6f8fb; }
.a3d-page .page-header { align-items: flex-start; }
.a3d-form.card-form { display: grid; gap: 14px; max-width: 880px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.a3d-sec { background: #fff; border: 1px solid var(--lin); border-radius: 18px; padding: 18px; }
.a3d-cab { margin-bottom: 14px; }
.a3d-cab h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; }
.a3d-cab p { margin: 4px 0 0; font-size: 13px; color: var(--mut); line-height: 1.45; }
.a3d-doc { border-color: rgb(11 71 137 / .25); background: linear-gradient(180deg, #f3f7fc, #fff 70%); }
.a3d-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: start; }
.a3d-grid > * { min-width: 0; }

/* Campos */
.a3d-form label, .a3d-form .grid { display: grid; gap: 6px; margin: 0; font-size: 13px; font-weight: 500; color: #334155; text-transform: none; letter-spacing: 0; font-family: inherit; }
.a3d-form .label-text, .a3d-form label > span { font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; color: #334155; font-family: inherit; }
.a3d-form .req-asterisk { color: #b7791f; margin-left: 2px; }
.a3d-form input[type="text"], .a3d-form input[type="email"], .a3d-form input[type="tel"], .a3d-form input[type="date"], .a3d-form select,
.a3d-form button[role="combobox"], .a3d-form .multi-select-trigger {
  width: 100%; height: 46px; min-height: 46px; border-radius: 12px; border: 1px solid var(--lin); background: var(--tint);
  padding: 0 14px; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); box-shadow: none; text-transform: none; letter-spacing: 0;
}
.a3d-form input:focus, .a3d-form select:focus, .a3d-form button[role="combobox"]:focus-visible, .a3d-form .multi-select-trigger:focus-visible {
  outline: 0; border-color: var(--n); background: #fff; box-shadow: 0 0 0 4px rgb(11 71 137 / .1);
}
.a3d-form input::placeholder { color: #94a3b8; }
.a3d-form small.muted, .a3d-form p.muted { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--mut); text-transform: none; letter-spacing: 0; font-weight: 400; }
.a3d-doc small.muted { padding: 8px 10px; border-radius: 10px; background: #e8f3ec; color: #166534; }
.a3d-form button[role="combobox"] { font-size: 15px; }
.a3d-form button[role="combobox"] span { color: inherit; }
.a3d-form .multi-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
.a3d-form .multi-select-count { flex: none; min-width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: var(--n); color: #fff; font-size: 12px; font-weight: 600; }

/* Datos adicionales plegables */
.a3d-mas { padding: 0; }
.a3d-mas > summary { list-style: none; cursor: pointer; display: grid; gap: 2px; padding: 16px 48px 16px 18px; position: relative; }
.a3d-mas > summary::-webkit-details-marker { display: none; }
.a3d-mas > summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--mut); border-bottom: 2px solid var(--mut); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.a3d-mas[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.a3d-mas > summary span { font-size: 16px; font-weight: 600; color: var(--ink); }
.a3d-mas > summary small { font-size: 12.5px; color: var(--mut); }
.a3d-mas > .a3d-grid { padding: 0 18px 18px; }

/* Foto */
.a3d-foto .a3d-grid { grid-template-columns: 1fr; }
.a3d-foto label[style] { display: none; }
.a3d-foto img { width: 96px !important; height: 96px !important; border-radius: 50% !important; }
.a3d-foto button[style] { height: 42px; padding: 0 18px !important; border-radius: 12px !important; border: 1px solid var(--lin) !important; background: var(--tint) !important; color: var(--n); font-weight: 500; font-size: 14px !important; }

/* Barra de guardado (fija abajo, cómoda con el pulgar) */
.a3d-barra { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: flex-end; padding: 10px; border-radius: 16px;
  background: rgb(255 255 255 / .96); border: 1px solid var(--lin); box-shadow: 0 12px 30px rgb(15 23 42 / .12); backdrop-filter: blur(8px); }
.a3d-barra .exact-gold-btn { height: 48px; min-width: 220px; border-radius: 12px; font-size: 15px; font-weight: 600; }

@media (max-width: 640px) {
  .a3d-page { padding-bottom: 24px; }
  .a3d-page .page-header { gap: 10px; }
  .a3d-grid { grid-template-columns: 1fr; gap: 12px; }
  .a3d-dos .a3d-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .a3d-dos input, .a3d-dos select { padding: 0 12px; }
  .a3d-sec { padding: 16px 14px; border-radius: 16px; }
  .a3d-mas { padding: 0; }
  .a3d-mas > .a3d-grid { padding: 0 14px 16px; }
  .a3d-barra { bottom: 8px; padding: 8px; }
  .a3d-barra .exact-gold-btn { width: 100%; min-width: 0; }
}
.a3d-form label { line-height: 18px; align-content: start; }
.a3d-form label .label-text, .a3d-form label .req-asterisk { line-height: 18px; display: inline; }
.a3d-form label > .label-text { display: block; }
.a3d-form input[type="date"] { min-width: 0; -webkit-appearance: none; appearance: none; }
@media (max-width: 640px) { .a3d-dos input[type="date"] { font-size: 15px; padding: 0 8px; } }
.a3d-form label > .label-text { margin: 0 !important; }

/* Pantallas anchas: aprovechar el ancho con secciones en dos columnas */
@media (min-width: 1100px) {
  .a3d-form.card-form { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .a3d-doc, .a3d-dos, .a3d-barra { grid-column: 1 / -1; }
  .a3d-doc { display: grid; grid-template-columns: minmax(220px, .8fr) 2fr; gap: 6px 24px; align-items: center; }
  .a3d-doc .a3d-cab { margin: 0; }
  .a3d-dos .a3d-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .a3d-dep .a3d-grid > :last-child { grid-column: 1 / -1; }
  .a3d-dep, .a3d-con { align-self: stretch; }
}
.a3d-form button[role="combobox"] { min-width: 0; overflow: hidden; gap: 6px; }
.a3d-form button[role="combobox"] > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; text-align: left; }

/* Pestañas que unen secciones (static/home/secciones.js) */
.a3-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 12px; background: #f1f4f9; border: 1px solid #e5e9f0; max-width: 100%; overflow-x: auto; }
.a3-tabs a { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: #475569; text-decoration: none; white-space: nowrap; }
.a3-tabs a:hover { color: #0b4789; }
.a3-tabs a.is-on { background: #fff; color: #0b4789; font-weight: 600; box-shadow: 0 1px 3px rgb(15 23 42 / .12); }

/* Deportistas (superadmin): persona en varias organizaciones, una por línea (parche 39). */
.a3-multiorg { display: grid; gap: 5px; justify-items: start; }
.a3-multiorg small { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #b7791f; }
.a3-multiorg span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; border: 1px solid rgb(11 71 137 / .28); background: #eaf1fa; color: #0b4789; font-size: 13px; font-weight: 600; line-height: 1.25; }
.a3-multiorg span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #0b4789; flex: none; }

/* Asignación de jueces por prueba: filtros por modalidad (parche 42) */
.jueces-view .a3jz-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 14px; padding: 12px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; }
.a3jz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.a3jz-chips button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cbd5e1; background: #fff; color: #334155; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.a3jz-chips button small { font-size: 12px; font-weight: 600; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 1px 7px; }
.a3jz-chips button.is-on { background: #0b4789; border-color: #0b4789; color: #fff; }
.a3jz-chips button.is-on small { background: rgba(255,255,255,.2); color: #fff; }
.a3jz-sel { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #475569; }
.a3jz-sel select { border: 1px solid #cbd5e1; border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 14px; background: #fff; }
.a3jz-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #334155; cursor: pointer; }
.a3jz-total { margin-left: auto; font-size: 13px; color: #64748b; }
@media (max-width: 700px) { .a3jz-total { margin-left: 0; width: 100%; } }
/* Asignación masiva de jueces (parche 45) */
.jueces-view .a3jz-bulk { position: sticky; top: 8px; z-index: 5; display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; padding: 12px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 6px 18px rgba(15,23,42,.06); }
.jueces-view .a3jz-bulk.is-on { border-color: #0b4789; box-shadow: 0 8px 22px rgba(11,71,137,.14); }
.a3jz-bulk-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.a3jz-bulk-n { font-size: 14px; color: #0b4789; }
.a3jz-link { border: 0; background: none; color: #0b4789; font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0; }
.a3jz-bulk-juez { flex: 1 1 280px; min-width: 0; border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 14px; background: #fff; }
.a3jz-bulk .exact-gold-btn, .a3jz-bulk .exact-neutral-btn { min-height: 40px; }
.a3jz-carga { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: #64748b; }
.a3jz-carga button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e2e8f0; background: #f8fafc; color: #334155; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.a3jz-carga button small { font-weight: 700; color: #0b4789; }
.a3jz-carga button.is-on { border-color: #0b4789; background: #eef4fb; }
.jueces-view .a3jz-col-sel { width: 44px; text-align: center; }
.jueces-view .a3jz-col-sel input, .a3jz-bulk input[type=checkbox] { width: 18px; height: 18px; accent-color: #0b4789; cursor: pointer; }
.jueces-view tr.a3jz-sel-fila td { background: #eef4fb; }

/* Jueces de cámara de llamados (parche 43) */
.a3jc { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px 20px; margin: 0 0 16px; display: grid; gap: 12px; }
.a3jc.is-activo { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(11, 71, 137, .06); }
.a3jc-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.a3jc-pill { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #b7791f; font-weight: 700; }
.a3jc h2 { margin: 2px 0 4px; font-size: 20px; color: #0b4789; }
.a3jc-ayuda { margin: 0; font-size: 13.5px; color: #64748b; max-width: 720px; }
.a3jc-estado { font-size: 13px; font-weight: 600; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.a3jc-estado.is-on { color: #166534; background: #dcfce7; }
.a3jc-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.a3jc-lista li { display: flex; align-items: center; gap: 10px; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 10px; background: #f8fafc; }
.a3jc-av { width: 34px; height: 34px; border-radius: 50%; background: #0b4789; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.a3jc-nom { display: grid; min-width: 0; flex: 1; }
.a3jc-nom b { font-size: 14px; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a3jc-nom small { font-size: 12px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a3jc-quitar { padding: 4px 10px !important; font-size: 12px !important; height: auto !important; }
.a3jc-vacio { margin: 0; font-size: 14px; color: #64748b; }
.a3jc-agregar { display: flex; gap: 8px; flex-wrap: wrap; }
.a3jc-agregar select { flex: 1; min-width: 240px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 14px; background: #fff; }
.a3jc-error { margin: 0; color: #b91c1c; }

/* Alcance del juez de cámara: deportes y pruebas */
.a3jc-alc { border: 1px solid #bfdbfe; background: #f8fbff; border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; }
.a3jc-alc__cab { display: grid; gap: 2px; }
.a3jc-alc__cab b { color: #0b4789; font-size: 15px; }
.a3jc-alc__cab small { color: #64748b; font-size: 12.5px; }
.a3jc-alc__deps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.a3jc-alc__dep { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; }
.a3jc-alc__dep.is-on { border-color: #0b4789; background: #eef3fa; }
.a3jc-alc__dep label { display: flex; align-items: center; gap: 7px; min-width: 0; cursor: pointer; font-size: 13.5px; }
.a3jc-alc__dep label small { color: #64748b; font-size: 11.5px; white-space: nowrap; }
.a3jc-alc__ico { font-size: 17px; }
.a3jc-alc__ver { border: 0; background: none; color: #0b4789; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.a3jc-alc__pruebas { display: grid; gap: 6px; }
.a3jc-alc__pruebas input[type=search] { border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13.5px; }
.a3jc-alc__pruebas ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 10px; max-height: 280px; overflow: auto; }
.a3jc-alc__pruebas label { display: flex; gap: 7px; align-items: center; font-size: 13px; padding: 3px 0; cursor: pointer; }
.a3jc .a3jc-alc label { text-transform: none !important; letter-spacing: 0 !important; font-weight: 500; color: #0f172a; }
.a3jc-alc__deps { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.a3jc-alc__dep label { flex: 1; }
.a3jc-alc__dep label b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a3jc-alc__dep label small { margin-left: auto; }
.a3jc-lista li { flex-wrap: wrap; }
.a3jc-lista li .a3jc-nom { min-width: 160px; }
.a3jc-alc__pruebas label { text-transform: none !important; letter-spacing: 0 !important; }

/* Asignación de jueces por prueba: deportes del evento */
.a3jz-deps { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 0 0 12px; }
.a3jz-dep { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 14px; border: 1px solid #e2e8f0; background: #fff; text-align: left; cursor: pointer; font: inherit; color: #0f172a; }
.a3jz-dep:hover { border-color: #94a3b8; }
.a3jz-dep__ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: #f1f5f9; }
.a3jz-dep__txt { display: grid; min-width: 0; }
.a3jz-dep__txt b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a3jz-dep__txt small { font-size: 11.5px; color: #64748b; }
.a3jz-dep.is-on { background: #0b4789; border-color: #0b4789; color: #fff; box-shadow: 0 6px 18px rgb(11 71 137 / .25); }
.a3jz-dep.is-on small { color: #c8d6ea; }
.a3jz-dep.is-on .a3jz-dep__ico { background: #ffca7d; }

/* Inscripciones por deporte (insc_deportes.js) */
.a3-insc-deps { margin: 0 0 14px; }
.a3-insc-deps .a3-insc-pend { background: #d97706; }
.a3-eq-deps { margin: 0 0 14px; }
