/* =========================================================
   MAMUD BURGER — el panel
   La casa de noche: el carbón de la web, el oro del logo y la
   crema de la carta; Big Shoulders para los titulares, las horas
   y las cifras, DM Sans para el trabajo. Es el panel del Teleclub
   Masdache con la cara de Mamud, y como allí manda el trabajo:
   nada de adornos que estorben, se usa de pie y con prisa.

   Los colores de estado no son de la marca a propósito: el ámbar
   es «falta algo» (una reserva sin mesa), el verde «confirmada» y
   el rojo «no» (y el no-show), en todas las pestañas. El oro se
   queda para lo que se pulsa.

   Nada de estilos en línea: lo que se mide al vuelo (las barras de
   ocupación, el menú flotante) lo pone js/admin.js con `el.style`.
   ========================================================= */

:root {
  --oro:          #CFA24D;
  --oro-claro:    #E8CB86;
  --oro-hondo:    #8C6420;
  --oro-suave:    rgba(207, 162, 77, .14);
  --lava:         #E4572E;

  --fondo:        #0D0B09;
  --papel:        #15110F;
  --papel-2:      #1C1713;
  --papel-3:      #261F19;
  --texto:        #F2E8D8;
  --apagado:      #A89B89;
  --filete:       rgba(242, 232, 216, .13);
  --filete-2:     rgba(242, 232, 216, .07);

  --verde:        #6BCB91;
  --verde-fuerte: #2F8F57;
  --verde-suave:  rgba(107, 203, 145, .13);
  --rojo:         #EF7B6B;
  --rojo-fuerte:  #C2412F;
  --rojo-suave:   rgba(239, 123, 107, .13);
  --azul:         #86B6E8;
  --azul-suave:   rgba(134, 182, 232, .13);
  --ambar:        #EDBE5A;
  --ambar-suave:  rgba(237, 190, 90, .13);

  --f-display: 'Big Shoulders Display', 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --f-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r: 5px;
  /* Lo más ancho que va el panel: la cabecera y Reservas (mitad lista,
     mitad plano). Las demás pestañas van a 1340 px. */
  --ancho-panel: 1720px;
  --sombra: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 28px -18px rgba(0, 0, 0, .9);
  --foco: 0 0 0 3px rgba(207, 162, 77, .3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

body.panel {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
body.panel.is-locked { overflow: hidden; }

::selection { background: var(--oro); color: var(--fondo); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--fondo); }
::-webkit-scrollbar-thumb { background: var(--oro-hondo); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--oro); }
html { scrollbar-color: var(--oro-hondo) var(--fondo); scrollbar-width: thin; }
/* Sin zoom en el móvil ni en la tablet: el dedo desplaza, pero ni el
   pellizco ni el doble toque agrandan la pantalla. */
html { touch-action: pan-x pan-y; }

h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }

/* ---------------------------------------------------------
   PIEZAS COMPARTIDAS
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, opacity .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 7px 13px; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-oro, .btn-ink { background: var(--oro); color: var(--fondo); }
.btn-oro:hover, .btn-ink:hover { background: var(--oro-claro); }
.btn-line  { background: transparent; color: var(--texto); border-color: var(--filete); }
.btn-line:hover { border-color: var(--oro); color: var(--oro-claro); }
.btn-rojo  { background: var(--rojo-fuerte); color: #fff; }
.btn-rojo:hover { background: #A43424; }
.btn-verde { background: var(--verde-fuerte); color: #fff; }
.btn-verde:hover { background: #26764A; }

.btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading i { animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

.lbl {
  display: block;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--apagado);
  margin-bottom: 7px;
}
.lbl em { font-style: normal; text-transform: none; letter-spacing: .02em; opacity: .8; font-weight: 400; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="date"], input[type="time"], input[type="number"], input[type="search"], input[type="url"],
select, textarea, .campo-mesa {
  width: 100%;
  padding: 10px 13px;
  font-family: var(--f-body);
  font-size: .95rem;
  font-weight: 400;
  color: var(--texto);
  background: var(--papel-2);
  border: 1px solid var(--filete);
  border-radius: var(--r);
  outline: none;
  color-scheme: dark;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { resize: vertical; line-height: 1.55; }
input[type="date"], input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-width: 0;
  max-width: 100%;
}
input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
select, .campo-mesa {
  appearance: none; -webkit-appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--apagado) 50%),
                    linear-gradient(135deg, var(--apagado) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
select option { background: var(--papel-2); color: var(--texto); }
input:focus, select:focus, textarea:focus, .campo-mesa:focus {
  border-color: var(--oro);
  box-shadow: var(--foco);
}
input::placeholder, textarea::placeholder { color: rgba(168, 155, 137, .55); }
input:disabled, select:disabled, textarea:disabled { opacity: .45; cursor: not-allowed; }

.campo { display: block; margin-bottom: 16px; }
.campo small { display: block; margin-top: 5px; font-size: .74rem; line-height: 1.45; color: var(--apagado); }
.campo-corto input, .campo-corto select { max-width: 180px; }
.rejilla { display: grid; gap: 0 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rejilla.rejilla--dos { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.campo-ico {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--papel-2);
  border: 1px solid var(--filete);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.campo-ico:focus-within { border-color: var(--oro); box-shadow: var(--foco); }
.campo-ico > i {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: .82rem;
  color: var(--apagado);
  pointer-events: none;
  z-index: 1;
}
.campo-ico input {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  padding-left: 33px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.campo-ico input:focus { box-shadow: none; }

.msg { margin: 10px 0 0; font-size: .85rem; line-height: 1.5; min-height: 1.1em; color: var(--apagado); }
.msg:empty { min-height: 0; margin: 0; }
.msg.is-bad { color: var(--rojo); font-weight: 500; }
.msg.is-ok  { color: var(--verde); font-weight: 500; }

.h-sec {
  font-family: var(--f-display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--texto);
}
.h-sub { margin-top: 6px; font-size: .86rem; color: var(--apagado); }
.h-tarjeta {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--texto);
  margin-bottom: 6px;
}
.h-tarjeta:not(:has(+ .tarjeta-nota)) { margin-bottom: 16px; }

.tarjeta {
  position: relative;
  background: var(--papel);
  border: 1px solid var(--filete);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--sombra);
}
@media (min-width: 700px) { .tarjeta { padding: 26px 28px; } }
.tarjeta-pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--filete-2);
}
.tarjeta-pie .msg { margin: 0; }
.tarjeta-nota {
  margin: 6px 0 16px;
  max-width: 66ch;
  font-size: .86rem;
  line-height: 1.55;
  color: var(--apagado);
}

.vacio {
  padding: 46px 20px;
  text-align: center;
  color: var(--apagado);
  background: var(--papel);
  border: 1px dashed var(--filete);
  border-radius: var(--r);
}
.vacio i { font-size: 1.9rem; color: rgba(207, 162, 77, .45); display: block; margin-bottom: 12px; }
.vacio p { font-size: .92rem; }
.vacio strong { display: block; font-size: 1.05rem; color: var(--texto); font-weight: 600; margin-bottom: 4px; }
.vacio--carga { padding: 26px; }
.vacio--cabecera { margin-bottom: 12px; }

.spin {
  display: inline-block;
  width: 26px; height: 26px;
  border: 2px solid rgba(242, 232, 216, .15);
  border-top-color: var(--oro);
  border-radius: 50%;
  animation: gira .75s linear infinite;
}

/* ---------------------------------------------------------
   ARRANQUE Y ACCESO
   --------------------------------------------------------- */
.arranque {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--fondo);
  z-index: 500;
}

.login {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background: var(--fondo);
  overflow: hidden;
}
.login-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(207, 162, 77, .18), transparent 70%),
    url('../img/burger-torre-humo.webp') center/cover no-repeat;
  opacity: .22;
  filter: grayscale(.3);
}
.login-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 32px 28px 28px;
  background: var(--papel);
  border: 1px solid var(--filete);
  border-top: 3px solid var(--oro);
  border-radius: var(--r);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
  text-align: center;
}
@media (min-width: 480px) { .login-card { padding: 38px 40px 34px; } }
.login-logo { width: 104px; height: auto; margin: 0 auto 14px; }
.login-title {
  font-family: var(--f-display);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--texto);
}
.login-sub { margin: 8px 0 26px; font-size: .84rem; color: var(--apagado); }
.login-card .lbl { text-align: left; }
.login-card input { margin-bottom: 16px; }
.login-card .btn { margin-top: 8px; }
.pass-wrap { position: relative; }
.pass-ojo {
  position: absolute;
  right: 4px; top: 4px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0;
  background: transparent;
  color: var(--apagado);
  cursor: pointer;
  border-radius: var(--r);
}
.pass-ojo:hover { color: var(--oro); }
.login-pie {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--filete-2);
  font-size: .78rem;
  color: var(--apagado);
}
.login-volver {
  display: inline-block;
  margin-top: 16px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--apagado);
  text-decoration: none;
}
.login-volver:hover { color: var(--oro); }
.login-volver i { font-size: .62rem; margin-right: 4px; }

/* ---------------------------------------------------------
   CABECERA DEL PANEL
   --------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(13, 11, 9, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--filete);
}
/* El logo a la izquierda y el local y el usuario a la derecha, en los
   mismos bordes que el contenido de Reservas: igual de ancha (1720 px)
   y con el mismo margen a los lados (14 px en el móvil, 22 desde 700).
   Así el logo empieza donde empieza el título y el usuario acaba donde
   acaba «Nueva reserva» (23-10-2026). */
.topbar-in {
  max-width: var(--ancho-panel);
  margin-inline: auto;
  padding: 8px 14px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 14px;
}
@media (min-width: 700px) { .topbar-in { padding-inline: 22px; } }
/* La columna de las pestañas puede encoger (`minmax(0, …)`): si no
   caben, no empujan el local y el usuario fuera de la pantalla. */
@media (min-width: 1024px) {
  .topbar-in { grid-template-columns: auto minmax(0, 1fr) auto; padding: 8px 22px; }
}
/* Desde 1440 px hay sitio para que las pestañas queden en el centro de la
   pantalla, no solo entre el logo y el local (que no miden lo mismo). */
@media (min-width: 1440px) {
  .topbar-in { grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr); }
  .tb-brand { justify-self: start; }
}
.tb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--texto);
}
/* El logo, un poco más grande que al principio (44/52 px): lo pidió la
   casa el 6-10-2026, con el rótulo «Administración» al lado. */
.tb-brand img { height: 54px; width: 54px; flex: 0 0 auto; }
@media (min-width: 1024px) { .tb-brand img { height: 64px; width: 64px; } }
.tb-brand span {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Ocho pestañas: en estrecho, dos filas de cuatro (arriba lo del
   servicio, abajo lo que se monta de antemano); desde 820 px, una. */
.tabs {
  grid-column: 1 / -1;
  order: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
}
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 40px;
  gap: 7px;
  padding: 8px 6px;
  border: 0;
  border-radius: var(--r) var(--r) 0 0;
  background: transparent;
  box-shadow: inset 0 -2px 0 transparent;
  color: rgba(242, 232, 216, .55);
  font-family: var(--f-display);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.tab i { display: none; }
.tab span { overflow: hidden; text-overflow: ellipsis; }
.tab:hover { color: var(--texto); }
.tab.is-on { color: var(--texto); box-shadow: inset 0 -2px 0 var(--oro); background: var(--oro-suave); }
.tab-badge {
  position: absolute;
  top: 2px;
  right: 3px;
  min-width: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--lava);
  color: #fff;
  font-family: var(--f-body);
  font-size: .6rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  line-height: 15px;
  text-align: center;
}
/* Con las nueve (un empleado con todos los apartados), en el móvil van
   cinco y cuatro en vez de tres filas con «Ajustes» sola. */
@media (max-width: 819px) {
  .tabs:not(:has(.tab[hidden])) { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .tabs:not(:has(.tab[hidden])) .tab { grid-column: span 2; padding-inline: 2px; font-size: .86rem; letter-spacing: .03em; }
  .tabs:not(:has(.tab[hidden])) .tab:nth-child(6) { grid-column: 2 / span 2; }
}
@media (min-width: 480px) and (max-width: 819px) {
  .tabs:not(:has(.tab[hidden])) .tab { font-size: .95rem; gap: 5px; }
}
@media (min-width: 480px) {
  .tab { font-size: 1.02rem; }
  .tab i { display: inline; font-size: .84rem; color: var(--oro); }
  .tab-badge { position: static; min-width: 20px; padding: 1px 6px; font-size: .68rem; line-height: 17px; }
}
@media (min-width: 820px), (min-width: 640px) and (max-height: 500px) {
  .tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 10px 13px; overflow: visible; }
}
@media (min-width: 1024px) {
  .tabs { grid-column: auto; order: 0; min-width: 0; justify-content: center; justify-content: safe center; }
  .tab { min-height: 52px; border-radius: 0; }
}
/* CUANDO NO CABEN (27-11-2026). Con las nueve pestañas, con los avisos
   encendidos o con un local de nombre largo, la fila medía más que su
   hueco en algunos anchos (1024–1090, 1200–1220 y 1280–1400 px) y la
   página se desbordaba: el botón del usuario quedaba fuera de la
   pantalla. `ajustaPestanas()` (js/admin.js) mide y va apretando: primero
   menos aire, luego sin dibujo y, al final, la letra un punto menor. Si
   ni así, la fila se desliza con el dedo en vez de desbordar la página. */
.tabs.es-prieta .tab { padding-inline: 8px; gap: 5px; letter-spacing: .03em; }
.tabs.sin-dibujo .tab i { display: none; }
.tabs.es-minima .tab { padding-inline: 6px; font-size: .94rem; letter-spacing: .02em; }
@media (min-width: 1024px) and (max-width: 1279px) { .tb-brand span { display: none; } }
@media (min-width: 820px) and (max-width: 1199px) {
  .tab { padding-inline: 8px; gap: 5px; letter-spacing: .03em; }
}
/* En estrecho, la fila del logo se va al bajar y se quedan las
   pestañas: lo que mide esa fila (8 px de arriba y el logo). */
