/* Burladero · Vermut, copas y música.
   Noche de barra: fondo negro, texto blanco, el granate de la marca para lo que se pulsa,
   el naranja solo para avisar y la crema para lo que destaca. Montserrat en mayúsculas
   espaciadas para títulos y etiquetas (como el logo); Red Hat Display para leer. */
:root {
  --fondo: #000000;
  --panel: #0e0b0b;
  --panel-2: #171111;
  --borde: #2a2020;
  --texto: #ffffff;
  --suave: #a99d97;
  --crema: #f5eae0;
  --marca: #741b21;
  --marca-viva: #8f2129;
  --marca-texto: #e0717a;
  --acento: #f55c15;
  --ok: #8fd1a7;
  --ok-fondo: rgba(143, 209, 167, .12);
  --alerta: #f55c15;
  --alerta-fondo: rgba(245, 92, 21, .14);
  --peligro: #ff6b61;
  --peligro-fondo: rgba(255, 107, 97, .14);
  --sombra: none;
  --radio: 16px;
  --titular: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --cuerpo: "Red Hat Display", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--fondo); }
body {
  color: var(--texto);
  font: 500 17px/1.45 var(--cuerpo);
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}
h1, h2 { font-family: var(--titular); text-transform: uppercase; text-wrap: balance; }
h1 { font-size: 1.45rem; font-weight: 800; letter-spacing: .06em; margin: .25rem 0 .35rem; }
h2 { font-size: .9rem; font-weight: 700; letter-spacing: .14em; color: var(--crema); margin: 1.75rem 0 .65rem; }
p { margin: .25rem 0 .75rem; }
.suave { color: var(--suave); }
a { color: var(--crema); }
:focus-visible { outline: 2px solid var(--crema); outline-offset: 2px; }

/* ---------- Barra ---------- */
header#barra {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; background: rgba(0, 0, 0, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}
.marca {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--titular); font-weight: 800; letter-spacing: .2em; font-size: 1rem; color: var(--texto);
}
.marca img { height: 30px; width: auto; display: block; margin-right: 1px; }
nav#menu { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
nav#menu a {
  padding: 10px 12px; border-radius: 999px; color: var(--suave);
  text-decoration: none; white-space: nowrap;
  font-family: var(--titular); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
}
nav#menu a.activo { background: var(--crema); color: #000; }
.usuario { display: flex; align-items: center; gap: 10px; }
#quien { font-weight: 700; }

main { padding: 18px 16px 40px; max-width: 1100px; margin: 0 auto; }

/* ---------- Botones y campos ---------- */
.btn {
  appearance: none; border: 0; border-radius: 999px; cursor: pointer;
  padding: 12px 22px; min-height: 48px;
  font-family: var(--titular); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--marca); color: #fff; transition: background .15s ease;
}
.btn:hover { background: var(--marca-viva); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-sec { background: transparent; color: var(--texto); border: 1px solid var(--borde); }
.btn-sec:hover { background: var(--panel-2); }
.btn-peq { min-height: 38px; padding: 6px 14px; font-size: .7rem; }
input, select, textarea {
  font: inherit; color: inherit; background: var(--panel);
  border: 1px solid var(--borde); border-radius: 12px; padding: 10px 12px; min-height: 46px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--crema); outline: none; }
label {
  display: block; margin: 14px 0 6px;
  font-family: var(--titular); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--suave);
}
.fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fila > * { flex: 0 0 auto; }
.empuja { flex: 1; min-width: 0; }

