/* ═══════════════════════════════════════════════════════════════
   MONTE CLUB · Sistema de reservas
   Marca: verde #a0b135 + negro (Manual de Identidad Visual)
   Display: Anton (sustituto web de Impact) · Texto: Montserrat
   Firma visual: el "cartel" del logo (placa negra inclinada,
   borde verde y sombra desplazada). Se usa en UN lugar: el turno
   elegido. Todo lo demás queda sobrio.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  color-scheme: light dark;

  /* Marca (fijos en ambos modos) */
  --verde: #a0b135;          /* fondo de acciones. Texto negro encima: 8,8:1 */
  --negro: #000;
  --carbon: #1a1a1a;

  /* Semánticos · modo claro */
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #eeeeee;
  --text: #111111;
  --text-2: #5c5c5c;         /* 6,7:1 sobre blanco */
  --text-off: #767676;       /* 4,5:1 sobre blanco */
  --verde-texto: #4f5c0f;    /* verde para texto sobre claro: 7,3:1 */
  --linea: rgba(0, 0, 0, 0.12);
  --linea-fuerte: rgba(0, 0, 0, 0.28);
  --error: #b3261e;          /* 6,5:1 */
  --sombra: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --velo: rgba(0, 0, 0, 0.45);
  --material: rgba(245, 245, 245, 0.82);

  /* Tipografía */
  --f-display: "Anton", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --f-texto: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-body: 1.0625rem;       /* 17px, tamaño base de iOS */
  --t-callout: 1rem;
  --t-foot: 0.8125rem;       /* 13px */
  --t-caption: 0.75rem;      /* 12px, mínimo */

  /* Espacios y formas */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r-s: 10px; --r-m: 14px; --r-l: 22px;
  --toque: 44px;             /* objetivo táctil mínimo */
  --ancho: 960px;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0d;
    --surface: #1a1a1a;      /* el gris de la marca */
    --surface-2: #262626;
    --text: #f2f2f2;         /* 15,6:1 */
    --text-2: #a6a6a6;       /* 7,2:1 */
    --text-off: #8f8f8f;
    --verde-texto: #a0b135;  /* 7,3:1 sobre #1a1a1a */
    --linea: rgba(255, 255, 255, 0.12);
    --linea-fuerte: rgba(255, 255, 255, 0.3);
    --error: #ff8a80;        /* 7,6:1 */
    --sombra: none;
    --velo: rgba(0, 0, 0, 0.65);
    --material: rgba(13, 13, 13, 0.8);
  }
}

@media (prefers-contrast: more) {
  :root {
    --text-2: var(--text);
    --linea: var(--linea-fuerte);
  }
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-texto);
  font-size: var(--t-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--verde-texto); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 50;
  background: var(--verde); color: var(--negro); padding: var(--s3) var(--s4);
  border-radius: var(--r-s); font-weight: 700; text-decoration: none;
}
.skip:focus { top: var(--s4); }

.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
}
.title-2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