@media (max-width: 1023px) { .topbar { top: -62px; } }

.tb-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.user { position: relative; }
.user-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--filete);
  border-radius: 50%;
  background: transparent;
  color: var(--apagado);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.user-btn:hover, .user-btn[aria-expanded="true"] { background: var(--oro); color: var(--fondo); border-color: var(--oro); }
.user-pop {
  position: absolute;
  right: 0; top: calc(100% + 9px);
  min-width: 232px;
  padding: 7px;
  background: var(--papel-2);
  border: 1px solid var(--filete);
  border-radius: var(--r);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .9);
  z-index: 70;
}
.user-quien {
  padding: 8px 11px 10px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--apagado);
  border-bottom: 1px solid var(--filete-2);
  margin-bottom: 5px;
  word-break: break-all;
}
.user-pop button, .user-pop a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  color: var(--texto);
  font-family: var(--f-body);
  font-size: .88rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.user-pop button:hover, .user-pop a:hover { background: var(--papel-3); }
.user-pop i { width: 15px; font-size: .82rem; color: var(--oro); }
.user-pop .es-rojo, .user-pop .es-rojo i { color: var(--rojo); }

/* ---------------------------------------------------------
   LIENZO
   --------------------------------------------------------- */
.lienzo {
  max-width: 1340px;
  margin-inline: auto;
  padding: 22px 14px 70px;
}
@media (min-width: 700px) { .lienzo { padding: 30px 22px 80px; } }

.vista { display: none; }
.vista.is-on { display: block; animation: sube .3s ease both; }
@keyframes sube { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.vista:focus { outline: none; }
.vista-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.vista-botones { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------
   FILTROS
   --------------------------------------------------------- */
.filtros { margin-bottom: 18px; display: grid; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--filete);
  border-radius: 999px;
  background: var(--papel);
  color: var(--apagado);
  font-family: var(--f-body);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--oro); color: var(--texto); }
.chip.is-on { background: var(--oro); border-color: var(--oro); color: var(--fondo); }
.chip-n {
  min-width: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--lava);
  color: #fff;
  font-size: .68rem;
  font-style: normal;
  font-weight: 700;
  line-height: 17px;
}
.chips--sec .chip { font-size: .76rem; padding: 6px 12px; }
.chips--sec .chip.is-on { background: var(--oro-suave); border-color: var(--oro); color: var(--oro-claro); }

.filtros-fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.filtros-campos { display: flex; flex: 0 0 auto; min-width: 0; }
.filtros-campos .campo-ico { width: 156px; }
.campo-busca { width: 100%; }
.filtros-campos input, .campo-busca input { padding-top: 8px; padding-bottom: 8px; font-size: .88rem; min-width: 0; }

/* ---------------------------------------------------------
   LOS DOS SERVICIOS DEL DÍA
   Mediodía y noche, como en la maqueta de la presentación: la
   gente que hay, cuántas mesas y el momento de más gente frente
   a las plazas de la casa.
   --------------------------------------------------------- */
.servicios {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 16px;
}
.servicios:empty { display: none; }
.serv {
  padding: 13px 15px 12px;
  background: var(--papel);
  border: 1px solid var(--filete);
  border-radius: var(--r);
}
.serv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.serv-top b {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.serv-top small { font-size: .82rem; color: var(--apagado); white-space: nowrap; font-variant-numeric: tabular-nums; }
.serv-barra { height: 6px; margin: 10px 0 8px; background: rgba(242, 232, 216, .1); border-radius: 999px; overflow: hidden; }
.serv-barra i { display: block; width: 0; height: 100%; background: var(--oro); border-radius: 999px; }
.serv.es-lleno .serv-barra i { background: var(--lava); }
.serv-cifras { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: .84rem; color: var(--apagado); }
.serv-cifras b { color: var(--texto); font-weight: 700; }
.serv-cifras em { font-style: normal; color: var(--oro-claro); font-weight: 600; }
.serv.es-cerrado { border-style: dashed; }
.serv.es-cerrado .serv-top b { color: var(--apagado); }

/* El rótulo de cada día o de cada servicio, encima de sus reservas. */
.dia-titulo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 2px;
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--oro-claro);
}
.dia-titulo:first-child { margin-top: 0; }
.dia-titulo::after { content: ''; flex: 1; height: 1px; background: var(--filete); }
.dia-titulo small { order: 1; font-family: var(--f-body); font-size: .76rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--apagado); }

/* ---------------------------------------------------------
   FICHAS DE RESERVA
   --------------------------------------------------------- */
.lista { display: grid; gap: 10px; }

.rsv {
  background: var(--papel);
  border: 1px solid var(--filete);
  border-left: 3px solid var(--filete);
  border-radius: var(--r);
  box-shadow: var(--sombra);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.rsv:hover { border-color: rgba(242, 232, 216, .22); }
.rsv--pendiente  { border-left-color: var(--ambar); }
.rsv--confirmada { border-left-color: var(--verde); }
.rsv--rechazada  { border-left-color: var(--rojo); }
.rsv--cancelada  { border-left-color: #6E655B; }
.rsv--completada { border-left-color: var(--azul); }
.rsv--no_show    { border-left-color: #9C3B2B; }
.rsv.es-nueva { animation: destella 2.4s ease both; }
@keyframes destella {
  0%   { background: rgba(207, 162, 77, .2); box-shadow: 0 0 0 3px rgba(207, 162, 77, .4); }
  100% { background: var(--papel); box-shadow: var(--sombra); }
}

.rsv-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--filete-2);
  background: rgba(242, 232, 216, .025);
}
.badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--pendiente  { background: var(--ambar-suave); color: var(--ambar); }
.badge--confirmada { background: var(--verde-suave); color: var(--verde); }
.badge--rechazada  { background: var(--rojo-suave); color: var(--rojo); }
.badge--cancelada  { background: rgba(242, 232, 216, .08); color: var(--apagado); }
.badge--completada { background: var(--azul-suave); color: var(--azul); }
.badge--no_show    { background: rgba(156, 59, 43, .25); color: #F09C8C; }
.badge--auto       { background: var(--oro-suave); color: var(--oro-claro); }

.rsv-cod {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--oro);
}
.rsv-canal { font-size: .74rem; color: var(--apagado); white-space: nowrap; }
.rsv-canal i { margin-right: 4px; font-size: .7rem; }
.rsv-hace { margin-left: auto; font-size: .74rem; color: var(--apagado); white-space: nowrap; }

.rsv-cuerpo { display: grid; gap: 14px; padding: 14px; }
@media (min-width: 620px) {
  .rsv-cuerpo { grid-template-columns: 96px 1fr auto; align-items: start; gap: 18px; padding: 15px 18px; }
}
.rsv-cuando {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--filete-2);
}
@media (min-width: 620px) {
  .rsv-cuando {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 6px;
    border-bottom: 0;
    border-right: 1px solid var(--filete-2);
    text-align: center;
  }
}
.rsv-dia { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--apagado); }
.rsv-hora {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--oro);
  font-variant-numeric: tabular-nums;
}
.rsv-nombre { font-size: 1.08rem; font-weight: 700; color: var(--texto); line-height: 1.3; }
.rsv-datos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
  font-size: .85rem;
  color: var(--apagado);
}
.rsv-datos span { display: inline-flex; align-items: center; gap: 6px; }
.rsv-datos i { font-size: .78rem; color: var(--oro); }
.rsv-datos a { color: var(--texto); text-decoration: none; border-bottom: 1px solid var(--filete); }
.rsv-datos a:hover { color: var(--oro-claro); border-color: var(--oro); }

.rsv-marcas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.marca {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(242, 232, 216, .07);
  font-size: .74rem;
  color: var(--texto);
}
.marca i { font-size: .7rem; color: var(--oro); }
.marca--ojo { background: rgba(228, 87, 46, .16); color: #F4A486; font-weight: 600; }
.marca--ojo i { color: #F4A486; }
/* Ya ha dejado alguna mesa colgada: va la primera y en rojo. */
.marca--noshow { background: var(--rojo-suave); color: var(--rojo); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(239, 123, 107, .35); }
.marca--noshow i { color: var(--rojo); }

.rsv-nota {
  margin-top: 9px;
  padding: 8px 11px;
  border-left: 2px solid var(--oro-hondo);
  background: rgba(207, 162, 77, .07);
  font-size: .85rem;
  line-height: 1.55;
  color: var(--texto);
  overflow-wrap: anywhere;
}
.rsv-nota strong { font-weight: 700; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--apagado); display: block; margin-bottom: 2px; }
.rsv-nota--interna { border-left-color: var(--azul); background: var(--azul-suave); }
.rsv-nota--alergia { border-left-color: var(--lava); background: rgba(228, 87, 46, .1); }
.rsv-nota--rechazo { border-left-color: var(--rojo); background: var(--rojo-suave); }
.rsv-nota--noshow  { border-left-color: var(--rojo); background: var(--rojo-suave); }

.rsv-avisada {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  font-style: normal;
  font-size: .72rem;
  font-weight: 600;
  color: var(--verde);
}
.rsv-avisada i { font-size: .66rem; color: var(--verde); }

.rsv-mesa {
  align-self: center;
  padding: 9px 13px;
  border: 1px dashed var(--filete);
  border-radius: var(--r);
  text-align: center;
  min-width: 108px;
}
.rsv-mesa small { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--apagado); margin-bottom: 2px; }
.rsv-mesa b { font-family: var(--f-display); font-size: 1.15rem; font-weight: 800; letter-spacing: .03em; color: var(--texto); }
.rsv-mesa.tiene { border-style: solid; border-color: rgba(107, 203, 145, .55); background: var(--verde-suave); }
.rsv-mesa.tiene b { color: var(--verde); }
/* Confirmada y sin mesa: lo único que queda por hacer. */
.rsv-mesa.falta { border-color: rgba(237, 190, 90, .6); background: var(--ambar-suave); }
.rsv-mesa.falta b { color: var(--ambar); }

.rsv-pie {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 14px;
  border-top: 1px solid var(--filete-2);
  background: rgba(242, 232, 216, .02);
}
@media (min-width: 620px) { .rsv-pie { padding: 10px 18px; } }
.rsv-pie .btn { padding: 7px 13px; font-size: .9rem; }

.mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--filete);
  border-radius: var(--r);
  background: transparent;
  color: var(--apagado);
  font-family: var(--f-body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.mini:hover { color: var(--texto); border-color: var(--oro); background: var(--oro-suave); }
.mini.es-rojo:hover { color: var(--rojo); border-color: var(--rojo); background: var(--rojo-suave); }
.mini.es-correo:hover { color: var(--azul); border-color: var(--azul); background: var(--azul-suave); }
.mini.es-noshow { color: var(--rojo); border-color: rgba(239, 123, 107, .4); }
.mini.es-noshow:hover { color: #fff; border-color: var(--rojo-fuerte); background: var(--rojo-fuerte); }
.mini.es-falta { color: var(--ambar); border-color: rgba(237, 190, 90, .55); background: var(--ambar-suave); }
.mini.es-falta:hover { color: var(--fondo); border-color: var(--ambar); background: var(--ambar); }
.rsv-pie .empuja { margin-left: auto; }
.modal-pie .mini { flex: 1 1 auto; justify-content: center; }

/* ---------------------------------------------------------
   EL SERVICIO
   --------------------------------------------------------- */
.agenda-nav { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.agenda-nav .campo-ico { width: 172px; }
.agenda-nav .campo-ico input { padding-top: 8px; padding-bottom: 8px; font-size: .88rem; }

.ag-cuerpo { display: grid; gap: 12px; }
.ag-turno {
  background: var(--papel);
  border: 1px solid var(--filete);
  border-radius: var(--r);
  overflow: hidden;
}
.ag-turno-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--papel-3);
}
.ag-turno-h {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--oro);
  font-variant-numeric: tabular-nums;
}
.ag-turno-n { font-size: .78rem; color: var(--apagado); }
.ag-barra {
  margin-left: auto;
  width: 96px;
  height: 6px;
  border-radius: 999px;
  background: rgba(242, 232, 216, .1);
  overflow: hidden;
}
.ag-barra-llena { display: block; width: 0; height: 100%; background: var(--oro); border-radius: 999px; }
.ag-barra.es-lleno .ag-barra-llena { background: var(--lava); }
.ag-fila {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--filete-2);
}
@media (min-width: 520px) { .ag-fila { grid-template-columns: 1fr auto; gap: 10px; } }
.ag-fila b { font-weight: 700; color: var(--texto); }
.ag-noshow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--rojo-suave);
  color: var(--rojo);
  font-size: .7rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
.ag-noshow i { font-size: .64rem; }
.ag-fila p { font-size: .83rem; color: var(--apagado); }
.ag-fila-der { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-start; }
@media (min-width: 520px) { .ag-fila-der { justify-content: flex-end; } }
.ag-mesa {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--verde-suave);
  color: var(--verde);
  font-size: .76rem;
  font-weight: 700;
}
.ag-mesa.sin { background: rgba(242, 232, 216, .07); color: var(--apagado); }
.ag-pers {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--texto);
  min-width: 2ch;
  text-align: right;
}

/* ---------------------------------------------------------
   MESAS
   --------------------------------------------------------- */
.mesas-plano-caja {
  max-width: min(100%, 1060px);
  margin: 0 auto;
  background: var(--papel);
  border: 1px solid var(--filete);
  border-radius: var(--r);
  padding: 14px;
}
.mesas-plano-pie { margin: 0 0 10px; font-size: .82rem; color: var(--apagado); }
#mesas-plano-pie.es-colocando { color: var(--oro); font-weight: 600; }
#mesas-plano .mesa { cursor: grab; touch-action: none; }
#mesas-plano .mesa.se-mueve { cursor: grabbing; }
#mesas-plano.es-colocando { cursor: crosshair; }
#mesas-plano.es-colocando .plano-svg { outline: 2px dashed var(--oro); outline-offset: 4px; }
#mesas-plano.es-colocando .mesa { cursor: crosshair; }

