/* Clasificación funcional de para-atletismo (/clasificacion-funcional) */
.a3cf { padding: 20px 24px 48px; max-width: 1100px; }
.a3cf-titulo p { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7c3aed; }
.a3cf-titulo h1 { margin: 2px 0 4px; font-size: 26px; }
.a3cf-titulo span { color: #64748b; font-size: 14px; }
.a3cf-ev { display: grid; gap: 4px; max-width: 620px; margin: 18px 0 12px; font-size: 13px; color: #475569; }
.a3cf-ev select, .a3cf-filtros input, .a3cf-agregar select { height: 40px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 0 10px; font: inherit; color: #0f172a; background: #fff; }
.a3cf-tabs { display: inline-flex; gap: 4px; padding: 3px; background: #f1f5f9; border-radius: 10px; margin-bottom: 16px; }
.a3cf-tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font: inherit; font-size: 14px; cursor: pointer; color: #475569; }
.a3cf-tabs button.is-on { background: #fff; color: #0f172a; font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.a3cf-vacio { color: #64748b; padding: 18px 0; }
.a3cf-aviso { background: #fef3c7; color: #92400e; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.a3cf-cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.a3cf-cifra { border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 14px; background: #fff; }
.a3cf-cifra b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.a3cf-cifra span { font-size: 12px; color: #64748b; }
.a3cf-cifra.is-verde b { color: #15803d; } .a3cf-cifra.is-ambar b { color: #b45309; } .a3cf-cifra.is-rojo b { color: #b91c1c; }
.a3cf-filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.a3cf-filtros input { flex: 1 1 260px; }
.a3cf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.a3cf-chips button { border: 1px solid #e2e8f0; background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: #334155; }
.a3cf-chips button.is-on { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.a3cf-deps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.a3cf-dep { border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; padding: 12px 14px; }
.a3cf-dep.is-alerta { border-color: #fca5a5; }
.a3cf-dep-cab { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.a3cf-dep-nom { flex: 1 1 240px; min-width: 0; }
.a3cf-dep-nom b { display: block; } .a3cf-dep-nom small { color: #64748b; font-size: 12px; }
.a3cf-clase { display: grid; justify-items: end; gap: 2px; text-align: right; }
.a3cf-clase b { font-size: 17px; font-variant-numeric: tabular-nums; }
.a3cf-clase small { color: #64748b; font-size: 11px; }
.a3cf-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; white-space: nowrap; }
.a3cf-chip.is-verde { background: #dcfce7; color: #15803d; } .a3cf-chip.is-ambar { background: #fef3c7; color: #92400e; }
.a3cf-chip.is-azul { background: #dbeafe; color: #1d4ed8; } .a3cf-chip.is-rojo { background: #fee2e2; color: #b91c1c; }
.a3cf-ins { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px dashed #e2e8f0; display: grid; gap: 6px; font-size: 13px; }
.a3cf-ins li { display: grid; grid-template-columns: 20px 1fr; gap: 2px 8px; align-items: start; }
.a3cf-ins li > small, .a3cf-ins li > .a3cf-alt { grid-column: 2; }
.a3cf-ins li small { color: #b91c1c; font-size: 12px; }
.a3cf-ins em { color: #92400e; font-style: normal; }
.a3cf-ico { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; background: #dcfce7; color: #15803d; }
.a3cf-ins li.is-no .a3cf-ico { background: #fee2e2; color: #b91c1c; }
.a3cf-alt { display: flex; flex-wrap: wrap; gap: 6px; }
.a3cf-btn { height: 36px; padding: 0 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: #0f172a; }
.a3cf-btn--pri { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.a3cf-btn--txt { border-color: transparent; background: none; color: #6d28d9; padding: 0 8px; }
.a3cf-btn--mini { height: 30px; padding: 0 10px; font-size: 12px; border-color: #c4b5fd; color: #6d28d9; }
.a3cf-rojo { color: #b91c1c; }
.a3cf-btn:disabled { opacity: .5; cursor: default; }
.a3cf-caja { border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; padding: 16px 18px; }
.a3cf-caja h2 { margin: 0 0 4px; font-size: 18px; } .a3cf-caja h3 { margin: 18px 0 6px; font-size: 15px; }
.a3cf-sub { margin: 0 0 12px; color: #64748b; font-size: 13px; }
.a3cf-lista { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.a3cf-lista li { display: flex; align-items: center; gap: 10px; border: 1px solid #f1f5f9; border-radius: 10px; padding: 8px 12px; }
.a3cf-lista li div { flex: 1; } .a3cf-lista small { display: block; color: #64748b; font-size: 12px; }
.a3cf-agregar { display: flex; flex-wrap: wrap; gap: 8px; } .a3cf-agregar select { flex: 1 1 260px; }
.a3cf-guia { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0 0; font-size: 13px; }
.a3cf-guia dt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a3cf-guia dd { margin: 0; color: #334155; }
.a3cf-nota { background: #f5f3ff; color: #4c1d95; border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 10px 0 0; }
.a3cf-fuente { margin: 16px 0 0; color: #94a3b8; font-size: 12px; }
/* Diálogo */
.a3cf-velo { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 23, 42, .45); display: grid; place-items: center; padding: 16px; }
.a3cf-dlg { background: #fff; border-radius: 16px; width: min(720px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(15, 23, 42, .25); }
.a3cf-dlg--chico { width: min(420px, 100%); padding: 18px 20px; }
.a3cf-dlg--chico h3 { margin: 0 0 6px; } .a3cf-dlg--chico p { margin: 0 0 14px; color: #475569; }
.a3cf-dlg--chico footer { display: flex; justify-content: flex-end; gap: 8px; }
.a3cf-dlg-cab { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px 8px; border-bottom: 1px solid #f1f5f9; }
.a3cf-dlg-cab div { flex: 1; } .a3cf-dlg-cab h3 { margin: 0; font-size: 18px; } .a3cf-dlg-cab p { margin: 2px 0 0; color: #64748b; font-size: 13px; }
.a3cf-x { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: #64748b; }
.a3cf-form { padding: 12px 18px; overflow-y: auto; display: grid; gap: 12px; }
.a3cf-disc { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.a3cf-disc legend { font-size: 13px; color: #475569; margin-bottom: 6px; }
.a3cf-disc label { display: grid; gap: 2px; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 10px; cursor: pointer; }
.a3cf-disc label.is-on { border-color: #7c3aed; box-shadow: 0 0 0 2px #ede9fe; }
.a3cf-disc input { position: absolute; opacity: 0; pointer-events: none; }
.a3cf-disc label:focus-within { outline: 2px solid #7c3aed; outline-offset: 1px; }
.a3cf-disc small { color: #64748b; font-size: 11px; line-height: 1.35; }
.a3cf-campo { display: grid; gap: 4px; font-size: 13px; color: #475569; }
.a3cf-campo select, .a3cf-campo input, .a3cf-campo textarea { min-height: 40px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 0 10px; font: inherit; color: #0f172a; background: #fff; }
.a3cf-campo textarea { padding: 8px 10px; resize: vertical; }
.a3cf-campo small { color: #64748b; font-size: 12px; }
.a3cf-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.a3cf-hist { background: #f8fafc; border-radius: 10px; padding: 8px 12px; font-size: 12px; }
.a3cf-hist ul { margin: 4px 0 0; padding-left: 16px; } .a3cf-hist span { color: #64748b; }
.a3cf-dlg-pie { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 18px; border-top: 1px solid #f1f5f9; }
.a3cf-esp { flex: 1; }
@media (max-width: 700px) {
  .a3cf { padding: 14px 12px 40px; }
  .a3cf-cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a3cf-dos { grid-template-columns: 1fr; }
  .a3cf-clase { justify-items: start; text-align: left; }
  .a3cf-dlg { max-height: 100vh; border-radius: 12px; }
  .a3cf-dlg-pie { position: sticky; bottom: 0; background: #fff; }
}
/* El panel pone los <label> en mayúsculas: aquí llevan descripciones largas. */
.a3cf label, .a3cf-velo label, .a3cf-velo legend, .a3cf-velo small { text-transform: none; letter-spacing: normal; }
.a3cf-disc label b { font-size: 13px; }
.a3cf-tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.a3cf-deps-sel { margin: 0 0 12px; }
@media (max-width: 700px) { .a3cf-tres { grid-template-columns: 1fr; } }

/* Reglas por deporte (30-nov) */
.a3cf-reglas { padding: 12px 16px; }
.a3cf-reglas summary { cursor: pointer; font-weight: 700; color: #0b4789; }
.a3cf-reglas ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: .9rem; color: #334155; }
.a3cf-depsel { margin-top: 12px; }