/* ── Encabezado ─────────────────────────────────────────────── */
/* Siempre negro: es la "base gráfica" de la marca */
.hero {
  background: var(--negro);
  color: #fff;
  padding: calc(var(--s5) + env(safe-area-inset-top)) var(--s4) var(--s5);
}
.hero-inner {
  max-width: var(--ancho);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.hero-logo {
  width: 124px;              /* ≈ 3,3 cm: arriba del mínimo del manual (3 cm) */
  height: auto;
  flex: none;
}
.hero-text .display {
  font-size: clamp(2rem, 9vw, 3.5rem);
  color: #fff;
}
.hero-sub {
  margin: var(--s2) 0 0;
  font-size: var(--t-foot);
  font-weight: 500;
  color: #bdbdbd;            /* 11,3:1 sobre negro */
}

/* ── Selector de día ────────────────────────────────────────── */
/* Barra flotante funcional: el único lugar con material translúcido */
.dias {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--material);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--linea);
}
@media (prefers-reduced-transparency: reduce) {
  .dias { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.dias-scroll {
  max-width: var(--ancho);
  margin: 0 auto;
  display: flex;
  gap: var(--s2);
  padding: var(--s3) var(--s4);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.dias-scroll::-webkit-scrollbar { display: none; }

.dia {
  flex: none;
  scroll-snap-align: start;
  min-width: 64px;
  min-height: 60px;
  padding: var(--s2) var(--s3);
  border-radius: var(--r-m);
  border: 1px solid var(--linea);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.dia-nombre {
  font-size: var(--t-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.dia-num {
  font-family: var(--f-display);
  font-size: 1.5rem;
  line-height: 1;
}
.dia[aria-pressed="true"] {
  background: var(--verde);
  border-color: var(--negro);
  color: var(--negro);
}
.dia[aria-pressed="true"] .dia-nombre { color: var(--negro); }
@media (hover: hover) {
  .dia:not([aria-pressed="true"]):hover { border-color: var(--linea-fuerte); }
}

/* ── Grilla de turnos ───────────────────────────────────────── */
.wrap {
  flex: 1;
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: var(--s5) var(--s4) var(--s7);
}
.dia-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s1) var(--s4);
  margin-bottom: var(--s4);
}
.tarifa {
  margin: 0;
  font-size: var(--t-foot);
  color: var(--text-2);
}
.tarifa strong { color: var(--text); font-weight: 700; }

.grilla {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
}
@media (min-width: 640px) { .grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); } }

.turno {
  position: relative;
  text-align: left;
  min-height: 112px;
  padding: var(--s4);
  border-radius: var(--r-l);
  border: 1.5px solid var(--linea);
  background: var(--surface);
  box-shadow: var(--sombra);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 2px;
  transition: transform .15s var(--ease), border-color .2s var(--ease);
}
.turno-hora {
  font-family: var(--f-display);
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
.turno-fin {
  font-size: var(--t-foot);
  font-weight: 500;
  color: var(--text-2);
}
.turno-estado {
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s3);
  font-size: var(--t-foot);
  font-weight: 700;
}
/* Punto + palabra: el estado nunca depende solo del color */
.turno-estado::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.turno[data-estado="libre"] .turno-estado { color: var(--verde-texto); }
.turno[data-estado="libre"] .turno-estado::before { background: var(--verde); box-shadow: 0 0 0 1.5px var(--negro); }

@media (hover: hover) {
  .turno[data-estado="libre"]:hover { border-color: var(--verde); }
}
.turno[data-estado="libre"]:active { transform: scale(.97); }

.turno[data-estado="ocupado"],
.turno[data-estado="pasado"] {
  background: var(--surface-2);
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
}
.turno[data-estado="ocupado"] .turno-hora,
.turno[data-estado="pasado"] .turno-hora { color: var(--text-off); }
.turno[data-estado="ocupado"] .turno-estado,
.turno[data-estado="pasado"] .turno-estado { color: var(--text-off); }
.turno[data-estado="ocupado"] .turno-estado::before { border-radius: 2px; } /* cuadrado = ocupado */
.turno[data-estado="pasado"] .turno-estado::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* Cargando */
.turno-skel {
  min-height: 112px;
  border-radius: var(--r-l);
  background: var(--surface-2);
  animation: pulso 1.2s ease-in-out infinite;
}
@keyframes pulso { 50% { opacity: .5; } }

.nota-dia, .estado-error {
  margin: var(--s5) 0 0;
  text-align: center;
  color: var(--text-2);
  font-size: var(--t-callout);
}
.estado-error { grid-column: 1 / -1; padding: var(--s6) var(--s4); }
.estado-error .btn-secundario { margin: var(--s4) auto 0; width: auto; padding-inline: var(--s5); }

.pie {
  padding: var(--s5) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom));
  text-align: center;
  font-size: var(--t-foot);
  color: var(--text-2);
  border-top: 1px solid var(--linea);
}
.pie p { margin: 0; }