/* ---------- Pestañas tipo chip ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 10px 0 16px; scrollbar-width: none; }
.chip {
  border: 1px solid var(--borde); background: transparent; color: var(--suave);
  border-radius: 999px; padding: 9px 16px; cursor: pointer; white-space: nowrap;
  font-family: var(--titular); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.chip.activo { background: var(--crema); color: #000; border-color: var(--crema); }

/* ---------- Entrada ---------- */
.entrada { max-width: 560px; margin: 5vh auto 0; text-align: center; }
.portada { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; }
.logotipo { display: flex; align-items: flex-end; justify-content: center; }
.logotipo img { height: 92px; width: auto; display: block; margin-right: -2px; }
.logotipo span {
  font-family: var(--titular); font-weight: 800; font-size: 2.1rem; letter-spacing: .14em; line-height: 1; padding-bottom: 14px;
}
.lema {
  font-family: var(--titular); font-weight: 400; letter-spacing: .32em; font-size: .78rem; color: var(--crema);
  display: flex; gap: 10px; align-items: center; justify-content: center; text-transform: uppercase;
}
.lema i { width: 5px; height: 5px; border-radius: 50%; background: var(--marca-texto); display: inline-block; }
.entrada .pregunta {
  font-family: var(--titular); font-weight: 700; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--suave);
}
.personas { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.persona {
  background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 22px 10px; font: inherit; font-size: 1.15rem; font-weight: 700; color: var(--texto); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.persona:hover { border-color: var(--marca-texto); }
.persona:active { background: var(--marca); }
.puntos { display: flex; justify-content: center; gap: 16px; margin: 22px 0; }
.puntos span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--suave); }
.puntos span.lleno { background: var(--crema); border-color: var(--crema); }
.teclado { display: grid; grid-template-columns: repeat(3, 84px); gap: 14px; justify-content: center; }
.teclado button {
  height: 84px; border-radius: 50%; border: 1px solid var(--borde); background: var(--panel);
  font: inherit; font-size: 1.7rem; font-weight: 500; color: var(--texto); cursor: pointer;
}
.teclado button:active { background: var(--marca); border-color: var(--marca); }
.teclado button[aria-label="ok"] { background: var(--marca); border-color: var(--marca); }
.teclado button[aria-label="borrar"] { background: transparent; }
.error { color: var(--peligro); font-weight: 700; min-height: 1.4em; }

/* ---------- Cocina ---------- */
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.articulo {
  position: relative; text-align: left;
  background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 16px; min-height: 108px; cursor: pointer; color: var(--texto); font: inherit;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
}
.articulo:active { transform: scale(.97); }
.articulo .nombre { font-size: 1.12rem; font-weight: 700; line-height: 1.2; }
.articulo .unidad { color: var(--suave); font-size: .9rem; }
.articulo.marcado { border-color: var(--marca-texto); background: var(--marca); }
.articulo.marcado .unidad { color: var(--crema); }

.lista { background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; }
.lista .item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--borde); }
.lista .item:first-child { border-top: 0; }
.lista .item .empuja { min-width: 0; }
.lista .vacio { padding: 18px; color: var(--suave); }

/* ---------- Stepper ---------- */
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--borde);
  background: var(--panel-2); color: var(--texto); font-size: 1.4rem; font-weight: 700; cursor: pointer;
}
.stepper input { width: 70px; text-align: center; font-weight: 700; }

/* ---------- Cifras ---------- */
.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.kpi { background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px 18px; }
.kpi .valor {
  font-family: var(--titular); font-size: 2.3rem; font-weight: 800; line-height: 1.05;
  font-variant-numeric: tabular-nums; color: var(--crema);
}
.kpi .etiqueta {
  color: var(--suave); margin-top: 4px;
  font-family: var(--titular); font-weight: 700; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
}

table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--borde); }
th {
  font-family: var(--titular); font-size: .66rem; color: var(--suave); text-transform: uppercase;
  letter-spacing: .14em; font-weight: 700; background: var(--panel-2);
}
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.tabla { border: 1px solid var(--borde); border-radius: var(--radio); overflow-x: auto; }
tfoot td { font-weight: 800; border-top: 1px solid var(--crema); border-bottom: 0; color: var(--crema); }

