/* Arenas 360 — Puntos y podios (panel). Minimalista, con el branding. */
.a3p { --n: #0b4789; --n9: #061f3d; --g: #ffca7d; --ink: #0f172a; --mut: #64748b; --lin: #e5e9f0; --tint: #f6f8fb;
  --oro: #e9a94a; --plata: #94a3b8; --bronce: #c2763f;
  font-family: "Geist", "Inter", system-ui, -apple-system, sans-serif; color: var(--ink); }
.a3p button { font: inherit; cursor: pointer; }

.a3p-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.a3p-kicker { margin: 0; font: 500 11px/1 Oswald, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #b7791f; }
.a3p-cab h1 { margin: 6px 0 0; font-size: 22px; font-weight: 600; }
.a3p-sub { margin: 6px 0 0; font-size: 14px; color: var(--mut); }
.a3p-acc { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 1 520px; justify-content: flex-end; }
.a3p-sel, .a3p-buscar { height: 42px; border-radius: 12px; border: 1px solid var(--lin); background: var(--tint); padding: 0 12px; font: inherit; font-size: 14.5px; color: var(--ink); min-width: 0; }
.a3p-sel { flex: 1 1 280px; }
.a3p-sel:focus, .a3p-buscar:focus { outline: 0; border-color: var(--n); background: #fff; box-shadow: 0 0 0 4px rgb(11 71 137 / .1); }
.a3p-btn { height: 42px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--n); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.a3p-btn--sec { background: #fff; color: var(--n); border: 1px solid var(--lin); }
.a3p-error { color: #b91c1c; }
.a3p-vacio { padding: 40px 12px; text-align: center; color: var(--mut); display: grid; gap: 6px; border: 1px dashed var(--lin); border-radius: 18px; background: #fff; }
.a3p-vacio strong { color: var(--ink); }

/* Resumen */
.a3p-resumen { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.a3p-resumen > div { padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--lin); display: grid; min-width: 110px; }
.a3p-resumen b { font-size: 20px; font-weight: 700; color: var(--n); font-variant-numeric: tabular-nums; }
.a3p-resumen span { font-size: 12px; color: var(--mut); }
.a3p-escala { flex: 1 1 320px; }
.a3p-escala p { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.a3p-escala i { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--tint); color: var(--n); }

/* Podio */
.a3p-podio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; margin-bottom: 16px; }
.a3p-podio-item { position: relative; display: grid; gap: 6px; justify-items: center; text-align: center; padding: 18px 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--lin); }
.a3p-podio-item[data-pos="1"] { padding-top: 26px; padding-bottom: 24px; border-color: rgb(233 169 74 / .55); background: linear-gradient(180deg, #fff8ec, #fff 70%); box-shadow: 0 12px 30px rgb(15 23 42 / .08); }
.a3p-podio-item strong { font-size: 15px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a3p-podio-pos { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--plata); }
.a3p-podio-item[data-pos="1"] .a3p-podio-pos { width: 42px; height: 42px; font-size: 18px; background: var(--oro); }
.a3p-podio-item[data-pos="3"] .a3p-podio-pos { background: var(--bronce); }
.a3p-podio-pts { font-size: 18px; color: var(--n); font-variant-numeric: tabular-nums; }

/* Medallas */
.a3p-med { display: inline-flex; gap: 10px; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.a3p-med span { display: inline-flex; align-items: center; gap: 5px; color: #334155; }
.a3p-med span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--oro); }
.a3p-med span[data-m="plata"]::before { background: var(--plata); }
.a3p-med span[data-m="bronce"]::before { background: var(--bronce); }

/* Tabla + mejores */
.a3p-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.a3p-tabla, .a3p-mejores { background: #fff; border: 1px solid var(--lin); border-radius: 18px; padding: 14px; }
.a3p-tabla-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.a3p h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; }
.a3p-tabla-herr { display: flex; gap: 8px; flex-wrap: wrap; }
.a3p-buscar { width: 220px; height: 38px; }
.a3p-seg { display: flex; background: var(--tint); border-radius: 12px; padding: 3px; }
.a3p-seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--mut); font-size: 13px; font-weight: 500; }
.a3p-seg button.is-on { background: #fff; color: var(--n); box-shadow: 0 1px 3px rgb(15 23 42 / .1); }

.a3p-fila { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) 170px 56px 64px; gap: 10px; align-items: center; padding: 11px 10px; border: 0; background: none; text-align: left; border-radius: 12px; }
.a3p-fila--cab { padding-top: 4px; padding-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.a3p-fila--cab span:nth-child(n+4) { text-align: right; }
.a3p-org { border-top: 1px solid #eef1f6; }
.a3p-org > .a3p-fila:hover { background: var(--tint); }
.a3p-org.is-abierta > .a3p-fila { background: #f3f7fc; }
.a3p-pos { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13.5px; color: var(--n); background: var(--tint); font-variant-numeric: tabular-nums; }
.a3p-pos[data-pos="1"] { background: var(--oro); color: #fff; }
.a3p-pos[data-pos="2"] { background: var(--plata); color: #fff; }
.a3p-pos[data-pos="3"] { background: var(--bronce); color: #fff; }
.a3p-nombre { font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.a3p-total { text-align: right; color: var(--mut); font-variant-numeric: tabular-nums; }
.a3p-pts { text-align: right; font-size: 16px; font-weight: 700; color: var(--n); font-variant-numeric: tabular-nums; }
.a3p-detalle { padding: 4px 10px 14px 60px; }
.a3p-detalle ul, .a3p-mejores ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.a3p-detalle li, .a3p-mejores li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--tint); }
.a3p-detalle p { margin: 0; font-size: 13px; color: var(--mut); }
.a3p-lugar { font-weight: 700; font-size: 13px; color: var(--n); }
.a3p-lugar[data-pos="1"] { color: #b7791f; }
.a3p-lugar[data-pos="3"] { color: #a35b2a; }
.a3p-det-txt { display: grid; min-width: 0; }
.a3p-det-txt b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a3p-det-txt small { font-size: 12px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a3p-det-pts { font-weight: 700; color: var(--n); font-variant-numeric: tabular-nums; }
.a3p-nada { color: var(--mut); font-size: 13px; padding: 12px; }
.a3p-mejores h2 { margin-bottom: 10px; }
.a3p-mejores li { grid-template-columns: 30px minmax(0, 1fr) auto; background: none; border-bottom: 1px solid #eef1f6; border-radius: 0; padding: 8px 2px; }
.a3p-mejores .a3p-pos { width: 26px; height: 26px; font-size: 12px; }

@media (max-width: 1100px) { .a3p-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .a3p-acc { flex-basis: 100%; }
  .a3p-podio { grid-template-columns: 1fr; }
  .a3p-podio-item[data-pos="1"] { order: -1; }
  .a3p-podio-item { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; padding: 12px 14px !important; }
  .a3p-podio-item strong { grid-column: 2; }
  .a3p-podio-item .a3p-med { grid-column: 2; grid-row: 2; }
  .a3p-podio-pts { grid-column: 3; grid-row: 1 / 3; align-self: center; font-size: 16px; }
  .a3p-podio-pos { grid-row: 1 / 3; align-self: center; }
  .a3p-fila { grid-template-columns: 34px minmax(0, 1fr) 52px; row-gap: 4px; }
  .a3p-fila--cab { display: none; }
  .a3p-fila .a3p-med { grid-column: 2; grid-row: 2; font-size: 12.5px; }
  .a3p-fila .a3p-total { display: none; }
  .a3p-fila .a3p-pts { grid-column: 3; grid-row: 1 / 3; }
  .a3p-fila .a3p-pos { grid-row: 1 / 3; }
  .a3p-detalle { padding-left: 8px; padding-right: 8px; }
  .a3p-buscar { width: 100%; }
  .a3p-tabla-herr { width: 100%; }
}
.a3p-cab > div { min-width: 0; }
.a3p-sel { width: 0; max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 640px) { .a3p-sel { width: auto; flex: 1 1 0; } }
.a3p { min-width: 0; } .a3p > * { min-width: 0; max-width: 100%; }
@media (max-width: 640px) { .a3p-resumen > div { min-width: 0; flex: 1 1 28%; padding: 8px 10px; } .a3p-resumen > .a3p-escala { flex-basis: 100%; } .a3p-resumen b { font-size: 18px; } }
/* Criterio elegido: botón activo bien visible y columna que manda resaltada */
.a3p-seg button.is-on { background: var(--n); color: #fff; box-shadow: none; }
.a3p-criterio { margin: -2px 10px 6px; font-size: 12px; color: var(--mut); }
.a3p-tabla.is-medallas .a3p-pts { font-size: 14px; font-weight: 500; color: var(--mut); }
.a3p-tabla.is-medallas .a3p-fila .a3p-med { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.a3p-tabla.is-medallas .a3p-fila .a3p-med span { color: var(--ink); }
.a3p-tabla.is-medallas .a3p-fila--cab span:nth-child(3), .a3p-tabla.is-puntos .a3p-fila--cab span:nth-child(5) { color: var(--n); }
.a3p-mejores .a3p-med { gap: 8px; font-size: 12.5px; }