.plano-leyenda {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: .8rem;
  color: var(--apagado);
}
.plano-leyenda li { display: flex; align-items: center; gap: 7px; }
.plano-llave { flex: none; width: 20px; height: 14px; border-radius: 3px; border: 1.5px solid #15110F; }
.plano-llave--sala    { background: #F2E8D8; }
.plano-llave--terraza { background: #DCE8D0; }
.plano-llave--junta   { width: 22px; height: 0; border: 0; border-top: 3px solid var(--oro); border-radius: 0; }
.plano-llave--proxima { background: #86B6E8; }
.plano-llave--noweb   { background: #F2E8D8; border-style: dashed; border-color: var(--oro); }

.mesas-plano-fuera {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--r);
  background: var(--ambar-suave);
  color: var(--ambar);
  font-size: .8rem;
}
.mesas-plano-fuera p { margin: 0; }
.mesas-plano-fuera .mesas-rejilla { padding: 9px 0 0; }
.mesas-nota {
  display: flex;
  gap: 9px;
  max-width: 1060px;
  margin: 14px auto 0;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--apagado);
}
.mesas-nota i { margin-top: 4px; color: var(--oro); }
.mesas-nota b { color: var(--texto); font-weight: 600; }

/* El plano de dar mesa, en su ventana */
#m-mesa-plano, #nr-plano {
  margin: 0 auto;
  padding: 6px;
  background: var(--fondo);
  border: 1px solid var(--filete);
  border-radius: var(--r);
}
#m-nr-mesa .pick-cuenta { margin-bottom: 10px; }
#m-nr-mesa .mesas-pick, #m-mesa .mesas-pick { margin-top: 12px; }
#m-mesa .modal-caja, #m-nr-mesa .modal-caja { max-width: 860px; }

.campo-mesa { display: block; text-align: left; cursor: pointer; }
.campo-mesa > span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.campo-mesa.es-vacia > span { color: rgba(168, 155, 137, .6); }
.campo-mesa.es-corto { border-color: var(--ambar); background-color: var(--ambar-suave); }
.campo small.campo-mesa-pega { color: var(--ambar); font-weight: 600; }

/* ---------------------------------------------------------
   EL FORMULARIO DE RESERVA
   El mismo que ve el cliente: estas reglas son las de `.res-form`, `.field`
   y el calendario de css/mamud.css, con los mismos valores. Si cambia uno,
   hay que cambiar el otro.
   --------------------------------------------------------- */
.res-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.res-form > .nr-historial, .res-form > .check-correo, .res-form > .msg, .res-form > .modal-pie { grid-column: 1 / -1; }
.res-form > .nr-historial, .res-form > .check-correo { margin: 0; }
.res-form > .msg { margin: 0; }
.res-form > .modal-pie { margin-top: 6px; }
.res-form .field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.res-form .field.full { grid-column: 1 / -1; }
.res-form .field > label:not(.check) {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.res-form .field input:not([type="checkbox"]), .res-form .field select, .res-form .field textarea, .res-form .campo-mesa {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  color: #FFF;
  background-color: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 2px;
  transition: border-color .2s, background .2s;
}
.res-form .field input:not([type="checkbox"]), .res-form .field select, .res-form .date-btn, .res-form .campo-mesa { height: 50px; }
.res-form .field select { appearance: auto; -webkit-appearance: auto; background-image: none; }
.res-form .field select option { background: #1E1814; color: #FFF; }
.res-form .field textarea { resize: vertical; min-height: 86px; line-height: normal; }
.res-form .field input::placeholder, .res-form .field textarea::placeholder { color: rgba(255, 255, 255, .35); }
.res-form .field input:not([type="checkbox"]):focus, .res-form .field select:focus, .res-form .field textarea:focus, .res-form .campo-mesa:focus {
  outline: none;
  border-color: var(--oro);
  background-color: rgba(255, 255, 255, .08);
  box-shadow: none;
}
.res-form .field-pide { flex-flow: row wrap; gap: 8px 26px; }
.res-form .field-pide .check { gap: 10px; font-size: 15px; color: rgba(255, 255, 255, .72); }
.res-form .field-pide .check input { width: 18px; height: 18px; }
.res-form .check-emoji { font-size: 1.1em; line-height: 1; }
.res-form .campo-mesa { display: flex; align-items: center; padding-right: 34px; }
.res-form .campo-mesa.es-vacia > span { color: rgba(255, 255, 255, .35); }
.res-form .campo-mesa.es-corto { border-color: var(--ambar); background-color: var(--ambar-suave); }
.res-form .campo-mesa-pega { font-size: .74rem; line-height: 1.45; color: var(--ambar); font-weight: 600; }

.res-form .field-help { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .5); }
.res-form .date-note { margin: 8px 0 0; color: var(--oro); font-weight: 600; }
.field-date { position: relative; }
.date-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
  color: #FFF;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.date-btn:hover { border-color: rgba(255, 255, 255, .34); }
.date-btn:focus-visible, .date-btn[aria-expanded="true"] { outline: none; border-color: var(--oro); background: rgba(255, 255, 255, .08); }
.date-btn i { color: var(--oro); font-size: 15px; }
.date-ph { color: rgba(255, 255, 255, .35); }
.cal-pop {
  position: absolute;
  z-index: 30;
  top: calc(100% + 14px);
  left: 0;
  width: max(100%, 322px);
  max-width: calc(100vw - 72px);
  padding-bottom: 12px;
  color: #1B1714;
  background: #FAF6EF;
  border-radius: 3px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .55), 0 3px 0 #D9CFBF;
  animation: calIn .22s ease-out;
}
@keyframes calIn { from { opacity: 0; transform: translateY(-8px); } }
.cal-rings { position: absolute; z-index: 2; top: -10px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 22%; pointer-events: none; }
.cal-rings span { width: 8px; height: 24px; border-radius: 4px; background: linear-gradient(90deg, #5E5750, #D8D1C8 45%, #6B635B); box-shadow: 0 2px 3px rgba(0, 0, 0, .45); }
.cal-head { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; padding: 18px 8px 12px; color: #0D0B09; background: var(--oro); border-radius: 3px 3px 0 0; }
.cal-title { font-family: var(--f-display); font-size: 27px; font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: .02em; text-align: center; }
.cal-flecha { display: grid; place-items: center; width: 42px; height: 38px; font-size: 15px; color: #0D0B09; background: none; border: 0; border-radius: 2px; cursor: pointer; transition: background .2s; }
.cal-flecha:hover { background: rgba(13, 11, 9, .12); }
.cal-flecha:focus-visible { outline: 2px solid #0D0B09; outline-offset: -2px; }
.cal-flecha:disabled { opacity: .25; cursor: default; background: none; }
.cal-grid { width: calc(100% - 20px); margin: 8px 10px 0; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { padding: 6px 0 8px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6F665D; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.cal-grid th:last-child { color: var(--lava); }
.cal-grid td { padding: 2px; text-align: center; }
.cal-grid tbody tr:first-child td { padding-top: 6px; }
.cal-day {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 38px;
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  color: #1B1714;
  background: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cal-day.is-sun { color: var(--lava); }
.cal-day:not([aria-disabled]):hover { background: rgba(207, 162, 77, .24); }
.cal-day:focus-visible { outline: 2px solid var(--lava); outline-offset: 1px; }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px #1B1714; }
.cal-day[aria-disabled="true"], .cal-day.is-closed { color: rgba(27, 23, 20, .26); }
.cal-day[aria-disabled="true"] { cursor: not-allowed; }
.cal-day.is-closed::before { content: ''; position: absolute; left: 26%; right: 26%; top: 50%; height: 1.5px; background: rgba(27, 23, 20, .4); transform: rotate(-38deg); }
.cal-day.is-special::after { content: ''; position: absolute; top: 4px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--oro-hondo); }
.cal-day.is-sel, .cal-day.is-sel:hover { color: var(--oro); background: #0D0B09; box-shadow: none; }
.cal-day.shake { animation: calShake .32s; }
@keyframes calShake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 14px 0; padding: 10px 0 0; list-style: none; font-size: 12px; color: #6F665D; border-top: 1px dashed rgba(0, 0, 0, .2); }
.cal-legend li { display: flex; align-items: center; gap: 7px; }
.lg { position: relative; flex-shrink: 0; width: 16px; height: 16px; border-radius: 2px; }
.lg-today { box-shadow: inset 0 0 0 1.5px #1B1714; }
.lg-closed::before { content: ''; position: absolute; left: 2px; right: 2px; top: 50%; height: 1.5px; background: rgba(27, 23, 20, .4); transform: rotate(-38deg); }
.lg-special { box-shadow: inset 0 0 0 1px rgba(27, 23, 20, .18); }
.lg-special::after { content: ''; position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--oro-hondo); }
@media (max-width: 720px) {
  .res-form { grid-template-columns: minmax(0, 1fr); }
}

/* El aviso del formulario cuando ese cliente ya tiene algún no-show. */
.nr-historial {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 14px;
  padding: 10px 13px;
  border: 1px solid rgba(239, 123, 107, .4);
  border-radius: var(--r);
  background: var(--rojo-suave);
  font-size: .85rem;
  line-height: 1.5;
  color: var(--texto);
}
.nr-historial i { margin-top: 3px; color: var(--rojo); }
.nr-historial b { color: var(--rojo); }

.mesas-rejilla { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.mesa-fila {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px 6px 12px;
  background: var(--papel-2);
  border: 1px solid var(--filete-2);
  border-radius: var(--r);
  color: var(--texto);
}
.mesa-fila.es-baja { opacity: .5; border-style: dashed; }
.mesa-nombre { font-size: .92rem; font-weight: 700; }
.mesa-cap { margin-left: auto; font-size: .84rem; color: var(--apagado); white-space: nowrap; }
.mesa-cap i { margin-right: 5px; font-size: .76rem; color: var(--oro); }
.mesa-mas, .plato-mas {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  color: var(--apagado);
  font-size: .85rem;
  cursor: pointer;
}
.mesa-mas:hover, .mesa-mas.is-on, .plato-mas:hover, .plato-mas.is-on { background: var(--papel-3); color: var(--oro); }

/* ---------------------------------------------------------
   MENÚ FLOTANTE
   --------------------------------------------------------- */
.menu-flotante {
  position: fixed;
  z-index: 400;
  min-width: 256px;
  max-width: calc(100vw - 16px);
  padding: 5px;
  background: var(--papel-2);
  border: 1px solid var(--filete);
  border-radius: var(--r);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .95);
}
.menu-op {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  font-family: var(--f-body);
  text-align: left;
  cursor: pointer;
}
.menu-op:hover, .menu-op:focus-visible { background: var(--papel-3); }
.menu-op > i { margin-top: 3px; width: 15px; text-align: center; font-size: .8rem; color: var(--oro); }
.menu-op b { display: block; font-size: .9rem; font-weight: 700; color: var(--texto); }
.menu-op small { display: block; margin-top: 1px; font-size: .77rem; line-height: 1.4; color: var(--apagado); }
.menu-op.es-rojo > i { color: var(--rojo); }
.menu-op.es-rojo:hover { background: var(--rojo-suave); }
.menu-op.es-rojo:hover b { color: var(--rojo); }

/* ---------------------------------------------------------
   LA LISTA DE ESPERA
   --------------------------------------------------------- */
.rsv--esperando { border-left-color: var(--ambar); }
.rsv--avisada   { border-left-color: var(--azul); }
.rsv--sentada   { border-left-color: var(--verde); }
.rsv--caducada  { border-left-color: #6E655B; }
.badge--esperando { background: var(--ambar-suave); color: var(--ambar); }
.badge--avisada   { background: var(--azul-suave); color: var(--azul); }
.badge--sentada   { background: var(--verde-suave); color: var(--verde); }
.badge--caducada  { background: rgba(242, 232, 216, .08); color: var(--apagado); }

.esp-reloj { display: flex; align-items: baseline; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid var(--filete-2); }
@media (min-width: 620px) {
  .esp-reloj { flex-direction: column; align-items: center; gap: 2px; padding: 0; border: 0; text-align: center; }
}
.esp-min {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--texto);
  font-variant-numeric: tabular-nums;
}
.esp-min small { font-size: .9rem; font-weight: 700; }
.esp-de { font-size: .72rem; color: var(--apagado); }
.esp-reloj.es-justo .esp-min { color: var(--ambar); }
.esp-reloj.es-pasado .esp-min { color: var(--rojo); }
.esp-reloj.es-pasado .esp-de { color: var(--rojo); font-weight: 600; }
.esp-dia { font-family: var(--f-display); font-size: 1.3rem; font-weight: 800; color: var(--texto); }
.esp-franja { font-size: .76rem; color: var(--apagado); white-space: nowrap; }

.espera-rapida { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.espera-rapida .seg-b {
  border: 1px solid var(--filete);
  border-radius: 999px;
  background: var(--papel-2);
  padding: 7px 14px;
}
.espera-rapida .seg-b:hover { border-color: var(--oro); color: var(--texto); }
.espera-rapida .seg-b.is-on { background: var(--oro); border-color: var(--oro); color: var(--fondo); }
.espera-rapida input { flex: 1 1 92px; width: 92px; min-width: 92px; padding: 7px 11px; font-size: .86rem; }

.espera-resumen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.espera-resumen .espera-dato { flex: 1 1 160px; max-width: 300px; }
.espera-dato {
  padding: 13px 15px;
  background: var(--papel);
  border: 1px solid var(--filete);
  border-radius: var(--r);
}
.espera-dato b { display: block; font-family: var(--f-display); font-size: 2rem; font-weight: 900; line-height: 1; color: var(--texto); }
.espera-dato span { display: block; margin-top: 5px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--apagado); }
.espera-dato em { display: block; margin-top: 2px; font-size: .78rem; font-style: normal; color: var(--apagado); }
.espera-dato.es-aviso b { color: var(--ambar); }

/* ---------------------------------------------------------
   LA CARTA
   --------------------------------------------------------- */
.carta-botones { display: flex; flex-wrap: wrap; gap: 8px; }
.carta-lista { display: grid; gap: 10px; margin-top: 14px; }

.carta-grupo { display: grid; gap: 10px; }
.carta-grupo + .carta-grupo { margin-top: 22px; }
.carta-grupo-t {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--oro-claro);
}
.carta-grupo-t::after { content: ''; flex: 1; height: 1px; background: var(--filete); }
.carta-grupo-t small { order: 1; flex: none; font-family: var(--f-body); font-size: .74rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--apagado); }

.carta-sec { background: var(--papel); border: 1px solid var(--filete); border-radius: var(--r); }
.carta-sec[open] { box-shadow: var(--sombra); }
.carta-sec.es-compacto { border-left: 3px dashed var(--oro-hondo); }
.carta-sec.es-lista { border-left: 3px double var(--oro-hondo); }
.carta-sec.es-oculta { opacity: .6; border-style: dashed; }
.carta-sec-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 15px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r);
}
.carta-sec-top::-webkit-details-marker { display: none; }
.carta-sec-top::marker { content: ''; }
.carta-sec-top:hover { background: rgba(242, 232, 216, .03); }
.carta-sec-flecha { flex: 0 0 auto; font-size: .72rem; color: var(--apagado); transition: transform .2s ease; }
.carta-sec[open] .carta-sec-flecha { transform: rotate(90deg); }
.carta-sec-ico {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--oro-suave);
  color: var(--oro);
  font-size: .85rem;
}
.carta-sec-top h3 {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--texto);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.carta-sec-suma { font-size: .8rem; color: var(--apagado); white-space: nowrap; }
.carta-sec-marca {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--oro-suave);
  color: var(--oro-claro);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.carta-sec-mas { margin-left: auto; }
.carta-sec-datos { display: contents; }
.carta-sec-intro { padding: 0 15px 10px 58px; font-size: .84rem; color: var(--apagado); max-width: 90ch; }

.carta-platos { display: grid; gap: 5px; padding: 0 12px 14px; }
.carta-grupo-plato {
  margin: 8px 0 2px 6px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--oro);
}
.plato-fila {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 7px 7px 4px;
  background: var(--papel-2);
  border: 1px solid var(--filete-2);
  border-radius: var(--r);
  cursor: pointer;
}
.plato-fila:hover { border-color: var(--filete); }
.plato-fila.es-oculto { opacity: .5; border-style: dashed; }
.plato-fila.es-agotado .plato-nombre, .plato-fila.es-agotado .plato-precio { color: var(--apagado); }
.plato-foto-mini { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--filete-2); object-fit: cover; }
.plato-fila.arrastrando { opacity: .92; border-color: var(--oro); box-shadow: var(--sombra); }
.plato-asa {
  flex: 0 0 auto;
  width: 26px;
  align-self: stretch;
  min-height: 30px;
  border: 0;
  background-color: transparent;
  background-image: radial-gradient(circle, var(--apagado) 1.1px, transparent 1.2px);
  background-size: 5px 5px;
  background-position: center;
  opacity: .5;
  border-radius: var(--r);
  cursor: grab;
  touch-action: none;
}
.plato-asa:hover { opacity: .9; background-color: var(--papel-3); }
.plato-fila.arrastrando .plato-asa { cursor: grabbing; }
.plato-txt { min-width: 0; display: grid; gap: 1px; }
.plato-nombre { font-size: .93rem; font-weight: 700; color: var(--texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plato-distintivo {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--oro);
  color: var(--fondo);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: .15em;
}
.plato-distintivo--hot { background: var(--lava); color: #fff; }
.plato-distintivo--veg { background: #4E9A5E; color: #fff; }
.plato-distintivo--agotado { background: #5B5248; color: var(--texto); }
.plato-pie { font-size: .77rem; color: var(--apagado); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plato-pie .es-aviso { color: var(--ambar); font-weight: 600; }
.plato-precio {
  margin-left: auto;
  flex: 0 0 auto;
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--oro);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.plato-alerg { flex: 0 0 auto; display: flex; gap: 2px; }
.carta-sin-platos { padding: 12px 15px 16px; font-size: .86rem; color: var(--apagado); }

/* Los iconos de los alérgenos: los colores de la carta, sobre un
   círculo claro para que se lean en el fondo oscuro. */
.al {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #F6EEE1;
  flex: 0 0 auto;
}
.al svg { width: 18px; height: 18px; fill: currentColor; }
.al-gl { color: #D9773F; } .al-cr { color: #2B9FD9; } .al-hu { color: #EE9A2B; }
.al-pe { color: #2E5FA3; } .al-ca { color: #B0845A; } .al-so { color: #2E9E57; }
.al-la { color: #6B4A38; } .al-fc { color: #CC4B45; } .al-ap { color: #7DAE3F; }
.al-mo { color: #B8912A; } .al-se { color: #9C8F73; } .al-su { color: #8A3570; }
.al-al { color: #D9A520; } .al-mu { color: #1F9A93; }

/* ---------------------------------------------------------
   LA FICHA DEL PLATO Y DE LA SECCIÓN
   --------------------------------------------------------- */
#form-plato .campo { margin-bottom: 13px; }
.foto-campo { display: flex; align-items: center; gap: 12px; }
.foto-muestra {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  border: 1px solid var(--filete);
  border-radius: var(--r);
  background: var(--papel-2);
  overflow: hidden;
}
.foto-muestra img { display: block; width: 100%; height: 100%; object-fit: cover; }
.foto-hueco { display: grid; place-items: center; width: 100%; height: 100%; color: var(--filete); font-size: 1.5rem; }
.foto-mandos { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; }

.alerg-elige { display: flex; flex-wrap: wrap; gap: 6px; }
.alerg-b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 6px;
  border: 1px solid var(--filete);
  border-radius: 999px;
  background: var(--papel-2);
  color: var(--apagado);
  font-family: var(--f-body);
  font-size: .8rem;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.alerg-b:hover { border-color: var(--oro); color: var(--texto); }
.alerg-b.is-on { background: var(--oro-suave); border-color: var(--oro); color: var(--oro-claro); font-weight: 600; }

.iconos-elige {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 6px;
  max-width: 560px;
}
.icono-b {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--filete);
  border-radius: 50%;
  background: var(--papel-2);
  color: var(--apagado);
  font-size: .95rem;
  cursor: pointer;
}
.icono-b:hover { border-color: var(--oro); color: var(--oro); }
.icono-b.is-on { background: var(--oro); border-color: var(--oro); color: var(--fondo); }

.traducciones { margin: 4px 0 14px; border: 1px solid var(--filete); border-radius: var(--r); background: var(--papel-2); }
.traducciones > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--texto);
  cursor: pointer;
  list-style: none;
}
.traducciones > summary::-webkit-details-marker { display: none; }
.traducciones > summary::marker { content: ''; }
.traducciones > summary i { color: var(--oro); }
.traducciones > summary small { margin-left: auto; font-weight: 500; color: var(--apagado); }
.traducciones > summary small.es-aviso { color: var(--ambar); }
.traducciones[open] > summary { border-bottom: 1px solid var(--filete-2); }
.trad-nota { padding: 10px 14px 0; font-size: .8rem; color: var(--apagado); }
.trad-idiomas { display: grid; gap: 8px; padding: 12px 14px 14px; }
.trad-idioma { border: 1px solid var(--filete-2); border-radius: var(--r); background: var(--papel); }
.trad-idioma > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r);
}
.trad-idioma > summary::-webkit-details-marker { display: none; }
.trad-idioma > summary::marker { content: ''; }
.trad-idioma > summary:focus-visible { outline: 2px solid var(--oro); outline-offset: -2px; }
.trad-flecha { flex: none; width: 10px; font-size: .7rem; color: var(--oro); transition: transform .18s ease; }
.trad-idioma[open] > summary .trad-flecha { transform: rotate(90deg); }
.trad-idioma-n { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oro-claro); }
.trad-idioma-e { margin-left: auto; font-size: .76rem; color: var(--apagado); }
.trad-idioma-e.es-aviso { color: var(--ambar); }
.trad-idioma[open] > summary { border-bottom: 1px solid var(--filete-2); border-radius: var(--r) var(--r) 0 0; }
.trad-campos { display: grid; gap: 6px; padding: 10px 12px 12px; }
.trad-idioma input, .trad-idioma textarea { font-size: .88rem; padding: 8px 11px; }
.trad-idioma textarea { min-height: 54px; }

.check-visible { margin-top: 6px; }
.visible-ayuda { display: block; margin: 5px 0 0 28px; font-size: .78rem; color: var(--apagado); }
.estilo-ayuda { display: block; margin-top: 7px; font-size: .79rem; line-height: 1.5; color: var(--apagado); }

/* ---------------------------------------------------------
   AJUSTES: EL HORARIO, LAS REGLAS Y LOS DÍAS SUELTOS
   --------------------------------------------------------- */
.horario { display: grid; gap: 7px; }
.horario-falta {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 15px 16px;
  background: var(--ambar-suave);
  border: 1px solid rgba(237, 190, 90, .4);
  border-radius: var(--r);
}
.horario-falta > i { color: var(--ambar); font-size: 1.05rem; margin-top: 2px; }
.horario-falta div { display: grid; gap: 5px; }
.horario-falta b { font-weight: 700; }
.horario-falta span { font-size: .86rem; line-height: 1.6; color: var(--apagado); }
.horario-falta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
  background: rgba(242, 232, 216, .08);
  padding: 1px 5px;
  border-radius: 3px;
}
.horario-falta--suave { background: var(--azul-suave); border-color: rgba(134, 182, 232, .3); }
.horario-falta--suave > i { color: var(--azul); }

/* Cada día, con sus dos servicios. En estrecho, el nombre del día
   arriba y los dos servicios debajo; desde 760 px, en una línea. */
.horario-fila {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 11px 13px;
  background: var(--papel-2);
  border: 1px solid var(--filete);
  border-radius: var(--r);
}
@media (min-width: 760px) {
  .horario-fila { grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 14px; }
}
.horario-dia { font-family: var(--f-display); font-size: 1.15rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--texto); }
.horario-serv { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 9px; }
.horario-serv-n { width: 74px; font-size: .78rem; font-weight: 700; color: var(--apagado); }
.horario-serv.es-cerrado .horario-horas { opacity: .35; }
.horario-serv.es-cerrado .horario-serv-n { text-decoration: line-through; }
.horario-fila.es-cerrado { border-color: rgba(239, 123, 107, .25); background: rgba(239, 123, 107, .05); }
.horario-fila.es-cerrado .horario-dia { color: var(--apagado); }

.horario-sw {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--filete);
  border-radius: 999px;
  background: #3A322A;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.horario-sw::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--texto);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  transition: transform .2s ease;
}
.horario-sw[aria-checked="true"] { background: var(--verde-fuerte); border-color: var(--verde-fuerte); }
.horario-sw[aria-checked="true"]::after { transform: translateX(18px); }
.horario-sw:focus-visible { outline: none; box-shadow: var(--foco); }

.horario-horas { display: flex; align-items: center; gap: 6px; }
body.panel .horario-horas input[type="time"],
body.panel .cierre-serv input[type="time"] {
  width: 104px;
  padding: 7px 28px 7px 10px;
  font-size: .9rem;
  background-position: right 8px center;
  background-size: 14px 14px;
}
.horario-guion { color: var(--apagado); }
.horario-margen { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--filete-2); }
.horario-margen input { width: 96px; padding: 8px 10px; text-align: center; }
.horario-margen small { max-width: 56ch; }

/* Un interruptor con su explicación al lado (Reglas). */
.ajuste-sw {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 6px 0 14px;
  padding: 13px 14px;
  background: var(--papel-2);
  border: 1px solid var(--filete-2);
  border-radius: var(--r);
}
.ajuste-sw .horario-sw { margin-top: 2px; }
.ajuste-sw b { display: block; font-weight: 700; color: var(--texto); }
.ajuste-sw span { display: block; margin-top: 2px; font-size: .84rem; line-height: 1.5; color: var(--apagado); }
/* Lo mismo sin interruptor: algo que es así y no se cambia. */
.ajuste-sw--fijo > i { flex: 0 0 auto; width: 20px; margin-top: 4px; text-align: center; color: var(--oro); }

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  background: var(--papel-2);
  border: 1px solid var(--filete);
  border-radius: var(--r);
}
.seg--envuelve { display: grid; grid-template-columns: 1fr; width: 100%; }
@media (min-width: 560px) { .seg--envuelve { grid-template-columns: repeat(3, 1fr); } }
.seg--envuelve .seg-b { padding-inline: 6px; text-align: center; white-space: normal; }
.seg-b {
  padding: 6px 13px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--apagado);
  font-family: var(--f-body);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.seg-b i { margin-right: 3px; color: var(--oro); }
.seg-b:hover { color: var(--texto); }
.seg-b.is-on { background: var(--papel-3); color: var(--oro-claro); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(207, 162, 77, .45); }

.cierre-alta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 14px; align-items: center; }
.cierre-alta .campo-ico { flex: 0 0 auto; width: 176px; }
.cierre-alta input[type="text"] { flex: 1 1 180px; width: auto; }
.cierre-alta input { padding-top: 8px; padding-bottom: 8px; font-size: .88rem; }
.cierre-alta .campo-ico input { width: 100%; }
.cierre-servicios { display: grid; gap: 6px; flex: 1 1 100%; }
.cierre-serv { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 9px; }
.cierre-serv > span:first-of-type { width: 74px; font-size: .8rem; font-weight: 700; color: var(--apagado); }
.cierre-serv.es-cerrado input { opacity: .35; }
@media (max-width: 559px) {
  .cierre-alta .campo-ico { flex: 1 1 0; width: auto; min-width: 0; }
  .cierre-alta .seg { flex: 0 0 auto; }
}

.cierres-lista { display: grid; gap: 7px; }
.cierre {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 11px;
  padding: 9px 13px;
  background: var(--papel-2);
  border: 1px solid var(--filete);
  border-radius: var(--r);
  font-size: .88rem;
}
.cierre b { grid-column: 1; color: var(--texto); font-weight: 700; }
.cierre span { grid-column: 1; color: var(--apagado); font-size: .83rem; }
.cierre > em { grid-column: 1; justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cierre > button { grid-column: 2; grid-row: 1 / span 3; }
@media (min-width: 560px) {
  .cierre { display: flex; gap: 11px; }
  .cierre b, .cierre span, .cierre > em, .cierre > button { grid-column: auto; grid-row: auto; }
  .cierre > em { flex: 0 0 auto; max-width: none; }
}
.cierre em {
  font-style: normal;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(242, 232, 216, .08);
  color: var(--apagado);
  white-space: nowrap;
}
.cierre em.es-cerrado { background: var(--rojo-suave); color: var(--rojo); }
.cierre em.es-horario { background: var(--ambar-suave); color: var(--ambar); }
.cierre > button { margin-left: auto; }
.cierre button {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--filete);
  border-radius: var(--r);
  background: transparent;
  color: var(--apagado);
  cursor: pointer;
}
.cierre > button:hover { color: var(--rojo); border-color: var(--rojo); background: var(--rojo-suave); }

/* ---------------------------------------------------------
   MODALES
   --------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(5, 4, 3, .74);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal.is-on { display: flex; animation: fundido .22s ease both; }
@keyframes fundido { from { opacity: 0; } to { opacity: 1; } }
.modal-caja {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: auto;
  --caja-x: 20px;
  --caja-abajo: 22px;
  padding: 24px var(--caja-x) var(--caja-abajo);
  background: var(--papel);
  border: 1px solid var(--filete);
  border-top: 3px solid var(--oro);
  border-radius: var(--r);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95);
  animation: entra .28s cubic-bezier(.22, 1, .36, 1) both;
}
@media (min-width: 560px) { .modal-caja { --caja-x: 30px; --caja-abajo: 26px; padding-top: 28px; } }
@keyframes entra { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-caja--sm { max-width: 440px; }
.modal-caja--lg { max-width: 800px; }
.modal-x {
  position: absolute;
  right: 12px; top: 12px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  color: var(--apagado);
  font-size: 1rem;
  cursor: pointer;
}
.modal-x:hover { background: var(--papel-3); color: var(--texto); }
.modal-t {
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--texto);
  padding-right: 34px;
  margin: 0 0 16px;
}
.modal-t[tabindex="-1"]:focus { outline: none; }
.modal-sub { font-size: .88rem; color: var(--apagado); margin: -10px 0 18px; }
.modal-pie {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
  margin: 20px calc(-1 * var(--caja-x)) calc(-1 * var(--caja-abajo));
  padding: 15px var(--caja-x) var(--caja-abajo);
  background: var(--papel);
  border-top: 1px solid var(--filete-2);
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: 0 -14px 24px -24px rgba(0, 0, 0, .9);
}
.modal-pie--dos { flex-wrap: nowrap; }

.correo-para { margin: -4px 0 16px; font-size: .88rem; line-height: 1.55; color: var(--texto); overflow-wrap: anywhere; }
.correo-para b { font-weight: 700; color: var(--oro-claro); }
.pick-correo {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: -8px 0 14px;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--apagado);
  overflow-wrap: anywhere;
}
.pick-correo i { font-size: .78rem; color: var(--oro); }
.pick-correo b { font-weight: 700; color: var(--texto); }

.mesas-pick { display: grid; gap: 8px; }
.pick-zona { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--apagado); margin-top: 8px; }
.pick-zona em { font-style: normal; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--oro-claro); }
.pick-fila { display: grid; gap: 7px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pick-cuenta {
  margin: 0 0 14px;
  padding: 10px 13px;
  border: 1px solid var(--filete);
  border-radius: var(--r);
  background: var(--papel-2);
  font-size: .86rem;
  line-height: 1.5;
  color: var(--apagado);
}
.pick-cuenta.es-cabe { border-color: rgba(107, 203, 145, .55); background: var(--verde-suave); font-weight: 600; color: var(--verde); }
.pick-cuenta.es-corto { border-color: rgba(237, 190, 90, .55); background: var(--ambar-suave); font-weight: 600; color: var(--ambar); }
.pick {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--filete);
  border-radius: var(--r);
  background: var(--papel-2);
  font-family: var(--f-body);
  text-align: left;
  color: var(--texto);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .18s ease;
}
.pick:hover { border-color: var(--oro); transform: translateY(-1px); }
.pick b { font-size: .95rem; font-weight: 700; color: var(--texto); }
.pick small { font-size: .74rem; color: var(--apagado); }
.pick.is-on { border-color: var(--verde); background: var(--verde-suave); }
.pick.is-on::after {
  content: '\f00c';
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: .66rem;
  color: var(--verde);
}
.pick.es-ocupada { border-style: dashed; }
.pick.es-ocupada b { color: var(--apagado); }
.pick.es-ocupada small { color: var(--rojo); }
.pick-nada { border-style: dashed; }

.check-forzar, .check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  color: var(--texto);
  cursor: pointer;
}
.check-forzar { margin-top: 14px; padding: 10px 12px; background: var(--ambar-suave); border-radius: var(--r); }
.check-correo { margin: 0 0 14px; padding: 10px 12px; background: var(--azul-suave); border-radius: var(--r); line-height: 1.45; }
.check-correo span { overflow-wrap: anywhere; }
.check-correo b { font-weight: 700; }
.check-forzar input, .check input { width: 17px; height: 17px; margin: 0; accent-color: var(--oro); flex: 0 0 auto; }
.checks-fila { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 16px; }
.check-emoji { font-size: 1.05rem; line-height: 1; margin-right: 1px; }

/* ---------------------------------------------------------
   FICHA DE LA RESERVA
   --------------------------------------------------------- */
.fi-cab {
  padding: 14px 16px 15px;
  background: var(--papel-2);
  border: 1px solid var(--filete);
  border-radius: var(--r);
  margin-bottom: 18px;
}
.fi-cab .badge { display: inline-block; margin: 0 6px 9px 0; }
.fi-cuando {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
  margin: 0;
  font-family: var(--f-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--texto);
}
.fi-cuando em { font-style: normal; padding-left: 12px; border-left: 2px solid var(--oro); color: var(--oro); }
.fi-quien { margin: 6px 0 0; font-size: .9rem; font-weight: 600; color: var(--apagado); }
.fi-datos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px 20px; margin: 0 0 18px; }
.fi-dato { min-width: 0; }
@media (max-width: 559px) { .fi-dato--ancho { grid-column: 1 / -1; } }
.fi-dato dt { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--apagado); margin-bottom: 4px; }
.fi-dato dd { margin: 0; font-size: .93rem; font-weight: 600; line-height: 1.45; color: var(--texto); overflow-wrap: anywhere; }
.fi-dato a { color: var(--texto); text-decoration: none; border-bottom: 1px solid var(--filete); }
.fi-dato a:hover { color: var(--oro-claro); border-color: var(--oro); }
.fi-suave { font-weight: 400; font-size: .83rem; color: var(--apagado); }
.fi-marcas { margin-bottom: 16px; }
.fi-nota { margin-bottom: 12px; }
.fi-pie { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--filete-2); font-size: .78rem; color: var(--apagado); }