.estado {
  display: inline-block; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  font-family: var(--titular); font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.estado.ok { background: var(--ok-fondo); color: var(--ok); }
.estado.bajo { background: var(--alerta-fondo); color: var(--alerta); }
.estado.agotado { background: var(--peligro-fondo); color: var(--peligro); }

.barra-stock { height: 6px; border-radius: 99px; background: var(--panel-2); overflow: hidden; min-width: 80px; }
.barra-stock span { display: block; height: 100%; background: var(--ok); }
.barra-stock span.bajo { background: var(--alerta); }
.barra-stock span.agotado { background: var(--peligro); }

.grafica { background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px; height: 320px; }

/* ---------- Inicio y jornada ---------- */
.jornada {
  background: var(--panel); border: 1px solid var(--borde); border-radius: 22px;
  padding: 22px; margin: 14px 0 22px; display: flex; flex-direction: column; gap: 14px;
}
.jornada.dentro { background: var(--marca); border-color: var(--marca); }
.jornada.dentro .suave { color: var(--crema); }
.jornada.dentro .btn { background: var(--crema); color: #000; }
.jornada-estado { font-family: var(--titular); font-size: 1.15rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.btn-grande { min-height: 62px; font-size: .9rem; width: 100%; }
.accesos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.acceso {
  display: flex; flex-direction: column; gap: 4px; padding: 18px; text-decoration: none; color: var(--texto);
  background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio);
  transition: border-color .15s ease;
}
.acceso:hover { border-color: var(--marca-texto); }
.acceso strong { font-family: var(--titular); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.kpi.enlace { text-decoration: none; color: var(--texto); display: block; transition: border-color .15s ease; }
.kpi.enlace:hover { border-color: var(--marca-texto); }
.kpi.enlace:active { transform: scale(.98); }
.banner {
  padding: 14px 16px; border-radius: var(--radio); margin: 10px 0;
  background: var(--panel); border: 1px solid var(--borde);
}
.banner.aviso { background: var(--alerta-fondo); border-color: rgba(245, 92, 21, .5); color: var(--texto); }

/* ---------- Asistente ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; min-height: 40vh; }
.burbuja {
  max-width: 85%; padding: 11px 15px; border-radius: 18px; white-space: pre-wrap; line-height: 1.5;
  overflow-wrap: anywhere;
}
.burbuja.yo { align-self: flex-end; background: var(--marca); color: #fff; border-bottom-right-radius: 4px; }
.burbuja.asistente { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--borde); border-bottom-left-radius: 4px; }
.burbuja.error { align-self: flex-start; background: var(--peligro-fondo); color: var(--peligro); }
.burbuja.pensando { color: var(--suave); font-style: italic; }
.chat-vacio { color: var(--suave); text-align: center; padding: 24px 8px; }
.chat-vacio img { height: 70px; width: auto; opacity: .55; display: block; margin: 0 auto 14px; }
.chat-barra {
  position: sticky; bottom: 0; display: flex; gap: 8px; align-items: flex-end;
  padding: 10px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--fondo);
}
.chat-texto { flex: 1; min-height: 48px; max-height: 160px; resize: none; padding: 12px 14px; border-radius: 22px; }
.boton-voz { min-width: 52px; padding: 0 14px; font-size: 1.1rem; }
.boton-voz.escuchando { background: var(--acento); color: #000; border-color: var(--acento); animation: latido 1.2s infinite; }
@keyframes latido { 50% { opacity: .6; } }

/* ---------- Aviso flotante ---------- */
#aviso {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 20;
  background: var(--crema); color: #000; border-radius: 16px;
  padding: 12px 14px 12px 18px; display: flex; gap: 14px; align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.6); max-width: calc(100vw - 32px); font-weight: 700;
}
#aviso[hidden] { display: none; }
#aviso button {
  background: transparent; color: #000; border: 1px solid currentColor; border-radius: 999px; padding: 8px 14px; cursor: pointer;
  font-family: var(--titular); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
#aviso.error { background: var(--peligro); color: #000; }

dialog {
  border: 1px solid var(--borde); border-radius: 22px; padding: 22px; width: min(520px, calc(100vw - 32px));
  background: var(--panel); color: var(--texto);
}
dialog h2 { margin-top: 0; }
dialog::backdrop { background: rgba(0,0,0,.7); }
dialog .acciones { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---------- Pestañas de sección (jefe) ---------- */
#subnav {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 8px 16px; border-bottom: 1px solid var(--borde); background: var(--fondo);
}
#subnav a {
  padding: 8px 12px; border-radius: 999px; color: var(--suave); text-decoration: none; white-space: nowrap;
  font-weight: 700; font-size: .9rem; border: 1px solid transparent;
}
#subnav a.activo { color: var(--texto); border-color: var(--borde); background: var(--panel-2); }

/* ---------- Inicio ---------- */
.jornada-linea {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; margin: 6px 0 16px;
  border: 1px solid var(--borde); border-radius: 999px; color: var(--suave); font-weight: 600;
}
.jornada-linea.dentro { border-color: var(--marca); color: var(--texto); background: rgba(116, 27, 33, .35); }
.tarjetas.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi.atencion .valor { color: var(--acento); }
.lista .item.enlace { color: var(--texto); text-decoration: none; }
.cabecera-seccion { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 1.5rem; }
.cabecera-seccion h2 { margin: 0 0 .65rem; }
.cabecera-seccion a { font-weight: 700; font-size: .9rem; }

