/* Kinesiomas · Evento por QR — estilos compartidos (página del público, panel y cartel).
   Fondo claro a propósito: se usa al aire libre, al sol, y una pantalla oscura refleja más. */

:root {
  color-scheme: light;
  --bg: #F3F6FB;
  --surface: #FFFFFF;
  --surface-2: #F7F9FC;
  --ink: #0B1B3A;
  --ink-2: #3A4A63;
  --ink-3: #5B6B82;
  --line: #D9E1EC;
  --line-2: #C3CFDF;
  --brand: #0067FF;
  --brand-press: #0052CC;
  --brand-deep: #0A3FB8;
  --brand-soft: #E7F0FF;
  --brand-line: #B9D2FF;
  --teal: #0E7C86;
  --teal-soft: #E3F4F5;
  --ok: #157A3E;
  --ok-soft: #E6F6EC;
  --warn: #9A4A00;
  --warn-soft: #FFF2DF;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 27, 58, .06), 0 6px 18px rgba(11, 27, 58, .06);
  --shadow-lg: 0 2px 4px rgba(11, 27, 58, .06), 0 18px 40px rgba(11, 27, 58, .12);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --t: 220ms;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: var(--brand-press); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.sm { width: 18px; height: 18px; }
.ico.lg { width: 28px; height: 28px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* ---------- Cabecera de marca ---------- */
.top {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(120, 180, 255, .45) 0%, rgba(120, 180, 255, 0) 55%),
    linear-gradient(160deg, #0A3FB8 0%, #0057E6 45%, #0067FF 100%);
  padding: 14px 16px 30px;
}
.top::after { /* curvas de nivel: el terreno de la carrera */
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/curvas.svg") right -70px bottom -70px / 480px auto no-repeat;
  opacity: .3;
  pointer-events: none;
}
.top-bar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 560px; margin: 0 auto; }
.top-logo { height: 46px; width: auto; }
.top-body { position: relative; z-index: 1; max-width: 560px; margin: 18px auto 0; }
.chip-evento {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
}
.chip-evento .dot { width: 8px; height: 8px; border-radius: 50%; background: #7CFFB2; box-shadow: 0 0 0 4px rgba(124, 255, 178, .25); }
.top h1 { margin: 14px 0 6px; font-size: clamp(28px, 8vw, 36px); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
.top p { margin: 0; font-size: 17px; color: rgba(255, 255, 255, .9); max-width: 34ch; }

body.compacto .top { padding-bottom: 28px; }
body.compacto .top h1, body.compacto .top p { display: none; }
body.compacto .top-body { margin-top: 12px; }
.idioma { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26); }
.idioma button {
  min-width: 44px; min-height: 36px; padding: 0 10px;
  border: 0; border-radius: 999px; background: transparent; color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
}
.idioma button[aria-pressed="true"] { background: #fff; color: var(--brand-deep); }

/* ---------- Estructura ---------- */
main { max-width: 560px; margin: -18px auto 0; padding: 0 16px calc(120px + var(--safe-b)); position: relative; z-index: 2; }
.pantalla { display: none; }
.pantalla.activa { display: block; animation: entrar var(--t) var(--ease-out) both; }
.pantalla.activa.atras { animation-name: entrar-atras; }
@keyframes entrar { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes entrar-atras { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; }
.card + .card, .card + .bloque, .bloque + .card, .bloque + .bloque { margin-top: 14px; }
.titulo { margin: 0 0 4px; font-size: 22px; line-height: 1.2; letter-spacing: -.015em; font-weight: 800; }
.bajada { margin: 0 0 16px; color: var(--ink-2); font-size: 16px; }
.etiqueta { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

.volver {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px 0 10px; margin: 0 0 10px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow);
}
.volver:active { transform: scale(.97); }

.pasos { display: flex; gap: 6px; margin: 0 0 14px; }
.pasos span { flex: 1; height: 5px; border-radius: 99px; background: var(--line); }
.pasos span.hecho { background: var(--brand); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 20px;
  border: 0; border-radius: var(--r);
  font-size: 18px; font-weight: 700; letter-spacing: -.005em; text-decoration: none;
  transition: transform 120ms ease-out, background-color var(--t) ease, box-shadow var(--t) ease, opacity var(--t) ease;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primario { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(0, 103, 255, .28); }
.btn-primario:hover { background: var(--brand-press); }
.btn-secundario { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-secundario:hover { border-color: var(--brand); color: var(--brand-press); }
.btn-ok { background: var(--ok); color: #fff; box-shadow: 0 6px 16px rgba(21, 122, 62, .25); }
.btn-chico { width: auto; min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn + .btn { margin-top: 10px; }
.btn .spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Pregunta inicial: dos decisiones ---------- */
.decision { display: grid; gap: 12px; }
.decision button {
  display: grid; grid-template-columns: 52px 1fr 20px; align-items: center; gap: 14px;
  width: 100%; min-height: 84px; padding: 14px 16px; text-align: left;
  border-radius: var(--r-lg); border: 1.5px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow);
  transition: transform 120ms ease-out, border-color var(--t) ease, background-color var(--t) ease;
}
.decision button:active { transform: scale(.985); }
.decision button:hover { border-color: var(--brand-line); }
.decision .marca { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); }
.decision .principal { border-color: var(--brand); background: linear-gradient(180deg, #fff 0%, var(--brand-soft) 140%); }
.decision .principal .marca { background: var(--brand); color: #fff; }
.decision strong { display: block; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.decision small { display: block; margin-top: 3px; color: var(--ink-2); font-size: 15px; line-height: 1.35; }
.decision .flecha { color: var(--ink-3); }

/* ---------- Tratamientos ---------- */
.servicios { display: grid; gap: 10px; }
.servicio {
  position: relative; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px;
  width: 100%; padding: 14px; text-align: left;
  border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface);
  transition: border-color var(--t) ease, background-color var(--t) ease, box-shadow var(--t) ease;
}
.servicio .marca { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.servicio[data-servicio="recuperacion"] .marca { background: var(--teal-soft); color: var(--teal); }
.servicio strong { display: block; font-size: 17px; line-height: 1.25; }
.servicio small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 14.5px; line-height: 1.35; }
.servicio .precio { text-align: right; font-family: var(--font); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 18px; white-space: nowrap; }
.servicio .precio span { display: block; font-family: var(--font); font-weight: 500; font-size: 13px; color: var(--ink-3); }
button.servicio[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(0, 103, 255, .14); }
button.servicio[aria-pressed="true"]::after {
  content: ""; position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat;
  box-shadow: 0 0 0 3px var(--surface);
}
.servicios.info .servicio { grid-template-columns: 44px 1fr auto; padding: 12px; }
.servicios.info .servicio .marca { width: 44px; height: 44px; }

/* ---------- Monto y datos para copiar ---------- */
.monto { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px; margin: 0 0 14px; border-radius: var(--r); background: var(--ink); color: #fff; }
.monto small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.monto strong { display: block; font-family: var(--font); font-variant-numeric: tabular-nums; font-size: 36px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.monto .que { font-size: 15px; color: rgba(255, 255, 255, .85); margin-top: 4px; }

.segmentos { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.segmentos button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 6px; border: 0; border-radius: 10px; background: transparent;
  font-size: 15px; font-weight: 700; color: var(--ink-2);
  transition: background-color var(--t) ease, color var(--t) ease, box-shadow var(--t) ease;
}
.segmentos button[aria-selected="true"] { background: var(--surface); color: var(--brand-press); box-shadow: 0 1px 2px rgba(11, 27, 58, .1), 0 0 0 1px var(--line); }

.datos { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.dato { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; background: var(--surface); }
.dato + .dato { border-top: 1px solid var(--line); }
.dato small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.dato strong { display: block; font-size: 18px; line-height: 1.3; word-break: break-word; }
.dato.grande strong { font-size: 24px; letter-spacing: .02em; }
.copiar {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; min-width: 96px; padding: 0 14px; justify-content: center;
  border: 1.5px solid var(--brand-line); border-radius: 12px; background: var(--brand-soft);
  color: var(--brand-press); font-size: 15px; font-weight: 700;
  transition: background-color var(--t) ease, color var(--t) ease, border-color var(--t) ease, transform 120ms ease-out;
}
.copiar:active { transform: scale(.96); }
.copiar.listo { background: var(--ok); border-color: var(--ok); color: #fff; }
.copiar-todo { margin-top: 10px; }

.instrucciones { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: paso; }
.instrucciones li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 16px; color: var(--ink-2); }
.instrucciones li::before { counter-increment: paso; content: counter(paso); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-press); font-weight: 800; font-size: 14px; }

.aviso { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
.aviso.info { background: var(--brand-soft); color: var(--brand-deep); }
.aviso.atencion { background: var(--warn-soft); color: var(--warn); }
.aviso.bien { background: var(--ok-soft); color: var(--ok); }
.aviso + * { margin-top: 12px; }
* + .aviso { margin-top: 12px; }

/* ---------- Formularios ---------- */
.campo { display: block; margin: 0 0 14px; }
.campo label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.campo input {
  width: 100%; min-height: 54px; padding: 0 16px;
  border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface);
  font-size: 18px; transition: border-color var(--t) ease, box-shadow var(--t) ease;
}
.campo input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 103, 255, .15); }
.campo input[aria-invalid="true"] { border-color: var(--danger); }
.campo .ayuda { margin: 6px 0 0; font-size: 14px; color: var(--ink-3); }
.campo .error { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 16px;
}
.chips button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-press); }

/* ---------- Horarios ---------- */
.resumen-servicio { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin: 0 0 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.resumen-servicio strong { font-size: 16px; }
.resumen-servicio small { display: block; color: var(--ink-3); font-size: 14px; }
.dias { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 2px; }
.dias button { flex: none; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 15px; }
.dias button[aria-selected="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.franja { margin: 4px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.franja:not(:first-child) { margin-top: 16px; }
.horarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hora {
  display: grid; place-items: center; gap: 0; min-height: 60px; padding: 6px 4px;
  border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface);
  transition: transform 120ms ease-out, border-color var(--t) ease, background-color var(--t) ease, color var(--t) ease;
}
.hora strong { font-size: 19px; font-weight: 700; line-height: 1.1; }
.hora small { font-size: 12.5px; font-weight: 600; color: var(--ok); }
.hora:active { transform: scale(.96); }
.hora[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 6px 14px rgba(0, 103, 255, .3); }
.hora[aria-pressed="true"] small { color: rgba(255, 255, 255, .9); }
.hora[disabled] { cursor: not-allowed; background: var(--surface-2); border-style: dashed; color: var(--ink-3); transform: none; }
.hora[disabled] strong { text-decoration: line-through; text-decoration-thickness: 1.5px; font-weight: 600; }
.hora[disabled] small { color: var(--ink-3); }
.esqueleto { min-height: 60px; border-radius: 14px; background: linear-gradient(90deg, #E8EDF5 0%, #F4F7FB 50%, #E8EDF5 100%); background-size: 200% 100%; animation: brillo 1.2s ease-in-out infinite; }
@keyframes brillo { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.vacio { padding: 18px; text-align: center; color: var(--ink-2); border: 1.5px dashed var(--line-2); border-radius: var(--r); }
.leyenda { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 0; font-size: 14px; color: var(--ink-3); }
.link-boton { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--brand-press); font-weight: 700; font-size: 15px; }

/* ---------- Barra fija de confirmación ---------- */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11, 27, 58, .08);
  transform: translateY(110%); transition: transform 260ms var(--ease-out);
}
.barra.visible { transform: none; }
.barra-in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.barra-in small { display: block; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.barra-in strong { display: block; font-size: 18px; line-height: 1.2; }
.barra .btn { width: auto; min-width: 150px; }

/* ---------- Comprobante ---------- */
.ticket { position: relative; overflow: hidden; padding: 0; }
.ticket-cabeza { padding: 22px 20px 18px; text-align: center; background: linear-gradient(160deg, #0F8A49 0%, #157A3E 100%); color: #fff; }
.ticket-cabeza .check { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); animation: latido 600ms var(--ease-out) both; }
@keyframes latido { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.ticket-cabeza h2 { margin: 0; font-size: 24px; letter-spacing: -.015em; }
.ticket-cabeza p { margin: 4px 0 0; color: rgba(255, 255, 255, .92); }
.ticket-hora { padding: 18px 20px 6px; text-align: center; }
.ticket-hora small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ticket-hora strong { display: block; font-size: 52px; line-height: 1; margin-top: 6px; letter-spacing: -.02em; }
.ticket-hora span { display: block; margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.ticket-corte { position: relative; height: 22px; margin: 10px 0; }
.ticket-corte::before { content: ""; position: absolute; left: 20px; right: 20px; top: 50%; border-top: 2px dashed var(--line-2); }
.ticket-corte::after { content: ""; position: absolute; inset: 0 -11px; background: radial-gradient(circle at 0 50%, var(--bg) 11px, transparent 12px), radial-gradient(circle at 100% 50%, var(--bg) 11px, transparent 12px); }
.ticket-filas { padding: 0 20px 20px; display: grid; gap: 10px; }
.ticket-fila { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.ticket-fila span { color: var(--ink-3); }
.ticket-fila strong { text-align: right; }
.mis-reservas { display: grid; gap: 8px; }
.mi-reserva { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--ok); background: var(--ok-soft); text-align: left; }
.mi-reserva strong { display: flex; align-items: center; gap: 6px; font-size: 16px; color: var(--ok); }
.mi-reserva small { display: block; font-size: 14px; color: var(--ink-2); }

/* ---------- Mensaje flotante ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); z-index: 60;
  width: min(92vw, 520px); padding: 14px 16px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: transform 240ms var(--ease-out), opacity 200ms ease;
}
.toast.visible { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: var(--danger); }

.pie { max-width: 560px; margin: 28px auto 0; padding: 0 16px; text-align: center; color: var(--ink-3); font-size: 14px; }
.pie img { height: 22px; width: auto; margin: 0 auto 8px; opacity: .9; }

@media (min-width: 420px) { .horarios { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ================= Panel de Pablo ================= */
.panel main { max-width: 760px; }
.panel .top-bar, .panel .top-body { max-width: 760px; }
.panel-titulo { margin: 12px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.panel-sub { margin: 2px 0 0; color: rgba(255, 255, 255, .85); font-size: 15px; }
.salir { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; font-size: 14px; }
.pin-input { text-align: center; font-family: var(--mono); font-size: 30px !important; letter-spacing: .4em; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat small { display: block; font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.stat strong { display: block; margin-top: 2px; font-size: 28px; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat.alerta strong { color: var(--warn); }
.stat.bien strong { color: var(--ok); }

.filtros { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; margin: 16px 0 10px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtros button { flex: none; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.filtros button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filtros .cuenta { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; }
.filtros button[aria-pressed="true"] .cuenta { background: rgba(255, 255, 255, .2); color: #fff; }

.grupo-titulo { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fila-reserva {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start;
  padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  border-left: 5px solid var(--brand);
}
.fila-reserva + .fila-reserva { margin-top: 8px; }
.fila-reserva[data-servicio="recuperacion"] { border-left-color: var(--teal); }
.fila-reserva.cancelada { opacity: .6; border-left-color: var(--line-2); }
.fila-reserva.cancelada .r-nombre { text-decoration: line-through; }
.fila-reserva.nueva { animation: nueva 2.4s ease-out; }
@keyframes nueva { 0%, 30% { box-shadow: 0 0 0 4px rgba(0, 103, 255, .45); } 100% { box-shadow: var(--shadow); } }
.fila-reserva.ahora { box-shadow: 0 0 0 3px rgba(21, 122, 62, .35), var(--shadow); }
.r-hora { font-family: var(--mono); font-weight: 700; font-size: 22px; line-height: 1.1; }
.r-hora small { display: block; font-family: var(--font); font-weight: 600; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.r-nombre { font-size: 18px; font-weight: 800; line-height: 1.25; }
.r-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.r-meta a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-weight: 700; text-decoration: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 99px; font-size: 13.5px; font-weight: 700; }
.badge.alerta { background: var(--warn-soft); color: var(--warn); }
.badge.bien { background: var(--ok-soft); color: var(--ok); }
.badge.gris { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); }
.badge.servicio-b { background: var(--brand-soft); color: var(--brand-deep); }
.badge.servicio-r { background: var(--teal-soft); color: var(--teal); }
.r-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.r-acciones .btn { flex: 1 1 0; width: auto; min-width: 0; min-height: 46px; padding: 0 10px; gap: 6px; font-size: 15px; border-radius: 12px; white-space: nowrap; }
.r-acciones .btn + .btn { margin-top: 0; }
.btn-peligro { background: var(--surface); color: var(--danger); border: 1.5px solid #F2C4BF; }
.btn-peligro:hover { background: var(--danger-soft); }
.estado-vivo { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.estado-vivo .pulso { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(21, 122, 62, .5); animation: pulso 2s infinite; }
.estado-vivo.caido .pulso { background: var(--danger); animation: none; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(21, 122, 62, .45); } 70% { box-shadow: 0 0 0 10px rgba(21, 122, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(21, 122, 62, 0); } }