/* ---------------------------------------------------------
   AVISOS FLOTANTES
   --------------------------------------------------------- */
.avisos {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 300;
  display: grid;
  gap: 8px;
  max-width: min(350px, calc(100vw - 28px));
}
.aviso {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  background: var(--papel-3);
  border: 1px solid var(--filete);
  border-left: 3px solid var(--oro);
  color: var(--texto);
  border-radius: var(--r);
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .95);
  font-size: .88rem;
  line-height: 1.45;
  animation: avisa .3s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes avisa { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.aviso { cursor: pointer; }      /* un toque lo quita */
.aviso.se-va { animation: sale .3s ease both; }
@keyframes sale { to { opacity: 0; transform: translateX(22px); } }
.aviso i { color: var(--oro); margin-top: 3px; }
.aviso.es-ok { border-left-color: var(--verde); }
.aviso.es-ok i { color: var(--verde); }
.aviso.es-mal { border-left-color: var(--rojo); }
.aviso.es-mal i { color: var(--rojo); }
.aviso b { display: block; font-weight: 700; margin-bottom: 1px; }
.aviso-x { margin-left: auto; border: 0; background: none; color: rgba(242, 232, 216, .45); cursor: pointer; padding: 0 2px; font-size: .85rem; }
.aviso-x:hover { color: #fff; }
body.is-locked .avisos { top: 14px; bottom: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------
   CALENDARIO Y RELOJ DE LA CASA
   --------------------------------------------------------- */
body.panel input[type="date"], body.panel input[type="time"] { cursor: pointer; }
body.panel input[type="date"]::-webkit-calendar-picker-indicator,
body.panel input[type="time"]::-webkit-calendar-picker-indicator { display: none; }
body.panel input[type="date"]::-webkit-inner-spin-button,
body.panel input[type="time"]::-webkit-inner-spin-button { display: none; }
body.panel input[type="time"] {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A89B89' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 16px 16px;
  padding-right: 34px;
}

.cal, .reloj {
  position: fixed;
  z-index: 400;
  background: var(--papel-2);
  border: 1px solid var(--filete);
  border-radius: var(--r);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .95);
}
.cal { width: 278px; padding: 13px; overflow: hidden; }
.cal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.cal-mes { font-family: var(--f-display); font-size: 1.25rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--texto); }
.cal-nav {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--filete);
  border-radius: var(--r);
  background: transparent;
  color: var(--apagado);
  font-size: .7rem;
  cursor: pointer;
}
.cal-nav:hover:not(:disabled) { border-color: var(--oro); color: var(--oro); }
.cal-nav:disabled { opacity: .28; cursor: default; }
.cal-semana, .cal-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-semana { margin-bottom: 5px; padding-bottom: 7px; border-bottom: 1px solid var(--filete-2); }
.cal-semana span { text-align: center; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--apagado); }
.cal-hueco { aspect-ratio: 1; }
.cal-dia {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  min-width: 0;
  border-radius: var(--r);
  background: transparent;
  font-family: var(--f-body);
  font-size: .86rem;
  font-weight: 500;
  color: var(--texto);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.cal-dia:hover:not(:disabled) { background: var(--papel-3); }
.cal-dia:disabled { opacity: .24; cursor: default; }
.cal-dia.es-hoy { box-shadow: inset 0 0 0 1px var(--oro); color: var(--oro-claro); }
.cal-dia.es-cerrado { color: var(--apagado); text-decoration: line-through; }
.cal-dia.es-puesto { background: var(--oro); color: var(--fondo); font-weight: 700; box-shadow: none; text-decoration: none; }
.cal-pie { display: flex; gap: 6px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--filete-2); }
.cal-pie:empty { display: none; }
.cal-atajo, .reloj-atajo {
  flex: 1;
  padding: 7px 4px;
  border: 1px solid var(--filete);
  border-radius: var(--r);
  background: transparent;
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 600;
  color: var(--apagado);
  cursor: pointer;
}
.cal-atajo:hover, .reloj-atajo:hover { color: var(--oro); border-color: var(--oro); }

