/* Effort Cup — estilos compartidos */
:root {
  --navy: #143D26;
  --navy-2: #0B2A18;
  --teal: #8A6A12;
  --green: #3F7A2A;
  --green-light: #A9D18E;
  --cream: #F5F2EA;
  --line: #E4DFD3;
  --muted: #4A6275;
  --muted-2: #5A6470;
  --white: #FFFFFF;
  --red: #B3261E;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Montserrat', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--cream); color: var(--navy); -webkit-font-smoothing: antialiased; line-height: 1.4; }
a { color: var(--teal); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.15; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Encabezado */
.top { background: var(--navy); color: var(--white); }
.top-in { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.top .logo { width: 48px; height: 48px; border-radius: 12px; background: var(--cream); object-fit: cover; flex: none; }
.top .titulo { display: flex; flex-direction: column; gap: 1px; flex: 1 1 180px; min-width: 0; }
.top .marca { font-family: var(--display); font-weight: 800; letter-spacing: .05em; font-size: 17px; }
.top .sub { font-size: 13px; color: #C9D6DE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 999px; border: 1px solid #3A5A72; }
.top nav a[aria-current="page"] { background: var(--teal); border-color: var(--teal); }
.en-vivo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--green-light); letter-spacing: .08em; }
.en-vivo::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); animation: pulso 2s infinite; }
.en-vivo.cerrado { color: #C9D6DE; }
.en-vivo.cerrado::before { background: #C9D6DE; animation: none; }
@keyframes pulso { 50% { opacity: .35; } }

.wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }
.wrap-m { max-width: 560px; margin: 0 auto; padding: 16px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn:hover { background: #EEF2F4; color: var(--navy); }
.btn.prim { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn.prim:hover { background: #185A62; }
.btn.verde { background: var(--green); border-color: var(--green); color: var(--white); }
.btn.verde:hover { background: #336422; }
.btn.navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn.peligro { border-color: var(--red); color: var(--red); }
.btn.grande { min-height: 54px; font-size: 17px; border-radius: 14px; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-icono { width: 48px; height: 48px; padding: 0; border-radius: 12px; }

/* Tarjetas y formularios */
.card { background: var(--white); border-radius: var(--radius); padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.g3 .campo input, .g3 .campo select { min-width: 0; width: 100%; }
.grupos-lista { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.campo input, .campo select, .campo textarea { min-height: 44px; padding: 8px 12px; border: 1px solid #C9D2D9; border-radius: 8px; background: var(--white); color: var(--navy); font-weight: 400; font-size: 15px; }
.campo small { font-weight: 400; color: var(--muted-2); }
.fila { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.entre { justify-content: space-between; }
.nota { font-size: 13px; color: var(--muted-2); margin: 8px 0 0; }
.aviso { padding: 12px 14px; border-radius: 10px; background: #FFF4D6; color: #6B4E00; font-size: 14px; }
.aviso.ok { background: #E3F0DC; color: #2E5E1E; }
.aviso.error { background: #FCE4E2; color: #8A1C15; }
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi span:first-child { font-size: 13px; color: var(--muted); }
.kpi strong { font-family: var(--display); font-size: 28px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #EFEDE7; color: var(--muted-2); }
.chip.si { background: #E3F0DC; color: #2E5E1E; }
.chip.azul { background: #DDEDEF; color: #155159; }

/* Tablas */
.tabla-box { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 10px; white-space: nowrap; }
table.t td { padding: 9px 10px; border-top: 1px solid #ECE8DE; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.t input, table.t select { min-height: 38px; padding: 4px 8px; border: 1px solid #C9D2D9; border-radius: 6px; width: 100%; font-size: 14px; background: var(--white); }
table.t input.corto { width: 70px; }

/* Pestañas */
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--navy-2); padding: 4px; border-radius: 12px; }
.tabs button { min-height: 44px; border-radius: 9px; border: none; background: transparent; color: #C9D6DE; font-weight: 600; font-size: 15px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--navy); font-weight: 700; }
.tabs-claro { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.tabs-claro button { border: none; background: none; padding: 12px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; font-size: 15px; }
.tabs-claro button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--teal); }

/* Tablero */
.lb-head, .lb-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 54px 56px 60px; gap: 6px; align-items: center; }
.lb-head { padding: 12px 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lb-row { background: var(--white); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; text-decoration: none; color: var(--navy); }
.lb-row:hover { color: var(--navy); background: #FBFAF6; }
.lb-row.top3 { box-shadow: inset 0 0 0 2px var(--teal); }
.lb-pos { font-family: var(--display); font-weight: 800; font-size: 17px; }
.lb-nom { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lb-nom b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-nom small { font-size: 12px; color: var(--muted); }
.lb-c { text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.lb-g { text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; }
.lb-p { text-align: right; font-family: var(--display); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.bajo { color: var(--red); }
.r-c { text-align: center; }
.r { text-align: right; }

/* Modo TV */
body.tv .wrap { max-width: none; padding: 24px 40px; }
body.tv .top-in { max-width: none; padding: 12px 40px; }
body.tv .lb-head, body.tv .lb-row { grid-template-columns: 90px minmax(0, 1fr) 120px 120px 140px; }
body.tv .lb-row { padding: 16px 20px; }
body.tv .lb-pos, body.tv .lb-p { font-size: 32px; }
body.tv .lb-nom b { font-size: 28px; }
body.tv .lb-nom small { font-size: 16px; }
body.tv .lb-c, body.tv .lb-g { font-size: 24px; }
body.tv .lb-head { font-size: 16px; }
.tv-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(520px, 1fr)); gap: 32px; }

/* Score del grupo */
.hoyo-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hoyo-num { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hoyo-num .et { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-light); font-weight: 600; }
.hoyo-num .n { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; }
.hoyo-num .p { font-size: 13px; color: #C9D6DE; }
.btn-nav { width: 52px; height: 52px; border-radius: 12px; border: 1px solid #3A5A72; background: transparent; color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.btn-nav.sig { background: var(--teal); border-color: var(--teal); }
.jug-score { background: var(--white); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.jug-score .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jug-score .info b { font-weight: 600; font-size: 16px; }
.jug-score .info small { font-size: 13px; color: var(--muted); }
.paso { width: 48px; height: 48px; border-radius: 12px; border: 1px solid #C9D2D9; background: var(--white); font-size: 26px; font-weight: 600; line-height: 1; cursor: pointer; color: var(--navy); }
.paso.mas { background: var(--navy); border-color: var(--navy); color: var(--white); }
.golpes { width: 48px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 32px; font-variant-numeric: tabular-nums; }
.golpes.vacio { color: #B7C2CA; }
.recorrido { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.recorrido button { height: 36px; border-radius: 8px; border: 1px solid #C9D2D9; background: var(--white); color: var(--muted); font-size: 13px; font-weight: 600; padding: 0; cursor: pointer; }
.recorrido button.listo { background: var(--teal); border-color: var(--teal); color: var(--white); }
.recorrido button.parcial { background: #DDEDEF; border-color: #9CC5CA; color: #155159; }
.recorrido button.actual { border: 2px solid var(--navy); background: var(--white); color: var(--navy); }
.estado-sync { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #2E5E1E; min-height: 20px; }
.estado-sync.pend { color: #8A5A00; }
.estado-sync.err { color: var(--red); }

/* Tarjeta hoyo por hoyo */
.scorecard { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.scorecard th, .scorecard td { padding: 6px 4px; text-align: center; border-top: 1px solid #ECE8DE; }
.scorecard th { font-size: 12px; color: var(--muted); font-weight: 600; }
.scorecard td.l, .scorecard th.l { text-align: left; }
.sc-b { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; }
.sc-birdie { border-radius: 50%; box-shadow: inset 0 0 0 2px var(--red); color: var(--red); font-weight: 700; }
.sc-eagle { border-radius: 50%; box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 4px var(--white), inset 0 0 0 6px var(--red); color: var(--red); font-weight: 700; }
.sc-bogey { box-shadow: inset 0 0 0 1.5px var(--navy); }
.sc-doble { box-shadow: inset 0 0 0 1.5px var(--navy), inset 0 0 0 3.5px var(--white), inset 0 0 0 5px var(--navy); }

/* Polla */
.premio { background: var(--white); border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.premio .med { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-family: var(--display); font-weight: 800; font-size: 17px; flex: none; }
.premio .q { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.premio .q b { font-weight: 600; font-size: 16px; }
.premio .q small { font-size: 13px; color: var(--muted); }
.premio .m { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.premio .m b { font-family: var(--display); font-weight: 800; font-size: 20px; }
.premio .m small { font-size: 12px; color: var(--muted); }

/* Inicio */
.hero { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 28px 16px 8px; }
.hero img { width: 220px; height: 220px; border-radius: 24px; object-fit: cover; }
.acciones { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 18px auto 0; }

/* Diálogo */
dialog { border: none; border-radius: 16px; padding: 0; max-width: min(720px, 94vw); width: 100%; color: var(--navy); }
dialog::backdrop { background: rgba(12, 35, 54, .55); }
dialog .dlg-h { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
dialog .dlg-b { padding: 16px 20px; max-height: 70vh; overflow: auto; }
dialog .dlg-f { padding: 12px 20px 16px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: 90vw; }

@media (max-width: 520px) {
  .wrap { padding: 14px; }
  .card { padding: 14px; }
  .lb-head, .lb-row { grid-template-columns: 38px minmax(0, 1fr) 44px 46px 50px; }
  .scorecard { font-size: 12.5px; }
  .scorecard th, .scorecard td { padding: 5px 1px; }
  .scorecard td.l, .scorecard th.l { padding-right: 4px; }
  .sc-b { width: 22px; height: 22px; }
}
@media print {
  .top nav, .no-print { display: none !important; }
  body { background: white; }
}

/* Tabla de hoyos del editor de campos */
#fc-hoyos th, #fc-hoyos td { padding: 4px 3px; }
#fc-hoyos td.r-c, #fc-hoyos th.r-c { min-width: 38px; font-size: 13px; }
#fc-hoyos th:first-child { font-size: 11px; }
#fc-hoyos input::-webkit-outer-spin-button, #fc-hoyos input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#fc-hoyos input { -moz-appearance: textfield; appearance: textfield; }

/* ---------- Patrocinadores ---------- */
.patro { max-width: 640px; margin: 22px auto 0; }
.patro-tit { display: block; text-align: center; font-family: 'Inter', system-ui, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.patro-grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.patro-logo { display: flex; align-items: center; justify-content: center; background: var(--white); border-radius: 12px; padding: 8px 10px; height: 68px; }
.patro-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.patro-cinta-box { max-width: 640px; margin: 4px auto 6px; }
.patro-cinta { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.patro-pista { display: flex; width: max-content; animation: patro-giro linear infinite; }
.patro-pista, .patro-copia { gap: 10px; }
.patro-copia { display: flex; padding-left: 10px; }
.patro-pista > .patro-logo, .patro-copia > .patro-logo { width: 128px; height: 56px; padding: 8px 12px; flex: none; }
@keyframes patro-giro { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .patro-pista { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .patro-copia { display: none; }
}
/* Pantalla grande: franja fija abajo */
body.tv .patro-cinta-box { position: fixed; left: 0; right: 0; bottom: 0; max-width: none; margin: 0; padding: 14px 40px; background: var(--navy); display: flex; align-items: center; gap: 24px; z-index: 5; }
body.tv .patro-cinta-box .patro-tit { color: #C9D6E0; font-size: 15px; margin: 0; white-space: nowrap; }
body.tv .patro-cinta-box .patro-cinta { flex: 1; }
body.tv .patro-pista > .patro-logo, body.tv .patro-copia > .patro-logo { width: 200px; height: 84px; padding: 10px 16px; }
body.tv.con-patro .wrap { padding-bottom: 140px; }

/* Organizador: lista de patrocinadores */
.pt-fila { display: grid; grid-template-columns: 32px 120px minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 10px; align-items: end; padding: 10px; border: 1px solid #E3E0D6; border-radius: 12px; background: #FBFAF6; }
.pt-mini { height: 60px; border: 1px solid #E3E0D6; }
.pt-acc { display: flex; gap: 6px; }
.pt-arr { align-self: center; width: 32px; height: 52px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: grab; touch-action: none; user-select: none; }
.pt-arr:hover { background: #EEEBE2; color: var(--navy); }
.pt-fila.arrastrando { position: relative; z-index: 2; border-color: var(--teal); background: var(--white); box-shadow: 0 8px 24px rgba(20, 61, 38, .18); }
.pt-fila.arrastrando .pt-arr { cursor: grabbing; color: var(--teal); }
.pt-acc .btn { min-height: 40px; padding: 0 12px; }
@media (max-width: 720px) {
  .pt-fila { grid-template-columns: 32px 100px minmax(0, 1fr); }
  .pt-fila > .campo:last-of-type { grid-column: 1 / -1; }
  .pt-acc { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Firma del desarrollador (inicio) */
.firma { display: flex; justify-content: center; margin: 28px 0 12px; }
.firma-card { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 14px; padding: 12px 14px; max-width: 100%; }
.firma-card img { height: 17px; width: auto; flex: none; }
.firma-sep { width: 1px; align-self: stretch; background: #E3E0D6; }
.firma-txt { display: flex; flex-direction: column; gap: 2px; }
.firma-lbl { font-size: 10px; color: var(--muted-2); letter-spacing: .08em; text-transform: uppercase; }
.firma-txt b { font-size: 14px; color: var(--navy); }
.firma-txt a { font-size: 13px; color: var(--teal); font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 370px) {
  .firma-card { flex-direction: column; gap: 8px; text-align: center; }
  .firma-sep { display: none; }
}

/* Pagos (organizador) */
.pagos-res { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: #F5F2EA; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.pagos-res:empty { display: none; }
.pagos-res .chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagos-res .tabs { min-width: 0; }
.pagos-res .tabs button { padding: 0 12px; font-size: 14px; min-height: 36px; }
.chip.rojo { background: #FBE9E7; color: #B3261E; }
.chip.ambar { background: #FFF2D6; color: #8A5A00; }
.pago-chip { white-space: nowrap; }
.pago-monto { display: flex; gap: 6px; align-items: center; }
#tabla-j .pago-monto input { width: 110px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.pago-todo { min-height: 34px !important; padding: 0 10px !important; font-size: 13px !important; }
.canje-box { display: flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; cursor: pointer; }
#tabla-j .canje-box input { width: 20px; height: 20px; min-height: 0; }
.canje-apagar { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); margin-top: 4px; }
#tabla-j .canje-apagar input { width: 100px; min-height: 32px; text-align: right; }
.pagos-montos { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.pagos-montos b { color: var(--navy); font-variant-numeric: tabular-nums; }
.pagos-montos b.falta { color: #B3261E; }
.comp-btn { min-height: 34px !important; padding: 0 10px !important; font-size: 13px !important; white-space: nowrap; }
.comp-btn.vacio { border-style: dashed; color: var(--muted); border-color: #9FB0BD; }
.comp-vista { background: #EEF3F6; border-radius: 12px; min-height: 240px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.comp-vista img { max-width: 100%; max-height: 62vh; display: block; }
.comp-vista iframe { width: 100%; height: 62vh; border: 0; background: #fff; }
#dlg-comp { width: min(560px, 94vw); }
@media (max-width: 560px) {
  .pagos-res .tabs { width: 100%; display: flex; }
  .pagos-res .tabs button { flex: 1 1 0; min-width: 0; padding: 0 4px; font-size: 13px; }
}

/* Importar pagos: revisión */
dialog.dlg-ancho { max-width: min(1180px, 96vw); }
.imp-t td { vertical-align: middle; }
.imp-t tr.apagada td { opacity: .45; }
.imp-t tr.apagada td:first-child { opacity: 1; }
.imp-t select { min-width: 190px; }
#di-tabla input.imp-monto { width: 110px; text-align: right; font-weight: 600; }
.imp-mini { display: flex; gap: 4px; }
.imp-mini img { width: 40px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid #E3E0D6; cursor: zoom-in; background: #fff; }
.imp-aviso { font-size: 12px; line-height: 1.35; color: #8A5A00; max-width: 220px; }
.imp-aviso.ok { color: var(--muted); }
.imp-zoom { position: fixed; inset: 0; background: rgba(20, 61, 38, .7); display: flex; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; }
.imp-zoom img { max-width: 92vw; max-height: 92vh; border-radius: 10px; background: #fff; }

/* Selección en lote (Jugadores) */
.sel-col { width: 36px; padding-right: 0 !important; }
#tabla-j .sel-col input { width: 20px; height: 20px; min-height: 0; }
#tabla-j tr.sel td { background: #EAF3F4; }
.lote { position: sticky; top: 8px; z-index: 4; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; box-shadow: 0 6px 18px rgba(20, 61, 38, .18); }
.lote > b { font-family: var(--display); margin-right: 4px; }
.lote-g { display: flex; align-items: center; gap: 6px; }
.lote-g > span { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #C9D6DE; }
.lote .btn { min-height: 34px; padding: 0 10px; font-size: 13px; }
.lote select, .lote input { color: var(--navy); background: #fff; min-height: 34px; border-radius: 8px; border: 1px solid #3A5A72; padding: 0 8px; font-size: 13px; }
.lote input { width: 110px; }
.lote .btn.peligro { background: #fff; }

/* Panel del organizador a todo lo ancho en las pestañas con tablas */
body.panel-ancho #v-panel { max-width: none; padding-left: 24px; padding-right: 24px; }
body.panel-ancho .top-in { max-width: none; padding-left: 24px; padding-right: 24px; }
@media (max-width: 720px) {
  body.panel-ancho #v-panel { padding-left: 12px; padding-right: 12px; }
}

/* ---------- Rifas (organizador) ---------- */
.rifa-grid > .card { margin: 0; }
.rifa-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.rf-premios { display: flex; flex-direction: column; gap: 8px; }
.rf-p { display: grid; grid-template-columns: 30px 50px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid #E3E0D6; border-radius: 12px; background: #FBFAF6; cursor: pointer; }
.rf-p:hover { border-color: #B9C6CF; }
.rf-p.sel { border: 2px solid var(--teal); background: var(--white); }
.rf-p .mini { width: 50px; height: 66px; border-radius: 8px; background: #E9E5DA; object-fit: cover; display: block; }
.rf-p b { display: block; font-size: 15px; }
.rf-p small { color: var(--muted); font-size: 13px; }
.rf-ord { display: flex; flex-direction: column; gap: 2px; }
.rf-ord button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 14px; padding: 2px 6px; border-radius: 6px; min-height: 0; }
.rf-ord button:hover { background: #EEEBE2; color: var(--navy); }
.rf-ord button:disabled { opacity: .3; cursor: default; }
.rf-gan { font-size: 13px; font-weight: 600; color: #2E5E1E; text-align: right; }
.chip.ambar { background: #FFF2D6; color: #8A5A00; }
.rf-cab { display: flex; gap: 16px; align-items: center; }
.rf-cab img { width: 110px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.rf-res { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #E3F0DC; color: #1F4A12; }
.rf-res .n { font-family: var(--display); font-weight: 800; font-size: 28px; }
.rf-part { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 6px; max-height: 320px; overflow: auto; }
.rf-part span { font-size: 13px; padding: 6px 8px; border-radius: 8px; background: #F5F2EA; display: flex; gap: 6px; }
.rf-part em { font-style: normal; font-weight: 700; color: var(--navy); min-width: 24px; }
.rf-part span.gano { background: #E3F0DC; text-decoration: line-through; color: var(--muted); }
.dp-img { aspect-ratio: 3 / 4; border-radius: 10px; background: #EEF3F6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dp-img img { width: 100%; height: 100%; object-fit: contain; }
#dlg-premio { width: min(640px, 94vw); }
@media (max-width: 900px) { .rifa-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { #f-premio .dlg-b { grid-template-columns: minmax(0, 1fr) !important; } }

.grit-link { display: flex; flex: none; border-radius: 6px; }
.grit-link:hover img { opacity: .8; }
.grit-link:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ---------- Ver el hoyo (pantalla del grupo) ---------- */
.ver-hoyo { margin: 6px 0 14px; border: 1px solid #C9D2D9; border-radius: 12px; background: var(--white); overflow: hidden; }
.ver-hoyo button { width: 100%; min-height: 48px; border: 0; background: none; color: var(--navy); font: 600 15px var(--body, Inter, sans-serif); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; cursor: pointer; }
.ver-hoyo button:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.ver-hoyo .flecha { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
.ver-hoyo button[aria-expanded="true"] .flecha { transform: rotate(-135deg); margin-top: 4px; }
.ver-hoyo img { display: block; width: 100%; height: auto; }
/* ---------- Hoyo en la pantalla grande del tablero ---------- */
body.tv .tv-cols.con-hoyo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(360px, 440px); gap: 28px; }
body.tv .tv-cols.con-hoyo .lb-head, body.tv .tv-cols.con-hoyo .lb-row { grid-template-columns: 64px minmax(0, 1fr) 70px 90px 96px; }
body.tv .tv-cols.con-hoyo .lb-row { padding: 14px 16px; }
body.tv .tv-cols.con-hoyo .lb-nom b { font-size: 24px; }
.tv-hoyo { background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(20, 61, 38, .15); }
.tv-hoyo img { display: block; width: 100%; height: auto; }
.tv-hoyo div { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; font-size: 22px; }
.tv-hoyo b.t { font-size: 26px; }
.tv-hoyo small { color: var(--muted); font-size: 17px; }

/* Effort: sin premios precargados de Golfers */
#rf-precarga, #rf-faltan { display: none !important; }
