:root {
  color-scheme: dark;
  --fondo: #0f1113;
  --panel: #171a1d;
  --panel-2: #1f2327;
  --borde: #2b3035;
  --texto: #f1f2ef;
  --texto-2: #b3b8bc;
  --texto-3: #858b90;
  --supero: #0ca30c;
  --no-llego: #d03b3b;
  --igual: #7a8086;
  --fantasma: #8d949a;
  --secundario: #6fb6ff;
  --acento: #f0a640;
  --radio: 6px;
  --fuente: "Barlow", system-ui, sans-serif;
  --fuente-titulo: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--fondo);
  color: var(--texto);
  font: 400 15px/1.5 var(--fuente);
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.barra {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--borde);
}
.marca { font: 700 20px/1 var(--fuente-titulo); letter-spacing: .01em; white-space: nowrap; }
.buscador { position: relative; flex: 1; max-width: 420px; }
.buscador input {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 38px;
  background: var(--panel);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
}
.buscador input::placeholder { color: var(--texto-3); }
.buscador input::-webkit-search-cancel-button { display: none; }
.lupa {
  position: absolute; left: 12px; top: 11px; width: 18px; height: 18px;
  fill: none; stroke: var(--texto-3); stroke-width: 2; stroke-linecap: round;
}
.buscador kbd {
  position: absolute; right: 10px; top: 9px;
  font: 500 12px/20px var(--fuente); color: var(--texto-3);
  border: 1px solid var(--borde); border-radius: 4px; padding: 0 6px;
}
#sugerencias {
  position: absolute; z-index: 10; top: 44px; left: 0; right: 0;
  margin: 0; padding: 4px; list-style: none;
  background: var(--panel-2); border: 1px solid var(--borde); border-radius: var(--radio);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