.reloj { width: 210px; padding: 11px; }
.reloj-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; padding-bottom: 8px; border-bottom: 1px solid var(--filete); }
.reloj-puesto { font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; color: var(--oro); font-variant-numeric: tabular-nums; }
.reloj-atajo { flex: none; padding: 3px 9px; font-size: .72rem; }
.reloj-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.reloj-cab { display: block; margin-bottom: 5px; font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-align: center; color: var(--apagado); }
.reloj-lista { position: relative; max-height: 170px; overflow-y: auto; display: grid; gap: 2px; padding-right: 3px; scrollbar-width: thin; }
.reloj-op {
  padding: 7px 0;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  font-family: var(--f-body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--texto);
  text-align: center;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.reloj-op:hover { background: var(--papel-3); }
.reloj-op.es-puesto { background: var(--oro); border-color: var(--oro); color: var(--fondo); font-weight: 700; }

/* ---------------------------------------------------------
   CHOQUE AL CERRAR UN DÍA
   --------------------------------------------------------- */
.choque-lista { display: grid; gap: 6px; margin-top: 14px; max-height: 232px; overflow-y: auto; padding-right: 3px; }
.choque-fila {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  background: var(--papel-2);
  border: 1px solid var(--filete);
  border-radius: var(--r);
}
.choque-hora { font-family: var(--f-display); font-size: 1.3rem; font-weight: 800; color: var(--oro); font-variant-numeric: tabular-nums; }
.choque-quien { min-width: 0; }
.choque-quien b { display: block; font-weight: 700; color: var(--texto); font-size: .9rem; line-height: 1.3; }
.choque-quien small { display: block; margin-top: 1px; font-size: .77rem; color: var(--apagado); }
@media (max-width: 460px) {
  .choque-fila { grid-template-columns: auto 1fr; }
  .choque-fila .badge { grid-column: 2; justify-self: start; margin-top: 4px; }
}
.choque-nota {
  display: flex;
  gap: 9px;
  margin: 14px 0 0;
  padding: 10px 12px;
  background: var(--ambar-suave);
  border: 1px solid rgba(237, 190, 90, .35);
  border-radius: var(--r);
  font-size: .83rem;
  line-height: 1.5;
  color: var(--texto);
}
.choque-nota i { color: var(--ambar); margin-top: 2px; flex: 0 0 auto; }

/* Gente sin reserva: cuántos son, con números grandes para el dedo.
   El de las sillas de la mesa va marcado. */
#m-sin .choque-nota { margin: 0 0 16px; }
.sin-num { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.sin-num button {
  min-height: 58px;
  border: 1px solid var(--filete);
  border-radius: var(--r);
  background: var(--papel-2);
  color: var(--texto);
  font-family: var(--f-body);
  font-size: 1.45rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.sin-num button:hover { border-color: var(--oro); background: var(--papel-3); }
.sin-num button.es-suya { border-color: rgba(207, 162, 77, .6); color: var(--oro-claro); }
.sin-num button:focus-visible { outline: none; box-shadow: var(--foco); }
.sin-num button:disabled { opacity: .45; cursor: wait; }
#m-sin .msg:empty { display: none; }

/* ---------------------------------------------------------
   EL PERSONAL
   El color de cada empleado llega en `--c` (lo pone admin.js).
   --------------------------------------------------------- */
.pe-punto { display: inline-block; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--apagado)); }
.pe-quien { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pe-quien > span { display: grid; min-width: 0; }
.pe-quien b { font-weight: 700; color: var(--texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-quien small { font-size: .75rem; color: var(--apagado); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pe-ahora { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 16px; }
.pe-ahora:empty { display: none; }
.pe-ahora-t { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--apagado); margin-right: 4px; }
.pe-ahora-quien {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--filete);
  border-radius: 999px;
  background: var(--papel);
  font-size: .82rem;
  color: var(--texto);
}
.pe-ahora-quien b { font-weight: 700; }
.pe-ahora-quien.es-bien  { border-color: rgba(107, 203, 145, .45); background: var(--verde-suave); }
.pe-ahora-quien.es-mal   { border-color: rgba(239, 123, 107, .45); background: var(--rojo-suave); color: var(--rojo); }
.pe-ahora-quien.es-aviso { border-color: rgba(237, 190, 90, .45); background: var(--ambar-suave); color: var(--ambar); }

.pe-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pe-botones { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-semana { font-weight: 600; font-size: .92rem; color: var(--texto); padding: 0 6px; }
@media (max-width: 559px) {
  .pe-barra .agenda-nav { width: 100%; flex-wrap: nowrap; align-items: center; }
  .pe-semana { flex: 1 1 auto; min-width: 0; text-align: center; font-size: .8rem; line-height: 1.3; }
  .pe-botones { width: 100%; }
  .pe-botones .btn { flex: 1 1 auto; }
  .pe-rejilla { min-width: 740px; }
  .pe-fila { grid-template-columns: 112px repeat(7, minmax(82px, 1fr)) 58px; }
}
.pe-nota { font-size: .82rem; line-height: 1.5; color: var(--apagado); margin-top: 12px; max-width: 72ch; }
.pe-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pe-filtros .campo-ico { width: 152px; }
.pe-filtros select { width: auto; min-width: 150px; padding-top: 8px; padding-bottom: 8px; font-size: .88rem; }
.pe-filtros input { padding-top: 8px; padding-bottom: 8px; font-size: .88rem; }

.pe-rejilla-caja { overflow-x: auto; background: var(--papel); border: 1px solid var(--filete); border-radius: var(--r); box-shadow: var(--sombra); }
.pe-rejilla { min-width: 860px; }
.pe-rejilla .vacio { border: 0; }
.pe-rejilla:has(.vacio) { min-width: 0; }
.pe-fila { display: grid; grid-template-columns: 158px repeat(7, minmax(88px, 1fr)) 70px; border-bottom: 1px solid var(--filete-2); }
.pe-fila:last-child { border-bottom: 0; }
.pe-fila > * { padding: 9px 8px; }
.pe-fila > .pe-quien, .pe-quien-cab { position: sticky; left: 0; z-index: 1; background: var(--papel); border-right: 1px solid var(--filete-2); }
.pe-fila--cab { background: var(--papel-3); }
.pe-fila--cab .pe-quien-cab { background: var(--papel-3); }
.pe-quien-cab, .pe-dia-cab, .pe-total-cab { font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--apagado); }
.pe-dia-cab { text-align: center; }
.pe-dia-cab b { font-size: .88rem; letter-spacing: 0; color: var(--texto); }
.pe-dia-cab.es-hoy b { color: var(--oro); }
.pe-total-cab, .pe-total { text-align: right; }
.pe-total { font-size: .84rem; font-weight: 700; color: var(--texto); align-self: center; }
.pe-celda { display: flex; flex-direction: column; gap: 5px; border-left: 1px solid var(--filete-2); min-height: 58px; }
.pe-celda.es-hoy { background: rgba(207, 162, 77, .05); }
.pe-fila.es-baja .pe-quien { opacity: .55; }
.pe-turno {
  display: grid;
  width: 100%;
  padding: 6px 7px;
  border: 1px solid transparent;
  border-left: 3px solid var(--c, var(--apagado));
  border-radius: 5px;
  background: var(--papel-2);
  font-family: var(--f-body);
  font-size: .8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--texto);
  text-align: left;
  cursor: pointer;
}
.pe-turno small { font-size: .7rem; font-weight: 500; color: var(--apagado); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-turno:hover { border-color: var(--filete); }
.pe-mas {
  margin-top: auto;
  width: 100%;
  min-height: 26px;
  border: 1px dashed transparent;
  border-radius: 5px;
  background: transparent;
  color: transparent;
  font-size: .72rem;
  cursor: pointer;
}
.pe-celda:hover .pe-mas, .pe-mas:focus-visible { color: var(--apagado); border-color: var(--filete); }
.pe-mas:hover { color: var(--oro); border-color: var(--oro); }
@media (pointer: coarse) { .pe-mas { color: rgba(168, 155, 137, .5); border-color: var(--filete-2); min-height: 34px; } }

.pe-resumen { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 16px; }
.pe-resumen:empty { display: none; }
.pe-res { display: grid; gap: 2px; padding: 12px 14px; background: var(--papel); border: 1px solid var(--filete); border-radius: var(--r); }
.pe-res-quien { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--texto); }
.pe-res b { font-family: var(--f-display); font-size: 1.7rem; font-weight: 800; color: var(--texto); line-height: 1.1; margin-top: 4px; }
.pe-res-de { font-size: .76rem; color: var(--apagado); }
.pe-res em { font-style: normal; font-size: .78rem; font-weight: 600; margin-top: 4px; }
.pe-res em.es-mal { color: var(--rojo); }
.pe-res em.es-bien { color: var(--verde); }

.pe-lista-dia { margin: 18px 0 8px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--apagado); }
.pe-lista-dia:first-child { margin-top: 0; }
.pe-lista-grupo { display: grid; gap: 6px; }
.pe-fichaje {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) repeat(3, minmax(90px, .8fr)) minmax(160px, 2fr) auto;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 14px;
  background: var(--papel);
  border: 1px solid var(--filete);
  border-radius: var(--r);
}
.pe-par { display: grid; font-size: .87rem; font-variant-numeric: tabular-nums; color: var(--texto); }
.pe-par small { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--apagado); }
.pe-marcas { display: flex; flex-wrap: wrap; gap: 5px; }
.pe-marca { padding: 3px 9px; border-radius: 999px; font-size: .73rem; font-weight: 600; line-height: 1.4; }
.pe-marca.es-bien  { background: var(--verde-suave); color: var(--verde); }
.pe-marca.es-mal   { background: var(--rojo-suave); color: var(--rojo); }
.pe-marca.es-aviso { background: var(--ambar-suave); color: var(--ambar); }
.pe-marca.es-info  { background: var(--azul-suave); color: var(--azul); }
.pe-marca.es-gris  { background: rgba(242, 232, 216, .08); color: var(--apagado); }
@media (max-width: 900px) {
  .pe-fichaje { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pe-fichaje .pe-quien, .pe-fichaje .pe-marcas { grid-column: 1 / -1; }
  .pe-fichaje .mini { grid-column: 1 / -1; justify-self: start; }
}

.pe-empleado { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; background: var(--papel); border: 1px solid var(--filete); border-radius: var(--r); }
.pe-empleado .pe-quien { flex: 1 1 200px; }
.pe-empleado.es-baja { opacity: .7; }
.pe-empleado-acc { display: flex; flex-wrap: wrap; gap: 6px; }
.pe-margen { margin-top: 22px; max-width: 520px; }
.btn.es-rojo-texto { color: var(--rojo); margin-right: auto; }
.btn.es-rojo-texto:hover { border-color: var(--rojo); background: var(--rojo-suave); }
#m-turno .pe-nota { margin: -6px 0 12px; }
#m-turno .pe-nota:empty { display: none; }

/* ---------------------------------------------------------
   LA PANTALLA DEL EMPLEADO
   --------------------------------------------------------- */
.empleado { min-height: 100vh; min-height: 100dvh; background: var(--fondo); }
.em-cabeza {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: rgba(13, 11, 9, .96);
  border-bottom: 1px solid var(--filete);
}
.em-cabeza img { height: 42px; width: 42px; }
.em-quien { flex: 1 1 auto; display: grid; min-width: 0; }
.em-quien b { font-family: var(--f-display); font-size: 1.3rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-quien span { font-size: .78rem; color: var(--apagado); }
.em-lienzo { max-width: 560px; margin: 0 auto; padding: 22px 16px 60px; }
.em-reloj { text-align: center; }
.em-hora { display: block; font-family: var(--f-display); font-size: 4.4rem; font-weight: 900; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--oro); }
.em-dia { display: block; margin-top: 6px; font-size: .92rem; color: var(--apagado); }
.em-estado { margin: 20px 0 14px; padding: 12px 14px; border-radius: var(--r); text-align: center; font-size: .96rem; background: var(--papel); border: 1px solid var(--filete); }
.em-estado.es-dentro { background: var(--verde-suave); border-color: rgba(107, 203, 145, .45); color: var(--verde); }
.em-estado.es-fuera  { color: var(--apagado); }
.em-aviso { margin: -4px 0 14px; padding: 10px 12px; border-radius: var(--r); background: var(--ambar-suave); color: var(--ambar); font-size: .85rem; font-weight: 600; line-height: 1.45; }
.em-fichar {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  min-height: 74px;
  padding: 16px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--verde-fuerte);
  color: #fff;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 30px -16px rgba(47, 143, 87, .9);
  transition: transform .15s ease, background-color .2s ease, opacity .2s ease;
}
.em-fichar i { font-size: 1.3rem; }
.em-fichar:active { transform: scale(.98); }
.em-fichar.es-salida { background: var(--oro); color: var(--fondo); box-shadow: 0 14px 30px -16px rgba(207, 162, 77, .8); }
.em-fichar:disabled { opacity: .5; cursor: default; }
.em-msg { text-align: center; }
.em-bloque { margin-top: 28px; }
.em-t { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--apagado); margin-bottom: 9px; }
.em-turno-hoy {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding: 12px 14px; margin-bottom: 6px;
  background: var(--papel);
  border: 1px solid var(--filete);
  border-left: 3px solid var(--oro);
  border-radius: var(--r);
}
.em-turno-hoy b { font-family: var(--f-display); font-size: 1.6rem; font-weight: 800; color: var(--texto); font-variant-numeric: tabular-nums; }
.em-turno-hoy span { font-size: .84rem; color: var(--apagado); }
.em-libre { font-size: .92rem; color: var(--apagado); }
.em-semana, .em-fichajes { background: var(--papel); border: 1px solid var(--filete); border-radius: var(--r); overflow: hidden; }
.em-semana:empty { display: none; }
.em-fichajes:has(> .em-libre) { background: none; border: 0; }
.em-dia-fila, .em-fichaje {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--filete-2);
  font-size: .9rem;
}
.em-dia-fila:last-child, .em-fichaje:last-child { border-bottom: 0; }
.em-dia-fila.es-hoy { background: rgba(207, 162, 77, .07); }
.em-dia-fila.es-hoy .em-dia-nombre { color: var(--oro); }
.em-dia-nombre { font-weight: 700; color: var(--texto); }
.em-dia-turnos { text-align: right; font-variant-numeric: tabular-nums; color: var(--texto); }
.em-dia-fila.es-libre .em-dia-turnos { color: var(--apagado); }
.em-fichaje-dia { font-weight: 700; color: var(--texto); min-width: 90px; }
.em-fichaje-horas { font-variant-numeric: tabular-nums; }
.em-fichaje-horas small { color: var(--apagado); margin-left: 4px; }
.em-fichaje .pe-marcas { flex: 1 1 100%; }