/* ---------- Tareas ---------- */
.bloque-tareas { margin-bottom: 8px; }
.contador {
  font-family: var(--titular); font-weight: 800; font-size: .8rem; letter-spacing: .08em; color: var(--suave);
  font-variant-numeric: tabular-nums;
}
.contador.completo { color: var(--ok); }
.progreso { height: 4px; border-radius: 99px; background: var(--panel-2); overflow: hidden; margin-bottom: 10px; }
.progreso span { display: block; height: 100%; background: var(--crema); transition: width .3s ease; }
.tarea {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px 16px; min-height: 60px; border: 0; border-top: 1px solid var(--borde);
  background: transparent; color: var(--texto); font: inherit; cursor: pointer;
}
.lista .tarea:first-child { border-top: 0; }
.tarea:disabled { cursor: default; }
.tarea:active:not(:disabled) { background: var(--panel-2); }
.tarea .check {
  flex: 0 0 26px; height: 26px; border-radius: 50%; border: 2px solid var(--suave);
  display: grid; place-items: center; transition: background .15s ease, border-color .15s ease;
}
.tarea.hecha .check { background: var(--crema); border-color: var(--crema); }
.tarea.hecha .check::after {
  content: ""; width: 7px; height: 12px; border: solid #000; border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg);
}
.tarea-nombre { display: block; font-weight: 700; }
.tarea.hecha .tarea-nombre { color: var(--suave); text-decoration: line-through; text-decoration-color: rgba(169, 157, 151, .6); }
.tarea-quien { display: block; color: var(--suave); font-size: .88rem; margin-top: 2px; }
.nota { font-size: .85rem; margin-top: 8px; }
td.cero { color: var(--borde); }