/* ── Botones ────────────────────────────────────────────────── */
/* Primario: estilo "sticker" del logo (borde negro + sombra dura) */
.btn-primario {
  width: 100%;
  min-height: 54px;
  padding: 0 var(--s5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  border: 2px solid var(--negro);
  border-radius: var(--r-m);
  background: var(--verde);
  color: var(--negro);
  font-weight: 700;
  font-size: var(--t-body);
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--negro);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), opacity .2s;
}
.btn-primario:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--negro); }
.btn-primario:disabled {
  background: var(--surface-2);
  color: var(--text-off);
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
}
@media (prefers-color-scheme: dark) {
  .btn-primario { box-shadow: 3px 3px 0 #4f5c0f; }
  .btn-primario:active:not(:disabled) { box-shadow: 1px 1px 0 #4f5c0f; }
}
.btn-primario[aria-busy="true"] { cursor: progress; }
.btn-primario[aria-busy="true"] .btn-label::after {
  content: "";
  display: inline-block;
  width: 16px; height: 16px; margin-left: 10px;
  vertical-align: -2px;
  border: 2.5px solid currentColor; border-right-color: transparent;
  border-radius: 50%;
  animation: girar .7s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

.btn-secundario {
  width: 100%;
  min-height: 50px;
  padding: 0 var(--s4);
  border: 1.5px solid var(--linea-fuerte);
  border-radius: var(--r-m);
  background: transparent;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.btn-text {
  min-height: var(--toque);
  min-width: var(--toque);
  padding: 0 var(--s2);
  margin-left: calc(var(--s2) * -1);
  border: 0;
  background: none;
  color: var(--verde-texto);
  font-weight: 600;
  font-size: var(--t-body);
  text-align: left;
}
.btn-copiar {
  min-height: 36px;
  padding: 0 var(--s3);
  border-radius: 999px;
  border: 1.5px solid var(--linea-fuerte);
  background: var(--surface);
  font-size: var(--t-foot);
  font-weight: 700;
  position: relative;
}
.btn-copiar::after { content: ""; position: absolute; inset: -6px; } /* área táctil ≥ 44px */
.btn-copiar[data-ok] { background: var(--verde); color: var(--negro); border-color: var(--negro); }

/* ── Hoja (sheet) ───────────────────────────────────────────── */
.sheet {
  border: 0;
  padding: 0;
  margin: auto auto 0;
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 24px);
  border-radius: var(--r-l) var(--r-l) 0 0;
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.sheet[open] { display: flex; animation: subir .32s var(--ease); }
.sheet::backdrop { background: var(--velo); animation: aparecer .32s var(--ease); }
@keyframes subir { from { transform: translateY(100%); } }
@keyframes aparecer { from { opacity: 0; } }

@media (min-width: 640px) {
  .sheet { margin: auto; border-radius: var(--r-l); max-height: min(760px, calc(100dvh - 48px)); }
  .sheet[open] { animation-name: escalar; }
  @keyframes escalar { from { transform: scale(.96); opacity: 0; } }
  .sheet-grabber { display: none; }
}

.sheet-grabber {
  width: 36px; height: 5px;
  margin: var(--s2) auto 0;
  border-radius: 3px;
  background: var(--linea-fuerte);
  flex: none;
}
.sheet-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--s1) var(--s4) 0;
  flex: none;
  touch-action: none;
}
.sheet-paso {
  margin: 0;
  font-size: var(--t-foot);
  font-weight: 600;
  color: var(--text-2);
}
.pasos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: var(--s2) var(--s4) 0;
  flex: none;
}
.paso-seg { height: 4px; border-radius: 2px; background: var(--surface-2); transition: background-color .3s var(--ease); }
.paso-seg.on { background: var(--verde); }

.sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s5) var(--s4) calc(var(--s4) + env(safe-area-inset-bottom));
}
.paso { display: flex; flex-direction: column; gap: var(--s4); }
.paso[hidden] { display: none; }