/* ---------------------------------------------------------
   PANTALLAS TÁCTILES: los controles no bajan de 40 px.
   --------------------------------------------------------- */
@media (pointer: coarse) {
  .btn, .chip, .mini, .seg-b, .tab { min-height: 40px; }
  .campo-ico input, .cierre-alta input, .espera-rapida input,
  .horario-margen input, body.panel .horario-horas input[type="time"],
  body.panel .cierre-serv input[type="time"] { min-height: 40px; }
  .alerg-b, .cal-atajo, .reloj-atajo { min-height: 40px; }
  .horario-sw { width: 50px; height: 30px; }
  .horario-sw::after { width: 24px; height: 24px; }
  .horario-sw[aria-checked="true"]::after { transform: translateX(20px); }
  .plato-asa { width: 32px; }
  .user-btn, .mesa-mas, .plato-mas, .modal-x { width: 40px; height: 40px; }
  .cal-nav { width: 40px; height: 40px; }
  .cal-dia { min-height: 40px; }
  .reloj { width: 226px; }
  .reloj-op { min-height: 40px; }
  .reloj-lista { max-height: 210px; }
  .check input[type="checkbox"], .check-forzar input[type="checkbox"] { width: 21px; height: 21px; }
  .cierre button { min-width: 40px; min-height: 40px; }
  .rsv-datos a, .fi-dato a[href^="tel:"], .fi-dato a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 34px; }
}

/* =========================================================
   EN EL MÓVIL
   ========================================================= */