#sugerencias li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 10px; border-radius: 4px; cursor: pointer;
}
#sugerencias li[aria-selected="true"], #sugerencias li:hover { background: var(--borde); }
.sug-eq { color: var(--texto-3); white-space: nowrap; }
main { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px 32px; }
.vacio { padding: 96px 0; text-align: center; color: var(--texto-2); font-size: 17px; }
.error { margin: 24px 0; padding: 12px 16px; border: 1px solid var(--no-llego); border-radius: var(--radio); }
.cabecera {
  display: grid;
  grid-template-columns: 180px minmax(200px, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding-top: 20px;
  border-bottom: 1px solid var(--borde);
}
.foto { align-self: end; height: 132px; overflow: hidden; }
.foto img { display: block; width: 180px; height: auto; }
.identidad { padding-bottom: 20px; align-self: center; }
.identidad h1 { margin: 0 0 6px; font: 700 36px/1.05 var(--fuente-titulo); letter-spacing: .005em; text-wrap: balance; }
.sub { margin: 0; color: var(--texto-2); font-size: 16px; }
.logo { display: block; width: 44px; height: 44px; margin-top: 14px; }
.datos {
  display: grid;
  grid-template-columns: repeat(3, minmax(122px, auto));
  gap: 14px 22px;
  margin: 0;
  padding-bottom: 20px;
}
.datos dt { color: var(--texto-3); font-size: 13px; font-weight: 500; }
.datos dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.flecha { width: 10px; height: 10px; flex: none; }
.flecha.arriba { fill: var(--supero); }
.flecha.abajo { fill: var(--no-llego); }
.datos .detalle { color: var(--texto-3); font-weight: 500; font-size: 14px; }
.datos .aparte { flex-basis: 100%; }
.junto { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.linea { gap: 0 !important; flex-wrap: nowrap !important; }
.linea input {
  width: 52px; height: 30px; text-align: center; font-weight: 600;
  background: var(--panel); border: 1px solid var(--borde); border-left: 0; border-right: 0;
}
.linea button {
  width: 30px; height: 30px; padding: 0; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--borde);
}
.linea button:first-child { border-radius: var(--radio) 0 0 var(--radio); }
.linea button:last-child { border-radius: 0 var(--radio) var(--radio) 0; }
.linea button:hover { background: var(--borde); }
select {
  max-width: 190px; height: 30px; padding: 0 28px 0 8px; font-weight: 600; cursor: pointer;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23b3b8bc' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center / 10px;
  border: 1px solid var(--borde); border-radius: var(--radio);
  appearance: none;
}
.celda-cruce { display: flex; align-items: end; }
.boton-cruce {
  height: 34px; padding: 0 14px; cursor: pointer; font-weight: 600;
  background: var(--panel-2); border: 1px solid var(--borde); border-radius: var(--radio);
}
.boton-cruce:hover:not(:disabled) { background: var(--borde); }
.boton-cruce:disabled { opacity: .4; cursor: not-allowed; }
dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 64px); max-height: calc(100dvh - 48px);
  padding: 20px 20px 12px;
  overflow: hidden;
  background: var(--panel); color: var(--texto);
  border: 1px solid var(--borde); border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
}
dialog[open] { display: flex; flex-direction: column; }
dialog .tabla-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin-top: 0; }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
.cruce-cabeza { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.cruce-cabeza h2 { margin: 0; font: 700 24px/1.15 var(--fuente-titulo); }
.cerrar {
  flex: none; width: 36px; height: 36px; padding: 8px; margin: -6px -6px 0 0; cursor: pointer;
  background: none; border: 0; border-radius: var(--radio);
}
.cerrar:hover { background: var(--panel-2); }
.cerrar svg { width: 20px; height: 20px; stroke: var(--texto-2); stroke-width: 2; stroke-linecap: round; }
.cruce-nota { margin: 6px 0 12px; color: var(--texto-2); font-size: 14px; }
#cruce-tabla { border-collapse: collapse; width: 100%; font-size: 14px; }
#cruce-tabla th, #cruce-tabla td { padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--borde); white-space: nowrap; }
#cruce-tabla th { color: var(--texto-3); font-weight: 500; position: sticky; top: 0; background: var(--panel); }
#cruce-tabla th:nth-child(2), #cruce-tabla td:nth-child(2) { text-align: left; width: 100%; }
#cruce-tabla tr.rival td { background: var(--panel-2); font-weight: 700; }
#cruce-tabla tr.rival td:first-child { box-shadow: inset 3px 0 0 var(--acento); }
.dif-mas { color: #5fd35f; }
.dif-menos { color: #f07a7a; }
.controles {
  min-width: 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px 24px; padding: 18px 0 8px;
}
#rangos { display: flex; gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
#rangos button {
  flex: none; height: 34px; padding: 0 14px; cursor: pointer;
  background: none; border: 1px solid transparent; border-radius: var(--radio);
  color: var(--texto-2); font-weight: 600;
}
#rangos button:hover:not(:disabled) { color: var(--texto); background: var(--panel); }
#rangos button[aria-selected="true"] { color: var(--texto); background: var(--panel-2); border-color: var(--borde); }
#rangos button:disabled { opacity: .4; cursor: not-allowed; }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--texto-2); font-size: 13px; }
.leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.muestra { width: 12px; height: 12px; border-radius: 3px; }
.muestra.supero { background: var(--supero); }
.muestra.no-llego { background: var(--no-llego); }
.muestra.fantasma { border: 1.5px solid var(--fantasma); }
.grafico { position: relative; min-height: 240px; }
.grafico > svg { display: block; width: 100%; overflow: visible; }
.grafico .eje { fill: var(--texto-3); font-size: 12px; }
.grafico .eje-x { fill: var(--texto-3); font-size: 12px; text-anchor: middle; }
.grafico .eje-x .rival { fill: var(--texto-2); font-weight: 500; }
.grafico .eje-x.res { font-size: 11px; font-weight: 600; }
.grafico .eje-x.res.g { fill: var(--texto); }
.grafico .eje-x.res.p { fill: var(--texto-3); font-weight: 500; }
.grafico .valor { fill: var(--texto); font-size: 13px; font-weight: 600; text-anchor: middle; }
.grafico .grilla { stroke: var(--borde); stroke-width: 1; }
.grafico .raya { stroke: var(--texto); stroke-width: 1.5; }
.grafico .raya-etiqueta { fill: var(--texto); font-size: 13px; font-weight: 700; text-anchor: end; }
.grafico .supero { fill: var(--supero); }
.grafico .no-llego { fill: var(--no-llego); }
.grafico .igual { fill: var(--igual); }
.grafico .fantasma { fill: rgba(141, 148, 154, .08); stroke: var(--fantasma); stroke-width: 1.5; }
.grafico .col { cursor: pointer; outline: none; }
.tip .tip-pie { margin-top: 6px; font-size: 12px; color: var(--texto-3); }
.grafico .col .zona { fill: transparent; }
.grafico .col:hover .zona, .grafico .col:focus .zona { fill: rgba(255, 255, 255, .04); }
.grafico .col:focus-visible .zona { stroke: var(--acento); stroke-width: 2; }
.sin-datos { padding: 64px 0; text-align: center; color: var(--texto-2); }
.tip {
  position: absolute; z-index: 5; pointer-events: none;
  min-width: 170px; padding: 10px 12px;
  background: var(--panel-2); border: 1px solid var(--borde); border-radius: var(--radio);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
  font-size: 13px; line-height: 1.45;
}
.tip strong { display: block; font-size: 14px; margin-bottom: 4px; }
.tip .fila { display: flex; justify-content: space-between; gap: 16px; color: var(--texto-2); }
.tip .fila span, .tip .fila b { white-space: nowrap; }
.tip .fila b { color: var(--texto); font-weight: 600; }
.tip .veredicto { margin-top: 6px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.lectura { margin: 6px 0 0; color: var(--texto-2); min-height: 1.5em; }
.lectura b { color: var(--texto); font-weight: 600; }
.tabla { margin-top: 20px; border-top: 1px solid var(--borde); padding-top: 12px; }
.tabla summary { cursor: pointer; color: var(--texto-2); font-weight: 500; width: max-content; }
.tabla-scroll { overflow-x: auto; margin-top: 10px; }
.tabla table { border-collapse: collapse; width: 100%; font-size: 14px; }
.tabla th, .tabla td { padding: 6px 10px; text-align: right; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.tabla th:first-child, .tabla td:first-child, .tabla th:nth-child(2), .tabla td:nth-child(2) { text-align: left; }
.tabla th { color: var(--texto-3); font-weight: 500; }
.pie { padding: 16px 24px 44px; color: var(--texto-3); font-size: 13px; text-align: center; }
.pie p { margin: 0; }
.pie p:empty { display: none; }
.aviso-legal { margin-top: 6px !important; font-size: 12px; color: var(--texto-3); opacity: .8; }
@media (max-width: 900px) {
  .cabecera { grid-template-columns: 120px minmax(0, 1fr); gap: 16px 20px; }
  .foto { height: 92px; }
  .foto img { width: 120px; }
  .identidad h1 { font-size: 30px; }
  .logo { display: none; }
  .datos { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
}
@media (max-width: 560px) {
  .barra { padding: 10px 16px; gap: 14px; }
  .marca { font-size: 17px; }
  .buscador kbd { display: none; }
  main { padding: 0 16px 24px; }
  .cabecera { grid-template-columns: 84px minmax(0, 1fr); }
  .foto { height: 64px; }
  .foto img { width: 84px; }
  .identidad { padding-bottom: 12px; }
  .identidad h1 { font-size: 26px; }
  .sub { font-size: 14px; }
  .datos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #rangos button { padding: 0 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .grafico .barra-anim { transition: opacity .2s; }
}
a.marca { color: var(--texto); text-decoration: none; }
a { color: inherit; }
.boton-chico {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px; cursor: pointer; font-weight: 600; font-size: 14px;
  background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio);
}
.boton-chico:hover:not(:disabled) { background: var(--panel-2); }
.boton-chico:disabled { opacity: .4; cursor: not-allowed; }
.boton-chico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.dia-nav { display: flex; align-items: center; gap: 8px; padding: 24px 0 16px; }
.dia-nav h1 { margin: 0 8px; font: 700 30px/1.1 var(--fuente-titulo); min-width: 0; }
.flechita {
  flex: none; width: 36px; height: 36px; padding: 7px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio);
}
.flechita:hover:not(:disabled) { background: var(--panel-2); }
.flechita:disabled { opacity: .35; cursor: not-allowed; }
.flechita svg { width: 20px; height: 20px; fill: none; stroke: var(--texto); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#dia-hoy { margin-left: auto; }
.partidos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tarjeta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto;
  column-gap: 16px; row-gap: 8px; align-items: center;
  padding: 14px 16px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--borde); border-radius: 8px;
}
.tarjeta:hover { background: var(--panel-2); border-color: #3a4046; }
.eq-fila { grid-column: 1; display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.eq-fila.perdio { color: var(--texto-3); }
.eq-nombre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-pts { font-weight: 700; font-size: 17px; }
.escudo { flex: none; display: inline-block; object-fit: contain; }
.tarjeta-estado {
  grid-column: 2; grid-row: 1 / 3; align-self: center;
  padding-left: 16px; border-left: 1px solid var(--borde);
  color: var(--texto-2); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.vivo { color: var(--acento); }
.volver { display: inline-block; margin: 20px 0 8px; color: var(--texto-2); font-weight: 500; text-decoration: none; }
.volver::before { content: "‹ "; }
.volver:hover { color: var(--texto); }
.partido-cabeza {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
  padding: 12px 0 20px; border-bottom: 1px solid var(--borde);
}
.pc-equipo { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pc-local { flex-direction: row-reverse; text-align: right; }
.pc-tri { font: 700 30px/1 var(--fuente-titulo); }
.pc-pts { font: 700 40px/1 var(--fuente-titulo); margin: 0 8px; }
.pc-estado { color: var(--texto-2); font-weight: 600; text-align: center; white-space: nowrap; }
.pc-estado .detalle { margin-top: 4px; font-weight: 400; font-size: 13px; color: var(--texto-3); }
.pc-box { display: block; margin-top: 6px; font-size: 13px; color: var(--acento); }
.pc-equipo.perdio .pc-pts { color: var(--texto-3); }
.box-equipo { padding-top: 22px; }
.box-equipo h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 22px/1.1 var(--fuente-titulo); }
.box-equipo h2 .sub { font: 500 14px/1 var(--fuente); color: var(--texto-3); margin-left: auto; }
.tabla-box { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.tabla-box th, .tabla-box td { padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.tabla-box th { color: var(--texto-3); font-weight: 500; }
.tabla-box th:first-child, .tabla-box td:first-child { text-align: left; width: 100%; position: sticky; left: 0; background: var(--fondo); }
.tabla-box td a { font-weight: 600; text-decoration: none; }
.tabla-box td a:hover { text-decoration: underline; }
.tabla-box .detalle { color: var(--texto-3); font-size: 13px; margin-left: 4px; }
.tabla-box .box-pts { font-weight: 700; }
.tabla-box tr.box-corte td { color: var(--texto-3); font-size: 13px; padding-top: 12px; }
.tabla-box tfoot td { font-weight: 700; border-bottom: none; }
.tabla-box tfoot tr.box-pct td { font-weight: 400; color: var(--texto-3); font-size: 13px; padding-top: 0; }
.planteles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 20px; }
.plantel h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 700 22px/1.1 var(--fuente-titulo); }
.plantel h2 .sub { font: 500 14px/1 var(--fuente); color: var(--texto-3); margin-left: auto; }
.tabla-plantel { border-collapse: collapse; width: 100%; font-size: 14px; }
.tabla-plantel th, .tabla-plantel td { padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.tabla-plantel th { color: var(--texto-3); font-weight: 500; }
.tabla-plantel th:first-child, .tabla-plantel td:first-child { text-align: left; width: 100%; }
.tabla-plantel tbody tr { cursor: pointer; }
.tabla-plantel tbody tr:hover td { background: var(--panel); }
.tabla-plantel td a { font-weight: 600; text-decoration: none; }
.tabla-plantel td a:hover { text-decoration: underline; }
.tabla-plantel .detalle { color: var(--texto-3); font-size: 13px; margin-left: 4px; }
.tabla-plantel tr.ant td:not(:first-child) { color: var(--texto-3); }
.marca-ant {
  margin-left: 6px; padding: 1px 6px; border: 1px solid var(--borde); border-radius: 4px;
  color: var(--texto-3); font-size: 12px;
}
.fila-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 4px 0 10px; }
.chips { display: contents; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 4px 0 10px; font-size: 14px; font-weight: 600;
  background: var(--panel-2); border: 1px solid var(--borde); border-radius: 15px;
}
.chip-con { border-color: rgba(12, 163, 12, .6); }
.chip-sin { border-color: rgba(208, 59, 59, .7); }
.chip button {
  width: 22px; height: 22px; padding: 3px; cursor: pointer; border: 0; border-radius: 11px; background: none;
}
.chip button:hover { background: var(--borde); }
.chip svg { width: 16px; height: 16px; fill: none; stroke: var(--texto-2); stroke-width: 2; stroke-linecap: round; }
.chips-cuenta { color: var(--texto-3); font-size: 14px; }
#comp h3 { margin: 14px 0 4px; font-size: 13px; font-weight: 500; color: var(--texto-3); }
#comp h3:first-child { margin-top: 0; }
.comp-fila {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--borde);
}
.comp-nombre { font-weight: 600; min-width: 0; }
.comp-nombre .detalle { color: var(--texto-3); font-weight: 500; font-size: 13px; }
.segmento { display: flex; flex: none; }
.segmento button {
  min-width: 64px; height: 30px; padding: 0 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--texto-2);
  background: var(--panel); border: 1px solid var(--borde); margin-left: -1px;
}
.segmento button:first-child { border-radius: var(--radio) 0 0 var(--radio); margin-left: 0; }
.segmento button:last-child { border-radius: 0 var(--radio) var(--radio) 0; }
.segmento button span { color: var(--texto-3); font-weight: 500; }
.segmento button:hover:not(:disabled) { background: var(--panel-2); }
.segmento button:disabled { opacity: .35; cursor: not-allowed; }
.segmento button[aria-pressed="true"] { color: var(--texto); background: var(--borde); }
.segmento button[data-modo="con"][aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--supero); }
.segmento button[data-modo="sin"][aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--no-llego); }
.segmento button[aria-pressed="true"] span { color: var(--texto-2); }
.comp-pie { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; }
@media (max-width: 900px) {
  .planteles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .dia-nav h1 { font-size: 22px; }
  .partidos { grid-template-columns: 1fr; }
  .pc-tri { font-size: 22px; }
  .pc-pts { font-size: 28px; margin: 0; }
  .pc-equipo { gap: 8px; }
  .pc-equipo .sub { display: none; }
  .pc-equipo .escudo { width: 36px; height: 36px; }
  .comp-fila { flex-direction: column; align-items: stretch; gap: 6px; }
  .segmento button { flex: 1; }
  .tabla-plantel { font-size: 13px; }
  .tabla-plantel th, .tabla-plantel td { padding: 7px 5px; }
  .tabla-plantel td:first-child { white-space: normal; }
  .tabla-plantel .detalle { display: none; }
}
.minutos { display: inline-flex; align-items: center; gap: 6px; color: var(--texto-2); font-size: 14px; font-weight: 500; }
.minutos input {
  width: 64px; height: 32px; padding: 0 8px; text-align: center; font-weight: 600;
  background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio);
}
.minutos input::placeholder { color: var(--texto-3); font-weight: 400; }
.paneles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.panel {
  min-width: 0; padding: 16px 18px;
  background: var(--panel); border: 1px solid var(--borde); border-radius: 10px;
}
.panel h2 { margin: 0 0 12px; font: 700 22px/1.15 var(--fuente-titulo); }
.panel h3 { margin: 0; font-size: 15px; font-weight: 600; }
.panel-sub { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 18px 0 8px; }
.panel-nota { margin: 10px 0 0; color: var(--texto-3); font-size: 13px; line-height: 1.45; }
.panel-vacio { margin: 12px 0; color: var(--texto-2); }
.ver-mas { margin-top: 10px; }
.tabla-panel { border-collapse: collapse; width: 100%; font-size: 14px; }
.tabla-panel th, .tabla-panel td { padding: 7px 6px; text-align: right; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.tabla-panel th { color: var(--texto-3); font-weight: 500; }
.tabla-panel th:first-child, .tabla-panel td:first-child { text-align: left; }
.tabla-panel td a { font-weight: 600; text-decoration: none; }
.tabla-panel td a:hover { text-decoration: underline; }
.tabla-panel .detalle { color: var(--texto-3); }
.tabla-panel .junto { justify-content: flex-end; }
.tabla-panel td:first-child .junto { justify-content: flex-start; }
.resumen td:first-child { white-space: normal; color: var(--texto-2); }
.punto { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--igual); }
.color { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.segmento.chico button { min-width: 0; height: 28px; font-size: 13px; }
.segmento.ancho { display: flex; margin-bottom: 8px; }
.segmento.ancho button { flex: 1; min-width: 0; }
.correl-fila {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--borde); text-decoration: none;
}
.correl-fila:hover { background: var(--panel-2); }
.cara { width: 40px; height: 30px; object-fit: cover; object-position: top; border-radius: 4px; background: var(--panel-2); }
.correl-quien, .correl-tasa { display: flex; flex-direction: column; min-width: 0; }
.correl-quien b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.correl-tasa { text-align: right; }
.correl-fila .detalle { color: var(--texto-3); font-size: 13px; }
.correl-tasa b { font-size: 17px; }
.correl-tasa b.alto { color: #5fd35f; }
.correl-tasa b.bajo { color: #f07a7a; }
.mini .supero { fill: var(--supero); }
.mini .no-llego { fill: var(--no-llego); }
.mini .ant { opacity: .35; }
.raya-mini { stroke: var(--texto-2); stroke-width: 1; stroke-dasharray: 2 2; }
.cancha { display: block; width: 100%; max-width: 460px; margin: 4px auto 0; }
.cancha .lineas * { fill: none; stroke: #3a4046; stroke-width: 2; }
.zona-etq text { text-anchor: middle; }
.asist-zonas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.asist-zonas .panel-nota { grid-column: 1 / -1; }
.az-col h3 { margin: 0; font: 700 18px/1.2 var(--fuente-titulo); }
.az-col > .detalle { margin: 2px 0 6px; font-size: 13px; min-height: 2.6em; }
.az-zona { stroke: none; }
.az-zona.alto { fill: rgba(208, 59, 59, .55); }
.az-zona.medio { fill: rgba(240, 166, 64, .35); }
.az-zona.bajo { fill: rgba(141, 148, 154, .18); }
.az-zona.sin { fill: rgba(141, 148, 154, .1); }
.az-etq { display: flex; justify-content: center; align-items: center; gap: 4px; height: 26px; }
.az-etq b, .az-etq span { padding: 1px 6px; border-radius: 4px; font-size: 15px; line-height: 20px; }
.az-etq b { background: var(--texto); color: var(--fondo); }
.az-etq span { background: var(--fondo); color: var(--texto); border: 1px solid var(--borde); }
.az-lista { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; }
.az-lista li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--borde); }
.az-lista .detalle { min-width: 120px; text-align: right; }
@media (max-width: 700px) { .asist-zonas { grid-template-columns: minmax(0, 1fr); } }
.conex-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.conex-cols h3 { margin: 0; font: 700 18px/1.2 var(--fuente-titulo); }
.conex-cols > div > .detalle { margin: 2px 0 8px; font-size: 13px; }
.conex-lista { margin: 0; padding: 0; list-style: none; }
.conex-lista li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(40px, 1fr) 34px 38px; align-items: center;
  gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--borde); font-size: 14px; }
