@font-face {
  font-family: 'Jakarta';
  src: url('/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jakarta';
  src: url('/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --azul: #00263a;
  --azul-2: #0b3a55;
  --azul-3: #1d5579;
  --lima: #bfe000;
  --lima-2: #a8c600;
  --lima-suave: #f3f9d6;
  --fondo: #f4f6f8;
  --tarjeta: #ffffff;
  --borde: #e3e8ee;
  --borde-2: #cfd7e0;
  --texto: #0f2233;
  --texto-2: #4b5d6e;
  --texto-3: #7d8c9a;
  --rojo: #d6453d;
  --rojo-suave: #fdecea;
  --ambar: #c98500;
  --ambar-suave: #fff5df;
  --verde: #1f9d5a;
  --verde-suave: #e5f6ec;
  --azul-info: #2563c9;
  --azul-info-suave: #e8f0fd;
  --radio: 14px;
  --radio-s: 9px;
  --sombra: 0 1px 2px rgba(0, 38, 58, .06), 0 4px 16px rgba(0, 38, 58, .06);
  --sombra-alta: 0 10px 40px rgba(0, 38, 58, .18);
  --curva: cubic-bezier(.2, .8, .2, 1);
  --menu: 248px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--fondo);
  color: var(--texto);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--azul-3); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 750; }
h3 { font-size: 16px; font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
svg { width: 18px; height: 18px; flex: none; }
.miga svg { width: 14px; height: 14px; }
.etiqueta svg { width: 13px; height: 13px; }
.flotante svg, .aviso svg { width: 20px; height: 20px; }
.suave { color: var(--texto-2); }
.tenue { color: var(--texto-3); font-size: 13px; }
.oculto { display: none !important; }

/* ---------- Estructura ---------- */
.app { display: grid; grid-template-columns: var(--menu) 1fr; min-height: 100vh; }
.menu {
  position: sticky; top: 0; height: 100vh;
  background: var(--azul); color: #fff;
  display: flex; flex-direction: column; padding: 22px 14px;
}
.menu .marca { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; }
.menu .marca img { height: 30px; }
.menu nav { display: flex; flex-direction: column; gap: 2px; }
.menu a.item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600;
  transition: background .2s var(--curva), color .2s;
  position: relative;
}
.menu a.item:hover { background: rgba(255,255,255,.07); color: #fff; }
.menu a.item.activo { background: rgba(191,224,0,.14); color: var(--lima); }
.menu a.item.activo::before {
  content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--lima);
}
.menu svg { width: 20px; height: 20px; flex: none; }
.menu .pie { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 10px; }
.menu .pie img { width: 38px; height: 38px; }
.menu .pie .correo { font-size: 12px; color: rgba(255,255,255,.6); word-break: break-all; }

.principal { min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 60px; }
.encabezado { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.encabezado .titulo { display: flex; flex-direction: column; gap: 6px; }
.miga { font-size: 13px; color: var(--texto-3); display: flex; gap: 6px; align-items: center; }
.miga a { color: var(--texto-2); text-decoration: none; }
.miga a:hover { color: var(--azul); }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Barra inferior en celular */
.barra-movil { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .menu { display: none; }
  .principal { padding: 18px 16px 96px; }
  .barra-movil {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--azul); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .barra-movil a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: rgba(255,255,255,.7); text-decoration: none; font-size: 11px; font-weight: 600; border-radius: 10px; }
  .barra-movil a.activo { color: var(--lima); background: rgba(191,224,0,.1); }
  .barra-movil svg { width: 22px; height: 22px; }
  .cabecera-movil { display: flex !important; }
  h1 { font-size: 22px; }
}
.cabecera-movil { display: none; align-items: center; justify-content: space-between; margin: -4px 0 14px; }
.cabecera-movil img { height: 26px; }

/* ---------- Tarjetas y grillas ---------- */
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); }
.tarjeta.relleno { padding: 20px; }
.tarjeta-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--borde); }
.grilla { display: grid; gap: 16px; }
.grilla.g2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grilla.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grilla.g4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pila { display: flex; flex-direction: column; gap: 16px; }
.fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fila.entre { justify-content: space-between; }
.separador { height: 1px; background: var(--borde); margin: 16px 0; }