@media (max-width: 559px) {
  .h-sec { font-size: 1.8rem; }
  .vista-head { align-items: stretch; }
  .vista-head > .btn, .vista-botones, .carta-botones, .agenda-nav { width: 100%; }
  .vista-head > .btn { justify-content: center; }
  .vista-botones .btn, .carta-botones .btn { flex: 1 1 auto; }
  .agenda-nav { flex-wrap: nowrap; }
  .agenda-nav .campo-ico { flex: 1 1 auto; width: auto; min-width: 0; }

  .filtros { gap: 10px; }
  #chips-estado { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .chips--sec .chip { flex: 1 1 auto; }
  .filtros-fila .chips { flex: 1 1 100%; }
  .filtros-campos { flex: 1 1 100%; }
  .filtros-campos .campo-ico { width: 100%; }

  .espera-resumen .espera-dato { flex: 1 1 130px; }
  .tarjeta { padding: 18px 15px; }

  .carta-sec-top {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 9px;
    row-gap: 2px;
    padding: 11px 8px 11px 12px;
  }
  .carta-sec-flecha { grid-column: 1; grid-row: 1; }
  .carta-sec-ico { grid-column: 2; grid-row: 1; }
  .carta-sec-top h3 { grid-column: 3; grid-row: 1; white-space: normal; font-size: 1.2rem; line-height: 1.1; }
  .carta-sec-mas { grid-column: 4; grid-row: 1 / span 2; margin: 0; }
  .carta-sec-datos { grid-column: 3; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
  .carta-sec-intro { padding-left: 15px; }
  .carta-platos { padding: 0 8px 12px; }
  .plato-fila { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; column-gap: 8px; row-gap: 3px; }
  .plato-asa { grid-column: 1; grid-row: 1 / span 2; }
  .plato-txt { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .plato-foto-mini { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .plato-fila:has(.plato-foto-mini) { grid-template-columns: auto auto minmax(0, 1fr) auto auto; }
  .plato-fila:has(.plato-foto-mini) .plato-txt { grid-column: 3; }
  .plato-fila:has(.plato-foto-mini) .plato-precio,
  .plato-fila:has(.plato-foto-mini) .plato-alerg { grid-column: 4; }
  .plato-fila:has(.plato-foto-mini) .plato-mas { grid-column: 5; }
  .plato-nombre { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; line-height: 1.3; }
  .plato-precio { grid-column: 3; grid-row: 1; margin: 0; justify-self: end; font-size: 1.15rem; }
  .plato-alerg { grid-column: 3; grid-row: 2; justify-self: end; }
  .plato-alerg .al { width: 16px; height: 16px; }
  .plato-alerg .al svg { width: 14px; height: 14px; }
  .plato-fila:not(:has(.plato-alerg)) .plato-precio { grid-row: 1 / span 2; align-self: center; }
  .plato-mas { grid-column: 4; grid-row: 1 / span 2; align-self: center; }

  .avisos { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  body.is-locked .avisos { top: 10px; }
}
@media (max-width: 400px) {
  .chip { padding: 7px 10px; font-size: .76rem; }
  .chips--sec .chip { padding: 6px 9px; font-size: .72rem; }
}

/* Los diálogos en el móvil (y en un móvil tumbado): a pantalla
   completa, con el pie pegado abajo; los pequeños, como una hoja. */
@media (max-width: 559px), (max-height: 540px) {
  .modal { padding: 0; }
  .modal-caja { min-height: 100%; margin: 0 auto; border-radius: 0; border-left: 0; border-right: 0; }
  .modal-caja--sm { min-height: 0; margin: auto auto 0; border-radius: 14px 14px 0 0; }
  .modal-pie { padding: 12px var(--caja-x) calc(12px + env(safe-area-inset-bottom, 0px)); border-top-color: var(--filete); border-radius: 0; }
}
@media (max-width: 559px) {
  .modal-caja { max-width: none; }
  #m-ficha .modal-pie, #m-cierre .modal-pie {
    position: static;
    margin: 20px 0 0;
    padding: 17px 0 0;
    background: none;
    border-top-color: var(--filete-2);
    box-shadow: none;
  }
  .modal-pie { flex-wrap: wrap-reverse; }
  .modal-pie > .btn, .modal-pie > .mini { flex: 1 1 auto; justify-content: center; }
}

/* La ficha del plato según su sección: el grupo y su traducción, solo
   en la barra; la foto, solo en las de platos con foto. */
#form-plato:not(.es-barra) #pl-grupo-campo,
#form-plato:not(.es-barra) .trad-campos [data-i="2"],
#form-plato:not(.es-platos) #pl-foto-campo { display: none; }

.pe-dia-cab small { font-size: .58rem; letter-spacing: .08em; color: var(--rojo); }

/* ---------------------------------------------------------
   9-10-2026: LOS FILTROS EN DOS DESPLEGABLES, EL PLANO DE
   RESERVAS A LA DERECHA, LAS SOLICITUDES, LA PESTAÑA DE FICHAR Y
   LOS APARTADOS DE CADA EMPLEADO
   --------------------------------------------------------- */

/* Reservas va más ancha cuando se ve: mitad lista, mitad plano. */
.lienzo:has(#vista-reservas.is-on) { max-width: var(--ancho-panel); }

/* Los filtros: «Estado» y «Cuándo» en desplegables, el día suelto y el
   buscador, en una fila (en el móvil, de dos en dos). */
.filtros--sel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.filtros--sel .sel-campo { flex: 1 1 140px; }
.filtros--sel .filtros-dia { flex: 1 1 140px; }
.filtros--sel .campo-busca { flex: 1 1 100%; }
@media (min-width: 760px) {
  .filtros--sel .sel-campo { flex: 0 1 210px; }
  .filtros--sel .filtros-dia { flex: 0 0 170px; }
  .filtros--sel .campo-busca { flex: 1 1 220px; }
}
.sel-campo { display: grid; gap: 5px; min-width: 0; }
.sel-campo[hidden] { display: none !important; }
.sel-lbl { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--apagado); }
.sel-campo select { padding-top: 8px; padding-bottom: 8px; font-size: .9rem; font-weight: 600; }
.sel-campo select.hay-trabajo { border-color: rgba(237, 190, 90, .6); }
.filtros--sel .campo-ico input { padding-top: 8px; padding-bottom: 8px; font-size: .88rem; min-width: 0; }
.filtros-dia { min-width: 0; }

/* Si el día que se mira cierra o abre con otro horario. */
.dia-aviso {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: var(--r);
  background: var(--azul-suave);
  border: 1px solid rgba(134, 182, 232, .35);
  color: var(--texto);
  font-size: .88rem;
  line-height: 1.5;
}
.dia-aviso i { margin-top: 3px; color: var(--azul); }
.dia-aviso b { font-weight: 700; }
.dia-aviso em { font-style: normal; font-weight: 700; color: var(--ambar); }
.dia-aviso.es-cerrado { background: var(--rojo-suave); border-color: rgba(239, 123, 107, .4); }
.dia-aviso.es-cerrado i { color: var(--rojo); }

/* Mitad y mitad: a la izquierda las reservas, a la derecha el plano,
   que se queda a la vista al bajar por la lista. En estrecho, el plano
   va arriba y se pliega. */
.res-partida { display: grid; gap: 16px; }
.res-col-lista { min-width: 0; order: 2; }
.res-col-plano { min-width: 0; order: 1; }
@media (min-width: 1100px) {
  .res-partida { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
  .res-col-lista { order: 1; }
  .res-col-plano { order: 2; position: sticky; top: 96px; }
  .rp-plegar { display: none !important; }
}
.rp-caja {
  background: var(--papel);
  border: 1px solid var(--filete);
  border-radius: var(--r);
  padding: 12px 12px 10px;
  box-shadow: var(--sombra);
}
.rp-cabeza { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.rp-titulo {
  flex: 1 1 auto;
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--oro-claro);
}
.rp-hora { display: flex; align-items: center; gap: 5px; }
.rp-hora select { width: auto; min-width: 128px; padding: 7px 10px; font-size: .88rem; font-weight: 700; }
.rp-hora .btn { padding: 7px 10px; }
.rp-plegar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--filete);
  border-radius: var(--r);
  background: transparent;
  color: var(--apagado);
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}
.rp-plegar i { transition: transform .2s ease; }
.res-col-plano.es-plegado .rp-plegar i { transform: rotate(180deg); }
.res-col-plano.es-plegado .rp-cabeza { margin-bottom: 0; }
.res-col-plano.es-plegado .rp-hora { display: none; }
#res-plano {
  padding: 5px;
  background: var(--fondo);
  border: 1px solid var(--filete);
  border-radius: var(--r);
}
#res-plano.plano.es-tumbado { max-width: min(100%, 420px); }
.rp-leyenda { margin-top: 10px; }
.rp-leyenda b { color: var(--texto); font-weight: 700; margin-left: 2px; }
.plano-llave--libre      { background: #F2E8D8; }
.plano-llave--reservada  { background: #CFA24D; border-color: #8C6420; }
.plano-llave--ocupada    { background: #E5675A; border-color: #8E2F25; }
.plano-llave--recogiendo { background: #6F655B; border-style: dashed; border-color: #F2E8D8; }
.rp-nota { margin-top: 8px; font-size: .8rem; color: var(--apagado); line-height: 1.45; }

/* La reserva que se está mirando en el plano. */
.rsv { cursor: pointer; }
.rsv.is-sel { border-color: var(--verde); box-shadow: 0 0 0 2px rgba(107, 203, 145, .35), var(--sombra); }

/* Las solicitudes y los que están en la mesa. */
.marca--solicitud { background: var(--ambar-suave); color: var(--ambar); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(237, 190, 90, .35); }
.marca--solicitud i { color: var(--ambar); }
.marca--sentados { background: var(--azul-suave); color: var(--azul); font-weight: 700; }
.marca--sentados i { color: var(--azul); }
.rsv--se-fue { border-left-color: #6E655B; }
.badge--se-fue { background: rgba(242, 232, 216, .08); color: var(--apagado); }
.mini.es-llega { color: var(--azul); border-color: rgba(134, 182, 232, .45); }
.mini.es-llega:hover { color: var(--fondo); background: var(--azul); border-color: var(--azul); }
.mini.es-sevan { color: var(--verde); border-color: rgba(107, 203, 145, .45); }
.mini.es-sevan:hover { color: var(--fondo); background: var(--verde); border-color: var(--verde); }

/* Con cuatro pestañas o menos (un empleado), en una fila. */
.tabs.tabs--pocas { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
@media (min-width: 480px) and (max-width: 819px) {
  .tabs.tabs--pocas { display: flex; }
  .tabs.tabs--pocas .tab { flex: 1 1 0; }
}

/* La pestaña de fichar, dentro de la administración. */
#vista-fichaje .em-lienzo { padding-top: 6px; }

/* Los apartados de cada empleado: en su fila y en su ficha. */
.pe-secciones { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 100%; }
.pe-secciones em {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(242, 232, 216, .07);
  color: var(--apagado);
  font-size: .7rem;
  font-style: normal;
  font-weight: 600;
}
.pe-secciones em.es-nada { color: var(--rojo); background: var(--rojo-suave); }
@media (min-width: 900px) { .pe-secciones { flex: 0 1 auto; } }

.secciones-elige { margin: 4px 0 0; padding: 0; border: 0; min-width: 0; }
.secciones-elige legend { padding: 0; }
.secciones-rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sec-op { position: relative; display: block; cursor: pointer; }
.sec-op input { position: absolute; opacity: 0; pointer-events: none; }
.sec-op span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--filete);
  border-radius: var(--r);
  background: var(--papel);
  color: var(--apagado);
  font-size: .86rem;
  font-weight: 600;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.sec-op span i { width: 16px; text-align: center; color: var(--apagado); font-size: .8rem; }
.sec-op input:checked + span { background: var(--oro-suave); border-color: var(--oro); color: var(--texto); }
.sec-op input:checked + span i { color: var(--oro); }
.sec-op input:focus-visible + span { box-shadow: var(--foco); }
.secciones-elige.es-solo-ver .sec-op { cursor: default; }
.secciones-elige.es-solo-ver .sec-op span { opacity: .75; }
.secciones-ayuda { display: block; margin-top: 7px; font-size: .76rem; color: var(--apagado); line-height: 1.45; }

/* =========================================================
   DOS LOCALES (12-10-2026): TÍAS Y PLAYA BLANCA
   Se trabaja en uno a la vez: el de arriba a la derecha. Su nombre va
   también al lado del titular de cada pestaña, para que en la tablet
   nadie apunte en el que no es.
   ========================================================= */
.tb-local {
  display: inline-flex;
  align-items: center;
  height: 38px;
  border: 1px solid var(--filete);
  border-radius: 999px;
  background: var(--papel);
  color: var(--texto);
  min-width: 0;
  transition: border-color .2s ease;
}
/* Con varios locales, la píldora entera es un botón que abre el menú de
   la casa (el desplegable del navegador salía con otro aspecto). */
.tb-local-btn, .tb-local-uno {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-width: 0;
  padding: 0 14px 0 13px;
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--texto);
  white-space: nowrap;
}
.tb-local-btn {
  max-width: 44vw;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.tb-local-btn > i:first-child, .tb-local-uno > i { color: var(--oro); font-size: .8rem; }
.tb-local-txt { overflow: hidden; text-overflow: ellipsis; }
.tb-local-flecha { font-size: .62rem; color: var(--apagado); transition: transform .2s ease, color .2s ease; }
.tb-local:has(.tb-local-btn:hover), .tb-local:has(.tb-local-btn.is-on) { border-color: var(--oro); }
.tb-local-btn:hover .tb-local-flecha, .tb-local-btn.is-on .tb-local-flecha { color: var(--oro); }
.tb-local-btn.is-on .tb-local-flecha { transform: rotate(180deg); }
.tb-local-btn:focus-visible { box-shadow: var(--foco); }
/* El menú: el de ahora, con su marca; los otros, con lo que tienen por contestar. */
.menu-op.es-actual { background: var(--oro-suave); }
.menu-op.es-actual b { color: var(--oro-claro); }
.menu-op.es-trabajo small { color: var(--lava); font-weight: 600; }
/* En el móvil, con el botón de los locales no cabe también el rótulo
   «Administración»: se queda el logo. */
@media (max-width: 559px) {
  .con-locales .tb-brand span { display: none; }
  .tb-local-btn { max-width: 52vw; }
}
/* En los móviles más estrechos (360 px), tampoco cabe con un solo local
   si su nombre es largo («Playa Blanca»): el botón del usuario se salía. */
@media (max-width: 389px) {
  .tb-brand span { display: none; }
  .tb-local-uno { max-width: 56vw; }
}
/* Hay solicitudes esperando en el otro local: el punto se enciende. */
.tb-local.hay-trabajo { border-color: rgba(228, 87, 46, .55); }
.tb-local.hay-trabajo .tb-local-btn > i:first-child { color: var(--lava); }

.h-local {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px 2px;
  border: 1px solid rgba(207, 162, 77, .45);
  border-radius: 999px;
  background: var(--oro-suave);
  color: var(--oro-claro);
  font-size: .9rem;
  letter-spacing: .06em;
  vertical-align: middle;
}
@media (max-width: 559px) { .h-local { font-size: .78rem; margin-left: 6px; } }

/* Fichar: en qué local se ficha (con dos o más). */
.em-local { margin: 12px 0 0; text-align: center; font-size: .86rem; color: var(--apagado); }
.em-local b { color: var(--oro-claro); font-weight: 700; }

/* Ajustes: el local y los locales */
.locales-lista { display: grid; gap: 8px; margin-top: 4px; }
.local-fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 11px 14px;
  border: 1px solid var(--filete);
  border-radius: var(--r);
  background: var(--papel-2);
}
.local-fila > i { color: var(--oro); }
.local-fila b {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.local-fila.es-actual { border-color: rgba(207, 162, 77, .55); }
.local-estado {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: var(--verde-suave);
  color: var(--verde);
}
.local-estado.es-proximamente { background: var(--ambar-suave); color: var(--ambar); }
.local-estado.es-cerrado { background: var(--rojo-suave); color: var(--rojo); }
.local-web { font-size: .78rem; color: var(--apagado); }
.local-ahora { margin-left: auto; font-size: .78rem; font-style: normal; color: var(--oro-claro); }
.local-fila .mini { margin-left: auto; }
.check-local { margin: 0 0 14px; }

/* Empleados: dónde trabaja cada uno */
.pe-locales { display: flex; flex-wrap: wrap; gap: 4px; }
.pe-locales em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--oro-suave);
  color: var(--oro-claro);
  font-size: .7rem;
  font-style: normal;
  font-weight: 700;
}
.pe-locales em i { font-size: .62rem; color: var(--oro); }

/* ---------------------------------------------------------
   ÁGORA (23-10-2026): el TPV avisa de cada mesa cobrada
   --------------------------------------------------------- */
/* En Reservas: si Ágora está avisando. */
.tpv-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(107, 203, 145, .4);
  border-radius: 999px;
  background: var(--verde-suave);
  color: var(--verde);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.tpv-pill i { font-size: .76rem; }
.tpv-pill em { font-style: normal; font-weight: 500; color: var(--apagado); }
.tpv-pill.es-mirar { border-color: rgba(134, 182, 232, .4); background: var(--azul-suave); color: var(--azul); }
.tpv-pill.es-viejo { border-color: var(--filete); background: transparent; color: var(--apagado); }

/* La tarjeta de Ajustes. */
.tpv-estado {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: var(--r);
  background: var(--papel-2);
  font-size: .88rem;
  line-height: 1.5;
}
.tpv-estado::before {
  content: '';
  flex: 0 0 auto;
  width: 9px; height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--apagado);
}
.tpv-estado.es-vivo::before { background: var(--verde); box-shadow: 0 0 0 3px var(--verde-suave); }
.tpv-estado.es-viejo::before { background: var(--ambar); }
.tpv-estado b { color: var(--texto); }

.tpv-modos { display: flex; flex-wrap: wrap; gap: 8px; }
.tpv-modo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--filete);
  border-radius: var(--r);
  background: var(--papel-2);
  color: var(--apagado);
  font-family: var(--f-body);
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.tpv-modo:hover:not(:disabled) { border-color: var(--oro); color: var(--texto); }
.tpv-modo[aria-checked="true"] { border-color: var(--oro); background: var(--oro-suave); color: var(--oro-claro); }
.tpv-modo[data-modo="activo"][aria-checked="true"] { border-color: var(--verde-fuerte); background: var(--verde-suave); color: var(--verde); }
.tpv-modo:disabled { cursor: default; opacity: .55; }
.tpv-modo[aria-checked="true"]:disabled { opacity: 1; }
.tpv-modo:focus-visible { outline: none; box-shadow: var(--foco); }
.tpv-modo-ayuda { margin: 10px 0 0; max-width: 66ch; font-size: .84rem; line-height: 1.55; color: var(--apagado); }

.tpv-h {
  margin: 22px 0 10px;
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--texto);
}
.tpv-pegar { margin-top: 6px; }
.tpv-pasos { margin: 0 0 12px; max-width: 72ch; font-size: .84rem; line-height: 1.55; color: var(--apagado); }
.tpv-url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--filete);
  border-radius: var(--r);
  background: var(--papel-2);
}
.tpv-url-t { grid-column: 1 / -1; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--apagado); }
.tpv-url code {
  min-width: 0;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--oro-claro);
  overflow-wrap: anywhere;
}
.tpv-ojo { display: flex; gap: 8px; margin: 4px 0 0; font-size: .8rem; line-height: 1.5; color: var(--apagado); }
.tpv-ojo i { margin-top: 3px; color: var(--ambar); }