/* ---------- Pedidos por proveedor ---------- */
.pedido + .pedido { margin-top: 12px; }
.pedido-proveedor {
  margin: 0 0 6px 4px; color: var(--crema);
  font-family: var(--titular); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.pedido-proveedor .suave { letter-spacing: 0; }

/* ---------- Reservas ---------- */
.escribir-reserva { background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 4px 16px 14px; margin: 10px 0 18px; }
.escribir-reserva textarea { resize: vertical; }
.escribir-reserva .acciones { display: flex; justify-content: flex-end; margin-top: 10px; }
.navegador-dia { display: flex; align-items: center; gap: 8px; }
.navegador-dia .dia-reservas { flex: 1; text-align: center; font-family: var(--titular); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.navegador-dia .btn-peq[aria-label] { width: 42px; padding: 0; font-size: 1.1rem; }
button.item.reserva {
  width: 100%; background: none; border: 0; border-top: 1px solid var(--borde); color: var(--texto);
  font: inherit; text-align: left; cursor: pointer;
}
.lista button.item.reserva:first-child { border-top: 0; }
button.item.reserva:hover { background: var(--panel-2); }
.reserva-hora {
  width: 58px; flex: none; display: flex; flex-direction: column;
  font-family: var(--titular); font-weight: 800; font-size: 1.15rem; color: var(--crema); font-variant-numeric: tabular-nums;
}
.reserva-hora small { font-family: var(--cuerpo); font-weight: 500; font-size: .72rem; color: var(--suave); }
.reserva .empuja { display: flex; flex-direction: column; }
.reserva-detalle { font-size: .9rem; }
.item.reserva.cancelada, .item.reserva.no_vino { opacity: .55; }
.item.reserva.cancelada strong { text-decoration: line-through; }
.mesas { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.mesa { background: var(--panel); border: 1px solid var(--borde); border-radius: 12px; padding: 10px 12px; min-height: 64px; }
.mesa.ocupada { border-color: var(--marca-texto); background: rgba(116, 27, 33, .25); }
.mesa-nombre { font-family: var(--titular); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.mesa-reserva { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 2px 0; color: var(--crema); font: inherit; font-size: .88rem; cursor: pointer; }
.dos-campos { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.dos-campos > * { min-width: 0; }
.dos-campos input { width: 100%; min-width: 0; box-sizing: border-box; }
.estados-reserva { flex-wrap: wrap; }

/* ---------- Cuentas ---------- */
.pequeno { font-size: .85rem; }
.variacion {
  display: inline-block; margin-top: 6px; color: var(--suave);
  font-family: var(--titular); font-size: .68rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap;
}
.variacion.sube { color: var(--ok); }
.variacion.baja { color: var(--peligro); }

.resultado {
  position: relative; overflow: hidden; margin: 6px 0 12px; padding: 22px 22px 18px;
  border-radius: var(--radio); background: var(--marca); color: #fff;
}
.resultado.negativo { background: #2b0d0d; border: 1px solid var(--peligro); }
.resultado-etiqueta { font-family: var(--titular); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--crema); }
.resultado-cifra { font-family: var(--titular); font-weight: 800; font-size: 2.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; margin: 4px 0 6px; }
.resultado-pie { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; color: var(--crema); position: relative; z-index: 1; }
.resultado-pie .variacion { margin-top: 0; }
.resultado .variacion.sube { color: #c8f0d5; }
.resultado .variacion.baja { color: #ffd0cb; }

.barras { display: grid; gap: 9px; background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px 16px; }
.barra-fila { display: grid; grid-template-columns: minmax(70px, 34%) 1fr auto; gap: 10px; align-items: center; }
.barra-etiqueta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.barra-pista { height: 10px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.barra-pista span { display: block; height: 100%; border-radius: 99px; background: var(--suave); }
.barra-pista span.arriba { background: var(--crema); }
.barra-fila.destacada .barra-pista span { background: var(--acento); }
.barra-fila.destacada .barra-etiqueta { color: var(--crema); font-weight: 700; }
.barra-valor { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; white-space: nowrap; font-size: .92rem; }
.barra-valor small { color: var(--suave); font-weight: 500; }

.grafica.baja { height: 220px; }
.dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.dos-columnas > section { min-width: 0; }
.puesto {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--panel-2); color: var(--crema); font-family: var(--titular); font-weight: 800; font-size: .85rem;
}
.lista .item:first-child .puesto { background: var(--acento); color: #000; }
button.borrar {
  width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--borde);
  background: none; color: var(--suave); font-size: .9rem; cursor: pointer;
}
button.borrar:hover { color: var(--peligro); border-color: var(--peligro); }
.cifra { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.vacio-grande { text-align: center; padding: 36px 16px; background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); }
.vacio-grande img { height: 90px; width: auto; opacity: .9; margin-bottom: 10px; }
button.item.dia {
  width: 100%; background: none; border: 0; border-top: 1px solid var(--borde); color: var(--texto);
  font: inherit; text-align: left; cursor: pointer;
}
.lista button.item.dia:first-child { border-top: 0; }
button.item.dia:hover { background: var(--panel-2); }
.item.dia .dia-fecha { width: 120px; flex: none; display: flex; flex-direction: column; text-transform: capitalize; }
.item.dia .dia-fecha .suave { font-size: .82rem; text-transform: none; }
.item.dia .barra-pista { flex: 1; }
.item.dia .cifra { width: 70px; text-align: right; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  main { padding: 14px 16px 40px; }
  .rejilla { grid-template-columns: repeat(2, 1fr); }
  .teclado { grid-template-columns: repeat(3, 76px); gap: 12px; }
  .teclado button { height: 76px; }
  .ocultar-movil { display: none; }
  nav#menu { order: 3; flex-basis: 100%; }
  .usuario { margin-left: auto; }
  .logotipo img { height: 74px; }
  .tarjetas.tres { gap: 8px; }
  .tarjetas.tres .kpi { padding: 12px; }
  .tarjetas.tres .valor { font-size: 1.7rem; }
  .cuentas .tarjetas.tres .valor, dialog .tarjetas.tres .valor { font-size: 1.3rem; }
  #quien { display: none; }
  .logotipo span { font-size: 1.65rem; padding-bottom: 11px; }
  .lema { letter-spacing: .22em; font-size: .7rem; }
  .dos-columnas { grid-template-columns: 1fr; }
  .resultado-cifra { font-size: 2.3rem; }
  .grafica { height: 260px; }
  .item.dia .dia-fecha { width: 96px; }
}

/* ---------- Ubicación del bar ---------- */
.ubicacion-bar { margin-top: 28px; padding: 18px; background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); }
.ubicacion-bar h2 { margin-top: 0; }

.chip.sin-fichar { margin-top: 20px; }
