/*
 * Piezas nuevas de reservas: código de recepción (Mi cuenta, confirmación, ficha del panel, «Quién llega ahora»), avisos y «lo más cercano libre»
 * de /disponibilidad, y el paso «necesitamos tu categoría» del americano. Hoja aparte para no tocar app.css ni public.css.
 * Sirve al sitio público (variables --gold, --line, --soft, --muted, --cream) y al panel (--border, --text-muted, --text-cream): cada regla trae su alternativa.
 */

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ───────── Código de recepción ───────── */
.paycode-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; margin: 10px 0; padding: .7rem .9rem; border-radius: 14px; border: 1px dashed var(--gold, #d4a017); background: var(--soft, rgba(255, 255, 255, .05)); color: var(--cream, inherit); font-weight: 700; }
.paycode-box .paycode-v { font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 1.7rem; letter-spacing: .22em; color: var(--gold, #d4a017); line-height: 1.1; }
.paycode-box small { flex-basis: 100%; color: var(--muted, #8a9a90); font-weight: 500; font-size: .8rem; }
.paycode-box.paycode-card { margin: 8px 0; }
.rsv-paycode { margin: .15rem 0 0; font-size: .9rem; color: var(--text-muted, #8a9a90); }
.rsv-paycode-v { font-family: var(--mono, ui-monospace, monospace); font-size: 1.05rem; letter-spacing: .18em; color: var(--gold, #d4a017); }

/* Buscador de recepción (Quién llega ahora / Reservas del día) */
.lg-search { display: flex; gap: .5rem; margin: .2rem 0 .9rem; max-width: 560px; }
.lg-search input[type="search"] { flex: 1; min-width: 0; min-height: 44px; border-radius: 12px; border: 1px solid var(--border, var(--line, #2b3a31)); background: var(--bg-card, var(--soft, transparent)); color: inherit; font: inherit; padding: 0 .85rem; }
.lg-search .btn { min-height: 44px; }
.lg-search-mini { margin: 0 0 .6rem; }
.lg-found { padding: .6rem 0 0; margin-bottom: 1rem; overflow: hidden; }
.lg-found-h { padding: 0 1rem .5rem; display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center; }
.lg-found > p { padding: 0 1rem .8rem; }

/* ───────── /disponibilidad ───────── */
.av-flash { margin: 0 0 12px; padding: .7rem .95rem; border-radius: 14px; font-weight: 700; font-size: .95rem; border: 1px solid var(--line); background: var(--soft); color: var(--cream); }
.av-flash.ok { border-color: rgba(37, 211, 102, .6); }
.av-flash.warn { border-color: var(--gold); }
.near-box { margin: 0 0 14px; padding: .9rem 1rem; border-radius: 16px; border: 1px solid var(--gold); background: var(--soft); text-align: center; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.near-box p { margin: 0; color: var(--muted); }
.near-box p b { color: var(--cream); }
.near-box small { color: var(--muted); }
.near-box .btn { margin-top: 4px; }
.near-line { margin: 0 0 12px; padding: .55rem .85rem; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); font-size: .92rem; text-align: center; }
.near-line a { color: var(--gold-light, var(--gold)); text-decoration: none; }
.near-line a:hover, .near-line a:focus-visible { text-decoration: underline; }
.watch-near { margin: 2px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.watch-near[hidden] { display: none; }
.watch-near a { display: inline-block; margin-top: 4px; padding: .5rem .9rem; min-height: 44px; box-sizing: border-box; line-height: 1.7; border-radius: 12px; background: var(--free, #15803d); color: var(--free-ink, #fff); font-weight: 800; text-decoration: none; }
.watch-alt { border: 1px solid var(--line); border-radius: 14px; padding: .4rem .8rem .7rem; }
.watch-alt summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; color: var(--muted); font-weight: 700; font-size: .9rem; }
.watch-alt #watch-form { margin-top: 4px; }
a#watch-login { text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; }
#watch-one { display: flex; flex-direction: column; }

/* ───────── Americano: paso «necesitamos tu categoría» ───────── */
.am-gate { margin: 0 0 14px; padding: 1rem 1.05rem; border-radius: 16px; border: 1px solid var(--gold, #d4a017); background: var(--soft, rgba(255, 255, 255, .05)); display: flex; flex-direction: column; gap: .4rem; }
.am-gate b { font-size: 1.05rem; }
.am-gate p { margin: 0; color: var(--muted, #8a9a90); font-size: .92rem; }
.am-gate .btn { align-self: flex-start; margin-top: 4px; }

/* ───────── Ficha: «💲 Precio de esta reserva» (solo ADMIN) y la etiqueta «No paga» ───────── */
.rsv-price { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border, var(--line, #2b3a31)); }
.rsv-price-title { margin: 0 0 .4rem; font-size: .95rem; font-weight: 800; color: var(--text-cream, var(--cream, inherit)); }
.rsv-price-now { margin: 0 0 .5rem; font-size: .88rem; color: var(--text-muted, var(--muted, #8a9a90)); }
.rsv-price-now b { color: var(--gold-light, var(--gold, #d4a017)); font-family: var(--font-mono, ui-monospace, monospace); }
.rsv-price-block { margin: 0; padding: .55rem .75rem; border-radius: 10px; border: 1px dashed var(--border, var(--line, #2b3a31)); font-size: .84rem; color: var(--text-muted, var(--muted, #8a9a90)); }
.rsv-price-form label[for="precio-total"] { display: block; margin: 0 0 .25rem; font-size: .8rem; font-weight: 700; color: var(--text-muted, var(--muted, #8a9a90)); }
.rsv-price-total { display: flex; align-items: center; gap: .35rem; max-width: 14rem; }
.rsv-price-total span { font-weight: 800; color: var(--gold-light, var(--gold, #d4a017)); }
.rsv-price-total input { flex: 1; min-width: 0; min-height: 44px; font-size: 1.05rem; font-weight: 700; font-family: var(--font-mono, ui-monospace, monospace); }
.rsv-price-hint { margin: .3rem 0 .5rem; font-size: .76rem; color: var(--text-faint, var(--muted, #8a9a90)); }
.rsv-price-list { list-style: none; margin: .3rem 0 .5rem; padding: 0; display: grid; gap: .35rem; }
.rsv-price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .3rem .7rem; padding: .45rem .6rem; border-radius: 10px; border: 1px solid var(--border, var(--line, #2b3a31)); font-size: .86rem; }
.rsv-price-who { min-width: 0; overflow-wrap: anywhere; }
.rsv-price-who .muted { font-size: .78rem; }
.rsv-price-amt { font-family: var(--font-mono, ui-monospace, monospace); font-weight: 700; color: var(--text-cream, var(--cream, inherit)); }
.rsv-price-np { display: inline-flex; align-items: center; gap: .35rem; margin: 0; min-height: 44px; font-size: .82rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rsv-price-np input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--gold, #d4a017); }
.rsv-price-fixed { font-size: .76rem; color: var(--text-faint, var(--muted, #8a9a90)); white-space: nowrap; }
.rsv-price-prev { margin: .2rem 0 .5rem; font-size: .84rem; font-weight: 700; color: var(--text-muted, var(--muted, #8a9a90)); min-height: 1.2em; }
.rsv-price-prev.is-ok { color: var(--green-light, #2e9e5b); }
.rsv-price-prev.is-err { color: var(--danger, #e53935); }
.rsv-price-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.rsv-price-actions .btn { min-height: 44px; }
.rsv-price-actions .btn[hidden] { display: none; }
@media (max-width: 520px) {
  .rsv-price-row { grid-template-columns: minmax(0, 1fr) auto; }
  .rsv-price-row .rsv-price-np, .rsv-price-row .rsv-price-fixed { grid-column: 1 / -1; }
  .rsv-price-total { max-width: none; }
  .rsv-price-actions .btn { flex: 1 1 100%; }
}
.ps-tag-pill.is-nopaga { color: var(--danger, #e53935); border-color: color-mix(in srgb, var(--danger, #e53935) 45%, transparent); background: color-mix(in srgb, var(--danger, #e53935) 10%, transparent); }

/* Invitar jugadores (enlace privado de una reserva propia): panel bajo la tarjeta, enlace seleccionable y lista de quienes ya se sumaron con «Quitar». */
.rc-invite { margin-top: .7rem; padding-top: .6rem; border-top: 1px dashed var(--border, rgba(255,255,255,.16)); }
.rc-inv-url { display: block; margin: .45rem 0; padding: .45rem .6rem; border-radius: 8px; background: rgba(255,255,255,.06); font-size: .78rem; overflow-wrap: anywhere; user-select: all; }
.rc-inv-guests { list-style: none; margin: .35rem 0 0; padding: 0; display: grid; gap: .35rem; }
.rc-inv-guests li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.rc-inv-guests li > span { flex: 1; min-width: 0; }