.conex-lista li > b { text-align: right; }
.conex-lista li > .detalle { text-align: right; font-size: 13px; }
.conex-quien { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--texto); text-decoration: none; }
.conex-nombre { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.conex-nombre > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conex-nombre small { font-size: 11px; color: var(--texto-3); }
.conex-quien:hover .conex-nombre > span { text-decoration: underline; }
.conex-quien .cara { width: 32px; height: 24px; flex: none; }
.conex-barra { height: 8px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.conex-barra i { display: block; height: 100%; background: var(--acento); border-radius: 4px; }
.conex-lista li.ya-no { color: var(--texto-3); }
.conex-lista li.ya-no .conex-quien { color: var(--texto-3); }
.conex-lista li.ya-no .conex-barra i { background: var(--igual); }
@media (max-width: 700px) { .conex-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .conex-lista li { grid-template-columns: minmax(0, 1fr) 48px 30px 34px; gap: 8px; } }
.z-nombre { fill: var(--texto-3); font-size: 14px; font-weight: 500; }
.z-sub { fill: var(--texto-3); font-size: 13px; }
.z-valor {
  display: flex; justify-content: center; align-items: center; gap: 5px; height: 24px;
  color: var(--texto); font: 700 19px/1 var(--fuente); font-variant-numeric: tabular-nums;
}
.z-valor .flecha { width: 11px; height: 11px; }
.perfil-cuerpo { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: center; }
.dona { width: 180px; height: 180px; }
.dona-etq { fill: #fff; font-size: 12px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: 2px; }
@media (max-width: 900px) {
  .paneles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .perfil-cuerpo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .correl-fila { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .correl-fila .mini { display: none; }
  .panel { padding: 14px; }
}
.zona-etq.pocos .z-valor { opacity: .45; }
.panel .tabla-scroll { overflow-x: auto; }
.perfil-cuerpo > * { min-width: 0; }
.ficha-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 344px;
  grid-template-areas: "principal lateral" "paneles lateral";
  column-gap: 24px; align-items: start;
}
.col-principal { grid-area: principal; min-width: 0; }
.ficha-grid > .paneles { grid-area: paneles; }
.panel-ancho { grid-column: 1 / -1; }
.lateral {
  grid-area: lateral; align-self: start;
  position: sticky; top: 16px; margin-top: 20px;
  max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--panel); border: 1px solid var(--borde); border-radius: 10px;
  scrollbar-width: thin; scrollbar-color: var(--borde) transparent;
}
.lat-cabeza {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-bottom: 1px solid var(--borde);
}
.lat-nombre { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lat-nombre b { font: 700 24px/1.05 var(--fuente-titulo); }
.lat-nombre .detalle { color: var(--texto-3); font-size: 13px; }
.lat-cuerpo { padding: 4px 18px 18px; }
.lat-bloque { padding: 16px 0; border-bottom: 1px solid var(--borde); }
.lat-bloque:last-child { border-bottom: 0; padding-bottom: 0; }
.lat-bloque h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.lat-bloque h4 { margin: 16px 0 8px; font-size: 13px; font-weight: 500; color: var(--texto-3); }
.lat-fila-titulo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.lat-fila-titulo h3 { margin: 0; }
.lat-bloque p { margin: 0 0 8px; color: var(--texto-2); font-size: 14px; }
.lat-bloque p b { color: var(--texto); }
.lateral .tabla-panel { font-size: 13px; }
.lateral .tabla-panel th, .lateral .tabla-panel td { padding: 6px 4px; }
.tira { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--borde) transparent; }
.tira-item {
  flex: none; display: grid; grid-template-columns: auto auto; column-gap: 8px; row-gap: 2px; align-items: center;
  padding: 8px 10px; font-size: 13px; background: var(--panel-2); border: 1px solid var(--borde); border-radius: 8px;
}
a.tira-item { color: inherit; text-decoration: none; }
a.tira-item:hover { border-color: #3a4046; background: var(--panel); }
.tira-item b { font-weight: 700; }
.tira-item .detalle { color: var(--texto-3); }
.tira-res { width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #0f1113; }
.tira-res.g { background: var(--supero); }
.tira-res.p { background: var(--no-llego); }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; }
.vs-lado { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.vs-lado b { font-size: 15px; }
.vs-lado .detalle { color: var(--texto-3); font-size: 13px; }
.vs { color: var(--texto-3); font-weight: 600; font-size: 13px; }
.cara.grande { width: 64px; height: 48px; }
.fav { margin-bottom: 12px; }
.fav-fila { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.fav-fila span:first-child { color: var(--texto-2); font-weight: 500; }
.fav-pista { height: 10px; background: var(--panel-2); border-radius: 5px; overflow: hidden; }
.fav-barra { height: 100%; background: #3987e5; border-radius: 0 5px 5px 0; }
#rangos.segmentado {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--panel); border: 1px solid var(--borde); border-radius: 9px;
}
#rangos.segmentado button { height: 32px; padding: 0 13px; border: 0; border-radius: 6px; }
#rangos.segmentado button[aria-selected="true"] { background: var(--borde); border: 0; }
.fila-filtros { gap: 8px; padding: 10px 0 12px; }
.pildora {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px 0 11px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--texto-2);
  background: var(--panel); border: 1px solid var(--borde); border-radius: 17px;
}
.pildora b { color: var(--texto); font-weight: 700; }
.pildora svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pildora:hover:not(:disabled) { background: var(--panel-2); color: var(--texto); }
.pildora:disabled { opacity: .4; cursor: not-allowed; }
.pildora[aria-expanded="true"] { background: var(--panel-2); border-color: #4a5158; }
.pildora.activa { border-color: var(--acento); color: var(--texto); }
.pildora.activa b { color: var(--acento); }
.pildora-envoltura { position: relative; }
.popover.sec-pop { width: 480px; }
.sec-ayuda { margin: -4px 0 10px; font-size: 13px; color: var(--texto-3); }
.sec-opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; }
.sec-opciones button {
  display: flex; align-items: flex-start; gap: 9px; min-height: 32px; padding: 6px; text-align: left; cursor: pointer;
  background: none; border: 0; border-radius: var(--radio); color: var(--texto-2); font-size: 14px;
}
.sec-opciones button:hover:not(:disabled) { background: var(--panel); color: var(--texto); }
.sec-opciones button:disabled { opacity: .4; cursor: not-allowed; }
.sec-opciones i { flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--texto-3); }
.sec-texto { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.sec-texto small { font-size: 12px; font-weight: 400; color: var(--texto-3); }
.ayuda { position: relative; display: inline-flex; margin-left: 5px; vertical-align: middle; cursor: help; outline: none; }
.ayuda > b { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%;
  font: 700 10px/1 var(--fuente); color: var(--texto-2); border: 1.5px solid var(--texto-3); }
.ayuda:hover > b, .ayuda:focus-visible > b { color: var(--acento); border-color: var(--acento); }
.ayuda-texto { position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 8px); width: 240px; padding: 8px 10px;
  transform: translateX(calc(-50% + var(--dx, 0px))) translateY(4px); opacity: 0; pointer-events: none;
  font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--texto); text-align: left; white-space: normal;
  background: var(--panel-2); border: 1px solid #3a4046; border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
  transition: opacity .15s, transform .15s; }
.ayuda:hover .ayuda-texto, .ayuda:focus .ayuda-texto { opacity: 1; transform: translateX(calc(-50% + var(--dx, 0px))); }
@media (prefers-reduced-motion: reduce) { .ayuda-texto { transition: none; } }
.sec-opciones [aria-checked="true"] { color: var(--texto); font-weight: 600; }
.sec-opciones [aria-checked="true"] i { border-color: var(--acento); background: radial-gradient(var(--acento) 0 3px, transparent 3.5px); }
@media (max-width: 420px) { .sec-opciones { grid-template-columns: minmax(0, 1fr); } }
.grafico .eje-sec { fill: var(--fantasma); }
.grafico .eje-x.eje-sec { font-size: 11px; }
.grafico .eje-sec.en-linea { fill: var(--secundario); font-weight: 600; }
.leyenda-sec { color: var(--secundario); }
.popover {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0;
  width: 300px; max-width: calc(100vw - 32px); padding: 14px 16px 12px;
  background: var(--panel-2); border: 1px solid #3a4046; border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
}
.pop-cabeza { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-weight: 600; }
.pop-cabeza .detalle { color: var(--texto-3); font-size: 13px; font-weight: 500; }
.hist { display: block; width: 100%; height: 44px; }
.hist rect { fill: #3a4046; }
.hist rect.adentro { fill: var(--texto-2); }
.pop-pie { display: flex; justify-content: space-between; margin-top: 12px; }
.rango-doble { position: relative; height: 26px; margin-top: 6px; }
.rango-pista { position: absolute; left: 9px; right: 9px; top: 11px; height: 4px; background: #3a4046; border-radius: 2px; }
.rango-relleno { position: absolute; top: 0; bottom: 0; background: var(--texto); border-radius: 2px; }
.rango-doble input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 26px; margin: 0;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.rango-doble input[type="range"]::-webkit-slider-runnable-track { background: none; border: 0; }
.rango-doble input[type="range"]::-moz-range-track { background: none; border: 0; }
.rango-doble input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; cursor: grab;
  width: 18px; height: 18px; border-radius: 50%; margin-top: 0;
  background: var(--texto); border: 2px solid var(--panel-2); box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.rango-doble input[type="range"]::-moz-range-thumb {
  pointer-events: auto; cursor: grab;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--texto); border: 2px solid var(--panel-2); box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.rango-doble input[type="range"]:focus-visible { outline: none; }
.rango-doble input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--acento); }
.rango-doble input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--acento); }
.rango-extremos { display: flex; justify-content: space-between; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--texto-2); }
@media (max-width: 1180px) {
  .ficha-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "principal" "lateral" "paneles"; }
  .lateral { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 560px) {
  #rangos.segmentado { display: flex; max-width: 100%; overflow-x: auto; }
  #rangos.segmentado button { flex: none; }
}
.datos dd select { width: 100%; min-width: 0; }
.cambiar { display: flex; align-items: center; gap: 8px; padding-top: 16px; min-width: 0; }
.cambiar .segmento button { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.cambiar .flechita { width: 32px; height: 32px; padding: 6px; }
.cambiar-lista {
  flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto;
  scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.cambiar-lista::-webkit-scrollbar { display: none; }
.cambiar-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 4px;
  font-size: 13px; font-weight: 600; color: var(--texto-2); text-decoration: none;
  background: var(--panel); border: 1px solid var(--borde); border-radius: 17px;
}
.cambiar-chip img { width: 30px; height: 26px; object-fit: cover; object-position: top; border-radius: 13px; background: var(--panel-2); }
.cambiar-chip:hover { color: var(--texto); background: var(--panel-2); }
.cambiar-chip[aria-current="true"] { color: var(--texto); border-color: var(--acento); background: var(--panel-2); }
.periodos button { min-width: 0; padding: 0 12px; height: 34px; font-size: 14px; }
.periodos button:first-child { border-radius: 17px 0 0 17px; }
.periodos button:last-child { border-radius: 0 17px 17px 0; }
.periodos button { white-space: nowrap; }
@media (max-width: 560px) {
  .cambiar { flex-wrap: wrap; }
  #cambiar-equipos { flex-basis: 100%; }
  #cambiar-equipos button { flex: 1; justify-content: center; }
  .periodos { flex-basis: 100%; }
  .periodos button { flex: 1; padding: 0 6px; }
}
.dia-nav { flex-wrap: wrap; }
.vistas {
  display: inline-flex; gap: 2px; padding: 3px; margin-left: 8px;
  background: var(--panel); border: 1px solid var(--borde); border-radius: 9px;
}
#dia-hoy[hidden] + .vistas { margin-left: auto; }
.vistas button {
  height: 30px; padding: 0 14px; cursor: pointer; font-weight: 600; color: var(--texto-2);
  background: none; border: 0; border-radius: 6px;
}
.vistas button[aria-selected="true"] { color: var(--texto); background: var(--borde); }
.vistas button:hover { color: var(--texto); }
.tira-partidos { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: thin; scrollbar-color: var(--borde) transparent; }
.tira-partidos button {
  flex: none; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px;
  align-items: center; padding: 7px 12px; cursor: pointer; text-align: left;
  font-size: 13px; font-weight: 600; color: var(--texto-2);
  background: var(--panel); border: 1px solid var(--borde); border-radius: 8px;
}
.tira-partidos button:hover { background: var(--panel-2); color: var(--texto); }
.tira-partidos button[aria-pressed="true"] { border-color: var(--acento); color: var(--texto); background: var(--panel-2); }
.tira-partidos .tira-todos { grid-template-columns: auto; }
.ir-al-partido { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 14px; padding: 10px 14px;
  background: var(--panel); border: 1px solid var(--acento); border-radius: 10px; }
.ip-equipos { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ip-equipos .detalle { color: var(--texto-3); }
.ip-boton { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 8px 14px; border-radius: 8px;
  background: var(--acento); color: #1a1205; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ip-boton:hover { filter: brightness(1.08); }
.ip-boton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ip-sub { flex-basis: 100%; color: var(--texto-3); font-size: 13px; text-align: right; }
.ip-tri { display: none; }
.ip-equipos { white-space: nowrap; }
@media (max-width: 560px) { .ip-boton { margin-left: 0; width: 100%; justify-content: center; } .ip-sub { text-align: left; }
  .ip-nombre { display: none; } .ip-tri { display: inline; } }
.vs-total { font-size: 12px; color: var(--texto-3); }
.vs-lado .sube { color: #5fd35f; }
.vs-lado .baja { color: #ef6b6b; }
.vs-lado .detalle b { font-weight: 700; }
.tira-todos .detalle { color: var(--texto-3); font-weight: 500; font-size: 12px; }
.tp-eq { display: inline-flex; align-items: center; gap: 5px; grid-column: 1; }
.tp-hora { grid-column: 2; grid-row: 1 / 3; color: var(--texto-3); font-weight: 500; }
.mercados-barra { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; }
.mercados-barra .flechita { width: 34px; height: 34px; padding: 6px; border-radius: 17px; }
.mercados { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mercados::-webkit-scrollbar { display: none; }
.mercados button {
  flex: none; height: 34px; padding: 0 14px; cursor: pointer; font-weight: 600; font-size: 14px;
  color: var(--texto-2); background: none; border: 1px solid transparent; border-radius: 17px;
}
.mercados button:hover { color: var(--texto); background: var(--panel); }
.mercados button[aria-selected="true"] { color: var(--texto); background: var(--panel-2); border-color: var(--borde); }
.tablero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.tablero-principal { min-width: 0; }
.tablero-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.buscador.chico { max-width: 280px; }
.buscador.chico input { height: 36px; }
.buscador.chico .lupa { top: 9px; }
.tablero-barra .detalle { color: var(--texto-3); font-size: 14px; }
.tablero-marco { background: var(--panel); border: 1px solid var(--borde); border-radius: 10px; }
.tablero { border-collapse: collapse; width: 100%; font-size: 14px; }
.tablero th, .tablero td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.tablero tbody tr:last-child td { border-bottom: 0; }
.tablero th { position: sticky; top: 0; z-index: 1; background: var(--panel); color: var(--texto-3); font-weight: 500; font-size: 13px; }
.tablero th button { padding: 0; cursor: pointer; font: inherit; color: inherit; background: none; border: 0; }
.tablero th button:hover, .tablero th[aria-sort="ascending"] button, .tablero th[aria-sort="descending"] button { color: var(--texto); }
.tablero th:first-child, .tablero td:first-child { text-align: left; }
.tablero th:nth-child(2), .tablero td:nth-child(2) { text-align: left; }
.tablero tbody tr { cursor: pointer; }
.tablero tbody tr:hover td { background: var(--panel-2); }
.tablero td { font-weight: 600; font-variant-numeric: tabular-nums; }
.tablero td .detalle { color: var(--texto-3); font-weight: 500; font-size: 12px; }
.tablero .alto { color: #5fd35f; }
.tablero .bajo { color: #f07a7a; }
.tablero .junto { justify-content: flex-end; }
.tb-jugador { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tb-jugador > span { display: flex; flex-direction: column; line-height: 1.3; }
.tb-jugador b { font-weight: 700; }
.tb-linea { color: var(--texto-2); font-weight: 500; font-size: 13px; }
.tablero .cara { width: 40px; height: 30px; flex: none; }
.tablero td.panel-vacio { text-align: left; color: var(--texto-2); font-weight: 500; padding: 20px; }
.destacados { display: flex; flex-direction: column; gap: 14px; }
.dest-bloque { padding: 14px 16px; }
.dest-bloque h2 { font-size: 20px; margin-bottom: 8px; }
.dest-fila {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--borde); text-decoration: none;
}
.dest-fila:hover { background: var(--panel-2); }
.dest-quien { display: flex; flex-direction: column; min-width: 0; }
.dest-quien b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dest-quien .detalle { color: var(--texto-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dest-valor { font-size: 15px; white-space: nowrap; }
.dest-valor.alto { color: #5fd35f; }
.dest-valor.bajo { color: #f07a7a; }
@media (max-width: 1180px) {
  .tablero-grid { grid-template-columns: minmax(0, 1fr); }
  .destacados { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .vistas { margin-left: 0; }
  #dia-hoy[hidden] + .vistas { margin-left: 0; }
  .destacados { grid-template-columns: minmax(0, 1fr); }
  .tablero th, .tablero td { padding: 7px 6px; }
}
.tb-nombre { white-space: nowrap; }
@media (max-width: 560px) {
  .tablero th:nth-child(2), .tablero td:nth-child(2) { display: none; }
  .tablero .cara { display: none; }
}
.otra-herramienta {
  margin-left: auto; flex: none; padding: 7px 12px; font-size: 14px; font-weight: 600;
  color: var(--texto-2); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--borde); border-radius: 17px;
}
.otra-herramienta:hover { color: var(--texto); background: var(--panel); }
@media (max-width: 560px) {
  .otra-herramienta { padding: 6px 10px; font-size: 13px; }
}
.firma {
  position: fixed; right: 12px; bottom: 10px; z-index: 50; pointer-events: none; user-select: none;
  font: 500 11px/1 var(--fuente); letter-spacing: .02em; color: rgba(255, 255, 255, .55);
  padding: 5px 9px; border-radius: 6px; background: rgba(15, 17, 19, .85);
}
.lectura-linea {
  margin-bottom: 16px; padding: 12px 14px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--borde); border-left-width: 3px;
}
.lectura-linea.mas { border-left-color: var(--supero); }
.lectura-linea.menos { border-left-color: var(--no-llego); }
.lectura-linea.neutral { border-left-color: var(--igual); }
.ll-titulo { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.lectura-linea ul { margin: 8px 0 0; padding: 0; list-style: none; }
.lectura-linea li { position: relative; padding-left: 16px; margin-top: 5px; font-size: 13px; color: var(--texto-2); line-height: 1.4; }
.lectura-linea li::before { position: absolute; left: 0; font-weight: 700; }
.lectura-linea li.ll-mas::before { content: "+"; color: #5fd35f; }
.lectura-linea li.ll-menos::before { content: "−"; color: #f07a7a; }
.lectura-linea li.ll-igual::before { content: "·"; color: var(--texto-3); }
.lectura-linea .panel-nota { margin-top: 8px; font-size: 12px; }
.armado { margin-top: 20px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--borde); border-radius: 10px; }
.armado-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.armado h2 { margin: 0; font: 700 24px/1.1 var(--fuente-titulo); }
.armado-barra .sub { margin: 4px 0 0; font-size: 14px; }
.armado-controles { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.armado-todos { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--texto-2); cursor: pointer; }
.armado-todos input { accent-color: var(--acento); width: 16px; height: 16px; }
.boton-armar {
  height: 38px; padding: 0 20px; cursor: pointer; font-weight: 700; font-size: 15px;
  background: var(--acento); color: #1a1205; border: 0; border-radius: var(--radio);
}
.boton-armar:hover:not(:disabled) { filter: brightness(1.08); }
.boton-armar:disabled { opacity: .6; cursor: progress; }
.boton-armar:focus-visible { outline: 2px solid var(--texto); outline-offset: 2px; }
.armado-lista { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.armado-linea { padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--borde); border-left: 3px solid var(--supero); border-radius: 8px; }
.armado-linea.menos { border-left-color: var(--no-llego); }
.al-cabeza { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.al-n { font: 700 20px/1 var(--fuente-titulo); color: var(--texto-3); width: 16px; text-align: center; }
.al-cabeza .cara { width: 48px; height: 36px; object-fit: cover; object-position: top; border-radius: 6px; background: var(--panel); }
.al-quien { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.al-quien a { font-weight: 700; font-size: 16px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-quien a:hover { text-decoration: underline; }
.al-quien .sub { font-size: 13px; }
.al-linea { display: flex; align-items: center; gap: 6px; font: 700 18px/1.1 var(--fuente-titulo); white-space: nowrap; }
.al-puntaje { text-align: right; line-height: 1; }
.al-puntaje b { font: 700 26px/1 var(--fuente-titulo); color: var(--acento); }
.al-puntaje span { font-size: 12px; color: var(--texto-3); }
.al-cuerpo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 10px 0 0 28px; }
.al-serie { display: flex; align-items: end; gap: 8px; }
.al-serie .sub { font-size: 12px; }
.al-partes { display: grid; grid-template-columns: repeat(4, minmax(72px, 110px)); gap: 4px 14px; margin: 0; }
.al-partes dt { font-size: 12px; color: var(--texto-3); }
.al-partes dd { margin: 4px 0 0; height: 5px; background: var(--borde); border-radius: 3px; overflow: hidden; }
.al-partes dd i { display: block; height: 100%; background: var(--texto-2); border-radius: 3px; }
.al-razones { margin: 10px 0 0 28px; padding: 0; list-style: none; display: grid; gap: 3px; }
.al-razones li { font-size: 13px; color: var(--texto-2); line-height: 1.4; padding-left: 12px; position: relative; }
.al-razones li::before { content: "·"; position: absolute; left: 0; color: var(--texto-3); font-weight: 700; }
.armado-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.armado-pie .sub { font-size: 13px; }
@media (max-width: 640px) {
  .armado { padding: 14px 12px; }
  .al-n { display: none; }
  .al-cabeza { grid-template-columns: auto minmax(0, 1fr) auto; }
  .al-linea { grid-column: 1 / -1; grid-row: 2; white-space: normal; font-size: 17px; }
  .al-cuerpo, .al-razones { margin-left: 0; }
  .al-partes { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}
.recomendada { margin: 16px 0 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--borde); border-radius: 10px; }
.rec-titulo { font: 700 17px/1.1 var(--fuente-titulo); margin-bottom: 8px; }
.rec-titulo .sub { font: 500 14px/1 var(--fuente); margin-left: 4px; }
.rec-detalle {
  margin-top: 10px; padding: 10px 12px;
  background: var(--panel-2); border: 1px solid var(--borde); border-left: 3px solid var(--supero); border-radius: 8px;
}
.rec-detalle.menos { border-left-color: var(--no-llego); }
.rec-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.rec-detalle .al-razones { margin-left: 0; }
.rec-detalle .al-partes { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 520px; }
.rec-ver { margin-top: 10px; }
.rec-mejor-marca {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: #1a1205; background: var(--acento); padding: 1px 6px; border-radius: 8px;
}
.rec-linea { display: flex; align-items: center; gap: 6px; font: 700 21px/1.1 var(--fuente-titulo); }
.rec-puntaje { font-size: 12px; color: var(--texto-3); text-align: right; }
.rec-puntaje b { font: 700 24px/1 var(--fuente-titulo); color: var(--acento); }
.rec-otras { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.rec-otra {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; cursor: pointer;
  font-size: 13px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--borde); border-radius: 15px;
}
.rec-otra b { color: var(--acento); }
.rec-otra:hover { border-color: var(--texto-3); }
.rec-otra.activa { border-color: var(--acento); background: var(--borde); }
@media (max-width: 640px) { .rec-linea { font-size: 19px; } .rec-detalle .al-partes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.flecha.bien { fill: var(--supero); }
.flecha.mal { fill: var(--no-llego); }
.dt-linea { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.lado { display: inline-flex; border: 1px solid var(--borde); border-radius: 10px; overflow: hidden; }
.lado button {
  height: 20px; padding: 0 6px; cursor: pointer; font-size: 11px; font-weight: 600;
  color: var(--texto-3); background: none; border: 0;
}
.lado button + button { border-left: 1px solid var(--borde); }
.lado button:hover { color: var(--texto); }
.lado button[aria-pressed="true"] { color: var(--texto); background: var(--borde); }
#dfil { width: min(520px, calc(100vw - 32px)); }
.dfil-cuerpo { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.dfil-sec { padding: 12px 0 14px; border-top: 1px solid var(--borde); }
.dfil-sec:first-child { border-top: 0; padding-top: 0; }
.dfil-sec h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.dfil-sec h3 .detalle { font-size: 13px; font-weight: 500; color: var(--texto-3); margin-left: 4px; }
.dfil-sec.apagada { opacity: .45; }
.dfil-atajos, .dfil-jugadas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.dfil-atajos button, .dfil-jugadas button {
  height: 30px; padding: 0 12px; cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--texto-2); background: var(--panel-2); border: 1px solid var(--borde); border-radius: 15px;
}
.dfil-atajos button span { color: var(--texto-3); font-weight: 500; margin-left: 2px; }
.dfil-atajos button:hover:not(:disabled), .dfil-jugadas button:hover:not(:disabled) { color: var(--texto); border-color: var(--texto-3); }
.dfil-atajos button[aria-pressed="true"], .dfil-jugadas button[aria-pressed="true"] {
  color: var(--texto); border-color: var(--acento); background: var(--borde);
}
.dfil-sec button:disabled, .dfil-sec input:disabled { cursor: not-allowed; }
.chip-def { border-color: var(--acento); }
.lado button[data-lado="menos"][aria-pressed="true"] { color: #fff; background: var(--no-llego); }
.aviso-menos {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; padding: 9px 12px;
  font-size: 14px; color: var(--texto-2); line-height: 1.4;
  background: rgba(208, 59, 59, .1); border: 1px solid rgba(208, 59, 59, .45); border-radius: 8px;
}
.aviso-menos b { color: var(--texto); text-transform: uppercase; letter-spacing: .03em; }
.aviso-menos span { flex: 1; min-width: 200px; }
.aviso-menos .boton-chico { height: 28px; font-size: 13px; }
.armado-vista { margin-top: 14px; }
.armado-vista button { min-width: 72px; }
.dfil-aviso { margin: 0 0 8px; font-size: 13px; color: var(--acento); }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tabla-plantel .baja {
  height: 24px; padding: 0 9px; cursor: pointer; font-size: 12px; font-weight: 600;
  color: var(--texto-3); background: none; border: 1px solid var(--borde); border-radius: 12px;
}
.tabla-plantel .baja:hover { color: var(--texto); border-color: var(--texto-3); }
.tabla-plantel .baja[aria-pressed="true"] { color: #fff; background: var(--no-llego); border-color: var(--no-llego); }
.tabla-plantel tr.de-baja td:not(:last-child) { opacity: .45; text-decoration: line-through; }
.sin-panel { margin-top: 20px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--borde); border-radius: 10px; }
.sin-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sin-panel h2 { margin: 0; font: 700 24px/1.1 var(--fuente-titulo); }
.sin-equipo { margin-top: 14px; }
.sin-equipo h3 { margin: 0 0 8px; font-size: 16px; }
.tabla-sin { border-collapse: collapse; width: 100%; font-size: 14px; }
.tabla-sin th, .tabla-sin td { padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.tabla-sin th { color: var(--texto-3); font-weight: 500; }
.tabla-sin th:first-child, .tabla-sin td:first-child, .tabla-sin th:nth-child(2), .tabla-sin td:nth-child(2) { text-align: left; }
.tabla-sin td a { font-weight: 600; text-decoration: none; }
.tabla-sin td a:hover { text-decoration: underline; }
.tabla-sin td b { font-weight: 600; }
.tabla-sin .detalle { color: var(--texto-3); font-size: 12px; margin-left: 4px; }
.sin-d { display: block; font-size: 12px; font-weight: 600; }
.sin-d.sube { color: #5fd35f; }
.sin-d.baja { color: #f07a7a; }
.sin-d.igual { color: var(--texto-3); }
.sin-tit { margin-left: 6px; padding: 0 5px; font-size: 11px; font-weight: 700; color: #1a1205; background: var(--acento); border-radius: 6px; }
.sin-fuente { display: inline-block; padding: 2px 8px; font-size: 12px; font-weight: 600; border-radius: 10px; border: 1px solid; cursor: help; }
.sin-fuente.real { color: #5fd35f; border-color: rgba(95, 211, 95, .5); }
.sin-fuente.mezcla { color: var(--acento); border-color: rgba(240, 166, 64, .5); }
.sin-fuente.estimado { color: var(--texto-3); border-color: var(--borde); border-style: dashed; }
.sin-lineas { color: var(--texto-2); font-size: 13px; }
.sin-panel .panel-nota { margin-top: 10px; font-size: 13px; line-height: 1.5; }
.sin-calib { margin-top: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--texto-2);
  background: var(--panel-2); border: 1px solid var(--borde); border-radius: 8px; }
.sin-calib b { color: var(--texto); }
.tabla-sin td[title] { cursor: help; }
.tabla-plantel tr.grupos th { padding-bottom: 0; border-bottom: 0; font-size: 12px; text-align: center; }
.tabla-plantel .proy { color: var(--acento); font-weight: 600; }
.tabla-plantel .proy-ini { border-left: 1px solid var(--borde); }
.tabla-plantel .proy-cab { color: var(--acento); cursor: help; }
.plantel.con-bajas .proy-cab::after { content: " · con bajas"; color: var(--no-llego); }
.tabla-plantel tr.de-baja td.proy { text-decoration: none; opacity: 1; color: var(--no-llego); }
.ir-partido { flex: none; text-decoration: none; height: 32px; }
.ir-partido svg { width: 16px; height: 16px; }
.tabla-plantel td.proy { cursor: help; }
.tabla-plantel .proy-rival { font-size: 13px; font-weight: 600; cursor: help; }
.tabla-plantel .proy-rival.sube { color: #5fd35f; }
.tabla-plantel .proy-rival.baja { color: #f07a7a; }
.tabla-plantel .proy-rival.igual { color: var(--texto-3); }
.linea-rival { margin: -4px 0 8px; font-size: 13px; color: var(--texto-3); cursor: help; }
.linea-rival b { font-weight: 600; }
.linea-rival .sube { color: #5fd35f; }
.linea-rival .baja { color: #f07a7a; }
.linea-rival .igual { color: var(--texto-2); }
.armado-bajas { margin: 12px 0 0; padding: 8px 12px; font-size: 13px; color: var(--texto-2);
  background: rgba(208, 59, 59, .1); border: 1px solid rgba(208, 59, 59, .45); border-radius: 8px; }
.lesion { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: 11px; font-weight: 700;
  border-radius: 6px; cursor: help; vertical-align: 1px; }
.lesion.fuera { color: #fff; background: var(--no-llego); }
.lesion.duda { color: #1a1205; background: var(--acento); }
.lesion.dudoso { color: #fff; background: #d9772b; }
.lesion.cuestionable { color: #1a1205; background: var(--acento); }
.lesion.probable { color: var(--texto-2); background: transparent; border: 1px solid var(--borde); }
.lesion-ficha { margin: 8px 0 0; font-size: 13px; color: var(--texto-2); max-width: 340px; line-height: 1.4; }
.lesion-ficha .lesion { margin-left: 0; }
.lesion-equipo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 10px; font-size: 14px; }
.lesion-equipo > .detalle { color: var(--texto-3); font-size: 13px; }
.le-jug { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.le-jug .lesion { margin-left: 0; }
.le-sin { height: 24px; padding: 0 8px; font: 600 12px/1 var(--fuente); color: var(--texto-2); cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--borde); border-radius: 12px; }
.le-sin span { color: var(--texto-3); font-weight: 500; }
.le-sin:hover:not(:disabled) { color: var(--texto); border-color: #3a4046; }
.le-sin[aria-pressed="true"] { color: var(--texto); border-color: rgba(208, 59, 59, .7); background: rgba(208, 59, 59, .15); }
.le-sin:disabled { opacity: .45; cursor: default; }
.cruces { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 10px; font-size: 14px; }
.cruces > .detalle { color: var(--texto-3); font-size: 13px; }
.cruce-item { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 5px; color: inherit; text-decoration: none;
  background: var(--panel-2); border: 1px solid var(--borde); border-radius: 8px; }
.cruce-item:hover { border-color: #3a4046; background: var(--panel); }
.cruce-item .detalle { color: var(--texto-3); font-size: 13px; }
.cruce-res { width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; font-size: 11px; color: #0f1113; }
.cruce-res.g { background: var(--supero); }
.cruce-res.p { background: var(--no-llego); }
.cruce-box { color: var(--acento); font-size: 13px; font-weight: 600; }
.sin-auto { margin: 10px 0 0; font-size: 13px; color: var(--texto-2); }
.tabla-plantel td:first-child { white-space: normal; min-width: 150px; }
.tabla-plantel td:first-child a { white-space: nowrap; }
.sin-botones { display: flex; flex-wrap: wrap; gap: 8px; }
.sin-resumen { margin: 8px 0 0; font-size: 14px; color: var(--texto-2); }
.sin-panel h2 { font-size: 20px; }
.otra-herramienta.en-vivo { color: #fff; }
.otra-herramienta.en-vivo::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px;
  border-radius: 50%; background: var(--no-llego); vertical-align: 1px; }
.vivo-titulo { margin: 20px 0 12px; font: 700 30px/1.1 var(--fuente-titulo); }
.vivo-partidos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.vivo-chip { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--borde); border-radius: 8px; }
.vivo-chip span { font-size: 12px; color: var(--texto-3); }
.vivo-chip.descanso { border-color: var(--acento); }
.vivo-chip.descanso span { color: var(--acento); font-weight: 600; }
.vivo-chip.elegido { background: var(--panel-2); outline: 1px solid var(--acento); }
.vivo-cabeza { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 8px; }
.vivo-cabeza h2 { margin: 0; font: 700 24px/1.1 var(--fuente-titulo); }
.vivo-barra { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 0; }
.tabla-vivo { border-collapse: collapse; width: 100%; font-size: 14px; }
.tabla-vivo th, .tabla-vivo td { padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.tabla-vivo th { color: var(--texto-3); font-weight: 500; cursor: help; }
.tabla-vivo th:first-child, .tabla-vivo td:first-child, .tabla-vivo th:nth-child(2), .tabla-vivo td:nth-child(2) { text-align: left; }
.tabla-vivo td a { font-weight: 600; text-decoration: none; }
.tabla-vivo tr.marcada td { background: rgba(240, 166, 64, .06); }
.vivo-lado { font-weight: 700; }
.vivo-lado .detalle { font-weight: 400; margin-left: 4px; cursor: help; }
.vivo-guia { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--borde); border-radius: 8px;
  color: var(--texto-2); font-size: 13px; line-height: 1.5; }
.vivo-lado.mas { color: #5fd35f; }
.vivo-lado.menos { color: #f07a7a; }
.vivo-valor { font-weight: 700; }
.vivo-valor.sube { color: #5fd35f; }
.vivo-valor.baja { color: var(--texto-3); }
.tabla-vivo td.sube { color: #5fd35f; }
.tabla-vivo td.baja { color: #f07a7a; }
.tabla-vivo span.sube { color: #5fd35f; font-weight: 700; cursor: help; }
.tabla-vivo span.baja { color: #f07a7a; font-weight: 700; cursor: help; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boton-comb {
  display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; flex: none; cursor: pointer; vertical-align: middle;
  color: var(--texto-2); background: transparent; border: 1px solid var(--borde); border-radius: 8px;
}
.boton-comb svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.boton-comb:hover { color: var(--acento); border-color: var(--acento); background: var(--panel-2); }
.boton-comb.sumada { color: var(--fondo); background: var(--acento); border-color: var(--acento); }
.tablero td.tb-comb { width: 1%; text-align: center; padding-left: 4px; padding-right: 8px; }
.boton-agregar { height: 30px; padding: 0 12px; font-weight: 600; white-space: nowrap; }
.comb-boton {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 14px; cursor: pointer;
  font-weight: 700; color: var(--texto); background: var(--panel-2);
  border: 1px solid var(--acento); border-radius: 23px; box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
}
.comb-boton svg { width: 18px; height: 18px; fill: none; stroke: var(--acento); stroke-width: 2.2; stroke-linecap: round; }
.comb-boton b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; font-size: 13px; line-height: 22px;
  text-align: center; color: var(--fondo); background: var(--acento); }
.comb-boton.latido { animation: latido .45s ease-out; }
@keyframes latido { 40% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .comb-boton.latido { animation: none; } }
dialog.comb { width: min(1120px, calc(100vw - 32px)); }
.comb-cuerpo { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: minmax(0, 1fr); gap: 16px; }
.comb-cuerpo.sin-sug { grid-template-columns: minmax(0, 1fr); }
dialog.comb:has(.comb-cuerpo.sin-sug) { width: min(720px, calc(100vw - 32px)); }
.comb-principal, .comb-sugeridas { min-height: 0; overflow-y: auto; }
.comb-sugeridas { padding-left: 16px; border-left: 1px solid var(--borde); }
.comb-sugeridas section:first-child { margin-top: 0; }
@media (max-width: 900px) {
  .comb-cuerpo { display: block; overflow-y: auto; }
  .comb-principal, .comb-sugeridas { overflow: visible; }
  .comb-sugeridas { padding-left: 0; border-left: 0; margin-top: 14px; }
}
.comb-lista { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.comb-pata { padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--borde); border-left: 3px solid var(--supero); border-radius: 8px; }
.comb-pata.menos { border-left-color: var(--no-llego); }
.cp-cabeza { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.cp-cabeza .cara { width: 48px; height: 36px; border-radius: 6px; background: var(--panel); }
.cp-quien a { font-weight: 700; color: var(--texto); text-decoration: none; }
.cp-quien a:hover { text-decoration: underline; }
.cp-control { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.cp-linea { display: inline-flex; align-items: center; border: 1px solid var(--borde); border-radius: var(--radio); }
.cp-linea button { width: 28px; height: 28px; cursor: pointer; background: none; border: 0; color: var(--texto-2); font-size: 16px; }
.cp-linea button:hover { color: var(--texto); background: var(--panel); }
.cp-linea b { min-width: 40px; text-align: center; }
.cp-prob { text-align: right; line-height: 1.1; }
.cp-prob b { display: block; font: 700 28px/1 var(--fuente-titulo); }
.cp-prob span { font-size: 12px; color: var(--texto-3); white-space: nowrap; }
.ct-prob b { color: var(--acento); }
.cp-prob.alto b { color: var(--supero); }
.cp-prob.medio b { color: var(--acento); }
.cp-prob.bajo b { color: var(--no-llego); }
.cp-quitar { margin: 0; align-self: start; }
.cp-datos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 10px 0 0 60px; }
.cp-tasas { display: flex; gap: 16px; margin: 0; }
.cp-tasas div { display: flex; flex-direction: column; }
.cp-tasas dt { font-size: 12px; color: var(--texto-3); }
.cp-tasas dd { margin: 0; font-weight: 700; }
.cp-tasas .alto { color: var(--supero); }
.cp-tasas .bajo { color: var(--no-llego); }
.cp-espera { margin: 8px 0 0 60px; font-size: 14px; color: var(--texto-2); }
.cp-notas, .comb-notas { margin: 6px 0 0 60px; padding: 0; list-style: none; display: grid; gap: 3px; }
.cp-notas li, .comb-notas li { font-size: 13px; color: var(--texto-2); line-height: 1.4; padding-left: 12px; position: relative; }
.cp-notas li::before, .comb-notas li::before { content: "·"; position: absolute; left: 0; color: var(--texto-3); font-weight: 700; }
.comb-notas { margin: 12px 0 0; }
.comb-sugeridas section { margin-top: 14px; }
#comb-subir { display: inline-flex; align-items: center; gap: 6px; }
.comb-ticket { margin-bottom: 12px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--acento); border-radius: 8px; }
.comb-ticket p { margin: 0; }
.ct-leyendo b { color: var(--acento); }
.ct-error { color: var(--no-llego); }
.ct-confirmar ul { margin: 10px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ct-confirmar li { display: flex; flex-direction: column; gap: 2px; }
.ct-confirmar label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ct-confirmar input { width: 16px; height: 16px; accent-color: var(--acento); }
.ct-original { margin-left: 24px; font-size: 12px; }
.ct-botones { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.comb-sugeridas h3 { margin: 0 0 6px; font: 700 17px/1.2 var(--fuente-titulo); color: var(--texto-2); }
.comb-sugeridas ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.comb-sugeridas li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px dashed var(--borde); border-radius: 8px; }
.comb-sugeridas .cara { width: 40px; height: 30px; }
.cs-quien { display: flex; flex-direction: column; line-height: 1.35; font-size: 14px; }
.cs-quien > b { display: inline; }
.cs-linea .alto { color: var(--supero); }
.cs-linea .medio { color: var(--acento); }
.cs-linea .bajo { color: var(--no-llego); }
.cs-socio { align-self: start; margin-top: 3px; padding: 1px 7px; font-size: 12px; font-weight: 600;
  color: var(--secundario); border: 1px solid currentColor; border-radius: 10px; }
.comb-sugeridas .cs-razones { display: block; margin: 4px 0 0; padding: 0; list-style: none; }
.comb-sugeridas .cs-razones li { display: block; padding: 0 0 0 10px; border: 0; position: relative;
  font-size: 13px; color: var(--texto-2); line-height: 1.4; }
.comb-sugeridas .cs-razones li::before { content: "·"; position: absolute; left: 0; color: var(--texto-3); font-weight: 700; }
.comb-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding-top: 12px; margin-top: 10px; border-top: 1px solid var(--borde); }
.comb-total { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.comb-total.cargando { opacity: .55; }
.ct-prob { display: flex; flex-direction: column; line-height: 1.1; flex: none; min-width: 120px; align-self: flex-start; }
.ct-detalle { flex: 1; min-width: 0; }
.ct-detalle .ct-juntas { margin-bottom: 4px; }
.ct-prob span { font-size: 13px; color: var(--texto-3); }
.ct-prob b { font: 700 34px/1 var(--fuente-titulo); }
.ct-detalle p { margin: 0; font-size: 13px; color: var(--texto-2); }
.comb-acciones { display: flex; gap: 8px; }
@media (max-width: 640px) {
  .comb-boton { right: 16px; bottom: 16px; }
  .cp-cabeza { grid-template-columns: auto minmax(0, 1fr) auto; }
  .cp-cabeza .cp-quitar { grid-column: 3; grid-row: 1; }
  .cp-cabeza .cp-prob { grid-column: 2 / -1; grid-row: 2; text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .cp-cabeza .cp-prob b { display: inline; }
  .cp-datos, .cp-espera, .cp-notas { margin-left: 0; }
}
.rotacion .armado-controles { gap: 8px; }
.rot-tabla { margin-top: 14px; }
.rot-fila { display: grid; grid-template-columns: 170px minmax(0, 1fr) 38px 42px 38px; align-items: center; gap: 10px;
  padding: 4px 0; border-bottom: 1px solid var(--borde); font-size: 14px; }
.rot-fila > span, .rot-fila > b { text-align: right; }
.rot-cabeza { border-bottom: 0; color: var(--texto-3); font-size: 12px; }
.rot-cuartos { display: grid; grid-template-columns: repeat(4, 1fr); }
.rot-cuartos span { text-align: center; border-left: 1px solid var(--borde); }
.rot-nombre { display: flex; align-items: center; gap: 4px; min-width: 0; color: var(--texto); text-decoration: none; }
.rot-nombre > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rot-nombre:hover > span { text-decoration: underline; }
.rot-pista { position: relative; height: 18px; border-radius: 3px; background: var(--panel-2);
  background-image: linear-gradient(90deg, transparent calc(25% - 1px), var(--borde) 0, var(--borde) 25%, transparent 0,
    transparent calc(50% - 1px), var(--borde) 0, var(--borde) 50%, transparent 0,
    transparent calc(75% - 1px), var(--borde) 0, var(--borde) 75%, transparent 0); }
.rot-pista.patron { display: grid; grid-template-columns: repeat(48, 1fr); gap: 1px; background-image: none; background: none; }
.rot-pista.patron i { display: block; height: 100%; border-radius: 1px;
  background: color-mix(in srgb, var(--acento) calc(var(--p) * 100%), var(--panel-2)); }
.rot-pista.patron i:nth-child(12n) { margin-right: 2px; }
.rot-pista.tramos b { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; background: var(--acento); }
.rot-dnp { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--texto-3); }
.rot-proy { color: var(--acento); }
.rot-quinteto { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 14px; padding: 10px 12px;
  background: var(--panel-2); border-radius: 8px; }
.rot-quinteto > div { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rq-jug { font-weight: 600; }
.rq-jug.cambio { color: var(--acento); }
.rq-jug small { font-weight: 400; font-size: 12px; color: var(--texto-3); }
.rot-pista.tramos b { cursor: pointer; }
.rot-pista.tramos b.activo { background: var(--texto); }
.rot-tramo { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--texto-2); }
.rot-fila.fuera { opacity: .45; }
@media (max-width: 640px) {
  .rot-fila { grid-template-columns: 96px minmax(0, 1fr) 30px 34px; gap: 6px; font-size: 13px; }
  .rot-fila > :last-child { display: none; }
}
.rotacion .segmento button { white-space: nowrap; }
.partido-ritmo { margin-top: 14px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--borde); border-radius: 10px; }
.pr-cabeza { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pr-cabeza b { font: 700 22px/1.1 var(--fuente-titulo); }
.pr-cabeza b.sube, .pr-efecto b.sube, #lat-ritmo b.sube { color: var(--supero); }
.pr-cabeza b.baja, .pr-efecto b.baja, #lat-ritmo b.baja { color: var(--no-llego); }
.pr-equipos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin-top: 8px; font-size: 14px; }
.pr-efecto { margin-top: 2px; font-size: 13px; color: var(--texto-2); }
@media (max-width: 640px) { .pr-equipos { grid-template-columns: minmax(0, 1fr); } }
.rot-cambios { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 14px; }
.rot-cambios th { padding: 6px 8px; text-align: left; font-weight: 500; font-size: 12px; color: var(--texto-3); }
.rot-cambios td { padding: 7px 8px; border-top: 1px solid var(--borde); vertical-align: top; }
.rot-cambios td:first-child { white-space: nowrap; }
.rot-cambios td:first-child a { color: var(--texto); text-decoration: none; }
.rot-cambios td:first-child a:hover { text-decoration: underline; }
.rot-c-lista { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.rot-c-lista > span { white-space: nowrap; }
.rot-c-lista small { margin-left: 3px; padding: 0 5px; border-radius: 8px; font-size: 11px; color: var(--fondo); background: var(--acento); }
.rot-c-fuera { color: var(--texto-3); text-decoration: line-through; }
.rot-c-fuera small { background: var(--igual); }
@media (max-width: 640px) {
  .rot-cambios thead { display: none; }
  .rot-cambios tr { display: block; padding: 8px 0; border-top: 1px solid var(--borde); }
  .rot-cambios td { display: block; padding: 2px 0; border: 0; }
  .rot-cambios td:first-child { font-weight: 600; }
  .rot-cambios td[data-titulo]::before { content: attr(data-titulo); display: block; font-size: 11px; color: var(--texto-3); }
}
.grafico path.otro-eq { opacity: .45; }
.grafico .otro-eq-txt { font-size: 11px; fill: var(--texto-3); font-style: italic; }
.muestra.otro-eq { background: var(--texto-3); opacity: .45; }
.aviso-telegram { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; padding: 10px 14px;
  color: var(--texto-2); text-decoration: none; font-size: 14px;
  background: rgba(42, 171, 238, .08); border: 1px solid rgba(42, 171, 238, .45); border-radius: 10px; }
.aviso-telegram:hover { background: rgba(42, 171, 238, .14); }
.aviso-telegram svg { flex: none; width: 22px; height: 22px; fill: #2aabee; }
.aviso-telegram b { color: var(--texto); font-weight: 600; }
.aviso-telegram > span:nth-child(2) { flex: 1; min-width: 0; }
.at-boton { flex: none; padding: 6px 12px; border-radius: 8px; background: #2aabee; color: #fff; font-weight: 700; font-size: 13px; }
.ct-uno { display: block; margin-top: 2px; font-size: 13px; color: var(--texto-3); font-weight: 500; }
.ct-como { margin: 6px 0; font-size: 13px; color: var(--texto-3); }
.ct-como summary { cursor: pointer; color: var(--texto-2); font-weight: 600; }
.ct-como p { margin: 6px 0 0; line-height: 1.45; }
.top-mercados { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 12px; }
.top-mercados button { padding: 7px 14px; font: 600 14px/1 var(--fuente); color: var(--texto-2); cursor: pointer;
  background: var(--panel); border: 1px solid var(--borde); border-radius: 18px; }
.top-mercados button:hover { color: var(--texto); background: var(--panel-2); }
.top-mercados button[aria-selected="true"] { color: var(--texto); background: var(--panel-2); border-color: var(--acento); }
.top-titulo { margin: 6px 0 14px; font: 700 30px/1.1 var(--fuente-titulo); }
.top-orden { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; color: var(--texto-3); }
.top-orden button { padding: 5px 11px; font: 600 13px/1 var(--fuente); color: var(--texto-2); cursor: pointer;
  background: transparent; border: 1px solid var(--borde); border-radius: 7px; }
.top-orden button[aria-pressed="true"] { color: var(--texto); background: var(--panel-2); border-color: var(--acento); }
.top-orden button:disabled { opacity: .45; cursor: default; }
.top-orden { flex-wrap: wrap; }
.top-filtro { margin-left: 8px; }
.tag-pocos { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: 11px; font-weight: 700; color: var(--texto-2);
  border: 1px dashed var(--borde); border-radius: 4px; white-space: nowrap; }
.th-extra { flex-wrap: wrap; gap: 12px 24px; }
.th-extra b.alto { color: var(--supero); }
.th-extra b.bajo { color: var(--no-llego); }
.top-titulo em { font-style: normal; color: var(--acento); }
.top-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-bottom: 14px; padding: 22px 24px;
  color: inherit; text-decoration: none; background: var(--panel); border: 1px solid var(--borde); border-radius: 12px; }
.top-hero:hover { border-color: #3a4046; }
.th-marca { display: block; padding-left: 8px; border-left: 3px solid var(--acento); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2); }
.th-quien { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.th-quien .cara { width: 84px; height: 62px; object-fit: cover; }
.th-quien b { display: block; font: 700 32px/1.05 var(--fuente-titulo); }
.th-quien .detalle { display: block; margin-top: 4px; color: var(--texto-3); font-size: 14px; }
.th-linea { margin-top: 14px; font-size: 18px; font-weight: 600; color: var(--texto-2); }
.th-pct { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.th-pct > b { font: 700 72px/1 var(--fuente-titulo); }
.th-pct > span { font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--texto-2); text-transform: uppercase; }
.th-pct .detalle { color: var(--texto-3); font-weight: 500; }
.th-extra { display: flex; gap: 28px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--borde); }
.th-extra div { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--texto-3); }
.th-extra b { font-size: 20px; color: var(--texto); }
.th-grafico { display: flex; flex-direction: column; min-width: 0; }
.th-sub { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-3); }
.th-barras { position: relative; flex: 1; display: flex; gap: 6px; min-height: 220px; margin-top: 12px; padding: 22px 0 0 40px; }
.th-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.th-pista { flex: 1; display: flex; align-items: flex-end; }
.th-barra { position: relative; width: 100%; border-radius: 4px 4px 0 0; }
.th-barra.supero { background: var(--supero); }
.th-barra.no-llego { background: var(--no-llego); }
.th-col.ant .th-barra { opacity: .35; }
.th-col.ant .escudo { opacity: .5; }
.th-barra b { position: absolute; left: 0; right: 0; top: -20px; text-align: center; font-size: 14px; color: var(--texto); }
.th-rival { height: 22px; display: grid; place-items: center; font-size: 11px; color: var(--texto-3); }
.th-raya { position: absolute; left: 0; right: 0; z-index: 1; border-top: 2px dashed var(--acento); pointer-events: none; }
.th-raya span { position: absolute; left: 0; top: -11px; padding: 1px 6px; font: 700 12px/18px var(--fuente); font-style: normal;
  color: #1a1205; background: var(--acento); border-radius: 5px; }
.top-tabla th, .top-tabla td { white-space: nowrap; }
.dest-mas { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; padding: 8px;
  font: 600 13px/1 var(--fuente); color: var(--texto-2); cursor: pointer; background: var(--panel-2); border: 1px solid var(--borde); border-radius: 8px; }
.dest-mas:hover { color: var(--texto); border-color: #3a4046; }
.dest-mas span { color: var(--texto-3); font-weight: 500; }
@media (max-width: 900px) {
  .top-hero { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .th-barras { min-height: 170px; gap: 3px; padding: 22px 0 0 34px; }
  .th-pct > b { font-size: 60px; }
  .top-titulo { font-size: 24px; }
}