.dato { padding: 18px 20px; }
.dato .valor { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.dato .rotulo { color: var(--texto-2); font-size: 13px; font-weight: 600; }

.torneo-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: transform .25s var(--curva), box-shadow .25s; }
.torneo-card:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }
.torneo-card .fechas { font-size: 13px; color: var(--texto-2); font-weight: 600; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--borde-2); background: #fff; color: var(--texto);
  padding: 9px 16px; border-radius: 10px; font-weight: 650; cursor: pointer;
  transition: transform .15s var(--curva), background .2s, border-color .2s, box-shadow .2s;
  text-decoration: none; white-space: nowrap; min-height: 40px;
}
.btn:hover { border-color: var(--azul-3); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primario { background: var(--azul); border-color: var(--azul); color: #fff; }
.btn.primario:hover { background: var(--azul-2); }
.btn.lima { background: var(--lima); border-color: var(--lima); color: var(--azul); }
.btn.lima:hover { background: var(--lima-2); }
.btn.peligro { color: var(--rojo); border-color: #f3c3bf; }
.btn.peligro:hover { background: var(--rojo-suave); }
.btn.fantasma { border-color: transparent; background: transparent; }
.btn.fantasma:hover { background: rgba(0,38,58,.06); }
.btn.chico { padding: 5px 10px; min-height: 32px; font-size: 13px; border-radius: 8px; }
.btn svg { width: 18px; height: 18px; }
.btn .girando { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Formularios ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > span { font-size: 13px; font-weight: 650; color: var(--texto-2); }
.campo small { color: var(--texto-3); font-size: 12px; }
.entrada, select.entrada, textarea.entrada {
  width: 100%; border: 1px solid var(--borde-2); border-radius: 10px; background: #fff;
  padding: 10px 12px; min-height: 42px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.entrada:focus { border-color: var(--azul-3); box-shadow: 0 0 0 4px rgba(29,85,121,.12); }
textarea.entrada { min-height: 160px; resize: vertical; font-family: inherit; }
.form { display: grid; gap: 14px; align-content: start; }
.form.dos { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form.dos { grid-template-columns: 1fr; } }
.chequeo { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 600; }
.chequeo input { width: 18px; height: 18px; accent-color: var(--azul); }

.segmentado { display: inline-flex; background: #eaeef2; border-radius: 11px; padding: 3px; gap: 2px; position: relative; }
.segmentado button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 650; color: var(--texto-2); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.segmentado button.activo { background: #fff; color: var(--azul); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--borde-2); background: #fff; border-radius: 999px; padding: 7px 14px;
  font-weight: 650; cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.chip:active { transform: scale(.96); }
.chip.activo { background: var(--azul); color: #fff; border-color: var(--azul); }
.chip .cuenta { font-size: 12px; background: rgba(0,38,58,.08); border-radius: 999px; padding: 1px 7px; }
.chip.activo .cuenta { background: rgba(191,224,0,.25); color: var(--lima); }

.etiqueta {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: #eef1f4; color: var(--texto-2); white-space: nowrap;
}
.etiqueta.verde { background: var(--verde-suave); color: var(--verde); }
.etiqueta.ambar { background: var(--ambar-suave); color: var(--ambar); }
.etiqueta.rojo { background: var(--rojo-suave); color: var(--rojo); }
.etiqueta.azul { background: var(--azul-info-suave); color: var(--azul-info); }
.etiqueta.lima { background: var(--lima-suave); color: #5d6e00; }

/* ---------- Pestañas ---------- */
.pestanas { display: flex; gap: 4px; border-bottom: 1px solid var(--borde); margin-bottom: 18px; overflow-x: auto; position: relative; scrollbar-width: none; }
.pestanas button {
  border: 0; background: none; padding: 12px 14px; font-weight: 700; color: var(--texto-3); cursor: pointer;
  position: relative; white-space: nowrap; transition: color .2s;
}
.pestanas button:hover { color: var(--texto); }
.pestanas button.activo { color: var(--azul); }
.pestanas .indicador { position: absolute; bottom: -1px; height: 3px; background: var(--lima-2); border-radius: 3px 3px 0 0; transition: left .35s var(--curva), width .35s var(--curva); }

/* ---------- Tablas ---------- */
.tabla-envoltura { overflow-x: auto; }
table.tabla { width: 100%; border-collapse: collapse; }
.tabla th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--texto-3); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.tabla td { padding: 11px 14px; border-bottom: 1px solid var(--borde); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr { transition: background .15s; }
.tabla tbody tr:hover { background: #f8fafb; }
.tabla .der { text-align: right; }
.tabla .centro { text-align: center; }
.posicion { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 8px; font-weight: 800; background: #eef1f4; font-size: 13px; }
.posicion.oro { background: var(--lima); color: var(--azul); }

/* ---------- Grupos ---------- */
.grupo { overflow: hidden; }
.grupo .cab { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--azul); color: #fff; }
.grupo .cab h3 { font-size: 15px; display: flex; gap: 10px; align-items: center; }
.grupo .letra { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--lima); color: var(--azul); font-weight: 800; }
.grupo table.tabla td, .grupo table.tabla th { padding: 8px 10px; font-size: 13.5px; }
.grupo .clasifica td:first-child { box-shadow: inset 3px 0 0 var(--lima-2); }
.partido-linea {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center;
  padding: 10px 14px; border-top: 1px solid var(--borde); cursor: pointer; transition: background .15s;
  font-size: 13.5px;
}
.partido-linea:hover { background: #f6f9fb; }
.partido-linea .der { text-align: right; }
.partido-linea .gana { font-weight: 800; }
.marcador-mini { font-weight: 750; font-variant-numeric: tabular-nums; background: #eef1f4; border-radius: 8px; padding: 3px 8px; font-size: 12.5px; white-space: nowrap; text-align: center; min-width: 70px; }
.marcador-mini.pend { color: var(--texto-3); font-weight: 600; background: transparent; border: 1px dashed var(--borde-2); }

/* ---------- Llave ---------- */
.llave-scroll { overflow-x: auto; padding: 4px 4px 16px; }
.llave { display: flex; gap: 36px; min-width: max-content; }
.llave .ronda { display: flex; flex-direction: column; width: 250px; }
.llave .ronda h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-3); margin-bottom: 10px; text-align: center; }
.llave .partidos { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.llave .cruce { position: relative; }
.llave .ronda:not(:last-child) .cruce::after {
  content: ''; position: absolute; right: -19px; top: 50%; width: 18px; border-top: 2px solid var(--borde-2);
}
.llave .ronda:not(:first-child) .cruce::before {
  content: ''; position: absolute; left: -18px; top: 50%; width: 18px; border-top: 2px solid var(--borde-2);
}
.llave-partido {
  background: #fff; border: 1px solid var(--borde); border-radius: 11px; overflow: hidden; box-shadow: var(--sombra);
  transition: transform .2s var(--curva), box-shadow .2s, border-color .2s; cursor: default;
}
.llave-partido.clic { cursor: pointer; }
.llave-partido.clic:hover { transform: translateY(-2px); box-shadow: var(--sombra-alta); border-color: var(--azul-3); }
.llave-partido.bye { opacity: .55; box-shadow: none; }
.llave-partido.elegido { border-color: var(--lima-2); box-shadow: 0 0 0 3px rgba(191,224,0,.45); }
.llave-lado { display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-height: 40px; font-size: 13px; }
.llave-lado + .llave-lado { border-top: 1px solid var(--borde); }
.llave-lado .origen { font-size: 11px; font-weight: 800; color: var(--texto-3); min-width: 26px; }
.llave-lado .nombre { flex: 1; min-width: 0; line-height: 1.25; }
.llave-lado .sets { display: flex; gap: 4px; font-weight: 750; font-variant-numeric: tabular-nums; }
.llave-lado .sets span { min-width: 18px; text-align: center; }
.llave-lado.gana { background: var(--lima-suave); }
.llave-lado.gana .nombre { font-weight: 800; }
.llave-lado.sin-pareja .nombre { color: var(--texto-3); font-style: italic; }
.llave-lado.mover { cursor: pointer; }
.llave-lado.mover:hover { background: #f1f5f8; }
.llave-lado.mover.elegido { background: var(--lima-suave); box-shadow: inset 3px 0 0 var(--lima-2); }
.campeon { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: linear-gradient(120deg, var(--azul), var(--azul-2)); color: #fff; border-radius: var(--radio); }
.campeon .copa { width: 46px; height: 46px; border-radius: 12px; background: var(--lima); color: var(--azul); display: grid; place-items: center; }

/* ---------- Avisos ---------- */
.aviso { display: flex; gap: 12px; padding: 13px 16px; border-radius: 12px; background: var(--azul-info-suave); color: #1c3f73; font-size: 14px; align-items: flex-start; }
.aviso.ambar { background: var(--ambar-suave); color: #6b4a00; }
.aviso.rojo { background: var(--rojo-suave); color: #8a2620; }
.aviso.verde { background: var(--verde-suave); color: #135d36; }
.aviso svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

.vacio { text-align: center; padding: 48px 20px; color: var(--texto-2); }
.vacio .icono { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; background: var(--lima-suave); color: #6c7f00; display: grid; place-items: center; }
.vacio .icono svg { width: 30px; height: 30px; }
.vacio h3 { margin-bottom: 6px; color: var(--texto); }

/* ---------- Modal ---------- */
.capa {
  position: fixed; inset: 0; z-index: 60; background: rgba(0, 25, 40, .45); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: aparecer .2s ease both;
}
.capa.saliendo { animation: desaparecer .18s ease both; }
.modal {
  background: #fff; border-radius: 18px; width: min(560px, 100%); max-height: calc(100vh - 32px);
  display: flex; flex-direction: column; box-shadow: var(--sombra-alta);
  animation: entrar-modal .32s var(--curva) both;
}
.modal.ancho { width: min(980px, 100%); }
.capa.saliendo .modal { animation: salir-modal .18s ease both; }
.modal-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--borde); }
.modal-cuerpo { padding: 20px 22px; overflow-y: auto; }
.modal-pie { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--borde); flex-wrap: wrap; }
@media (max-width: 560px) {
  .capa { align-items: flex-end; padding: 0; }
  .modal { border-radius: 20px 20px 0 0; max-height: 92vh; animation-name: subir-modal; }
  .capa.saliendo .modal { animation-name: bajar-modal; }
}
@keyframes aparecer { from { opacity: 0; } }
@keyframes desaparecer { to { opacity: 0; } }
@keyframes entrar-modal { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes salir-modal { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes subir-modal { from { transform: translateY(100%); } }
@keyframes bajar-modal { to { transform: translateY(100%); } }

/* ---------- Avisos flotantes ---------- */
.avisos-flotantes { position: fixed; z-index: 80; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
@media (max-width: 860px) { .avisos-flotantes { left: 16px; right: 16px; bottom: 84px; } }
.flotante {
  pointer-events: auto; background: var(--azul); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--sombra-alta);
  display: flex; gap: 10px; align-items: center; font-weight: 600; max-width: 420px;
  animation: entrar-flotante .35s var(--curva) both;
}
.flotante.error { background: var(--rojo); }
.flotante.saliendo { animation: salir-flotante .25s ease both; }
.flotante svg { width: 18px; height: 18px; color: var(--lima); flex: none; }
.flotante.error svg { color: #fff; }
@keyframes entrar-flotante { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes salir-flotante { to { opacity: 0; transform: translateX(30px); } }

/* ---------- Animaciones de página ---------- */
.pagina { animation: entrar-pagina .45s var(--curva) both; }
@keyframes entrar-pagina { from { opacity: 0; transform: translateY(10px); } }
.escalonado > * { animation: entrar-pagina .5s var(--curva) both; }
.escalonado > *:nth-child(2) { animation-delay: .04s; }
.escalonado > *:nth-child(3) { animation-delay: .08s; }
.escalonado > *:nth-child(4) { animation-delay: .12s; }
.escalonado > *:nth-child(5) { animation-delay: .16s; }
.escalonado > *:nth-child(6) { animation-delay: .2s; }
.escalonado > *:nth-child(n+7) { animation-delay: .24s; }
.destello { animation: destello 1.2s ease; }
@keyframes destello { 0% { background: var(--lima-suave); } 100% { background: transparent; } }
::view-transition-old(root) { animation: .18s ease both desaparecer; }
::view-transition-new(root) { animation: .3s var(--curva) both entrar-pagina; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.esqueleto { background: linear-gradient(90deg, #eceff2 0%, #f6f8f9 50%, #eceff2 100%); background-size: 200% 100%; animation: brillo 1.2s linear infinite; border-radius: 10px; }
@keyframes brillo { to { background-position: -200% 0; } }

/* ---------- Marcador (carga de resultado) ---------- */
.carga-resultado { display: grid; gap: 14px; }
.cr-fila { display: grid; grid-template-columns: 1fr repeat(3, 58px); gap: 8px; align-items: center; }
.cr-fila.cab { font-size: 12px; font-weight: 700; color: var(--texto-3); text-transform: uppercase; text-align: center; }
.cr-fila .pareja { font-weight: 700; line-height: 1.25; padding: 8px 10px; border-radius: 10px; transition: background .2s; }
.cr-fila .pareja.gana { background: var(--lima-suave); }
.cr-fila input { width: 100%; text-align: center; font-size: 20px; font-weight: 800; padding: 8px 0; border-radius: 10px; border: 1px solid var(--borde-2); min-height: 50px; font-variant-numeric: tabular-nums; }
.cr-fila input.auto { color: var(--azul-3); background: #f3f7fb; }
.cr-fila input:focus { outline: none; border-color: var(--azul-3); box-shadow: 0 0 0 4px rgba(29,85,121,.12); }
@media (max-width: 480px) { .cr-fila { grid-template-columns: 1fr repeat(3, 46px); } }

/* ---------- Buscador de jugadores ---------- */
.buscador { position: relative; }
.buscador .lista {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border: 1px solid var(--borde);
  border-radius: 12px; box-shadow: var(--sombra-alta); max-height: 280px; overflow-y: auto; animation: entrar-modal .2s var(--curva) both;
}
.buscador .op { padding: 10px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.buscador .op:hover, .buscador .op.activo { background: #f1f5f8; }

/* Revisión de importación */
.revision-fila { display: grid; grid-template-columns: 34px 1fr 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--borde); align-items: start; }
.revision-jugador { display: flex; flex-direction: column; gap: 6px; }
.revision-jugador .nombre { font-weight: 700; }
/* En el teléfono, los dos jugadores uno debajo del otro y la casilla "incluir" a la izquierda (se puede desmarcar). */
@media (max-width: 640px) { .revision-fila { grid-template-columns: 28px 1fr; } .revision-fila > :first-child { grid-row: span 2; } .revision-fila > .revision-jugador { grid-column: 2; } }

.logos { display: flex; align-items: center; gap: 14px; }
.logos img.fenipadel { height: 44px; width: 44px; }

.ingreso { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 20% 10%, var(--azul-2), var(--azul) 60%); color: #fff; padding: 24px; }
.ingreso .caja { text-align: center; max-width: 420px; display: grid; gap: 18px; justify-items: center; animation: entrar-pagina .6s var(--curva) both; }
.ingreso img.raq { height: 60px; }

/* ---------- Programación ---------- */
.prog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.prog-cuadro { min-width: 0; }
@media (max-width: 1100px) { .prog-layout { grid-template-columns: 1fr; } }
.prog-tabla { border-collapse: separate; border-spacing: 6px; width: 100%; min-width: max-content; }
.prog-tabla th { font-size: 12px; font-weight: 750; color: var(--texto-2); text-align: center; padding: 4px 6px; min-width: 150px; }
.prog-tabla th.prog-hora { min-width: 56px; width: 56px; font-variant-numeric: tabular-nums; color: var(--texto); font-size: 13px; }
.prog-tabla td { padding: 0; vertical-align: top; }
.prog-partido {
  width: 100%; text-align: left; border: 0; border-left: 5px solid var(--color); background: color-mix(in srgb, var(--color) 9%, #fff);
  border-radius: 10px; padding: 7px 9px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; position: relative;
  transition: transform .15s var(--curva), box-shadow .2s; font-size: 12.5px; min-height: 74px;
}
.prog-partido:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.prog-partido.con-error { box-shadow: 0 0 0 2px var(--rojo); }
.prog-partido.con-aviso { box-shadow: 0 0 0 2px var(--ambar); }
.prog-cat { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--color); }
.prog-par { font-weight: 700; line-height: 1.2; }
.prog-vs { font-size: 10px; color: var(--texto-3); }
.prog-marc { font-weight: 800; font-size: 11.5px; margin-top: 2px; }
.prog-alerta { position: absolute; top: 6px; right: 6px; color: var(--rojo); }
.prog-alerta svg { width: 15px; height: 15px; }
.prog-libre { width: 100%; min-height: 74px; border: 1.5px dashed var(--borde); border-radius: 10px; background: #fafbfc; color: var(--texto-3); font-size: 12px; font-weight: 700; }
.prog-libre.activo { border-color: var(--lima-2); background: var(--lima-suave); color: #5d6e00; cursor: pointer; }
.prog-libre.activo:hover { background: #ecf6c0; }
.prog-pendientes { max-height: 70vh; overflow-y: auto; padding: 0 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.prog-pendiente { text-align: left; border: 1px solid var(--borde); border-left: 5px solid var(--color); background: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font-size: 13px; transition: background .15s, box-shadow .2s; }
.prog-pendiente:hover { background: #f6f9fb; }
.prog-pendiente.elegido { box-shadow: 0 0 0 3px rgba(191,224,0,.6); background: var(--lima-suave); }
@media print {
  .menu, .barra-movil, .no-imprimir, .avisos-flotantes, .cabecera-movil { display: none !important; }
  .app { display: block; }
  .principal { padding: 0; }
  body { background: #fff; }
  .prog-layout { display: block; }
  .tarjeta { box-shadow: none; border: 0; }
  .prog-libre { border: 1px dashed #ddd; }
  .prog-partido { break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Actualización 3 ---------- */

/* Barra de categorías (como Tournament Planner: cambio rápido de categoría) */
.barra-categorias { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--fondo) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin: 0 -8px 14px; padding: 10px 8px 0; }
.barra-categorias .pestanas { margin-bottom: 0; }
.cat-pastillas { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
.cat-pastilla {
  flex: none; display: inline-flex; align-items: center; gap: 8px; position: relative; overflow: hidden;
  border: 1px solid var(--borde); background: #fff; color: var(--texto); border-radius: 12px; padding: 9px 13px 11px;
  font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: transform .15s var(--curva), box-shadow .2s, background .2s, color .2s;
}
.cat-pastilla:hover { box-shadow: var(--sombra); transform: translateY(-1px); }
.cat-pastilla .punto { width: 9px; height: 9px; border-radius: 50%; background: var(--color); flex: none; }
.cat-pastilla .cuenta { font-size: 12px; background: rgba(0,38,58,.07); border-radius: 999px; padding: 1px 7px; }
.cat-pastilla .avance { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0,38,58,.06); }
.cat-pastilla .avance span { display: block; height: 100%; background: var(--color); transition: width .4s var(--curva); }
.cat-pastilla.activo { background: var(--azul); color: #fff; border-color: var(--azul); box-shadow: 0 6px 18px rgba(0,38,58,.22); }
.cat-pastilla.activo .punto { box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.cat-pastilla.activo .cuenta { background: rgba(191,224,0,.25); color: var(--lima); }
.cat-pastilla.activo .avance span { background: var(--lima); }
.cat-pastilla.agregar { border-style: dashed; color: var(--texto-2); background: transparent; }
.cat-pastilla.agregar svg { width: 15px; height: 15px; }

/* Tipos de torneo en el formulario */
.tipos-torneo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 640px) { .tipos-torneo { grid-template-columns: repeat(3, 1fr); } }
.tipo-torneo { border: 1.5px solid var(--borde); background: #fff; border-radius: 12px; padding: 10px 8px; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: all .18s var(--curva); }
.tipo-torneo strong { font-size: 15px; }
.tipo-torneo span { font-size: 11.5px; color: var(--texto-3); font-weight: 600; }
.tipo-torneo:hover { border-color: var(--azul-3); }
.tipo-torneo.activo { border-color: var(--azul); background: var(--azul); color: #fff; box-shadow: 0 6px 16px rgba(0,38,58,.2); }
.tipo-torneo.activo span { color: var(--lima); }
.tipo-detalle { display: block; margin-top: 8px; padding: 9px 12px; border-radius: 10px; background: var(--lima-suave); color: #4b5a00; font-weight: 600; animation: aparecer .25s var(--curva); }
.logo-campo { align-items: center; }
.logo-muestra { width: 150px; height: 64px; border-radius: 10px; background: var(--azul); display: grid; place-items: center; padding: 8px; }
.logo-muestra img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-muestra.vacio { background: #f2f4f7; color: var(--texto-3); font-size: 12px; font-weight: 700; border: 1.5px dashed var(--borde); }

/* Ventana de partido */
.ventana-partido { display: flex; flex-direction: column; gap: 12px; }
.vp-programa { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 8px; padding: 12px; background: #f6f8fa; border-radius: 12px; border: 1px solid var(--borde); }
@media (max-width: 520px) { .vp-programa { grid-template-columns: 1fr 1fr; } .vp-programa label:first-child { grid-column: 1 / -1; } }
.vp-parejas { display: flex; flex-direction: column; gap: 2px; }
.vp-gana { color: var(--lima-2); margin-right: 6px; display: inline-flex; vertical-align: -2px; }
.vp-gana svg { width: 15px; height: 15px; }
.vp-teclas { white-space: nowrap; }
@media (pointer: coarse) { .vp-teclas { display: none; } }

/* Programación: arrastrar y soltar */
.prog-partido { touch-action: manipulation; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.prog-partido.jugado { opacity: .82; }
.prog-pendiente { touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: grab; }
.arrastrando { opacity: .3 !important; transform: scale(.97); }
.fantasma-arrastre { position: fixed !important; z-index: 3000; pointer-events: none; margin: 0 !important; box-shadow: 0 18px 40px rgba(0,38,58,.32) !important; transition: none; will-change: transform; }
body.con-arrastre, body.con-arrastre * { cursor: grabbing !important; user-select: none !important; }
td.destino > .prog-libre { border-color: var(--lima-2); background: var(--lima-suave); box-shadow: inset 0 0 0 2px rgba(191,224,0,.5); }
td.destino > .prog-partido { box-shadow: 0 0 0 3px var(--lima-2); transform: scale(.97); }
td.destino-no > * { box-shadow: 0 0 0 2px var(--rojo); }
.prog-lista.destino { box-shadow: 0 0 0 3px var(--lima-2); background: var(--lima-suave); }
.prog-tabla td { transition: background .15s; }
.prog-partido.recien { animation: aterrizar .45s var(--curva); }
@keyframes aterrizar { 0% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(191,224,0,.7); } 60% { transform: scale(1.03); box-shadow: 0 0 0 6px rgba(191,224,0,.25); } 100% { transform: scale(1); box-shadow: none; } }

/* Calendario de una categoría */
.cal-lista { display: flex; flex-direction: column; }
.cal-fila { display: grid; grid-template-columns: 58px 130px 140px 1fr auto; gap: 12px; align-items: center; padding: 11px 16px; border: 0; border-top: 1px solid var(--borde); background: #fff; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; transition: background .15s; }
.cal-fila:first-child { border-top: 0; }
.cal-fila:hover { background: #f6f9fb; }
.cal-hora { font-weight: 800; font-variant-numeric: tabular-nums; }
.cal-cancha { font-weight: 650; display: flex; flex-direction: column; }
.cal-cancha small { color: var(--texto-3); font-weight: 600; }
.cal-ronda { color: var(--texto-2); font-weight: 650; font-size: 12.5px; }
.cal-parejas { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.cal-parejas .gana { font-weight: 800; }
.cal-marcador { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cal-marcador.pend { color: var(--texto-3); font-weight: 650; font-size: 12.5px; }
@media (max-width: 760px) { .cal-fila { grid-template-columns: 52px 1fr auto; } .cal-cancha, .cal-ronda { display: none; } }

/* Grupos como matriz (estilo WPR) */
.matriz { border-collapse: separate; border-spacing: 0; width: 100%; min-width: max-content; font-size: 13px; }
.matriz th { font-size: 11.5px; font-weight: 750; color: var(--texto-2); padding: 10px 8px; border-bottom: 1px solid var(--borde); background: #f7f9fb; text-align: center; vertical-align: bottom; }
.matriz td { border-bottom: 1px solid var(--borde); padding: 6px; text-align: center; vertical-align: middle; }
.matriz tr:last-child td { border-bottom: 0; }
.matriz .mz-pos { width: 52px; }
.matriz th.mz-pareja, .matriz td.mz-pareja { text-align: left; min-width: 190px; }
.matriz td.mz-pareja { font-weight: 650; line-height: 1.25; }
.mz-pareja-in { display: flex; gap: 8px; align-items: center; }
.mz-num { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 6px; background: #eef2f6; color: var(--texto-2); font-size: 11px; font-weight: 800; margin-right: 4px; flex: none; }
.matriz th.mz-rival { min-width: 112px; max-width: 140px; white-space: normal; line-height: 1.25; }
.matriz th.mz-rival .mz-num { display: flex; margin: 0 auto 4px; width: 20px; }
.matriz .mz-tot { min-width: 74px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.matriz td.mz-tot { font-size: 13.5px; }
.mz-diagonal { background: repeating-linear-gradient(135deg, #eef2f6 0 6px, #f7f9fb 6px 12px); }
.mz-celda { transition: transform .15s var(--curva), background .15s; }
.mz-celda.clic { cursor: pointer; }
.mz-celda > span { display: block; }
.mz-celda.clic:hover { filter: brightness(.97); }
.mz-celda.gano { background: color-mix(in srgb, var(--verde) 9%, #fff); }
.mz-celda.perdio { background: color-mix(in srgb, var(--rojo) 7%, #fff); }
.mz-gp { display: inline-grid !important; place-items: center; width: 22px; height: 22px; margin: 0 auto 3px; border-radius: 7px; font-size: 11.5px; font-weight: 800; color: #fff; }
.gano .mz-gp { background: var(--verde); }
.perdio .mz-gp { background: var(--rojo); }
.mz-sets { font-weight: 800; font-variant-numeric: tabular-nums; }
.mz-notas { padding: 10px 18px 14px; border-top: 1px solid var(--borde); }
.mz-notas p { margin: 2px 0; font-size: 12.5px; font-style: italic; color: var(--texto-2); line-height: 1.45; }
.mz-cancha { font-size: 10.5px; color: var(--texto-3); font-weight: 650; margin-top: 2px; }
.mz-celda.pend .mz-cargar { font-size: 11.5px; color: var(--azul-3); font-weight: 750; line-height: 1.25; }
.matriz tr.clasifica td.mz-pareja { box-shadow: inset 4px 0 0 var(--lima-2); background: color-mix(in srgb, var(--lima) 8%, #fff); }
.matriz .mz-pos { border-left: 1px solid var(--borde); }
.posicion.pasa { background: var(--lima); color: var(--azul); }
.grupo .cab .cab-estado { font-size: 13px; color: rgba(255,255,255,.75); }
.matriz th.mz-pareja { padding-left: 16px; }
.matriz td.mz-pareja { padding-left: 16px; }

/* Llave Classic */
.llave-titulo { font-size: 15px; margin: 0 0 14px; }
.llave-titulo .tenue { font-weight: 600; font-size: 13px; }
.llave .cruce.sin-linea::before, .llave .cruce.sin-linea::after { display: none !important; }
.classic-inicial .partidos { justify-content: flex-start; }
.llave-codigo { position: absolute; left: -38px; width: 34px; text-align: right; top: 50%; transform: translateY(-50%); font-size: 11.5px; font-weight: 800; color: var(--texto-2); white-space: nowrap; }
.llave .ronda .cruce:has(.llave-codigo) { margin-left: 38px; }

/* Ajustes: categorías */
.cat-nombres { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.punto-cat { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.cat-extra { display: grid; grid-template-columns: 1.4fr .9fr 1.2fr 1.2fr auto; gap: 8px; align-items: end; padding: 12px; border: 1px solid var(--borde); border-radius: 12px; background: #fafbfc; animation: aparecer .25s var(--curva); }
@media (max-width: 760px) { .cat-extra { grid-template-columns: 1fr 1fr; } }

/* Vista previa de artes */
.arte-vista { background: var(--azul); border-radius: 14px; padding: 12px; max-height: 62vh; overflow: auto; display: grid; place-items: center; min-height: 200px; }
.arte-vista img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: aparecer .3s var(--curva); }
.arte-mas { color: var(--lima); font-weight: 700; margin-top: 10px; font-size: 13px; }

/* ---------- Actualización 4 ---------- */
.prog-par.por-definir { font-style: italic; color: var(--texto-2); font-weight: 600; }
.encabezado.incrustado { justify-content: flex-end; margin-bottom: 12px; }
.doc-lista { display: flex; flex-direction: column; border: 1px solid var(--borde); border-radius: 12px; overflow: hidden; }
.doc-fila { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--borde); }
.doc-fila:first-child { border-top: 0; }
.doc-fila a { flex: 1; font-weight: 700; color: var(--texto); }
.doc-icono { color: var(--azul-3); display: grid; place-items: center; }
.doc-icono svg { width: 18px; height: 18px; }
.doc-subir { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
@media (max-width: 640px) { .doc-subir { grid-template-columns: 1fr; } }
.disp-tabla td { vertical-align: middle; }
.buscado td { box-shadow: inset 0 0 0 2px var(--lima-2); }

/* ---------- Actualización 5 ---------- */
/* Matriz: todas las tablas con las mismas medidas, sin barra de desplazamiento en computadora */
.matriz { table-layout: fixed; width: 100%; min-width: 760px; }
.matriz th.mz-pareja { width: 22%; }
.matriz th.mz-tot { width: 96px; }
.matriz th.mz-pos { width: 66px; }
.matriz th.mz-rival { min-width: 0; max-width: none; font-size: 12px; line-height: 1.3; }
.matriz td, .matriz th { text-align: center; vertical-align: middle; }
.matriz td.mz-pareja, .matriz th.mz-pareja { text-align: left; }
.matriz .mz-tot small { display: block; font-size: 11px; color: var(--texto-3); font-weight: 600; margin-top: 1px; }
.matriz .mz-dif { font-size: 14px; }
.mz-vacia { background: transparent; }
.mz-celda.vivo { background: color-mix(in srgb, var(--lima) 14%, #fff); }
.mz-vivo { display: inline-flex !important; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #5d6e00; }
.mz-vivo i, .pt-vivo i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: latido 1.4s ease-in-out infinite; }
@keyframes latido { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
mark.resaltado { background: var(--lima); color: var(--azul); border-radius: 4px; padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Arrastrar y soltar: levantar, mover y aterrizar con suavidad */
.fantasma-arrastre { transition: none; scale: 1.04; rotate: -1deg; animation: levantar .16s cubic-bezier(.2,.8,.2,1); }
.fantasma-arrastre.aterrizando { transition: transform .2s cubic-bezier(.2,.8,.2,1), scale .2s cubic-bezier(.2,.8,.2,1), rotate .2s, opacity .12s; scale: 1; rotate: 0deg; }
.fantasma-arrastre.soltado { opacity: 0; }
@keyframes levantar { from { scale: 1; rotate: 0deg; box-shadow: 0 2px 6px rgba(0,38,58,.1); } }
.arrastrando { transition: opacity .15s, transform .15s; }
body.con-arrastre .prog-partido:hover { transform: none; box-shadow: none; }
.prog-tabla td > * { transition: box-shadow .15s, background .15s, transform .15s; }
.prog-partido.recien { animation: aterrizar2 .32s cubic-bezier(.2,.8,.2,1); }
@keyframes aterrizar2 { from { transform: scale(.97); box-shadow: 0 0 0 4px rgba(191,224,0,.45); } to { transform: scale(1); box-shadow: 0 0 0 0 rgba(191,224,0,0); } }

/* ---------- Actualización 6: portada, marcador en vivo, firmas ---------- */
.ficha-torneo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 400px); gap: 24px; align-items: stretch; margin-bottom: 18px; }
.ficha-info { display: flex; flex-direction: column; gap: 10px; justify-content: center; min-width: 0; }
.ficha-info .acciones { margin-top: 6px; }
.ficha-portada { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--azul); box-shadow: var(--sombra); align-self: center; width: 100%; }
.ficha-portada img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ficha-portada.vacia { border: 1.5px dashed var(--borde-2); background: #f7f9fb; box-shadow: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--texto-3); cursor: pointer; font: inherit; font-weight: 700; transition: border-color .2s, color .2s; }
.ficha-portada.vacia:hover { border-color: var(--azul-3); color: var(--azul-3); }
.ficha-portada.vacia svg { width: 28px; height: 28px; }
.ficha-portada.vacia small { font-weight: 600; font-size: 12px; }
@media (max-width: 900px) { .ficha-torneo { grid-template-columns: 1fr; } .ficha-portada { order: -1; max-width: 520px; } }

.portada-campo { display: flex; flex-direction: column; gap: 8px; }
.portada-campo img, .portada-vacia { width: 100%; max-width: 360px; aspect-ratio: 16 / 9; border-radius: 12px; object-fit: cover; }
.portada-vacia { background: #f2f4f7; border: 1.5px dashed var(--borde); display: grid; place-items: center; color: var(--texto-3); font-size: 12px; font-weight: 700; }

.torneo-card.con-portada { padding-top: 0; overflow: hidden; }
.torneo-portada { margin: 0 -20px 4px; aspect-ratio: 16 / 9; background: var(--azul); overflow: hidden; }
.torneo-portada img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--curva); }
.torneo-card:hover .torneo-portada img { transform: scale(1.03); }

.enlace-caja { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #f5f8fb; border: 1px solid var(--borde); border-radius: 12px; padding: 10px 12px; }
.enlace-caja code { flex: 1; min-width: 180px; font-size: 13px; font-weight: 700; color: var(--azul); word-break: break-all; }
.pin-caja { border: 1px solid var(--borde); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.pin-cab { display: flex; flex-direction: column; gap: 2px; }
.pin-cab small { color: var(--texto-3); font-size: 12px; }
.pin-entrada { width: 140px; font-size: 20px; font-weight: 800; letter-spacing: .18em; text-align: center; font-variant-numeric: tabular-nums; }

.firmas-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.firma-item { border: 1px solid var(--borde); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.firma-cab { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.firma-cab small { font-weight: 700; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.firma-item img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; background: #fff; border: 1px dashed var(--borde); border-radius: 8px; }
.zona-peligro { border: 1px solid #f3c3bf; background: #fff8f7; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.zona-peligro h3 { font-size: 15px; color: var(--rojo); }

/* ---------- Actualización 7: matriz de grupos sin espacio muerto y versión de teléfono ---------- */
.matriz { min-width: 0; font-size: 14px; }
.matriz th.mz-pareja { width: 210px; }
.matriz th.mz-pos { width: 60px; }
.matriz th.mz-tot { width: 92px; }
.matriz td.mz-pareja { font-size: 14px; }
.matriz th.mz-rival { font-size: 12.5px; }
.mz-sets { font-size: 15px; }
.matriz td.mz-tot { font-size: 14.5px; }
.matriz .mz-dif { font-size: 16px; }
@media (max-width: 1100px) { .matriz th.mz-pareja { width: 170px; } .matriz th.mz-tot { width: 80px; } }

.matriz-grupo.compacta { overflow: hidden; }
.mz-chica { table-layout: fixed; width: 100%; font-size: 12px; }
.mz-chica th.mz-pareja { width: 34%; }
.mz-chica th, .mz-chica td { padding: 6px 3px; }
.mz-chica td.mz-pareja, .mz-posiciones td.mz-pareja { padding-left: 10px; font-size: 12px; line-height: 1.25; }
.mz-chica td.mz-pareja, .mz-posiciones td.mz-pareja { display: table-cell; }
.mz-chica .mz-nom, .mz-posiciones .mz-nom { display: inline-block; vertical-align: middle; max-width: calc(100% - 26px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mz-chica .mz-num, .mz-posiciones .mz-num { vertical-align: middle; }
.mz-chica th.mz-rival .mz-num { margin: 0 auto; }
.mz-chica .mz-gp { width: 18px; height: 18px; font-size: 10px; border-radius: 5px; margin-bottom: 2px; }
.mz-chica .mz-sets { font-size: 12px; line-height: 1.2; }
.mz-linea { display: block; }
.mz-chica .mz-cargar { font-size: 10.5px !important; }
.mz-chica .mz-vivo { font-size: 9px; }
.mz-posiciones { table-layout: fixed; width: 100%; font-size: 12.5px; border-top: 2px solid var(--borde); }
.mz-posiciones th { padding: 8px 4px; font-size: 11px; }
.mz-posiciones th:first-child { width: 44px; }
.mz-posiciones th.mz-pareja { width: auto; }
.mz-posiciones th:nth-child(n+3) { width: 64px; }
.mz-posiciones td { padding: 6px 4px; }
.mz-posiciones .mz-tot { min-width: 0; }
.mz-posiciones .mz-dif { font-size: 14px; }
.publico .mz-posiciones { border-top-color: var(--borde); }

/* Resumen del torneo */
.resumen-torneo { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; margin-bottom: 18px; flex-wrap: wrap; }
.resumen-numeros { display: flex; gap: 8px 26px; flex-wrap: wrap; }
.resumen-dato { display: flex; flex-direction: column; border-left: 4px solid var(--lima-2); padding-left: 12px; }
.resumen-dato b { font-size: 34px; font-weight: 800; line-height: 1; color: var(--azul); font-variant-numeric: tabular-nums; }
.resumen-dato span { font-size: 13px; font-weight: 700; color: var(--texto-2); margin-top: 4px; }
.resumen-anillos { display: flex; gap: 22px; }
.resumen-anillo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.resumen-anillo > div { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, #fff 76%, transparent 77% 100%), conic-gradient(var(--azul) calc(var(--pct) * 1%), #e5ebf0 0); }
.resumen-anillo b { font-size: 18px; font-weight: 800; color: var(--azul); }
.resumen-anillo span { font-size: 12.5px; font-weight: 700; color: var(--texto-2); }
@media (max-width: 700px) { .resumen-dato b { font-size: 26px; } .resumen-numeros { gap: 12px 18px; } }

/* Fotos de jugadores */
.foto-jugador { flex: none; border: 1.5px dashed var(--borde-2); border-radius: 10px; padding: 0; overflow: hidden; background: #f2f5f8; display: inline-grid; place-items: center; cursor: pointer; vertical-align: middle; }
.foto-jugador img { width: 100%; height: 100%; object-fit: cover; }
.foto-jugador span { font-size: 11px; font-weight: 800; color: var(--texto-3); }
.foto-jugador:hover { border-color: var(--azul-3); }
.foto-jugador:has(img) { border-style: solid; border-color: transparent; }
.jugador-con-foto { display: flex; align-items: center; gap: 8px; }
.mz-posiciones .mz-nom { white-space: normal; line-height: 1.25; }
.cr-fila.tb input.tb { height: 34px; font-size: 14px; border-style: dashed; }
.cr-fila.tb .pareja { font-size: 12px; font-weight: 650; }
.vp-registro { font-style: italic; font-size: 13px; color: var(--texto-2); margin-top: 4px; }
.llave-lado .sets sup { font-size: 9px; margin-left: 1px; }

/* Interruptor (visible en la web) */
.interruptor { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--borde-2); border-radius: 10px; background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; user-select: none; }
.interruptor input { position: absolute; opacity: 0; pointer-events: none; }
.interruptor-pista { width: 38px; height: 22px; border-radius: 999px; background: #cfd7e0; position: relative; transition: background .2s; flex: none; }
.interruptor-pista span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--curva); }
.interruptor.on .interruptor-pista { background: var(--verde); }
.interruptor.on .interruptor-pista span { transform: translateX(16px); }
.interruptor:has(input:focus-visible) { outline: 2px solid var(--azul-3); }

/* Resumen del torneo (nuevo diseño) */
.rs { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 18px 22px; margin-bottom: 18px; }
.rs-datos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rs-dato { display: flex; flex-direction: column; gap: 2px; padding: 2px 16px; border-left: 1px solid var(--borde); }
.rs-dato:first-child { border-left: 0; padding-left: 0; }
.rs-dato span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-3); }
.rs-dato b { font-size: 30px; font-weight: 800; color: var(--azul); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rs-anillos { display: flex; gap: 22px; padding-left: 22px; border-left: 1px solid var(--borde); }
.rs-anillo { display: flex; align-items: center; gap: 12px; }
.rs-anillo svg { width: 64px; height: 64px; }
.rs-anillo > div { display: flex; flex-direction: column; }
.rs-anillo b { font-size: 14px; color: var(--azul); }
.rs-anillo small { font-size: 12px; color: var(--texto-3); font-weight: 600; }
@media (max-width: 1100px) { .rs { grid-template-columns: 1fr; } .rs-anillos { border-left: 0; padding-left: 0; } .rs-datos { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; } .rs-dato:nth-child(4) { border-left: 0; padding-left: 0; } }

/* Programación: días publicados en la web */
.prog-dias { margin-bottom: 14px; gap: 12px; flex-wrap: wrap; align-items: center; }
.chip-oculto { display: inline-flex; margin-right: 5px; opacity: .7; }
.chip-oculto svg { width: 14px; height: 14px; }

/* Ranking: puntos y resultado de cada torneo */
.rk-rankings { gap: 8px; flex-wrap: wrap; }
.chip.agregar { border-style: dashed; color: var(--texto-2); }
.chip.agregar svg { width: 15px; height: 15px; }
.rk-tabla th.rk-torneo { text-align: center; max-width: 140px; white-space: normal; line-height: 1.25; }
.rk-vivo { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--verde, #2e8b57); margin-top: 3px; }
.rk-celda { text-align: center; }
.rk-celda b { display: block; font-variant-numeric: tabular-nums; }
.rk-celda small { display: block; font-size: 11px; color: var(--texto-3); white-space: nowrap; }

/* Programación: turnos fuera de horario y canchas por día */
.prog-tabla tr.prog-fuera th.prog-hora, .prog-tabla th.prog-fuera { color: var(--ambar, #b7791f); }
.prog-tabla tr.prog-fuera td { background: repeating-linear-gradient(135deg, rgba(183,121,31,.07) 0 8px, transparent 8px 16px); }
.prog-fuera-txt { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ambar, #b7791f); margin-top: 2px; }
.prog-dia-canchas { gap: 6px; margin: 0 0 6px; align-items: center; }
.chip.chico { padding: 4px 10px; font-size: 12.5px; }

.prog-de { flex: none; font-size: 13px; }
/* Menú del botón derecho en la programación */
.prog-menu-fondo { position: fixed; inset: 0; z-index: 800; pointer-events: none; }
.prog-menu-fondo .prog-menu { pointer-events: auto; }
.prog-menu { position: fixed; min-width: 250px; max-width: 300px; background: #fff; border: 1px solid var(--borde); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,38,58,.2); padding: 6px; display: flex; flex-direction: column; animation: prog-menu .12s ease; }
@keyframes prog-menu { from { opacity: 0; transform: translateY(-4px); } }
.prog-menu button { display: flex; align-items: center; gap: 8px; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--texto); cursor: pointer; }
.prog-menu button:hover { background: var(--fondo, #f2f6f9); }
.prog-menu button svg { width: 16px; height: 16px; }
.prog-menu hr { border: 0; border-top: 1px solid var(--borde); margin: 4px 0; }
.prog-menu p { margin: 4px 10px 6px; font-size: 11.5px; }

/* Parejas: el nombre se puede tocar para cambiar jugadores */
.pareja-editable { cursor: pointer; }
.pareja-editable:hover div { text-decoration: underline; text-underline-offset: 3px; }
.lapiz-pareja svg { width: 14px; height: 14px; vertical-align: -2px; opacity: .55; }
.pareja-editable:hover .lapiz-pareja svg { opacity: 1; }

/* ---------- Actualización 21 (panel) ---------- */
/* Botón con aspecto de enlace ("Marcar todas" las categorías al crear un torneo) */
.enlace-boton { border: 0; background: none; padding: 0 0 0 6px; font: inherit; font-weight: 700; color: var(--azul-3); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.enlace-boton:hover { color: var(--azul); }

/* Importar parejas: nombre parecido a alguien de la base (amarillo), jugador ya inscrito y pareja repetida */
.revision-alerta { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--ambar-suave); border: 1px solid #f1d9a6; }
.revision-alerta > span:first-child { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #6b4a00; }
.revision-alerta > span:first-child svg { width: 15px; height: 15px; flex: none; }
.revision-alerta .entrada { border-color: var(--ambar); background: #fff; }
.revision-nota { font-size: 12.5px; font-weight: 650; color: var(--ambar); }
.revision-nota.rojo { color: var(--rojo); }
.revision-repetida { grid-column: 1 / -1; padding-left: 44px; margin-top: -4px; }
.lista-aviso { margin: 6px 0; padding-left: 18px; }
.lista-aviso li { margin: 2px 0; }
@media (max-width: 640px) { .revision-repetida { grid-column: 2; padding-left: 0; } }

/* Sorteo: cómo quedan los grupos y la llave de la propuesta */
.sorteo-resumen { display: flex; flex-direction: column; gap: 3px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f5f8fb; border: 1px solid var(--borde); font-size: 14px; }
.sorteo-resumen span { color: var(--texto-2); }
.sorteo-llave-cab { margin-top: 4px; }
.sorteo-llave-cab h3 { font-size: 16px; }

/* Editar pareja: el jugador que entra ya juega otra categoría (jugar las dos o intercambiar) */
.opcion-cambio { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--borde); background: #f8fafc; }
.opcion-cambio .lista-aviso { margin: 4px 0 0; }

/* Proponer programación: partidos que quedan sin lugar y por qué */
.sin-lugar { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; margin: 0; padding: 0; list-style: none; }
.sin-lugar li { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--ambar-suave); border: 1px solid #f1d9a6; font-size: 13.5px; }
.sin-lugar .motivo { color: #6b4a00; font-weight: 650; }

/* ---------- Actualización 23: Programación en el teléfono ---------- */
/* Cuadrícula: se desliza dentro de su caja con la fila de canchas y la columna de horas fijas.
   Medidas por vista (Compacta / Normal / Grande) en variables: --col y --fila incluyen el espacio entre fichas. */
.prog-caja { overflow: auto; overscroll-behavior: contain; position: relative; }
.prog-tabla { border-spacing: 0; table-layout: fixed; min-width: 100%; }
.prog-tabla th, .prog-tabla td { padding: var(--hueco, 3px); }
.prog-tabla tbody tr { height: var(--fila, 80px); }
.prog-tabla thead tr { height: var(--cab, 30px); }
.prog-tabla thead th { position: sticky; top: 0; z-index: 3; background: var(--tarjeta); height: var(--cab, 30px); }
.prog-tabla th.prog-cancha { width: var(--col, 156px); min-width: var(--col, 156px); max-width: var(--col, 156px); padding: 4px 6px; }
.prog-tabla th.prog-cancha > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog-tabla th.prog-hora, .prog-tabla th.prog-esquina { position: sticky; left: 0; z-index: 2; background: var(--tarjeta); width: var(--hora, 56px); min-width: var(--hora, 56px); max-width: var(--hora, 56px); }
.prog-tabla thead th.prog-esquina { z-index: 4; }
.prog-tabla td { width: var(--col, 156px); }
.prog-tabla td > * { width: 100%; }
.prog-tabla .prog-libre { display: flex; align-items: center; justify-content: center; } /* sin el espacio de abajo de un botón en línea */

/* Grande: como siempre, cada cancha tan ancha como sus nombres (mínimo 150 px) */
.prog-zoom-grande .prog-tabla { table-layout: auto; width: max-content; }
.prog-zoom-grande .prog-tabla th.prog-cancha { width: auto; max-width: none; min-width: var(--col); }
.prog-zoom-grande .prog-tabla td { width: auto; min-width: var(--col); }
/* Normal */
.prog-zoom-normal .prog-partido { min-height: 0; height: calc(var(--fila) - 2 * var(--hueco)); padding: 4px 6px 4px 7px; border-left-width: 4px; border-radius: 8px; font-size: 11.5px; gap: 0; overflow: hidden; }
.prog-zoom-normal .prog-cat { font-size: 9.5px; }
.prog-zoom-normal .prog-par { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-zoom-normal .prog-libre, .prog-zoom-compacta .prog-libre { min-height: 0; height: calc(var(--fila) - 2 * var(--hueco)); }
.prog-zoom-normal th.prog-hora { font-size: 12px; }

/* Compacta: el día entero en la pantalla. Cada partido es una ficha corta: categoría con su color, ronda y apellidos. */
.prog-zoom-compacta .prog-tabla th { font-size: 10px; }
.prog-zoom-compacta th.prog-hora { font-size: 10px; font-weight: 750; padding: 0 2px; }
.prog-zoom-compacta th.prog-cancha { padding: 2px; font-size: 10px; }
.prog-zoom-compacta .prog-fuera-txt { display: none; }
.prog-zoom-compacta .prog-partido {
  min-height: 0; height: calc(var(--fila) - 2 * var(--hueco)); padding: 1px 2px 1px 3px; border-left-width: 3px; border-radius: 5px;
  font-size: 9.5px; line-height: 1.15; gap: 0; overflow: hidden; justify-content: center;
}
.prog-zoom-compacta .prog-partido:hover { transform: none; box-shadow: none; }
.prog-zoom-compacta .prog-partido > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-zoom-compacta .prog-cat { font-size: 8.5px; letter-spacing: 0; line-height: 1.15; text-transform: none; }
.prog-zoom-compacta .prog-a1, .prog-zoom-compacta .prog-a2, .prog-zoom-compacta .prog-l2, .prog-zoom-compacta .prog-l3 { font-weight: 650; color: var(--texto); }
.prog-zoom-compacta .por-definir { font-style: italic; color: var(--texto-2); font-weight: 600; }
/* 3 líneas: categoría y ronda / pareja 1 / pareja 2 */
.prog-d3 .prog-a1, .prog-d3 .prog-a2, .prog-d3 .prog-a12, .prog-d3 .prog-ronda { display: none; }
/* 2 líneas: "3M A Rugama" / "Baltodano" */
.prog-d2 .prog-l2, .prog-d2 .prog-l3, .prog-d2 .prog-a12, .prog-d2 .prog-ronda { display: none; }
.prog-zoom-compacta .prog-d2 .prog-partido { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 2px; align-content: center; align-items: baseline; }
.prog-d2 .prog-a2 { grid-column: 1 / -1; }
/* 1 línea: la ronda con el color de la categoría y "Rugama·Baltodano" (la categoría la dice el color) */
.prog-d1 .prog-cat, .prog-d1 .prog-a1, .prog-d1 .prog-a2, .prog-d1 .prog-l2, .prog-d1 .prog-l3 { display: none; }
.prog-zoom-compacta .prog-d1 .prog-partido { flex-direction: row; align-items: center; justify-content: flex-start; gap: 3px; }
.prog-d1 .prog-ronda { flex: none; font-size: 8.5px; font-weight: 800; color: var(--color); }
.prog-d1 .prog-a12 { flex: 1 1 auto; min-width: 0; font-weight: 650; color: var(--texto); }
.prog-zoom-compacta .prog-partido.jugado { opacity: .62; }
.prog-zoom-compacta .prog-alerta { top: 1px; right: 1px; }
.prog-zoom-compacta .prog-alerta svg { width: 10px; height: 10px; }
.prog-zoom-compacta .prog-partido.con-error { box-shadow: inset 0 0 0 1.5px var(--rojo); }
.prog-zoom-compacta .prog-partido.con-aviso { box-shadow: inset 0 0 0 1.5px var(--ambar); }
.prog-zoom-compacta .prog-libre { border-width: 1px; border-radius: 5px; font-size: 13px; line-height: 1; padding: 0; }

/* Estado del partido: en juego (punto lima) y jugado (marca) */
.prog-vivo { position: absolute; right: 5px; bottom: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--lima-2); box-shadow: 0 0 0 2px #fff; animation: latido 1.4s ease-in-out infinite; }
.prog-listo { position: absolute; right: 3px; bottom: 2px; color: var(--verde); display: inline-flex; }
.prog-listo svg { width: 11px; height: 11px; stroke-width: 3; }
.prog-zoom-compacta .prog-vivo { right: 2px; top: 2px; bottom: auto; width: 6px; height: 6px; box-shadow: none; }
.prog-zoom-normal .prog-listo { top: 3px; bottom: auto; }

/* Barra de la cuadrícula: día, tamaño (Compacta / Normal / Grande) y "Sin programar" */
.prog-cab { flex-wrap: wrap; row-gap: 10px; }
.prog-cab-titulo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prog-controles { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prog-boton-pendientes .cuenta { font-size: 12px; background: rgba(0,38,58,.08); border-radius: 999px; padding: 1px 8px; }
.prog-boton-pendientes { display: none; }
@media (max-width: 1100px) { .prog-boton-pendientes { display: inline-flex; } }

/* Con el dedo no hay "pasar por encima": la ficha tocada no queda levantada */
@media (hover: none) {
  .prog-partido:hover { transform: none; }
  .prog-partido:not(.con-error):not(.con-aviso):not(.moviendo):not([class*="destino-"]):hover { box-shadow: none; }
}
/* Mover con el dedo: lugares posibles resaltados (verde sin choques, amarillo con aviso, rojo con choque) */
.prog-libre.destino-ok { background: var(--lima-suave); border: 1.5px solid var(--lima-2); color: #4d5c00; cursor: pointer; }
.prog-libre.destino-aviso { background: var(--ambar-suave); border: 1.5px solid var(--ambar); color: #6b4a00; cursor: pointer; }
.prog-libre.destino-error { background: var(--rojo-suave); border: 1.5px solid #ef9a94; color: var(--rojo); cursor: pointer; }
.prog-libre.apagado { opacity: .45; }
.prog-partido.apagado { opacity: .42; }
.prog-partido.moviendo { box-shadow: 0 0 0 2px var(--azul), 0 0 0 5px rgba(191,224,0,.7) !important; animation: prog-pulso 1.2s ease-in-out infinite; z-index: 1; }
@keyframes prog-pulso { 50% { box-shadow: 0 0 0 2px var(--azul), 0 0 0 2px rgba(191,224,0,.2); } }
.prog-partido.destino-ok { box-shadow: inset 0 0 0 2px var(--lima-2); }
.prog-partido.destino-aviso { box-shadow: inset 0 0 0 2px var(--ambar); }
.prog-partido.destino-error { box-shadow: inset 0 0 0 2px var(--rojo); }
@media (prefers-reduced-motion: reduce) { .prog-partido.moviendo, .prog-vivo { animation: none; } }

/* Barra de "Mover" arriba, sobre la barra de categorías (mientras se elige el lugar no hace falta): no tapa la cuadrícula */
.prog-modo {
  position: fixed; z-index: 45; left: 50%; top: 12px; transform: translateX(-50%); width: min(560px, calc(100% - 24px));
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px;
  background: var(--azul); color: #fff; box-shadow: var(--sombra-alta); border-left: 6px solid var(--color);
  animation: prog-modo-entrar .25s var(--curva) both;
}
@keyframes prog-modo-entrar { from { opacity: 0; transform: translate(-50%, -12px); } }
.prog-modo-texto { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; font-size: 13.5px; }
.prog-modo-texto > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog-modo-texto small { color: rgba(255,255,255,.75); font-size: 12px; white-space: normal; }
.prog-modo-cat { color: var(--lima); }
.prog-modo .btn { flex: none; min-height: 44px; }
/* La animación de entrada de la página la vuelve el marco de lo "fijo": mientras se mueve un partido se quita (ya terminó). */
.pagina:has(.prog-modo) { animation: none; }
@keyframes prog-modo-bajar { from { transform: translateY(-100%); } }

/* Hoja de un partido (al tocarlo con el dedo) y revisión antes de guardar */
.hoja-partido { display: flex; flex-direction: column; gap: 12px; }
.hp-parejas { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-left: 5px solid var(--color); border-radius: 10px; background: color-mix(in srgb, var(--color) 9%, #fff); font-size: 15px; }
.hp-parejas .por-definir { font-style: italic; color: var(--texto-2); font-weight: 600; }
.hp-lugar { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--texto-2); }
.hp-marcador { font-size: 14px; }
.hp-acciones { display: grid; gap: 8px; }
.hp-acciones .btn { min-height: 48px; justify-content: flex-start; padding-left: 16px; }
.hp-pendientes { display: flex; flex-direction: column; gap: 8px; }
.hp-pendientes .prog-pendiente { min-height: 52px; font-size: 14px; }
.hoja-cambio .hc-partido { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-left: 5px solid var(--color); border-radius: 10px; background: color-mix(in srgb, var(--color) 8%, #fff); }
.hc-lugar { font-size: 13.5px; }

/* Teléfono: botones de 44 px o más, días en una fila que se desliza, nada cortado */
@media (max-width: 860px) {
  .prog-pagina .btn, .prog-pagina .chip, .prog-pagina .entrada { min-height: 44px; }
  .prog-pagina .btn.chico { min-height: 40px; }
  .prog-pagina .encabezado.incrustado { margin-bottom: 12px; }
  .prog-pagina .encabezado.incrustado .acciones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .prog-pagina .encabezado.incrustado .acciones .btn { flex-direction: column; gap: 4px; min-height: 64px; padding: 8px 4px; white-space: normal; font-size: 12.5px; line-height: 1.2; text-align: center; }
  .prog-pagina .encabezado.incrustado .acciones .btn.primario { grid-column: 1 / -1; flex-direction: row; min-height: 50px; font-size: 15px; }
  .prog-dias { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 12px; }
  .prog-dias .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
  .prog-dias .chips::-webkit-scrollbar { display: none; }
  .prog-dias .chip { flex: none; }
  .prog-dias .interruptor { height: auto; min-height: 44px; align-self: flex-start; }
  .prog-cab { padding: 12px; }
  .prog-cab-titulo h3 { font-size: 15px; }
  .prog-controles { width: 100%; }
  .prog-controles .segmentado { flex: 1 1 auto; }
  .prog-controles .segmentado button { flex: 1; min-height: 44px; padding: 6px 8px; font-size: 13.5px; }
  .prog-controles .prog-boton-pendientes { flex: 1 1 auto; }
  .prog-lista { display: none; }
  .prog-modo {
    top: 0; left: 0; right: 0; width: auto; transform: none; min-height: var(--alto-modo, 0px); border-radius: 0 0 18px 18px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 12px 16px; border-left: 0; border-bottom: 5px solid var(--color);
    animation-name: prog-modo-bajar;
  }
  .prog-cuadro .prog-caja { border-radius: 0 0 var(--radio) var(--radio); }
}
/* Ventanas de la Programación (proponer, horario, disponibilidad, imprimir, mover) en el teléfono */
.prog-dia-fila { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; margin: 10px 0 4px; }
@media (max-width: 860px) {
  .modal:has(.prog-modal) .btn, .modal:has(.prog-modal) .chip, .modal:has(.prog-modal) .entrada, .modal:has(.prog-modal) .chequeo { min-height: 44px; }
  .modal:has(.prog-modal) .modal-cab .btn { min-width: 44px; }
  .modal:has(.prog-modal) .modal-pie .btn { flex: 1 1 auto; }
}
@media (max-width: 560px) {
  .prog-dia-fila { flex-wrap: wrap; }
  .prog-dia-fila > input[type="date"] { flex: 1 1 100%; }
  .prog-dia-fila select { flex: 1 1 0; min-width: 0; }
  /* Propuesta: cada partido en dos líneas (día, hora y cancha arriba; el partido abajo) */
  .prog-propuesta tr { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--borde); }
  .prog-propuesta tr:last-child { border-bottom: 0; }
  .prog-propuesta td { padding: 0 4px; border: 0; }
  .prog-propuesta td:last-child { grid-column: 1 / -1; padding-top: 2px; }
  /* Disponibilidad: cada pareja en un bloque (nombre, OUT, días que piden jugar y horario) con el lápiz a la derecha */
  .disp-tabla thead { display: none; }
  .disp-tabla tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--borde); }
  .disp-tabla td { display: block; padding: 0 2px; border: 0; }
  .disp-tabla td:empty { display: none; }
  .disp-tabla td:last-child { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
  .disp-tabla td:nth-child(2)::before { content: 'No pueden: '; font-size: 12px; color: var(--texto-3); }
  .disp-tabla td:nth-child(3)::before { content: 'Piden jugar: '; font-size: 12px; color: var(--texto-3); }
}
@media (max-width: 400px) {
  .prog-controles .segmentado button { padding: 6px 4px; font-size: 13px; }
  .prog-cab-titulo .tenue { font-size: 12px; }
}
/* Lo del clic derecho con toques: la hora (quitar la fila), la cancha (quitar la columna) y "⋯" junto a los días */
.prog-cab-btn {
  all: unset; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 100%; min-height: calc(var(--fila, 80px) - 2 * var(--hueco, 3px)); border-radius: 6px; cursor: pointer; text-align: center;
}
.prog-tabla thead .prog-cab-btn { min-height: calc(var(--cab, 30px) - 6px); align-items: stretch; }
.prog-cancha .prog-cab-btn > span:first-child { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog-cab-btn .prog-fuera-txt { display: block; }
.prog-cab-btn:hover { background: var(--fondo, #f2f6f9); }
.prog-cab-btn:focus-visible { outline: 2px solid var(--azul); outline-offset: -2px; }
.prog-zoom-compacta .prog-cab-btn { border-radius: 4px; }
.prog-dias-chips { display: flex; align-items: center; gap: 8px; min-width: 0; }
.prog-dias-chips .chips { min-width: 0; }
.prog-mas-dia { flex: none; min-width: 44px; padding: 0 10px; font-size: 20px; font-weight: 800; line-height: 1; letter-spacing: 1px; justify-content: center; }
@media (max-width: 860px), (pointer: coarse) { .prog-menu button { min-height: 44px; } }
@media (max-width: 860px) {
  .prog-dias-chips .chips { flex: 1 1 auto; margin: 0 0 0 -16px; padding: 2px 4px 2px 16px; }
}

/* Aviso rojo con los problemas: una frase cada uno y "Ver" (lleva al partido y lo resalta) */
.prog-problemas { margin-bottom: 12px; }
.prog-problemas .aviso > div { flex: 1; min-width: 0; }
.prog-problemas ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; }
.prog-problemas li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid rgba(138, 38, 32, .14); }
.prog-problemas li:first-child { border-top: 0; }
.prog-problemas li > span { min-width: 0; font-size: 13.5px; line-height: 1.35; }
.prog-problemas li .btn { flex: none; }
.prog-problema-dia { font-weight: 700; }
.prog-problemas .btn.prog-ver-todos { margin-top: 4px; padding-left: 0; padding-right: 0; color: inherit; text-decoration: underline; }
/* Dos partidos en la misma cancha y hora: los dos a la vista, uno sobre otro */
.prog-varios { display: flex; flex-direction: column; gap: 2px; }
.prog-zoom-normal .prog-varios, .prog-zoom-compacta .prog-varios { height: calc(var(--fila) - 2 * var(--hueco)); }
.prog-zoom-normal .prog-varios > .prog-partido, .prog-zoom-compacta .prog-varios > .prog-partido { flex: 1 1 0; min-height: 0; height: auto !important; overflow: hidden; }
.prog-partido.prog-foco { z-index: 2; box-shadow: 0 0 0 3px var(--rojo), 0 0 0 7px rgba(192, 57, 43, .25) !important; animation: prog-foco .9s ease-in-out 4; }
@keyframes prog-foco { 50% { box-shadow: 0 0 0 3px var(--rojo), 0 0 0 2px rgba(192, 57, 43, .05); } }
@media (prefers-reduced-motion: reduce) { .prog-partido.prog-foco { animation: none; } }

/* "Proponer": por qué no cupieron, arreglos de un toque y la propuesta de cada arreglo */
.prog-porque { margin-top: 6px; }
.prog-arreglos { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--borde); background: var(--tarjeta); }
.prog-arreglos > p { margin: 0; display: flex; align-items: center; gap: 8px; }
.prog-arreglos-titulo { font-weight: 750; }
.prog-arreglos .btn { justify-content: flex-start; text-align: left; white-space: normal; }
.prog-arreglos .btn svg { width: 18px; height: 18px; flex: none; }
.prog-cambios { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.prog-antes { display: block; color: var(--texto-3); font-size: 11.5px; font-weight: 500; }
.prog-propuesta tr.prog-sin-lugar td { color: #8a2620; }
.campo small.prog-tomado { color: var(--verde, #1e7d4f); font-weight: 650; }
@media (max-width: 860px) { .prog-arreglos .btn { width: 100%; min-height: 48px; } }

/* Compacta y Normal: dos partidos en la misma cancha y hora se ven como "2 partidos" (al tocarlo se elige cuál) */
.prog-varios-btn {
  display: flex; align-items: center; justify-content: center; gap: 3px; width: 100%; height: calc(var(--fila) - 2 * var(--hueco));
  min-height: 22px; padding: 0 2px; border: 1.5px solid var(--rojo); border-radius: 6px; background: var(--rojo-suave);
  color: var(--rojo); font: inherit; font-size: 10.5px; font-weight: 800; cursor: pointer; white-space: nowrap; overflow: hidden;
}
.prog-varios-btn svg { width: 12px; height: 12px; flex: none; }
.prog-zoom-compacta .prog-varios-btn svg { display: none; }
.prog-zoom-normal .prog-varios-btn { font-size: 12px; }
.prog-varios-btn.apagado { opacity: .45; }
.prog-varios-btn.moviendo { box-shadow: 0 0 0 2px var(--azul), 0 0 0 5px rgba(191,224,0,.7); }
.prog-varios-btn.prog-foco { box-shadow: 0 0 0 3px var(--rojo), 0 0 0 7px rgba(192, 57, 43, .25); animation: prog-foco .9s ease-in-out 4; }
/* Menú de una hora o una cancha tocada: ‹ › pasa a la fila o columna de al lado (son chicas en el teléfono) */
.prog-menu-cambiar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 0 4px; border-bottom: 1px solid var(--borde); margin-bottom: 4px; }
.prog-menu-cambiar span { font-weight: 750; font-size: 14px; text-align: center; flex: 1; }
.prog-menu .prog-menu-cambiar button { min-width: 44px; min-height: 44px; justify-content: center; font-size: 22px; font-weight: 800; padding: 0; background: var(--fondo, #f2f6f9); }

@media print { .prog-caja { max-height: none !important; overflow: visible; } .prog-modo, .prog-boton-pendientes, .prog-mas-dia, .prog-problemas { display: none !important; } }

/* ---------- Actualización 23: teléfono ---------- */
/* Cabecera del torneo, pestañas, Grupos, Calendario, Parejas, ventana del partido, Sorteo, paso 6, resumen, lista de
   torneos y botones de 44 px. (La Programación y sus ventanas tienen su propio bloque, arriba.) */

/* Solo en la computadora / solo en el teléfono */
.solo-tel { display: none !important; }
@media (max-width: 860px) {
  .solo-pc { display: none !important; }
  .solo-tel { display: inline-flex !important; }
}

/* Pestañas: la elegida siempre a la vista y una flecha cuando hay más a un lado (tocarla corre la barra) */
.pestanas-caja { position: relative; margin-bottom: 18px; }
.pestanas-caja > .pestanas { margin-bottom: 0; }
.barra-categorias .pestanas-caja { margin-bottom: 0; }
.pestanas::-webkit-scrollbar { display: none; }
.pestanas-flecha {
  position: absolute; top: 0; bottom: 1px; z-index: 2; width: 48px; display: flex; align-items: center;
  border: 0; padding: 0 2px; cursor: pointer; color: var(--azul);
}
.pestanas-flecha.der { right: 0; justify-content: flex-end; background: linear-gradient(to right, rgba(244, 246, 248, 0), var(--fondo) 55%); }
.pestanas-flecha.izq { left: 0; justify-content: flex-start; background: linear-gradient(to left, rgba(244, 246, 248, 0), var(--fondo) 55%); }
.pestanas-flecha svg { width: 22px; height: 22px; stroke-width: 2.6; }

/* Cabecera del torneo: sin portada, los botones usan todo el ancho (en la computadora caben en una fila).
   En el teléfono, el botón principal a lo ancho y debajo "Ver en la web" y "Más". */
.ficha-torneo.sin-portada { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) {
  .cab-acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
  .cab-acciones .btn { min-height: 48px; white-space: normal; text-align: center; line-height: 1.2; }
  .cab-acciones .cab-principal { grid-column: 1 / -1; min-height: 52px; font-size: 16px; }
}

/* Hoja de acciones ("⋯ Más" y "⋯" de cada pareja): botones grandes con su explicación */
.hoja-acciones { display: flex; flex-direction: column; gap: 8px; }
.hoja-sub { margin: -4px 0 4px; font-weight: 700; color: var(--texto-2); }
.hoja-accion {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 9px 14px;
  border: 1px solid var(--borde); border-radius: 12px; background: #fff; font: inherit; color: var(--texto); text-align: left;
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s var(--curva);
}
.hoja-accion:focus-visible { background: var(--fondo); border-color: var(--borde-2); outline: none; }
@media (hover: hover) { .hoja-accion:hover { background: var(--fondo); border-color: var(--borde-2); } }
.hoja-accion:active { transform: scale(.99); }
.hoja-icono { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--fondo); color: var(--azul-3); }
.hoja-icono svg { width: 21px; height: 21px; }
.hoja-texto { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hoja-texto b { font-size: 15.5px; }
.hoja-texto small { font-size: 13px; color: var(--texto-3); line-height: 1.3; }
.hoja-accion.peligro b, .hoja-accion.peligro .hoja-icono { color: var(--rojo); }
.hoja-accion.peligro .hoja-icono { background: var(--rojo-suave); }

/* Ventana "Staff" */
.staff-ventana .segmentado { align-self: flex-start; }
.staff-ventana .enlace-caja code { flex: 1 1 260px; }
.pin-sin-guardar { color: var(--ambar); font-weight: 700; font-size: 12.5px; }
@media (max-width: 560px) {
  .staff-ventana .segmentado { display: flex; align-self: stretch; }
  .staff-ventana .segmentado button { flex: 1; }
}

/* Paso 6: el staff en una franja de una línea (el formulario está en la ventana "Staff") */
.paso-staff { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 12px; background: #fff; border: 1px solid var(--borde); border-radius: 10px; }
.paso-staff-texto { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; font-weight: 650; color: var(--texto); }
.paso-staff-texto > svg { flex: none; width: 18px; height: 18px; color: var(--azul-3); }
.paso-staff code { padding: 1px 6px; border-radius: 6px; background: var(--lima-suave); color: var(--azul); font: inherit; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .03em; white-space: nowrap; }
.paso-staff .btn { flex: none; }
.paso-staff .btn svg { width: 14px; height: 14px; }

/* Resumen del torneo: en el teléfono, los 6 números en una línea */
@media (max-width: 860px) {
  .rs { padding: 14px 12px; gap: 14px; margin-bottom: 14px; }
  .rs-datos { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 0; }
  .rs-dato, .rs-dato:nth-child(4) { padding: 0 2px; border-left: 1px solid var(--borde); align-items: center; text-align: center; }
  .rs-dato:first-child { border-left: 0; }
  .rs-dato b { order: -1; font-size: 21px; }
  .rs-dato span { font-size: 9.5px; letter-spacing: 0; text-transform: none; }
  .rs-anillos { gap: 10px; justify-content: space-around; }
  .rs-anillo { gap: 8px; }
  .rs-anillo svg { width: 46px; height: 46px; }
}

/* Lista de torneos: torneo pasado que quedó abierto */
.torneo-alerta { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 4px 10px; border-radius: 9px; background: var(--ambar-suave); color: #6b4a00; font-size: 13px; font-weight: 700; }
.torneo-alerta svg { width: 16px; height: 16px; flex: none; color: var(--ambar); }

/* Grupos: en el teléfono la tabla completa achicada (como la web). Los botones de desempate, a su tamaño real. */
.ajustado { width: 100%; overflow-x: auto; overflow-y: hidden; }
.ajustado.achicado { -webkit-overflow-scrolling: touch; }
.ajustado-lienzo { position: relative; }
.ajustado.achicado .ajustado-in { transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.ajustado.achicado .tabla-envoltura { overflow: visible; }
.ajustado.achicado .matriz td.mz-pareja { white-space: nowrap; }
.ajustado.achicado .matriz th.mz-pareja { width: 150px; }
.ajustado.achicado .matriz th.mz-tot { width: 74px; }
.ajustado.achicado .matriz th.mz-pos { width: 48px; }
.ajustado.achicado .matriz th, .ajustado.achicado .matriz td { padding-left: 4px; padding-right: 4px; }
.ajustado.achicado .matriz td.mz-pareja, .ajustado.achicado .matriz th.mz-pareja { padding-left: 12px; }
.grupos-cab { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 860px) { .grupos-cab .suave { font-size: 14px; } }
.grupo-admin.con-pie .matriz-grupo { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.grupo-pie { background: #fff; border: 1px solid var(--borde); border-top: 0; border-radius: 0 0 var(--radio) var(--radio); }

/* Calendario: cancha y ronda también en el teléfono; un partido en juego con su marcador */
.cal-donde { display: contents; }
.cal-fila.en-juego { background: color-mix(in srgb, var(--lima) 13%, #fff); }
.cal-marcador.vivo { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.cal-vivo { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #5d6e00; }
.cal-vivo i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: latido 1.4s ease-in-out infinite; }
@media (max-width: 760px) {
  .cal-fila { grid-template-columns: 50px minmax(0, 1fr) auto; grid-template-areas: "hora donde marc" "hora parejas marc"; column-gap: 10px; row-gap: 3px; padding: 11px 14px; }
  .cal-hora { grid-area: hora; }
  .cal-donde { display: flex; flex-wrap: wrap; grid-area: donde; min-width: 0; }
  .cal-donde .cal-cancha, .cal-donde .cal-ronda { display: inline; font-size: 12px; font-weight: 700; color: var(--texto-2); }
  .cal-donde .cal-ronda::before { content: '\00a0·\00a0'; }
  .cal-parejas { grid-area: parejas; }
  .cal-marcador { grid-area: marc; }
}

/* Parejas y siembra en el teléfono: una tarjeta por pareja, con "⋯" */
.pareja-tarjetas { display: flex; flex-direction: column; gap: 10px; }
.pareja-tarjeta {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; align-items: center;
  padding: 12px 10px 12px 14px; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra);
}
.pareja-tarjeta.retirada { opacity: .55; }
.pt-nombres { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; padding: 2px 0; border: 0; background: none; font: inherit; color: var(--texto); text-align: left; cursor: pointer; }
.pt-nombres b { font-size: 15px; line-height: 1.25; }
.pt-mas { width: 48px; min-height: 48px; padding: 0; border-radius: 12px; }
.pt-mas svg { width: 20px; height: 20px; }
.pt-datos { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--texto-2); }
.pt-datos b { color: var(--azul); }

/* Ventana del partido: franja "En juego" y, en el teléfono, los botones fijos abajo */
.vp-vivo { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--lima) 22%, #fff); border: 1.5px solid var(--lima-2); font-size: 15px; }
.vp-vivo b { color: var(--azul); font-variant-numeric: tabular-nums; }
.vp-vivo-quien { font-weight: 600; color: var(--texto-2); }
.vp-vivo-punto { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #7a9300; animation: latido 1.4s ease-in-out infinite; }
.vp-nota { margin: 0; font-size: 13.5px; color: var(--texto-2); }
.vp-pie { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.vp-botones { margin-left: auto; }
@media (max-width: 860px) {
  .vp-pie { display: contents; }
  /* Sin espacio debajo de la barra fija (el relleno de abajo de la ventana dejaba ver lo que pasa por detrás). */
  .modal-cuerpo:has(> .ventana-partido) { padding-bottom: 0; }
  .vp-botones {
    position: sticky; bottom: 0; z-index: 3; margin: 0 -22px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px;
    background: #fff; border-top: 1px solid var(--borde); box-shadow: 0 -6px 16px rgba(0, 38, 58, .07);
  }
  .vp-botones .btn { min-height: 48px; white-space: normal; line-height: 1.15; padding: 6px 8px; text-align: center; }
}

/* Sorteo: "Confirmar sorteo" fijo abajo en el teléfono (sobre la barra del menú) */
.sorteo-confirmar-texto { color: var(--texto-2); font-size: 14px; font-weight: 600; }
@media (max-width: 860px) {
  .sorteo-confirmar {
    position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 15; padding: 8px; gap: 6px;
    border-radius: 14px; background: #fff; border: 1px solid var(--borde); box-shadow: var(--sombra-alta);
  }
  /* Franja chica: solo el botón (la indicación ya está arriba, en la propuesta). */
  .sorteo-confirmar-texto { display: none; }
  .sorteo-confirmar .btn { flex: 1 1 100%; min-height: 46px; font-size: 15.5px; }
}

/* Botones de 44 px o más en el teléfono */
@media (max-width: 860px) {
  .btn, .btn.chico { min-height: 44px; }
  .btn.chico { padding: 8px 12px; font-size: 14px; }
  .chip, .entrada, select.entrada, .cat-pastilla, .segmentado button { min-height: 44px; }
  .interruptor { height: auto; min-height: 44px; }
  /* (pasos.css y cuentas.css se cargan después: estos llevan más precisión para ganarles) */
  .menu-torneo .menu-torneo-boton, .torneo-card-envoltura .menu-torneo.en-tarjeta .menu-torneo-boton { width: 44px; min-height: 44px; }
  .cabecera-movil .cuenta-chip { width: 44px; height: 44px; }
  .pt-nombres { min-height: 44px; }
}