.tpv-eventos { display: grid; gap: 8px; }
.tpv-ev {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 12px;
  padding: 10px 12px;
  border: 1px solid var(--filete-2);
  border-left: 3px solid var(--filete);
  border-radius: var(--r);
  background: var(--papel-2);
  font-size: .84rem;
  line-height: 1.45;
}
.tpv-ev.es-ok { border-left-color: var(--verde); }
.tpv-ev.es-mirar { border-left-color: var(--azul); }
.tpv-ev.es-mal { border-left-color: var(--ambar); }
.tpv-ev-hora { grid-row: span 2; font-family: var(--f-display); font-size: 1.15rem; font-weight: 800; color: var(--texto); }
.tpv-ev-que { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tpv-ev-que b { color: var(--texto); }
.tpv-ev-res {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(242, 232, 216, .07);
  font-size: .72rem;
  font-weight: 700;
  color: var(--apagado);
}
.tpv-ev.es-ok .tpv-ev-res { background: var(--verde-suave); color: var(--verde); }
.tpv-ev.es-mirar .tpv-ev-res { background: var(--azul-suave); color: var(--azul); }
.tpv-ev.es-mal .tpv-ev-res { background: var(--ambar-suave); color: var(--ambar); }
.tpv-ev-det { color: var(--apagado); }
.tpv-ev details { grid-column: 1 / -1; margin-top: 4px; }
.tpv-ev summary { cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--oro-claro); }
.tpv-ev pre {
  max-height: 260px;
  margin: 6px 0 0;
  padding: 10px;
  overflow: auto;
  border-radius: var(--r);
  background: var(--fondo);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: .72rem;
  line-height: 1.5;
  color: var(--texto);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tpv-vacio { padding: 14px; border: 1px dashed var(--filete); border-radius: var(--r); font-size: .86rem; color: var(--apagado); }

/* En cada reserva: que se cobró en Ágora. */
.marca--cobrada { background: var(--verde-suave); color: var(--verde); }
.marca--cobrada i { color: var(--verde); }

/* =========================================================
   LO DEL 30-10-2026
   ========================================================= */

/* Las cifras del día, encima de las reservas */
.res-cifras { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.cifra {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--filete);
  border-radius: var(--r);
  background: var(--papel-2);
  color: var(--apagado);
  font: inherit;
  font-size: .83rem;
  cursor: pointer;
}
.cifra b { font-size: 1.02rem; font-weight: 700; color: var(--texto); font-variant-numeric: tabular-nums; }
.cifra:hover { border-color: var(--oro); }
.cifra:focus-visible { outline: none; box-shadow: var(--foco); }
.cifra.is-on { border-color: var(--oro); background: var(--oro-suave); color: var(--texto); }
.cifra--total { margin-left: auto; border-color: rgba(207, 162, 77, .4); }
.cifra--total b { color: var(--oro-claro); }
@media (max-width: 620px) {
  .res-cifras { display: grid; grid-template-columns: repeat(3, 1fr); }
  .cifra { flex-direction: column; align-items: center; gap: 0; padding: 6px 4px; font-size: .74rem; text-align: center; }
  .cifra--total { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 6px; margin-left: 0; }
}

/* Quién la apuntó y quién la tocó */
.rsv-autor {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin: 8px 0 0;
  color: var(--apagado);
  font-size: .78rem;
}
.rsv-autor i { color: var(--oro); }
.rsv-autor b { color: var(--texto); font-weight: 600; }

/* Lo que dice la IA al dar mesa */
.consejo {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: var(--r);
  border: 1px solid rgba(207, 162, 77, .35);
  background: var(--oro-suave);
  font-size: .88rem;
  line-height: 1.45;
}
.consejo.es-boton { padding: 0; border: 0; background: none; }
.consejo.es-carga { display: flex; align-items: center; gap: 9px; color: var(--apagado); }
.consejo.es-pega { border-color: rgba(237, 190, 90, .4); background: var(--ambar-suave); color: var(--ambar); }
.consejo-t { display: flex; gap: 8px; margin: 0; }
.consejo-t i { margin-top: 3px; color: var(--oro); }
.consejo-t b { font-weight: 700; }
.consejo-p { margin: 4px 0 0 24px; color: var(--apagado); }
.consejo-p.es-evita { color: var(--ambar); }
.consejo-ops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.mini.es-ia { border-color: rgba(207, 162, 77, .55); color: var(--oro-claro); }

/* Qué mesas se juntan */
.juntas-caja { margin-top: 16px; }
.juntas-cabeza { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 18px; margin-bottom: 12px; }
.juntas-cabeza .tarjeta-nota { margin-bottom: 0; max-width: 62ch; }
.juntas-lista { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.juntas-lista .msg { grid-column: 1 / -1; }
.junta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 12px;
  border: 1px solid var(--filete);
  border-radius: var(--r);
  background: var(--papel-2);
  font-size: .88rem;
}
.junta > b { font-weight: 600; }
.junta-plazas { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--apagado); font-size: .8rem; }
.junta-plazas em { min-width: 1.3em; color: var(--texto); font-style: normal; font-weight: 700; text-align: center; }
.junta button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--filete);
  border-radius: var(--r);
  background: none;
  color: var(--texto);
  font: inherit;
  cursor: pointer;
}
.junta button:hover { border-color: var(--oro); }
.junta-x { color: var(--apagado); border-color: transparent; }
#btn-juntar.is-on { background: var(--oro); color: #15110F; border-color: var(--oro); }

/* El alta de días cerrados: desde y hasta, con su rótulo encima */
.cierre-alta { align-items: flex-end; }
.cierre-dia { flex: 0 0 176px; display: grid; gap: 5px; min-width: 0; }
.cierre-dia em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .8; }
.cierre-alta .cierre-dia .campo-ico { width: 100%; }
@media (max-width: 620px) {
  .cierre-dia { flex: 1 1 calc(50% - 4px); }
  .cierre-alta .seg { flex: 1 1 100%; }
}

/* Google */
.google-caja { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--filete-2); font-size: .86rem; color: var(--apagado); }
.google-caja a { color: var(--oro); }
.google-t { display: flex; gap: 9px; margin: 0; line-height: 1.45; }
.google-t i { margin-top: 3px; color: var(--oro); }
.google-t b { color: var(--texto); font-weight: 600; }
.google-botones { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }

/* El fichero de clientes */
.cl-lista { display: grid; gap: 6px; }
.cl-fila {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--filete);
  border-radius: var(--r);
  background: var(--papel-2);
  color: var(--texto);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cl-fila:hover { border-color: var(--oro); }
.cl-fila:focus-visible { outline: none; box-shadow: var(--foco); }
.cl-quien { min-width: 0; }
.cl-quien b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.cl-quien small { display: block; color: var(--apagado); font-size: .8rem; overflow-wrap: anywhere; }
.cl-veces { display: inline-flex; align-items: baseline; gap: 5px; justify-self: end; }
.cl-veces b { font-size: 1.15rem; font-weight: 700; color: var(--oro-claro); }
.cl-veces small { color: var(--apagado); font-size: .78rem; }
.cl-datos { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--apagado); font-size: .78rem; }
.cl-datos:empty { display: none; }
.cl-datos .es-proxima { color: var(--azul); }
.cl-datos .es-noshow { color: var(--rojo); }
@media (min-width: 760px) {
  .cl-fila { grid-template-columns: minmax(0, 1fr) minmax(0, 300px) 92px; }
  .cl-veces { order: 3; }
  .cl-datos { grid-column: auto; justify-content: flex-end; }
}
.cl-res-t { margin: 16px 0 8px; font-size: .92rem; font-weight: 700; }
.cl-res-lista { display: grid; gap: 6px; }
.cl-res {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--filete-2);
  border-radius: var(--r);
  font-size: .85rem;
}
.cl-res-dia { font-weight: 600; }
.cl-res-que { grid-column: 1; color: var(--apagado); font-size: .8rem; }
.cl-res .badge { grid-column: 2; grid-row: 1 / span 2; }
.cl-res small { grid-column: 1 / -1; color: var(--apagado); font-size: .78rem; overflow-wrap: anywhere; }
