/* Lo que está marcado como oculto queda oculto aunque su clase le dé otro display */
[hidden] { display: none !important; }

:root {
  --blanco: #ffffff;
  --rojo: #b42318;
  --rojo-claro: #fdecea;
  --ambar: #a15c07;
  --ambar-claro: #fff4e0;
  --azul: #1d4f91;
  --azul-claro: #e8f0fb;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.45;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }

h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
a { color: var(--verde); }
code { background: #eef0ec; padding: 1px 5px; border-radius: 4px; }
small, .suave { color: var(--suave); }
.oculto { display: none !important; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--verde);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled { opacity: .6; cursor: wait; }

.btn.grande { padding: 14px 22px; font-size: 1.05rem; }
.btn-link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; padding: 4px; }
.btn-x { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--suave); padding: 0 4px; }
.botones { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Formularios ---------- */
label { display: block; font-size: .92rem; margin-bottom: 12px; }
label > input, label > select, label > textarea { margin-top: 5px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #c9cfc8;
  background: #fff;
  color: var(--texto);
}
input:focus, select:focus, textarea:focus { outline-offset: 1px; }
input[type=checkbox] { width: 20px; height: 20px; margin: 0; accent-color: var(--verde); }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.ayuda { font-weight: 400; font-size: .85rem; color: var(--suave); display: block; margin-top: 4px; }
.fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.prefijo { display: flex; align-items: center; margin-top: 5px; }
.prefijo span { background: #eef0ec; border: 1px solid #c9cfc8; border-right: 0; padding: 10px; border-radius: 8px 0 0 8px; color: var(--suave); white-space: nowrap; font-weight: 400; }
.prefijo input { border-radius: 0 8px 8px 0; margin: 0; }

/* ---------- Tarjetas ---------- */
.tarjeta { background: var(--blanco); border: 1px solid var(--borde); padding: 18px; margin-bottom: 16px; }
.tarjeta.aviso { border-left: 4px solid var(--ambar); }
.cab-seccion { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cab-seccion h1 { margin: 0; }
.vacio { text-align: center; padding: 40px 20px; }
.vacio p { color: var(--suave); }
.banner { padding: 10px 14px; margin-bottom: 16px; font-size: .95rem; }

.banner.alerta { background: var(--ambar-claro); color: var(--ambar); }
.banner.error { background: var(--rojo-claro); color: var(--rojo); }

.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.numero { background: var(--blanco); border: 1px solid var(--borde); }
.numero small { display: block; }
.numero strong { display: block; margin-top: 2px; font-variant-numeric: tabular-nums; }
.numero.destacado { color: #fff; }

.numero.negativo strong { color: var(--rojo); }

.etiqueta { display: inline-block; font-size: .78rem; padding: 2px 8px; border-radius: 99px; background: #eef0ec; color: var(--suave); }

.etiqueta.rojo { background: var(--rojo-claro); color: var(--rojo); }
.etiqueta.ambar { background: var(--ambar-claro); color: var(--ambar); }
.etiqueta.azul { background: var(--azul-claro); color: var(--azul); }

/* ---------- Tablas ---------- */
.tabla-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tabla { width: 100%; border-collapse: collapse; background: var(--blanco); font-size: .95rem; }
.tabla th, .tabla td { padding: 10px 12px; border-bottom: 1px solid var(--borde); text-align: left; vertical-align: middle; }
.tabla th { color: var(--suave); }
.tabla td.num, .tabla th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tabla tr.bajo td { background: var(--rojo-claro); }
.tabla tfoot td { font-weight: 700; }

/* ---------- Página del panel ---------- */
.barra {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}
.marca { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 1.1rem; }
.marca svg { width: 26px; height: 26px; }
.barra .complejo { flex: 1; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.layout { display: flex; }
.menu { flex-shrink: 0; }
.menu a { text-decoration: none; margin-bottom: 2px; }

.vista { flex: 1; max-width: 1200px; }
.cargando { color: var(--suave); padding: 30px; text-align: center; }

@media (max-width: 800px) {
  .layout { flex-direction: column; }
  .menu {
    width: 100%; display: flex; overflow-x: auto; gap: 4px; padding: 8px; border-right: 0; border-bottom: 1px solid var(--borde);
    position: sticky; top: 56px; z-index: 15;
  }
  .menu a { white-space: nowrap; margin: 0; padding: 8px 12px; }
  .vista { padding: 14px; }
  h1 { font-size: 1.35rem; }
}

/* ---------- Agenda ---------- */
.nav-fecha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.nav-fecha .fecha-titulo { font-weight: 700; font-size: 1.1rem; min-width: 200px; }
.nav-fecha input[type=date] { width: auto; }

.agenda th { font-size: .85rem; color: var(--suave); font-weight: 700; padding: 4px; text-align: center; }
.agenda th small { display: block; font-weight: 400; }
.agenda button {
  width: 100%;
  min-height: 50px;
  border: 1px dashed #c9cfc8;
  background: var(--blanco);
  font: inherit;
  cursor: pointer;
  text-align: left;
  padding: 6px 10px;
  line-height: 1.25;
}
.agenda button small { display: block; font-size: .78rem; color: var(--suave); }
.agenda button.turno { border-style: solid; font-weight: 600; }

.agenda button.ausente { background: var(--rojo-claro); border-color: #f3b5ae; text-decoration: line-through; }
.agenda button.pasado.libre { opacity: .45; }
.referencias { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--suave); margin-top: 10px; }
.referencias span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--borde); }

.referencias .r-ausente::before { background: var(--rojo-claro); }

.detalle dt { font-size: .82rem; color: var(--suave); }
.detalle dd { margin: 0 0 10px; font-weight: 600; }
.detalle { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 0 0 8px; }

/* ---------- Buffet ---------- */
.buffet { display: grid; grid-template-areas: "prod carrito" "ventas carrito"; gap: 16px 16px; align-items: start; }
.b-prod { grid-area: prod; }
.b-ventas { grid-area: ventas; margin-top: 12px; }
.buffet .carrito { grid-area: carrito; }
.carrito { position: sticky; top: 72px; }
.carrito-item { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--borde); }
.cant { display: inline-flex; align-items: center; gap: 4px; }
.cant button { width: 32px; height: 32px; border: 1px solid var(--borde); background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.cant span { min-width: 22px; text-align: center; font-weight: 700; }
.total { display: flex; justify-content: space-between; font-weight: 800; margin: 14px 0; }
@media (max-width: 900px) { .buffet { grid-template-columns: 1fr; grid-template-areas: "prod" "carrito" "ventas"; } .carrito { position: static; } }

/* ---------- Modales ---------- */
dialog.modal { border: 0; padding: 0; width: min(520px, calc(100vw - 24px)); }
dialog.modal.ancho { width: min(720px, calc(100vw - 24px)); }

.modal-form { display: flex; flex-direction: column; }
.modal-cab { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 8px; }
.modal-cab h2 { margin: 0; }
.modal-cuerpo { padding: 8px 18px; overflow-y: auto; }
.modal-pie { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--borde); }

/* ---------- Avisos ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 100;
  color: #fff;
  padding: 12px 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  max-width: calc(100vw - 24px);
  font-weight: 500;
}
.toast.error { background: var(--rojo); }

/* ---------- Páginas públicas (inicio, ingreso, reservas) ---------- */

.pub-cab .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; }
.contenedor { max-width: 1080px; margin: 0 auto; }
.angosto { padding: 0 16px; }
.pestanas { display: flex; border-bottom: 1px solid var(--borde); margin: -18px -18px 18px; }
.pestanas button { flex: 1; background: none; border: 0; padding: 14px; font: inherit; color: var(--suave); cursor: pointer; border-bottom: 3px solid transparent; }
.pestanas button.activo { color: var(--verde); border-bottom-color: var(--verde); }

.hero { background: var(--verde-osc); color: #fff; padding: 56px 20px 72px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 760px; letter-spacing: -.02em; }
.hero p { font-size: 1.15rem; color: #cfe6d7; max-width: 620px; margin-bottom: 26px; }
.hero .btn { background: var(--lima); border-color: var(--lima); color: var(--verde-osc); }
.hero .btn.sec { background: transparent; color: #fff; border-color: #4f7d63; }
.seccion { padding: 56px 20px; }
.seccion h2 { font-size: 1.7rem; letter-spacing: -.01em; }
.funcion { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 20px; }
.funcion h3 { margin-bottom: 6px; }
.funcion p { color: var(--suave); margin: 0; }
.pie { padding: 30px 20px; text-align: center; color: var(--suave); font-size: .9rem; }

/* Reserva pública */
.res-cab { color: #fff; }
.res-cab h1 { margin: 0 0 4px; }
.res-cab p { margin: 0; }
.res-cuerpo { max-width: 680px; margin: 0 auto; padding: 16px; }
.paso-titulo { margin: 18px 0 10px; }
.dias { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.dia {
  flex: 0 0 auto;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--borde);
  background: var(--blanco);
  cursor: pointer;
  font: inherit;
}
.dia small { display: block; font-size: .75rem; color: var(--suave); text-transform: capitalize; }
.dia strong { display: block; font-size: 1.2rem; }

.horarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.horario { padding: 10px 6px; font: inherit; cursor: pointer; text-align: center; }
.horario small { display: block; font-weight: 500; font-size: .78rem; }

.cancha-bloque { margin-bottom: 18px; }
.cancha-bloque h3 { display: flex; gap: 8px; align-items: center; }
.exito { text-align: center; padding: 30px 18px; }
.exito .tilde { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 12px; font-weight: 800; }

/* =====================================================================
   Rediseño 2026-11: Geist, fondo casi blanco, verde cancha solo en acciones,
   menta (turnos) y rosa (buffet) como únicos colores de apoyo.
   ===================================================================== */
:root {
  --rosa: #f8c7c9;
  --texto: #0a0a0a;
  --suave: #6a6a6a;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { letter-spacing: -.025em; font-weight: 600; }
h1 { font-size: 1.75rem; letter-spacing: -.035em; }

/* Botones: un solo par, que respondan al pasar y al tocar */
.btn { transition: background .15s, transform .09s, box-shadow .15s, border-color .15s; }

.btn.sec { border-color: #dcdcdc; }

.btn.peligro:hover { background: #8f1c13; border-color: #8f1c13; }
input, select, textarea { border-color: #d9d9d9; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; }
label { font-weight: 550; }

/* Números en mono, alineados */
.numero strong, .tabla td.num, .total { font-family: var(--mono); letter-spacing: -.02em; }
.numero { padding: 16px 18px; border-color: var(--borde); }
.numero small { font-size: .82rem; }
.numero strong { font-weight: 500; }

.tabla th { background: #fafafa; text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 550; }
.tabla tbody tr { transition: background .12s; }
.tabla tbody tr:hover td { background: #fafafa; }
.tabla tr.bajo td, .tabla tr.bajo:hover td { background: #fdf0f0; }
.etiqueta { font-weight: 550; }

.banner { border-radius: 12px; }

/* Barra superior y menú lateral claros */
.barra { min-height: 60px; }
.marca { font-weight: 650; letter-spacing: -.02em; }

.barra .btn-link { text-decoration: none; font-weight: 500; }

.layout { min-height: calc(100vh - 60px); }
.menu { border-right-color: var(--borde); padding: 16px 10px; width: 220px; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-weight: 500; transition: background .12s, color .12s; }
.menu a svg { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }

.menu a.activo { font-weight: 600; }
.menu a.activo svg { opacity: 1; }
.vista { padding: 28px 32px; }

@media (max-width: 800px) {
  .menu { width: 100%; top: 60px; padding: 8px; }
  .menu a { padding: 8px 12px; }
  .vista { padding: 16px; }
}

/* Agenda */
.agenda button { border-radius: 9px; transition: border-color .12s, background .12s, transform .09s; }
.agenda button:active { transform: scale(.985); }

.agenda button.debe { background: #fff1d6; border-color: #f1d29a; }
.agenda button.debe small { color: #8a5a08; }

.referencias .r-debe::before { background: #fff1d6; }

/* Buffet */

.cant button { border-radius: 8px; transition: background .12s; }
.cant button:hover { background: #f4f4f4; }

/* Modales */
dialog.modal { box-shadow: 0 24px 80px -20px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(10, 16, 12, .4); backdrop-filter: blur(2px); }
.modal-pie { background: #fafafa; border-radius: 0 0 16px 16px; }
.toast { border-radius: 12px; background: #0a0a0a; }

/* Páginas públicas */
.pub-cab { color: var(--texto); }

.pub-cab .btn.sec { color: var(--texto); }
.pestanas button { font-weight: 550; }
.angosto { max-width: 440px; margin: 48px auto; }
.ingreso-intro { text-align: center; margin-bottom: 20px; }
.ingreso-intro h1 { font-size: 1.6rem; margin-bottom: 6px; }
.ingreso-intro p { color: var(--suave); margin: 0; }

.res-cab { padding: 28px 16px 32px; }
.res-cab h1 { font-size: 1.7rem; letter-spacing: -.035em; }
.res-cab p { color: #a9b8ad; }
.dia { transition: border-color .12s, transform .09s; }
.dia:hover { border-color: #8fc7a0; }

.horario { font-family: var(--mono); font-weight: 500; border-color: #b7dfc2; transition: background .12s, transform .09s; }
.horario small { font-family: "Geist", system-ui, sans-serif; }
.horario:active { transform: scale(.97); }

.paso-titulo { font-size: .95rem; font-weight: 600; color: var(--texto); }
.cancha-bloque h3 { font-size: 1.05rem; }

/* Ajustes de celular */
.buffet { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 900px) { .buffet { grid-template-columns: minmax(0, 1fr); } }
.vista { min-width: 0; overflow-x: hidden; }

/* =====================================================================
   Estilo "cancha de noche" (antes noche.css)
   ===================================================================== */
/* =====================================================================
   Rediseño "cancha de noche": negro verdoso + lima.
   Se carga después de estilos.css y gana sobre lo anterior.
   ===================================================================== */
:root {
  --noche: #0b0f0c;
  --noche-2: #151b16;
  --lima: #cdf26b;
  --lima-osc: #3c5a10;
  --lima-claro: #eefbc9;
  --verde: #0b0f0c;
  --verde-osc: #0b0f0c;
  --verde-claro: #eefbc9;
  --menta: #e7f8c2;
  --fondo: #f5f6f3;
  --borde: #e2e5df;
  --radio: 16px;
  --sombra: 0 1px 2px rgba(11, 15, 12, .05), 0 12px 32px -18px rgba(11, 15, 12, .22);
}
html, body { overflow-x: clip; overscroll-behavior-y: none; }
body { touch-action: manipulation; background: var(--fondo); }
input, select, textarea { font-size: 16px; min-height: 48px; border-radius: 12px; }
input[type=checkbox] { min-height: 20px; }
input:focus, select:focus, textarea:focus { border-color: var(--noche); box-shadow: 0 0 0 3px rgba(205, 242, 107, .6); }

/* Botones */
.btn { min-height: 48px; padding: 12px 20px; border-radius: 12px; font-weight: 650; background: var(--lima); color: var(--noche); border-color: var(--lima); box-shadow: inset 0 -2px 0 rgba(11, 15, 12, .12); }
.btn:hover { background: #d8f785; border-color: #d8f785; transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(60, 90, 16, .7); }
.btn:active { transform: translateY(1px) scale(.98); box-shadow: none; }
.btn.sec { background: #fff; color: var(--noche); border: 1px solid #d5dad2; box-shadow: none; }
.btn.sec:hover { background: #f1f3ee; border-color: #c4cbc0; box-shadow: none; }
.btn.peligro { background: #b42318; border-color: #b42318; color: #fff; box-shadow: none; }
.btn.chico { min-height: 38px; padding: 7px 12px; border-radius: 10px; font-size: .9rem; }
.btn:disabled { background: #dfe3dc; border-color: #dfe3dc; color: #7a827b; box-shadow: none; transform: none; }

/* Tarjetas y números */
.tarjeta { border-radius: var(--radio); box-shadow: var(--sombra); border-color: var(--borde); }
.numero { border-radius: var(--radio); box-shadow: var(--sombra); transition: transform .15s; }
.numero:hover { transform: translateY(-2px); }
.numero strong { font-size: 1.7rem; letter-spacing: -.04em; }
.numero.destacado { background: var(--noche); border-color: var(--noche); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--sombra); }
.numero.destacado small { color: #9aa69c; }
.numero.destacado strong { color: var(--lima); }
.numeros .numero:first-child:not(.destacado) { border-top: 3px solid var(--lima); }
.banner.info { background: var(--noche); color: #dfe6df; border: 0; }
.banner.info strong { color: var(--lima); }
.etiqueta.verde { background: var(--lima-claro); color: var(--lima-osc); }

/* Barra superior y menú lateral oscuros */
.barra { background: var(--noche); color: #fff; border-bottom: 1px solid #1f2721; }
.marca { color: #fff; }
.barra .complejo { color: #9aa69c; }
.barra .btn-link { color: #c9d2ca; }
.barra .btn-link:hover { color: var(--lima); }
.menu { background: var(--noche); border-right: 1px solid #1f2721; }
.menu a { color: #a7b2a9; }
.menu a:hover { background: var(--noche-2); color: #fff; }
.menu a.activo { background: rgba(205, 242, 107, .12); color: var(--lima); }
.cab-seccion h1 { font-size: 1.75rem; letter-spacing: -.04em; }

/* En el celular: menú fijo abajo, como una app */
@media (max-width: 800px) {
  .menu {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 30; width: 100%;
    display: flex; overflow-x: auto; gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid #1f2721; scrollbar-width: none;
  }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { flex: 0 0 auto; flex-direction: column; gap: 3px; min-width: 72px; padding: 7px 6px; font-size: .72rem; text-align: center; border-radius: 10px; }
  .menu a svg { width: 22px; height: 22px; }
  .vista { padding: 16px 14px calc(96px + env(safe-area-inset-bottom)); }
  .barra { min-height: 54px; }
  .barra .complejo { font-size: .85rem; }
  .cab-seccion h1 { font-size: 1.45rem; }
  .numero strong { font-size: 1.35rem; }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
}

/* Agenda: colores fijos por estado */
.agenda button.pagado { background: #e7f8c2; border-color: #c4e57a; color: #2c430c; }
.agenda button.pagado small { color: var(--lima-osc); }
.referencias .r-pagado::before { background: #e7f8c2; }

/* Buffet */
.carrito { border-top: 4px solid var(--lima); }
.total { font-size: 1.5rem; }

/* Modales */
dialog.modal { border-radius: 20px; }
.modal-cab h2 { letter-spacing: -.03em; }

/* Ingreso partido en dos */
.ingreso { min-height: calc(100vh - 61px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ingreso__form { display: flex; flex-direction: column; justify-content: center; padding: 40px 24px; }
.ingreso__form .angosto { margin: 0 auto; width: 100%; }
.ingreso__lado { background: var(--noche); color: #f4f7f2; padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 28px; position: relative; overflow: hidden; }
.ingreso__lado::before { content: ""; position: absolute; width: 700px; height: 700px; right: -260px; top: -240px; background: radial-gradient(closest-side, rgba(205, 242, 107, .18), transparent 70%); }
.ingreso__lado h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.045em; line-height: 1.05; margin: 0; position: relative; }
.ingreso__lado h2 em { font-style: normal; color: var(--lima); }
.ingreso__lado p { color: #9aa69c; margin: 0; position: relative; max-width: 40ch; }
.ingreso__muestra { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 460px; }
.ingreso__muestra div { background: var(--noche-2); border: 1px solid #222a23; border-radius: 14px; padding: 14px 16px; }
.ingreso__muestra small { color: #9aa69c; display: block; font-size: .8rem; }
.ingreso__muestra b { font-family: var(--mono); font-weight: 500; font-size: 1.35rem; letter-spacing: -.03em; }
.ingreso__muestra div:first-child b { color: var(--lima); }
@media (max-width: 900px) { .ingreso { grid-template-columns: 1fr; } .ingreso__lado { display: none; } }
.pub-cab { background: var(--noche); border-bottom: 1px solid #1f2721; }
.pub-cab .marca { color: #fff; }

/* Reservas públicas */
.res-cab { background: var(--noche); position: relative; overflow: hidden; }
.res-cab::before { content: ""; position: absolute; width: 500px; height: 500px; right: -200px; top: -260px; background: radial-gradient(closest-side, rgba(205, 242, 107, .2), transparent 70%); }
.res-cab .contenedor { position: relative; }
.dia { border-radius: 14px; min-width: 70px; }
.dia.activo { background: var(--noche); border-color: var(--noche); color: #fff; }
.dia.activo strong { color: var(--lima); }
.dia.activo small { color: #9aa69c; }
.horario { background: #fff; border: 1px solid #dfe3dc; color: var(--noche); border-radius: 12px; min-height: 56px; }
.horario small { color: #6a716b; }
.horario:hover, .horario.activo { background: var(--lima); border-color: #b5dc4f; color: var(--noche); }
.horario.activo small, .horario:hover small { color: var(--lima-osc); }
.cancha-bloque h3 .etiqueta.verde { background: var(--noche); color: var(--lima); }
.exito .tilde { background: var(--lima); color: var(--noche); }

/* Tablas: los precios nunca se parten en dos renglones */
.tabla td.num, .tabla th.num, .tabla td:nth-child(n) .etiqueta { white-space: nowrap; }
.numero strong, .total span { white-space: nowrap; }
@media (max-width: 800px) {
  .tabla { font-size: .9rem; }
  .tabla th, .tabla td { padding: 10px 10px; }
  .tabla td.num .botones { flex-wrap: nowrap; }
  .tabla-scroll { -webkit-overflow-scrolling: touch; }
}
@media (max-width: 640px) {
  .tabla-stock th:nth-child(2), .tabla-stock td:nth-child(2),
  .tabla-stock th:nth-child(4), .tabla-stock td:nth-child(4) { display: none; }
  .tabla-stock td:last-child .botones { flex-direction: column; align-items: stretch; gap: 6px; }
}
@media (max-width: 640px) {
  .tabla-stock th, .tabla-stock td { padding: 10px 6px; }
  .tabla-stock th:first-child, .tabla-stock td:first-child { padding-left: 12px; }
  .tabla-stock th:last-child, .tabla-stock td:last-child { padding-right: 10px; }
  .tabla-stock td:last-child .btn { min-height: 34px; padding: 5px 8px; font-size: .8rem; }
}

/* Tablas de 4 columnas o más: tarjetas en el celular */
@media (max-width: 640px) {
  .tabla:not(.tabla-stock):has(thead th:nth-child(4)) thead { display: none; }
  .tabla:not(.tabla-stock):has(thead th:nth-child(4)) :is(tbody, tfoot) tr {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; padding: 14px 14px; border-bottom: 1px solid var(--borde);
  }
  .tabla:not(.tabla-stock):has(thead th:nth-child(4)) :is(tbody, tfoot) td {
    display: block; border: 0; padding: 0; background: none !important; text-align: left;
  }
  .tabla:not(.tabla-stock):has(thead th:nth-child(4)) :is(tbody, tfoot) td:first-child { flex-basis: 100%; font-weight: 650; font-size: 1rem; }
  .tabla:not(.tabla-stock):has(thead th:nth-child(4)) :is(tbody, tfoot) td:not(:first-child)[data-label]::before {
    content: attr(data-label); display: block; font-size: .72rem; font-weight: 500; color: var(--suave); font-family: "Geist", system-ui, sans-serif; letter-spacing: 0; margin-bottom: 2px;
  }
  .tabla:not(.tabla-stock):has(thead th:nth-child(4)) :is(tbody, tfoot) td:last-child:not([data-label]),
  .tabla:not(.tabla-stock):has(thead th:nth-child(4)) :is(tbody, tfoot) td:last-child:has(.btn) { margin-left: auto; }
  .tabla:not(.tabla-stock):has(thead th:nth-child(4)) tbody tr.bajo { background: #fdf0f0; }
}

/* Campo de plata con el signo $ adelante */
.campo-plata { position: relative; display: block; margin-top: 5px; }
.campo-plata__signo { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--texto); pointer-events: none; }
.campo-plata input { margin-top: 0; padding-left: 30px; font-family: var(--mono); letter-spacing: -.01em; }

/* Fiado */
.fiado-cliente { background: var(--lima-claro); border: 1px solid #d6ee98; border-radius: 12px; padding: 12px 12px 6px; margin-bottom: 12px; }
.fiado-cliente label { margin-bottom: 6px; }
.fiado-cliente .btn-link { font-weight: 600; color: var(--lima-osc); margin-bottom: 6px; }
.numero.alerta-num strong { color: #b42318; }
.movs { display: grid; border-top: 1px solid var(--borde); }
.mov { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--borde); }
.mov small { display: block; color: var(--suave); font-size: .82rem; margin-top: 2px; }
.mov b { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.mov.pago b { color: #2f7d32; }
.mov.compra b { color: #b42318; }
.mov.anulada { opacity: .5; text-decoration: line-through; }

/* ---------- Bloqueos y cuenta del turno ---------- */
.agenda button.bloqueado { background: repeating-linear-gradient(135deg, #eceee9 0 8px, #e3e6df 8px 16px); border-style: solid; border-color: #cfd3cb; color: #5b625a; font-weight: 600; }
.cuenta { border-top: 1px solid var(--borde); margin-top: 14px; padding-top: 12px; }
.cuenta-tit { margin: 0 0 8px; font-size: 1.05rem; }
.cuenta-consumos { display: grid; gap: 6px; margin: 10px 0 6px; }
.cuenta-fila { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--borde); border-radius: 12px; background: #fff; }
.cuenta-fila label { flex: 1; display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; min-width: 0; }
.cuenta-fila label input { width: auto; flex: none; }
.cuenta-fila small { display: block; color: var(--suave); font-size: .8rem; }
.cuenta-fila b { font-family: var(--mono); white-space: nowrap; }
.lista-jugadores { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 12px; margin: 8px 0; }
.total-cobro { font-family: var(--mono); font-size: 2rem; font-weight: 700; margin: 4px 0 12px; }

/* ---------- Ventana del turno (pensada para el celu) ---------- */
.turno-cab { margin: 0 0 10px; line-height: 1.35; }
.turno-cab strong { font-size: 1.1rem; }
.turno-cab small { display: block; color: var(--suave); margin-top: 2px; }
.turno-acciones { margin: 0 0 12px; }
.precio-turno { max-width: 240px; }
.cuenta-tit small { font-weight: 500; color: var(--suave); font-size: .85rem; margin-left: 6px; }
.cuenta .cuenta-tit { margin-top: 14px; }
.jugadores { display: grid; gap: 8px; margin-bottom: 10px; }
.jugador { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nombre monto" "botones botones"; gap: 6px 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--borde); border-radius: 14px; background: #fff; }
.jugador.listo { background: var(--menta); border-color: #c9e79a; }
.jugador-nombre { grid-area: nombre; min-width: 0; }
.jugador-nombre input { width: 100%; min-height: 42px; padding: 8px 10px; font-weight: 600; }
.jugador-nombre small { display: block; color: var(--suave); font-size: .78rem; margin-top: 2px; }
.jugador-monto { grid-area: monto; font-family: var(--mono); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.jugador-botones { grid-area: botones; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.jugador-botones:empty { display: none; }
.jugador-botones .btn { flex: 1; min-height: 42px; padding: 8px 12px; }
.btn.ancho-total { width: 100%; }
@media (min-width: 640px) {
  .jugador { grid-template-columns: 1fr auto auto; grid-template-areas: "nombre monto botones"; }
  .jugador-botones .btn { flex: none; }
}

/* ---------- Agregar varios consumos ---------- */
.carga-producto { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 12px; border: 1px solid var(--borde); border-radius: 14px; background: #fafbf8; margin: 6px 0 10px; }
.carga-producto label { margin: 0; }
.cantidad-ctrl { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; }
.cantidad-ctrl .btn { padding: 0; font-size: 1.4rem; min-height: 48px; }
.cantidad-ctrl input { text-align: center; font-weight: 700; font-size: 1.1rem; }
.total-carga { background: transparent; border-style: dashed; font-weight: 700; }
@media (min-width: 640px) { .carga-producto { grid-template-columns: 1fr 180px auto; align-items: end; } }
.cuenta-fila span small { display: block; color: var(--suave); font-size: .78rem; font-weight: 600; }
@media (min-width: 640px) { .carga-producto .carga-quien { grid-column: 1 / -1; } }

/* ---------- Buscadores de productos y clientes ---------- */
.carga-buscar { display: grid; gap: 8px; min-width: 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid #d5dad2; background: #fff; color: var(--noche); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; min-height: 38px; }
.chip.activo { background: var(--noche); color: var(--lima); border-color: var(--noche); }
.lista-elegir { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; margin: 6px 0; }
.opcion { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; font: inherit; cursor: pointer;
  padding: 10px 12px; min-height: 50px; border: 1px solid var(--borde); border-radius: 12px; background: #fff; color: var(--noche); }
.opcion span { min-width: 0; font-weight: 600; }
.opcion small { display: block; color: var(--suave); font-weight: 500; font-size: .8rem; }
.opcion b { font-family: var(--mono); white-space: nowrap; font-weight: 600; }
.opcion b.debe { color: #8a5a08; }
.opcion.activo { border-color: var(--noche); box-shadow: 0 0 0 2px var(--lima) inset; background: var(--lima-claro); }
.opcion.nuevo { border-style: dashed; }
.seleccionado { margin: 0; font-size: .92rem; color: var(--suave); }
.seleccionado strong { color: var(--noche); }
@media (min-width: 640px) { .carga-producto .carga-buscar { grid-column: 1 / -1; } }

/* ---------- Buffet con lista ---------- */
.b-prod { display: grid; gap: 8px; align-content: start; min-width: 0; }
.lista-buffet { max-height: min(60vh, 520px); }
.lista-buffet .opcion small.sin { color: var(--rojo); }
.lista-buffet .mas { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--lima); color: var(--noche); display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; }
.fiado-cliente .lista-elegir { max-height: 240px; }

/* ---------- Pestañas de Mi complejo (Datos · Canchas · Turnos fijos) ---------- */
.pestanas-complejo { display: flex; gap: 6px; margin: 0 0 16px; padding: 4px; background: #fff; border: 1px solid var(--borde); border-radius: 14px; }
.pestanas-complejo a { flex: 1; text-align: center; padding: 10px 8px; border-radius: 10px; font-weight: 650; color: var(--suave); text-decoration: none; white-space: nowrap; }
.pestanas-complejo a.activo { background: var(--noche); color: var(--lima); }

/* ---------- Turnos juntados y producto momentáneo ---------- */
.juntado { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 4px; padding: 10px 12px; border: 1px dashed #c9cfc5; border-radius: 14px; font-size: .92rem; }
.juntado .ayuda { margin: 0; }
.grupo-tit { margin: 10px 0 2px; font-weight: 700; font-size: .85rem; color: var(--suave); }
.carga-otro #oCampos { display: grid; gap: 8px; margin-top: 8px; }
.carga-otro #oCampos[hidden] { display: none; }
@media (min-width: 640px) { .carga-producto .carga-otro { grid-column: 1 / -1; } }
.otro-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; min-height: 58px; border: 1.5px dashed #b9c0b4; border-radius: 14px; background: #fff; color: var(--noche); font: inherit; font-weight: 650; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.otro-btn:hover, .otro-btn:focus-visible { border-color: var(--noche); background: var(--lima-claro); }
.otro-btn small { display: block; font-weight: 500; font-size: .8rem; color: var(--suave); }
.otro-mas { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--noche); color: var(--lima); display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; }

.jugador-botones [data-detalle] { flex: none; }
.total-cobro.detalle { font-size: 1.4rem; }

/* ---------- Agenda ordenada: columnas iguales, turnos con su largo real ---------- */
.agenda-scroll { overflow-x: auto; border: 1px solid var(--borde); border-radius: 18px; background: #fff; box-shadow: var(--sombra); }
table.agenda { table-layout: fixed; width: 100%; min-width: calc(60px + var(--canchas, 2) * 132px); border-collapse: separate; border-spacing: 0; }
.agenda col.col-hora { width: 60px; }
.agenda thead th { padding: 12px 6px 10px; text-align: center; background: #fafbf8; border-bottom: 1px solid var(--borde); }
.agenda thead th .nom { display: block; font-weight: 700; font-size: .95rem; color: var(--noche); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda thead th small { display: block; font-weight: 500; font-size: .75rem; color: var(--suave); margin-top: 1px; }
.agenda td { height: 64px; padding: 4px; vertical-align: top; border-top: 1px solid #eef0eb; }
.agenda tbody tr:first-child td, .agenda tbody tr:first-child .hora { border-top: 0; }
.agenda .hora { position: sticky; left: 0; z-index: 1; width: 60px; padding: 9px 9px 0 4px; text-align: right; vertical-align: top;
  background: #fff; border-top: 1px solid #eef0eb; border-right: 1px solid var(--borde); font: 600 .82rem var(--mono); color: var(--suave); white-space: nowrap; }
.agenda thead .hora { z-index: 2; background: #fafbf8; border-top: 0; }
.agenda tr.ahora .hora { color: var(--noche); box-shadow: inset 4px 0 0 var(--lima); }
.agenda td > button { height: 100%; min-height: 56px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; padding: 8px 10px; overflow: hidden; border-radius: 12px; }
.agenda button .nom { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.agenda button small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda button .hasta { display: block; font-size: .72rem; opacity: .7; }
.agenda button.libre { background: #fff; border: 1px dashed #dfe3db; color: #8a9186; }
.agenda button.libre .nom { font-weight: 500; }
.agenda button.libre small { color: #a3aa9f; }
.agenda button.libre:hover { background: var(--lima-claro); border-style: solid; border-color: #b5dc4f; color: var(--noche); }
.agenda button.pasado { opacity: .4; }
.agenda td.vacia { background: transparent; }
@media (max-width: 640px) {
  table.agenda { min-width: calc(52px + var(--canchas, 2) * 128px); }
  .agenda col.col-hora, .agenda .hora { width: 52px; }
  .agenda td > button { padding: 7px 8px; }
}

/* ---------- Ventanas en el celu: que la cruz siempre se vea ----------
   100vh en el celu incluye la barra del navegador y cortaba la ventana arriba y abajo;
   100dvh es el alto que realmente se ve. La cabecera queda fija y solo se desliza el contenido. */
dialog.modal { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
.modal-form { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
.modal-cab, .modal-pie { flex: none; }
.modal-cuerpo { flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
.modal-cab { gap: 10px; }
.modal-cab .btn-x { flex: none; width: 44px; height: 44px; margin: -6px -8px -6px 0; border-radius: 12px; display: grid; place-items: center; font-size: 1.8rem; color: var(--noche); }
.modal-cab .btn-x:active { background: #eef0eb; }

/* Número de reservas nuevas en el menú */
.menu a { position: relative; }
.aviso-num { position: absolute; top: 4px; right: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--lima); color: var(--noche); font: 700 .72rem/20px var(--font-text, inherit); text-align: center; }

/* Link de reservas: mis reservas y cancelar */
.mis-reservas { margin-bottom: 14px; }
.mis-reservas h3 { margin: 0 0 8px; }
.mi-reserva { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--borde); }
.mi-reserva small { color: var(--suave); }
.cancelar-link { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--borde); }

/* Caja: 4 números del mismo tamaño y que el monto siempre entre */
.numeros-caja { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.numeros-caja .numero { min-width: 0; }
.numeros-caja .numero strong { display: block; font-size: clamp(1.15rem, 1.9vw, 1.75rem); overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .numeros-caja { grid-template-columns: repeat(2, minmax(0, 1fr)); } .numeros-caja .numero strong { font-size: 1.3rem; } .numeros-caja .destacado { grid-column: 1 / -1; } .numeros-caja .destacado strong { font-size: 1.8rem; } }
.jugador-monto small { display: block; font: 500 .72rem var(--font-text, inherit); color: var(--suave); text-align: right; }
.opcion:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Stock en el celu: cada producto es una tarjeta, sin desplazarse de costado ---------- */
@media (max-width: 760px) {
  .tabla-stock thead, .tabla-tragos thead { display: none; }
  .tabla-stock, .tabla-stock tbody, .tabla-tragos, .tabla-tragos tbody { display: block; width: 100%; }
  .tabla-stock tr, .tabla-tragos tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px;
    border-bottom: 1px solid var(--borde);
  }
  .tabla-stock td, .tabla-tragos td { display: block; padding: 0; border: 0; text-align: left; min-width: 0; }
  /* Producto: nombre arriba a la izquierda, stock grande a la derecha */
  .tabla-stock td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: 1.02rem; }
  .tabla-stock td:nth-child(2) { display: none; }
  .tabla-stock td:nth-child(3), .tabla-stock td:nth-child(4) { grid-column: 1; font-size: .88rem; color: var(--suave); }
  .tabla-stock td:nth-child(3) { grid-row: 2; }
  .tabla-stock td:nth-child(4) { grid-row: 3; }
  .tabla-stock td:nth-child(3)::before { content: "Precio "; }
  .tabla-stock td:nth-child(4)::before { content: "Costo "; }
  .tabla-stock td:nth-child(3) br, .tabla-stock td:nth-child(4) br { display: none; }
  .tabla-stock td:nth-child(5) { grid-column: 2; grid-row: 1 / span 3; text-align: right; align-self: center; font-size: 1.05rem; }
  .tabla-stock td:nth-child(6) { grid-column: 1 / -1; grid-row: 4; margin-top: 8px; }
  .tabla-stock td:nth-child(6) .botones { justify-content: stretch !important; flex-wrap: nowrap; gap: 8px; }
  .tabla-stock td:nth-child(6) .btn { flex: 1; min-height: 42px; padding: 8px 6px; }
  /* Tragos: nombre y precio arriba, lo que lleva abajo, editar a lo ancho */
  .tabla-tragos td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: 1.02rem; }
  .tabla-tragos td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; font-weight: 700; }
  .tabla-tragos td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: .88rem; color: var(--suave); }
  .tabla-tragos td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; font-size: .88rem; color: var(--suave); text-align: left; }
  .tabla-tragos td:nth-child(4)::before { content: "Alcanza para "; }
  .tabla-tragos td:nth-child(5) { grid-column: 1 / -1; grid-row: 4; margin-top: 8px; }
  .tabla-tragos td:nth-child(5) .btn { width: 100%; min-height: 42px; }
}
@media (max-width: 760px) {
  .tabla-stock td.num, .tabla-tragos td.num { text-align: left; }
  .tabla-stock td:nth-child(5), .tabla-tragos td:nth-child(3) { text-align: right !important; }
  .tabla-stock td:nth-child(5) small { display: block; }
  .tabla-stock td:nth-child(6) .botones { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; justify-content: stretch !important; }
  .tabla-stock td:nth-child(6) .botones .btn { flex: 1 1 0; width: auto; margin: 0; }
}

/* Torneos */
.lista-torneos { display: grid; gap: 8px; }
.torneo-item small + small { margin-top: 2px; }
.btn-link.volver { display: inline-block; margin: 0 0 6px; text-decoration: none; font-weight: 600; }
.torneo-info { margin: -6px 0 14px; line-height: 1.6; }
.pestanas-torneo { overflow-x: auto; scrollbar-width: none; }
.pestanas-torneo::-webkit-scrollbar { display: none; }
.cab-sub { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cab-sub h2 { margin: 0 0 6px; }
.etiqueta-campo { display: block; font-weight: 600; margin-bottom: 6px; }
.checks-canchas { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.tabla-balance td { padding: 9px 6px; }
.tabla-balance .total-fila td { border-top: 2px solid var(--borde); }
.numeros-tres { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.numeros-tres .numero { min-width: 0; padding: 12px 10px; }
.numeros-tres .numero strong { display: block; font-size: clamp(.95rem, 4.2vw, 1.7rem); letter-spacing: -.05em; }
.numeros-tres .numero small + small { margin-top: 2px; }
@media (min-width: 761px) { .numeros-balance { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Fixture del torneo (panel y link público) */
.link-torneo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.link-torneo small { display: block; color: var(--suave); }
.campeon { font-size: 1.05rem; }
.grupos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; margin-bottom: 14px; }
.tabla-grupo { padding: 14px; min-width: 0; }
.tabla-grupo h3 { margin: 0 0 8px; font-size: 1rem; }
.tabla-posiciones { width: 100%; font-size: .9rem; border-collapse: collapse; }
.tabla-posiciones th, .tabla-posiciones td { padding: 8px 5px; border-bottom: 1px solid var(--borde); text-align: left; }
.tabla-posiciones th { font-size: .75rem; color: var(--suave); font-weight: 600; }
.tabla-posiciones .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabla-posiciones td:first-child { color: var(--suave); width: 1.6em; }
.tabla-posiciones .nombre-eq { font-weight: 600; overflow-wrap: anywhere; }
.tabla-posiciones tr.clasifica td { background: var(--lima-claro); }
.fila-mover { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--borde); }
.fila-mover span { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.fila-mover select { width: auto; min-height: 40px; padding: 6px 8px; flex: none; }
.lista-partidos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.dia-partidos { grid-column: 1 / -1; margin: 10px 0 0; font-size: 1rem; }
.partido { background: #fff; border: 1px solid var(--borde); border-radius: 14px; padding: 10px 12px; display: grid; gap: 4px; min-width: 0; }
.partido.jugado { border-color: #c9e79a; }
.partido-cab { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--suave); font-weight: 600; }
.partido-eq { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.partido-eq span { min-width: 0; overflow-wrap: anywhere; }
.partido-eq i { color: var(--suave); font-weight: 500; }
.partido-eq b { font-family: var(--mono); }
.partido-eq.gana span::after { content: ' ✓'; color: var(--lima-osc); }
.partido-res { font-family: var(--mono); font-size: .9rem; color: var(--noche); }
.partido-botones { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cuadro { display: grid; gap: 14px; }
.cuadro-ronda { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.cuadro-ronda h3 { grid-column: 1 / -1; margin: 6px 0 0; font-size: 1rem; }
.resultado-futbol { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; }
.resultado-futbol span { padding-bottom: 14px; font-weight: 700; }
.resultado-futbol input { text-align: center; font-size: 1.3rem; }
.angosto-t { max-width: 920px; padding: 0 16px; }
.chips-t { margin: 4px 0 12px; }
.filtro-eq { max-width: 360px; }
.actualizado { text-align: center; margin-top: 18px; font-size: .8rem; }

/* Categorías y premios */
.cats { display: grid; gap: 8px; margin-bottom: 6px; }
.fila-cat { display: grid; gap: 8px; align-items: center; }
.fila-cat label { margin: 0; }
.titulo-cat { margin: 18px 0 8px; font-size: 1.1rem; }
.titulo-cat small { font-weight: 500; color: var(--suave); font-size: .85rem; margin-left: 6px; }
.premios { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; margin-bottom: 8px; }
.premio h3 { margin: 0 0 4px; }
.premio p { margin: 0 0 8px; }
.premio-fila { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--borde); }
.premio-fila b { font-family: var(--mono); white-space: nowrap; }
.premio .btn, .premio .etiqueta { margin-top: 10px; }
.premios-pub { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 16px; margin-bottom: 12px; font-weight: 600; }
.premios-pub b { font-family: var(--mono); }

/* Inscriptos con pago por jugador y días del torneo */
.inscriptos { display: grid; gap: 10px; }
.inscripto { background: #fff; border: 1px solid var(--borde); border-radius: 14px; padding: 10px 12px; display: grid; }
.inscripto.listo { background: var(--menta); border-color: #c9e79a; }
.inscripto-cab { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.inscripto-cab small { display: block; }
.inscripto-cab .botones { gap: 6px; }
.pago-jugador { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding-top: 6px; border-top: 1px solid var(--borde); }
.pago-jugador span:first-child { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.pago-jugador small { display: block; font-weight: 500; }
.pago-jugador b { font-family: var(--mono); white-space: nowrap; }
.pago-jugador .botones { grid-column: 1 / -1; gap: 6px; }
@media (min-width: 700px) { .pago-jugador { grid-template-columns: minmax(0, 1fr) auto auto; } .pago-jugador .botones { grid-column: auto; } }
.dias-torneo { display: grid; gap: 8px; }
.dia-torneo { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; align-items: center; }
.dia-torneo select { min-height: 42px; padding: 6px 8px; font-size: 15px; }
.dia-torneo select[data-campo="tipo"] { grid-column: 2 / -1; }
.fila-cat { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; padding-bottom: 8px; border-bottom: 1px dashed var(--borde); }
.cat-pct { grid-column: span 1; font-size: .8rem; margin: 0; }
.cat-pct input { min-height: 42px; }
.fila-cat .cat-pct:last-child { grid-column: 2 / -1; }
.capacidad { display: grid; gap: 6px; margin: 10px 0; }
.capacidad div { padding: 8px 12px; border-radius: 10px; font-size: .92rem; }
.capacidad .entra { background: var(--lima-claro); }
.capacidad .falta { background: #fdecea; color: #8a1c12; }

/* Cuenta por jugador */
.buscar-insc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.buscar-insc input { flex: 1 1 220px; min-width: 0; }
.inscripto { gap: 2px; }
.inscripto-cab { align-items: center; }
.inscripto-cab small { font-size: .8rem; color: var(--suave); }
.mas-opc { position: static; width: 34px; height: 30px; font-size: 1.2rem; line-height: 1; border-radius: 8px; }
.fila-jugador { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--borde); }
.fila-jugador:first-of-type { border-top: 0; }
.fj-nombre { font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.fj-nombre small { display: block; font-weight: 500; color: var(--suave); font-size: .8rem; }
.fj-saldo { font-size: .88rem; color: #8a1c12; white-space: nowrap; }
.fj-saldo b { font-family: var(--mono); }
.fila-jugador.al-dia .fj-saldo { color: var(--lima-osc); }
.deudores { padding: 4px 14px; }
.cuenta-lista { display: grid; gap: 4px; }
.cuenta-renglon { display: grid; grid-template-columns: minmax(0, 1fr) auto 30px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--borde); }
.cuenta-renglon span { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.cuenta-renglon small { display: block; font-weight: 500; color: var(--suave); font-size: .78rem; }
.cuenta-renglon b { font-family: var(--mono); white-space: nowrap; }
.cuenta-renglon.pago b { color: var(--lima-osc); }
.cuenta-renglon .btn-x { position: static; width: 28px; height: 28px; font-size: 1.1rem; }
.cuenta-saldo { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 4px; font-weight: 700; font-size: 1.1rem; }
.cuenta-saldo b { font-family: var(--mono); }
.cuenta-saldo.debe { color: #8a1c12; }
.cuenta-botones { margin-top: 10px; }
.cuenta-botones .btn { flex: 1 1 auto; }
.chips-comida { flex-wrap: wrap; overflow: visible; }
.sub-modal { margin: 10px 0 6px; font-size: .95rem; }
.botones.apiladas { flex-direction: column; align-items: stretch; }
.peligro-txt { color: #b42318 !important; }

/* ===================================================================
   Terminación: movimiento, foco, selección, scroll
   =================================================================== */
:root { --sale: cubic-bezier(.16, 1, .3, 1); }

/* Ventanas: entran con un fundido corto; en el celular suben desde abajo como una hoja */
dialog.modal[open] { animation: modal-entra .2s var(--sale); }
dialog.modal[open]::backdrop { animation: fondo-entra .2s ease-out; }
dialog.modal.cerrando { animation: modal-sale .16s ease-in forwards; }
dialog.modal.cerrando::backdrop { animation: fondo-sale .16s ease-in forwards; }
@keyframes modal-entra { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes modal-sale { to { opacity: 0; transform: translateY(6px) scale(.985); } }
@keyframes fondo-entra { from { opacity: 0; } }
@keyframes fondo-sale { to { opacity: 0; } }
@media (max-width: 640px) {
  dialog.modal, dialog.modal.ancho { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92dvh; }
  .modal-form { max-height: 92dvh; }
  .modal-pie { border-radius: 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  dialog.modal[open] { animation: hoja-entra .28s var(--sale); }
  dialog.modal.cerrando { animation: hoja-sale .18s ease-in forwards; }
  @keyframes hoja-entra { from { transform: translateY(100%); } }
  @keyframes hoja-sale { to { transform: translateY(100%); } }
}
/* Pie de las ventanas: si no entran los botones, bajan de renglón; "Bloquear horario" va a la izquierda */
.modal-pie { flex-wrap: wrap; align-items: center; }
.modal-pie .bloquear { margin-right: auto; padding: 10px 2px; font-weight: 600; }

/* Avisos: entran deslizando desde abajo */
.toast:not([hidden]) { animation: aviso-entra .24s var(--sale); }
@keyframes aviso-entra { from { opacity: 0; transform: translate(-50%, 12px); } }

/* Cambio de sección: lo anterior se atenúa mientras carga y lo nuevo entra con un fundido */
.vista { transition: opacity .15s ease-out; }
.vista { transition: opacity .3s ease; }
.vista.esperando { opacity: .35; pointer-events: none; }
/* Al cambiar de sección: cada bloque entra con un fundido suave, uno detrás del otro */
.vista.entra > * { animation: vista-entra .65s var(--sale) both; }
.vista.entra > :nth-child(2) { animation-delay: .06s; }
.vista.entra > :nth-child(3) { animation-delay: .12s; }
.vista.entra > :nth-child(4) { animation-delay: .18s; }
.vista.entra > :nth-child(n+5) { animation-delay: .24s; }
@keyframes vista-entra { from { opacity: 0; transform: translateY(14px); } }
.silueta { display: grid; gap: 14px; padding-top: 6px; }
.silueta span { display: block; border-radius: 14px; background: linear-gradient(90deg, #e9ece6 0%, #f3f5f1 50%, #e9ece6 100%) 0 0 / 200% 100%; animation: silueta 1.2s linear infinite; }
.s-titulo { width: 40%; height: 34px; }
.s-fila { height: 48px; }
.s-bloque { height: 120px; }
@keyframes silueta { to { background-position: -200% 0; } }

/* Destello en lo que acaba de cambiar (turno cobrado, venta nueva, cuenta saldada) */
.destello { animation: destello 1s var(--sale); }
@keyframes destello { from { background-color: var(--lima); box-shadow: 0 0 0 3px var(--lima); } }

/* Foco con teclado: anillo lima en botones y links (los campos ya tienen el suyo) */
:is(a, button, .btn, .chip, .opcion, summary, [tabindex]):focus-visible { outline: 2px solid var(--noche); outline-offset: 2px; box-shadow: 0 0 0 5px var(--lima); }
.menu a:focus-visible { outline-color: var(--lima); box-shadow: none; }

/* Lo que dibuja el navegador, con los colores de la marca */
::selection { background: var(--lima); color: var(--noche); }
input, textarea { caret-color: var(--noche); }
* { scrollbar-width: thin; scrollbar-color: #c3cabe transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c3cabe; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #9aa395; }
::-webkit-scrollbar-track { background: transparent; }

/* Menos movimiento (si el teléfono lo tiene activado): sin desplazamientos, solo fundidos */
@media (prefers-reduced-motion: reduce) {
  dialog.modal[open], dialog.modal.cerrando { animation-name: fondo-entra; animation-duration: .12s; }
  .vista.entra > * { animation-name: fondo-entra; animation-duration: .2s; animation-delay: 0s; }
  .toast:not([hidden]) { animation: none; }
  .silueta span { animation: none; }
  .destello { animation-duration: .6s; }
}

/* Agenda: botones con ícono en una fila (en el celular solo el ícono) */
.btn-icono { display: inline-flex; align-items: center; gap: 6px; }
.btn-icono svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 640px) {
  .btn-icono span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .btn-icono { width: 42px; padding: 0; justify-content: center; }
}

/* Buffet en la PC: la lista de productos crece con la página (sin un segundo scroll adentro) */
@media (min-width: 901px) {
  .lista-buffet { max-height: none; overflow: visible; }
  .carrito { position: sticky; top: 16px; }
}

/* Caja: período elegido y resumen en pantalla */
.btn.sec.elegido { background: var(--noche); color: var(--lima); border-color: var(--noche); }
.resumen-caja { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-top: 14px; }
.resumen-caja .tarjeta { margin: 0; }
.resumen-caja h2 { font-size: 1.05rem; margin: 0 0 10px; }
.caja-dias { grid-column: 1 / -1; }
.leyenda { display: inline-flex; align-items: center; gap: 6px 10px; font-size: .82rem; color: var(--suave); flex-wrap: wrap; }
.leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -4px; }
.graf-dias { display: flex; align-items: stretch; gap: 2px; height: 170px; padding-top: 6px; border-bottom: 1px solid var(--borde); }
.gd-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px; background: none; border: 0; padding: 0 1px; cursor: pointer; border-radius: 6px; }
.gd-col:hover, .gd-col.activo { background: #f1f3ee; }
.gd-barras { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.gd-b { width: min(45%, 14px); min-height: 0; border-radius: 4px 4px 0 0; }
.gd-col small { font-size: .68rem; color: var(--suave); text-align: center; height: 14px; font-family: var(--mono); }
.gd-detalle { margin: 10px 0 0; font-size: .9rem; color: var(--suave); min-height: 1.4em; }
.gd-detalle b { color: var(--noche); font-family: var(--mono); font-weight: 600; }
.barras { display: grid; gap: 10px; }
.barra-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline; }
.bf-nombre { font-weight: 600; overflow-wrap: anywhere; }
.bf-valor { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.bf-pista { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: #eef0eb; overflow: hidden; }
.bf-barra { display: block; height: 100%; border-radius: 4px; }

/* Mi complejo: subtítulo de cada pestaña */
.cab-sub h2 { font-size: 1.15rem; }

/* Reservas públicas: texto guía cuando falta elegir */
.guia-paso { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px dashed #c9cfc4; color: var(--suave); }
.guia-paso strong { color: var(--noche); }
.gd-detalle b:first-child { font-family: inherit; }
@media (max-width: 640px) {
  .modal-pie .btn { flex: 1 1 0; }
  .modal-pie .bloquear { order: 2; flex-basis: 100%; margin: 0; text-align: center; padding: 8px 0 0; }
}

/* Campos: borde más suave, fondo apenas tintado, se marcan al pasar y al escribir */
input:not([type=checkbox], [type=radio]), select, textarea {
  border: 1.5px solid #dde2d8; background-color: #fbfcfa; border-radius: 12px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
input:not([type=checkbox], [type=radio]):hover, select:hover, textarea:hover { border-color: #b9c1b3; }
input:not([type=checkbox], [type=radio]):focus, select:focus, textarea:focus { border-color: var(--noche); background-color: #fff; box-shadow: 0 0 0 4px rgba(205, 242, 107, .55); }
input::placeholder, textarea::placeholder { color: #9aa395; }
input[readonly], input:disabled { background-color: #f1f3ee; border-color: #e3e7df; }

/* Botón para agregar (categorías): borde punteado, signo + en lima */
.btn-agregar { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; margin-top: 6px;
  border: 1.5px dashed #b9c0b4; border-radius: 14px; background: transparent; color: var(--noche); font: inherit; font-weight: 650; cursor: pointer;
  transition: border-color .15s, background-color .15s; }
.btn-agregar:hover { border-color: var(--noche); background: var(--lima-claro); }
.btn-agregar:active { transform: scale(.99); }
.ba-mas { width: 26px; height: 26px; border-radius: 8px; background: var(--lima); display: grid; place-items: center; font-weight: 700; line-height: 1; }

/* Cada categoría como una tarjetita */
.fila-cat { background: #f6f8f3; border: 1px solid var(--borde); border-radius: 14px; padding: 10px; }

/* Inscribir pareja: cada jugador en su bloque y el nombre de la pareja que se arma solo */
.jugador-carga { margin-bottom: 4px; }
.jugador-carga .fila label { margin-top: 0; }
.nombre-pareja { margin: 4px 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--lima-claro); color: var(--suave); }
.nombre-pareja strong { color: var(--noche); }

/* Gasto de pelotas: elegir si se compran o salen del stock */
.origen-pelotas { margin: 12px 0 4px; }
.origen-pelotas .chips { flex-wrap: wrap; }

/* Día preferido de la pareja */
.chips-dia { flex-wrap: wrap; }
.conteo-dias { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; color: var(--suave); font-size: .9rem; }
.conteo-dias b { color: var(--noche); font-family: var(--mono); }
.pide-otro { display: block; font-size: .75rem; font-weight: 600; color: #8a5a08; }
.tabla-grupo h3 small { font-weight: 500; color: var(--suave); font-size: .85rem; }

/* PIN de la Caja */
.pin-caja { max-width: 360px; margin: 24px auto; text-align: center; display: grid; gap: 12px; justify-items: center; }
.pin-caja h2 { margin: 0; }
.pin-caja p { margin: 0; }
.pin-caja input { text-align: center; font-size: 1.6rem; letter-spacing: .4em; font-family: var(--mono); max-width: 220px; }
.pin-caja .btn { width: 100%; max-width: 220px; }
.pin-candado { width: 56px; height: 56px; border-radius: 16px; background: var(--noche); display: grid; place-items: center; }
.pin-candado svg { width: 28px; height: 28px; fill: none; stroke: var(--lima); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pin-mal { animation: pin-mal .35s; border-color: var(--rojo) !important; }
@keyframes pin-mal { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { .pin-mal { animation: none; } }

/* Ojito para ver la contraseña */
.campo-clave { position: relative; display: block; margin-top: 5px; }
.campo-clave input { margin-top: 0; padding-right: 48px; }
.ojo-clave { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 10px; background: transparent; color: var(--suave); cursor: pointer; }
.ojo-clave:hover { background: #eef0eb; color: var(--noche); }
.ojo-clave svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Eventos y clases */
.agenda button.alquiler-bloque { width: 100%; height: 100%; text-align: left; border: 1.5px solid #c7b8f5; background: #f1ecff; color: #3b2a7a; border-radius: 9px; padding: 6px 10px; cursor: pointer; font: inherit; }
.agenda button.alquiler-bloque .nom { display: block; font-weight: 650; }
.agenda button.alquiler-bloque small { color: #4b3596;  display: block; font-size: .78rem; opacity: .85; font-family: var(--mono); }
.etiqueta.violeta { background: #ece5ff; color: #4b3596; }
.proximas-clases { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 6px; }
.proximas-clases span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.proximas-clases .btn-link { font-size: .8rem; color: var(--suave); padding: 2px; }

/* ================= Página de reservas (rediseño) ================= */
.res-cab__in { max-width: 680px; }
.res-cab { padding: 26px 16px 22px; }
.res-cab__fila { display: flex; align-items: center; gap: 14px; }
.res-logo { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--lima); color: var(--noche); font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; box-shadow: 0 8px 24px -10px rgba(205, 242, 107, .55); }
.res-logo:empty { visibility: hidden; }
.res-cab__txt { min-width: 0; }
.res-cab h1 { font-size: 1.6rem; line-height: 1.1; }
.res-cab p#subtitulo { font-size: .92rem; margin-top: 4px; }
.res-estado { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0 !important; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #e6ecd9 !important; font-size: .85rem; }
.res-punto { width: 8px; height: 8px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 0 rgba(205, 242, 107, .6); animation: res-latido 2s infinite; }
.res-punto.apagado { background: #8a938b; animation: none; }
@keyframes res-latido { 70% { box-shadow: 0 0 0 8px rgba(205, 242, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(205, 242, 107, 0); } }
.res-acciones { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.res-acciones:empty { display: none; }
.res-accion { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font-weight: 550; font-size: .9rem; transition: background .2s; }
.res-accion:hover { background: rgba(255, 255, 255, .15); }
.res-accion svg { color: var(--lima); }

/* Pasos */
.pasos { list-style: none; display: flex; gap: 6px; margin: 4px 0 8px; padding: 0; }
.pasos li { flex: 1; display: flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: #9aa09b; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--borde); transition: background .35s, color .35s, border-color .35s; }
.pasos li span { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; background: #eef0ec; color: #8a908b; transition: inherit; }
.pasos li.hecho { color: var(--noche); }
.pasos li.hecho span { background: var(--noche); color: var(--lima); }
.pasos li.actual { background: var(--noche); border-color: var(--noche); color: #fff; }
.pasos li.actual span { background: var(--lima); color: var(--noche); }

.paso-titulo span { font-weight: 500; color: var(--suave); margin-left: 6px; }
.paso-titulo--mes span { text-transform: capitalize; }

/* Tira de días */
.dias-marco { position: relative; margin: 0 -16px; }
.dias-marco::before, .dias-marco::after { content: ""; position: absolute; top: 0; bottom: 0; width: 22px; z-index: 1; pointer-events: none; }
.dias-marco::before { left: 0; background: linear-gradient(90deg, var(--fondo), transparent); }
.dias-marco::after { right: 0; background: linear-gradient(-90deg, var(--fondo), transparent); }
.dias-marco .dias { padding: 4px 16px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.dias-marco .dias::-webkit-scrollbar { display: none; }
.dias-marco .dia { scroll-snap-align: center; position: relative; min-width: 62px; padding: 10px 8px 14px; }
.dia__punto { position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: transparent; transition: background .3s; }
.dia__punto.si { background: #7bbf2a; }
.dia.activo .dia__punto.si { background: var(--lima); }
.dia.lleno:not(.activo) { opacity: .5; }
.dia.activo { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(11, 15, 12, .6); }

/* Franjas de horarios */
.franja + .franja { margin-top: 12px; }
.franja__t { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 8px; }
.cancha-bloque { background: #fff; border: 1px solid var(--borde); border-radius: 18px; padding: 14px; }
.cancha-bloque h3 { margin: 0 0 8px; flex-wrap: wrap; }
.horario { animation: res-entra .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 35ms); }
.horario.noche { background: #f7f9f2; }
.horario.noche small { color: #556b2f; }
.horario.activo { animation: res-rebote .4s cubic-bezier(.3, 1.6, .5, 1); opacity: 1; box-shadow: 0 8px 20px -10px rgba(120, 170, 30, .7); }
@keyframes res-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes res-rebote { 0% { transform: scale(.92); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* Sin lugar */
.sin-lugar { text-align: center; background: #fff; border: 1px dashed #c9cfc4; border-radius: 18px; padding: 28px 18px; animation: res-entra .4s ease both; }
.sin-lugar__ico { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center; background: var(--lima-claro); color: var(--lima-osc); }
.sin-lugar h3 { margin: 0 0 4px; }
.sin-lugar p { color: var(--suave); margin: 0 0 14px; }

/* Formulario */
.form-reserva { animation: res-entra .4s ease both; }
.form-reserva__res { background: var(--fondo); border-radius: 12px; padding: 10px 12px; margin-top: 0; }

/* Botón fijo abajo */
body.con-cta { padding-bottom: 96px; }
.res-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(245, 246, 243, .95) 30%); transform: translateY(110%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.res-cta.visible { transform: none; }
.res-cta__btn { width: 100%; max-width: 648px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border: 0; border-radius: 16px; background: var(--noche); color: #fff; font: inherit; cursor: pointer; text-align: left; box-shadow: 0 14px 30px -12px rgba(11, 15, 12, .6); }
.res-cta__btn b { display: block; font-size: 1.05rem; color: var(--lima); }
.res-cta__btn small { display: block; font-size: .8rem; color: #aab3ab; }
.res-cta__btn strong { font-family: var(--mono); font-size: 1.05rem; white-space: nowrap; background: var(--lima); color: var(--noche); padding: 6px 10px; border-radius: 10px; }
.res-cta__btn:active { transform: scale(.98); }
.res-cta__btn.cargando-btn { opacity: .7; pointer-events: none; }

/* Confirmación tipo entrada */
.ticket { background: #fff; border-radius: 22px; box-shadow: var(--sombra); overflow: hidden; animation: res-entra .5s cubic-bezier(.2, .8, .2, 1) both; }
.ticket__cab { display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--noche); color: #fff; }
.ticket__cab .tilde { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; background: var(--lima); color: var(--noche); animation: res-rebote .6s .2s cubic-bezier(.3, 1.6, .5, 1) both; }
.ticket__cab h2 { margin: 0; font-size: 1.35rem; }
.ticket__cab p { margin: 2px 0 0; color: #aab3ab; }
.ticket__cuerpo { display: flex; gap: 16px; padding: 20px; align-items: center; }
.ticket__fecha { flex: 0 0 auto; width: 74px; text-align: center; border-radius: 16px; background: var(--lima-claro); padding: 10px 0; text-transform: capitalize; }
.ticket__fecha strong { display: block; font-size: 2rem; line-height: 1.05; font-family: var(--mono); }
.ticket__fecha small { color: var(--lima-osc); font-weight: 600; }
.ticket dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; flex: 1; min-width: 0; }
.ticket dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); }
.ticket dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ticket__corte { position: relative; height: 0; border-top: 2px dashed var(--borde); margin: 0 18px; }
.ticket__corte::before, .ticket__corte::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--fondo); }
.ticket__corte::before { left: -30px; }
.ticket__corte::after { right: -30px; }
.ticket__pie { padding: 18px 20px 20px; }
.ticket__acc { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.ticket__btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: var(--fondo); border: 1px solid var(--borde); color: var(--noche); text-decoration: none; font-weight: 600; font-size: .85rem; transition: background .2s, transform .1s; }
.ticket__btn:hover { background: var(--lima-claro); }
.ticket__btn:active { transform: scale(.97); }

/* Datos del complejo al pie */
.res-datos { max-width: 680px; margin: 10px auto 0; padding: 0 16px; }
.res-datos__in { background: #fff; border: 1px solid var(--borde); border-radius: 18px; padding: 18px; }
.res-datos h3 { margin: 0 0 10px; }
.res-datos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.res-datos li { display: flex; align-items: center; gap: 10px; color: #3d433e; }
.res-datos li svg { flex: 0 0 auto; color: var(--lima-osc); }
.res-datos a { color: inherit; }
.res-mapa { display: block; width: 100%; height: 170px; border: 0; border-radius: 14px; margin-top: 14px; background: var(--fondo); }

@media (prefers-reduced-motion: reduce) {
  .horario, .sin-lugar, .form-reserva, .ticket, .ticket__cab .tilde, .horario.activo { animation: none; opacity: 1; }
  .res-punto { animation: none; }
}

/* Clases: pago por adelantado */
.cuenta-saldo.a-favor { color: var(--lima-osc); }
.chips-pago { flex-wrap: wrap; overflow: visible; margin: 4px 0 12px; }
.chips-pago .chip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 0; padding: 8px 14px; border-radius: 14px; text-transform: none; }
.chips-pago .chip:first-letter { text-transform: uppercase; }
.chips-pago .chip small { font-family: var(--mono); font-weight: 500; font-size: .8rem; color: var(--suave); }
.chips-pago .chip.activo { background: var(--noche); color: #fff; border-color: var(--noche); }
.chips-pago .chip.activo small { color: var(--lima); }

/* Logo Pikko (palabra) */
.logo-pikko { height: 26px; width: auto; display: block; }