/* La firma: el cartel del logo con el turno elegido */
.cartel {
  --borde: var(--verde);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "dia dia" "hora fin";
  align-items: end;
  column-gap: var(--s3);
  width: max-content;
  max-width: 100%;
  margin: 0 0 var(--s5) var(--s1);
  padding: var(--s3) var(--s5) var(--s3) var(--s4);
  background: var(--negro);
  color: #fff;
  border: 2px solid var(--borde);
  border-radius: 12px;
  box-shadow: 5px 6px 0 #3a3a3a;
  transform: rotate(-3deg);
}
@media (prefers-color-scheme: dark) { .cartel { box-shadow: 5px 6px 0 #000, 5px 6px 0 2px #333; } }
.cartel-dia {
  grid-area: dia;
  font-size: var(--t-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #d4d4d4;
}
.cartel-hora {
  grid-area: hora;
  font-family: var(--f-display);
  font-size: 3.25rem;
  line-height: .95;
  color: var(--verde);         /* 8,8:1 sobre negro */
  transform: skewX(-8deg);     /* la cursiva del logo */
}
.cartel-fin {
  grid-area: fin;
  padding-bottom: 6px;
  font-size: var(--t-foot);
  font-weight: 600;
  color: #d4d4d4;
}

/* Formulario */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label, .campo .label { font-size: var(--t-foot); font-weight: 700; }
.campo :is(input[type="text"], input[type="password"]),
.input-prefijo {
  min-height: 52px;
  border-radius: var(--r-s);
  border: 1.5px solid var(--linea-fuerte);
  background: var(--bg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.campo :is(input[type="text"], input[type="password"]) { padding: 0 var(--s4); font-size: max(16px, var(--t-body)); }
.campo input::placeholder { color: var(--text-off); }
.campo :is(input[type="text"], input[type="password"]):focus,
.input-prefijo:focus-within {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(160, 177, 53, .35);
}
.input-prefijo { display: flex; align-items: center; }
.input-prefijo span {
  padding: 0 var(--s3) 0 var(--s4);
  color: var(--text-2);
  font-weight: 600;
  border-right: 1px solid var(--linea);
}
.input-prefijo input {
  flex: 1; min-width: 0; height: 100%; min-height: 48px;
  border: 0; background: none; outline: none;
  padding: 0 var(--s4) 0 var(--s3);
  font-size: max(16px, var(--t-body));
  letter-spacing: .02em;
}
.campo-ayuda { margin: 0; font-size: var(--t-foot); color: var(--text-2); }
.campo-error { margin: 0; font-size: var(--t-foot); font-weight: 600; color: var(--error); }
.campo[data-invalido] input[type="text"],
.campo[data-invalido] .input-prefijo { border-color: var(--error); }

.resumen {
  margin: 0;
  border-radius: var(--r-m);
  background: var(--bg);
  padding: var(--s1) var(--s4);
}
.resumen div {
  display: flex; justify-content: space-between; gap: var(--s4);
  padding: var(--s3) 0;
  font-size: var(--t-callout);
}
.resumen div + div { border-top: 1px solid var(--linea); }
.resumen dt { color: var(--text-2); }
.resumen dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.resumen-fuerte { font-weight: 700 !important; }

.sheet-acciones { margin-top: var(--s2); display: grid; gap: var(--s3); }

/* Pago */
.monto {
  margin: calc(var(--s2) * -1) 0 0;
  display: flex; flex-direction: column;
}
.monto span {
  font-family: var(--f-display);
  font-size: 2.75rem;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.monto small { font-size: var(--t-foot); color: var(--text-2); }

.datos-pago {
  list-style: none; margin: 0; padding: 0;
  border-radius: var(--r-m);
  border: 1px solid var(--linea);
  overflow: hidden;
}
.datos-pago li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: var(--s3);
  min-height: 56px;
  padding: var(--s2) var(--s4);
}
.datos-pago li + li { border-top: 1px solid var(--linea); }
.dp-label { font-size: var(--t-foot); color: var(--text-2); }
.dp-valor { font-weight: 700; overflow-wrap: anywhere; font-size: var(--t-callout); }
.dp-mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; font-size: .9375rem; }

.subir {
  position: relative;
  display: flex; align-items: center; gap: var(--s3);
  min-height: 76px;
  padding: var(--s3) var(--s4);
  border-radius: var(--r-m);
  border: 2px dashed var(--linea-fuerte);
  background: var(--bg);
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.subir input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.subir:focus-within { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(160,177,53,.35); }
@media (hover: hover) { .subir:hover { border-color: var(--verde); } }
.subir-icono {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--text);
}
.subir-texto { display: flex; flex-direction: column; min-width: 0; }
.subir-texto strong { font-size: var(--t-callout); overflow-wrap: anywhere; }
.subir-texto small { font-size: var(--t-foot); color: var(--text-2); }
.subir-preview {
  margin-left: auto; flex: none;
  width: 52px; height: 52px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--linea);
}
.subir[data-cargado] { border-style: solid; border-color: var(--verde); }
.subir[data-cargado] .subir-icono { background: var(--verde); color: var(--negro); }

.error-envio {
  margin: 0;
  padding: var(--s3) var(--s4);
  border-radius: var(--r-s);
  border: 1.5px solid var(--error);
  color: var(--error);
  font-size: var(--t-callout);
  font-weight: 600;
}

/* Listo */
.listo { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.listo-check {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--verde); color: var(--negro);
  border: 2px solid var(--negro);
}
.listo-sub { margin: 0; color: var(--text-2); font-size: var(--t-callout); }
.listo-sub strong { color: var(--text); letter-spacing: .04em; }

.ultimo-paso {
  display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s4);
  border-radius: var(--r-m);
  background: var(--bg);
  border: 1px solid var(--linea);
}
.ultimo-paso p { margin: 0; font-size: var(--t-callout); }
.ultimo-titulo {
  font-size: var(--t-caption) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--verde-texto);
}

/* ── Movimiento reducido ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, .sheet::backdrop {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .turno[data-estado="libre"]:active { transform: none; }
  .turno-skel { animation: none; }
}

/* ── Panel admin ────────────────────────────────────────────── */
.admin-login { max-width: 360px; margin: var(--s7) auto; display: grid; gap: var(--s4); }
.admin-barra {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3);
  margin-bottom: var(--s4);
}
.admin-barra input[type="date"] {
  min-height: var(--toque);
  padding: 0 var(--s3);
  border-radius: var(--r-s);
  border: 1.5px solid var(--linea-fuerte);
  background: var(--surface);
}
.admin-barra .btn-secundario { width: auto; min-height: var(--toque); padding-inline: var(--s4); }
.admin-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.admin-fila {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: var(--s2) var(--s4);
  padding: var(--s4);
  border-radius: var(--r-m);
  background: var(--surface);
  border: 1px solid var(--linea);
}
.admin-fila .turno-hora { font-size: 1.75rem; }
.admin-hora { display: flex; flex-direction: column; }
.admin-fila[data-pasado] { opacity: .6; }
.admin-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: var(--t-callout); }
.admin-info a { font-weight: 600; }
.admin-acciones { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s2); }
.admin-acciones button, .admin-acciones a {
  min-height: 40px; padding: 0 var(--s4);
  border-radius: 999px; font-size: var(--t-foot); font-weight: 700;
  border: 1.5px solid var(--linea-fuerte); background: transparent;
  display: inline-flex; align-items: center; text-decoration: none; color: var(--text);
}
.admin-acciones .ok { background: var(--verde); color: var(--negro); border-color: var(--negro); }
.admin-acciones .peligro { color: var(--error); border-color: var(--error); }
.pill {
  display: inline-flex; align-items: center; width: max-content;
  padding: 2px 10px; border-radius: 999px;
  font-size: var(--t-caption); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--surface-2); color: var(--text);
}
.pill[data-e="pendiente"] { background: #ffe08a; color: #3d2e00; }
.pill[data-e="confirmada"] { background: var(--verde); color: var(--negro); }
.pill[data-e="bloqueada"] { background: var(--carbon); color: #fff; }
@media (prefers-color-scheme: dark) { .pill[data-e="bloqueada"] { background: #3a3a3a; } }

/* ── Aviso de uso de datos ──────────────────────────────────── */
.aviso-datos {
  margin: 0;
  font-size: var(--t-foot);
  line-height: 1.4;
  color: var(--text-2);
  text-align: center;
}

/* ── Admin: pestañas y clientes ─────────────────────────────── */
.tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.tabs-grupo {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-2);
}
.tabs-grupo [role="tab"] {
  min-height: 40px;
  padding: 0 var(--s5);
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-weight: 700;
  font-size: var(--t-callout);
  color: var(--text-2);
}
.tabs-grupo [role="tab"][aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.tabs .btn-text { margin-left: 0; }

.admin-barra input[type="search"],
.admin-barra select {
  min-height: var(--toque);
  padding: 0 var(--s3);
  border-radius: var(--r-s);
  border: 1.5px solid var(--linea-fuerte);
  background: var(--surface);
  font-size: max(16px, var(--t-callout));
}
.admin-barra input[type="search"] { flex: 1 1 200px; min-width: 0; }

.cli-resumen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.cli-resumen > div {
  display: flex; flex-direction: column;
  padding: var(--s3) var(--s4);
  border-radius: var(--r-m);
  background: var(--surface);
  border: 1px solid var(--linea);
  font-size: var(--t-foot);
  color: var(--text-2);
}
.cli-num { font-family: var(--f-display); font-size: 2rem; line-height: 1.1; color: var(--text); }
.admin-fila.cliente { grid-template-columns: 1fr; }
.pill[data-e="promos"] { background: var(--verde); color: var(--negro); }
.pill[data-e="sin-promos"] { background: var(--surface-2); color: var(--text-2); }
