/* Copiado de registrollevar (identidad de L'Alter, escena de acceso, calendario y ventanas). Lo propio de pagos va en app.css. */
/* Identidad de Restaurant L'Alter (manual de marca, igual que restaurantlalter.com):
   marrón #423114 · naranja #b23f24 / #ff6026 · negro #212121 · crema #fef8eb
   Jost para títulos y botones (mayúsculas espaciadas) · Crimson Pro para la voz del cliente */

@font-face { font-family: "Jost"; src: url("marca/fuentes/jost-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("marca/fuentes/crimson-pro-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("marca/fuentes/crimson-pro-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

/* La app va siempre en claro (decisión de Dani): <html data-theme="light"> anula el modo oscuro del móvil */
:root {
  color-scheme: light;
  --marron: #423114;
  --naranja-1: #b23f24;
  --naranja-2: #ff6026;
  --negro: #212121;
  --crema: #fef8eb;

  --fondo: var(--crema);
  --superficie: #fffdf7;
  --texto: var(--negro);
  --suave: #5b5246;
  --borde: rgb(33 33 33 / 0.14);
  --barra: var(--negro);
  --barra-texto: var(--crema);
  --accion: var(--naranja-2);
  --accion-texto: var(--negro);
  --marca: var(--marron);
  --ok: #3d6b34;
  --ok-fondo: #e6efdc;
  --alerta: var(--naranja-1);
  --alerta-fondo: #f8e1d8;
  --aviso: #8a5a00;
  --aviso-fondo: #fbedcc;
  --info-fondo: #f1e8d6;
  --illa: var(--marron);
  --illa-fondo: #efe2cc;

  --f-titulo: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-texto: "Crimson Pro", Georgia, serif;
  --radio: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #171512; --superficie: #221f1a; --texto: var(--crema); --suave: #b9ad9c; --borde: rgb(254 248 235 / 0.14);
    --barra: #0f0e0c; --marca: #e2b98a; --ok: #9fcf8f; --ok-fondo: #22301d; --alerta: #ff8a66; --alerta-fondo: #3b1d14;
    --aviso: #f0c66b; --aviso-fondo: #33290f; --info-fondo: #2b261f; --illa: #f2d3ad; --illa-fondo: #3a2c1a;
  }
}
:root[data-theme="dark"] {
  --fondo: #171512; --superficie: #221f1a; --texto: var(--crema); --suave: #b9ad9c; --borde: rgb(254 248 235 / 0.14);
  --barra: #0f0e0c; --marca: #e2b98a; --ok: #9fcf8f; --ok-fondo: #22301d; --alerta: #ff8a66; --alerta-fondo: #3b1d14;
  --aviso: #f0c66b; --aviso-fondo: #33290f; --info-fondo: #2b261f; --illa: #f2d3ad; --illa-fondo: #3a2c1a;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
/* Pantalla fija: sin zoom con dos dedos ni con doble toque (los mapas hacen su propio zoom) */
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font: 16px/1.45 var(--f-titulo);
  background: var(--fondo); color: var(--texto);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- Cabecera ---------- */
.barra {
  position: sticky; top: 0; z-index: 1100; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; background: var(--barra); color: var(--barra-texto);
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marca img { width: 40px; height: 40px; display: block; }
.marca span { font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; opacity: .85; }
.usuario { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.usuario:empty { display: none; }
.usuario i { width: 30px; height: 30px; border-radius: 50%; background: var(--naranja-2); color: var(--negro);
  display: grid; place-items: center; font-style: normal; font-weight: 600; letter-spacing: 0; font-size: 13px; }
.aviso-demo { background: var(--aviso-fondo); color: var(--aviso); font-size: 12px; padding: 6px 16px; text-align: center; letter-spacing: .02em; }
.aviso-demo.real { background: var(--ok-fondo); color: var(--ok); }

main { max-width: 760px; margin: 0 auto; padding: 16px; }
h1 { font-size: 22px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 2px; }
h2 { font-size: 14px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; margin: 22px 0 10px; color: var(--suave); }
.sub { color: var(--suave); font-size: 14px; margin: 0 0 12px; }
.voz { font-family: var(--f-texto); font-style: italic; font-size: 18px; line-height: 1.3; color: var(--texto); }

/* ---------- Navegación inferior ---------- */
.pestanas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--barra); color: var(--barra-texto); padding-bottom: env(safe-area-inset-bottom);
}
.pestanas[hidden] { display: none; }
.pestanas button { background: none; border: 0; padding: 9px 2px 10px; font-size: 10.5px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: rgb(254 248 235 / .62); display: flex; flex-direction: column; align-items: center; gap: 4px;
  position: relative; cursor: pointer; }
.pestanas svg { width: 24px; height: 24px; }
.pestanas button.activa { color: var(--naranja-2); }
.pestanas button.activa::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--naranja-2); }
.pestanas b { position: absolute; top: 4px; left: calc(50% + 6px); background: var(--naranja-2); color: var(--negro);
  font-size: 11px; border-radius: 10px; padding: 0 5px; min-width: 18px; letter-spacing: 0; }
.pestanas b:empty { display: none; }

/* ---------- Tarjetas y piezas ---------- */
.tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px 16px; margin-bottom: 12px;
  transition: border-color .25s var(--ease), opacity .25s var(--ease); }
.fila { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.entre { justify-content: space-between; }
.hora { font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; min-width: 56px; }
.nombre { font-weight: 500; letter-spacing: .04em; }
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 500;
  background: var(--info-fondo); border: 1px solid transparent; white-space: nowrap; color: inherit; text-decoration: none; }
.chip.illa { background: var(--illa-fondo); color: var(--illa); font-weight: 600; letter-spacing: .04em; }
.chip.ok { background: var(--ok-fondo); color: var(--ok); }
.chip.alerta { background: var(--alerta-fondo); color: var(--alerta); }
.chip.aviso { background: var(--aviso-fondo); color: var(--aviso); }
.chip button { border: 0; background: none; padding: 0 0 0 6px; cursor: pointer; font-size: 17px; line-height: 1; color: inherit; }
button.chip { cursor: pointer; font-family: var(--f-titulo); }
.paellera { font-weight: 700; font-size: 15px; padding: 5px 13px; background: var(--negro); color: var(--crema); }
.chip.paellera { background: var(--negro); color: var(--crema); }
:root[data-theme="dark"] .chip.paellera { background: var(--crema); color: var(--negro); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.paellera { background: var(--crema); color: var(--negro); } }
.chip.paellera.ok { background: var(--ok-fondo); color: var(--ok); }
.chip.arroces { font-weight: 600; }
.muted { color: var(--suave); font-size: 14px; }
/* Lo que hay que cocinar: tipo de arroz, extras y especificaciones (preguntas de CoverManager) */
.pedido { margin-top: 8px; font-size: 18px; font-weight: 600; letter-spacing: .02em; color: var(--marca); }
.tel { color: var(--suave); font-size: 14px; text-decoration: none; border-bottom: 1px dotted currentColor; }

/* ---------- Entradas y botones (como la web) ---------- */
.entrada { display: flex; gap: 8px; margin-top: 12px; }
.entrada input { flex: 1; min-width: 0; font-size: 24px; font-weight: 600; letter-spacing: .06em; padding: 10px 14px;
  border: 2px solid var(--borde); border-radius: 12px; background: var(--fondo); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.entrada input::placeholder { font-size: 15px; font-weight: 500; letter-spacing: .12em; color: var(--suave); }
.entrada input:focus { outline: none; border-color: var(--naranja-2); box-shadow: 0 0 0 4px rgb(255 96 38 / .18); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.4em;
  border: 1px solid var(--accion); border-radius: 999px; background: var(--accion); color: var(--accion-texto);
  font-family: var(--f-titulo); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; text-align: center; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), transform .1s; }
.btn:active { transform: scale(.97); }
.btn.sec { background: transparent; color: var(--texto); border-color: var(--borde); }
.btn.oscuro { background: var(--negro); color: var(--crema); border-color: var(--negro); }
.btn.peligro { background: var(--naranja-1); border-color: var(--naranja-1); color: var(--crema); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.ancho { width: 100%; }
.msg { margin-top: 8px; font-size: 14px; padding: 10px 12px; border-radius: 10px; }
.msg.alerta { background: var(--alerta-fondo); color: var(--alerta); }
.msg.aviso { background: var(--aviso-fondo); color: var(--aviso); }
.msg:empty { display: none; }
.msg .acciones { margin-top: 8px; }

.buscar { width: 100%; padding: 12px 16px; border: 1px solid var(--borde); border-radius: 999px; background: var(--superficie); margin-bottom: 12px; font-size: 16px; }
.buscar:focus { outline: none; border-color: var(--naranja-2); }
.segmentos { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.segmentos button { border: 1px solid var(--borde); background: transparent; border-radius: 999px; padding: 7px 14px; font-size: 12px;
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.segmentos button.activa { background: var(--texto); color: var(--fondo); border-color: var(--texto); }

.check { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--borde); cursor: pointer; }
.check:first-of-type { border-top: 0; }
.check input { width: 26px; height: 26px; accent-color: var(--naranja-2); flex: none; }
.check .info { flex: 1; min-width: 0; }
.acciones { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.campo { display: block; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--suave); margin: 12px 0; }
.campo input, .campo select { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font-size: 18px; color: var(--texto);
  letter-spacing: normal; text-transform: none; border: 2px solid var(--borde); border-radius: 12px; background: var(--fondo); }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--naranja-2); }
.persona { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--borde); flex-wrap: wrap; }
.persona:first-of-type { margin-top: 8px; }
.persona a { color: var(--marca); font-weight: 600; text-decoration: none; }


/* ---------- Pantalla Hoy ---------- */
.cabecera-dia { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.directo { font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ok); background: var(--ok-fondo); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.directo::before { content: "✓"; font-size: 12px; }
.directo.apagado { color: var(--alerta); background: var(--alerta-fondo); }
.directo.apagado::before { content: "!"; }
@keyframes latido { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.navega-dia { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 8px; margin: 10px 0 14px; }
.navega-dia .flecha { min-height: 52px; padding: 0; font-size: 30px; line-height: 1; letter-spacing: 0; border-radius: 16px; }
.fecha-completa { text-align: center; font-size: 17px; font-weight: 600; letter-spacing: .02em; line-height: 1.25; }
.volver-hoy { display: block; margin: 6px auto 0; border: 0; background: var(--negro); color: var(--crema); border-radius: 999px;
  padding: 5px 14px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }

.progreso { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px 16px; margin-bottom: 14px; }
.progreso .cifras { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.progreso .grande { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.progreso .grande small { font-size: 16px; color: var(--suave); font-weight: 500; }
.progreso .barra-p { height: 10px; border-radius: 10px; background: var(--info-fondo); overflow: hidden; margin: 10px 0 8px; }
.progreso .barra-p i { display: block; height: 100%; background: var(--naranja-2); border-radius: 10px; transition: width .4s var(--ease); }
.progreso.completo .barra-p i { background: var(--ok); }
.progreso .detalle { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--suave); }
.progreso .detalle b { color: var(--texto); }
.progreso .detalle .falta b { color: var(--alerta); }

/* Reservas de clientes de L'Alter: la caja entera se resalta (fondo cálido y borde marrón) */
.tarjeta.alter { background: #f6ead3; border: 2px solid var(--marron); }
.tarjeta.alter .pedido { color: var(--marron); }
.illa-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 12px;
  background: var(--marron); color: var(--crema); white-space: nowrap; box-shadow: 0 2px 6px rgb(66 49 20 / .25); }
.illa-badge svg { width: 17px; height: 17px; }
.illa-badge small { font-size: 10px; font-weight: 600; letter-spacing: .16em; opacity: .8; }
.illa-badge b { font-size: 17px; font-weight: 700; letter-spacing: .03em; }
.illa-badge.mini { padding: 3px 9px 3px 7px; border-radius: 9px; margin: 4px 0 2px; box-shadow: none; }
.illa-badge.mini b { font-size: 14px; }
.illa-badge.mini svg { width: 14px; height: 14px; }
.chip.paellera.a-casa { background: var(--marron); color: var(--crema); gap: 5px; }
.de-alter { display: inline-flex; align-items: center; gap: 4px; color: var(--marca); }
/* Pendientes */
.fila-pend { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; }
.fila-pend .btn-icono { flex: none; }
.fila-pend .chip.paellera { font-size: 16px; padding: 7px 12px; min-width: 64px; justify-content: center; flex: none; }
.fila-pend .info { flex: 1; min-width: 0; }
.fila-pend .nombre { line-height: 1.25; }
.dias.ok { color: var(--ok); font-weight: 600; }
.dias.aviso { color: var(--aviso); font-weight: 600; }
.dias.alerta { color: var(--alerta); font-weight: 700; }
.acciones-pend { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.btn-icono { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--info-fondo); color: var(--texto); }
.btn-mini { min-height: 34px; padding: 0 12px; font-size: 11px; letter-spacing: .1em; }
.reserva .meta { margin-top: 6px; color: var(--suave); font-size: 14px; }
.tarjeta.nueva { box-shadow: 0 0 0 2px var(--naranja-2); }
.tarjeta.siguiente { box-shadow: 0 0 0 2px var(--negro), 0 6px 20px rgb(33 33 33 / .12); }
:root[data-theme="dark"] .tarjeta.siguiente { box-shadow: 0 0 0 2px var(--crema); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tarjeta.siguiente { box-shadow: 0 0 0 2px var(--crema); } }
.tarjeta.falta { border: 2px dashed var(--alerta); }
.tarjeta.hecha { padding: 12px 16px; }
.tarjeta.hecha:not(.abierta) .detalle-reserva, .tarjeta.hecha:not(.abierta) form, .tarjeta.hecha:not(.abierta) .msg-entrada { display: none; }
.tarjeta:not(.hecha) [data-expandir] { display: none; }
.tarjeta.abierta .detalle-reserva, .tarjeta.abierta form { animation: subir .25s var(--ease); }
.tarjeta.cerrado { background: var(--negro); color: var(--crema); border-color: var(--negro); }
.tarjeta.cerrado .muted { color: rgb(254 248 235 / .7); }
.tarjeta.cerrado .btn.sec { color: var(--crema); border-color: rgb(254 248 235 / .4); }

/* Desliza para cerrar el día */
.deslizar { --avance: 0; position: relative; height: 60px; border-radius: 999px; background: var(--negro); color: var(--crema);
  overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.deslizar::before { content: ""; position: absolute; inset: 0; width: calc(var(--avance) * 100% + 60px); background: var(--naranja-2); border-radius: 999px; opacity: .9; }
.deslizar-texto { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 64px; font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; opacity: calc(1 - var(--avance) * 1.6); pointer-events: none;
  background: linear-gradient(90deg, rgb(254 248 235 / .55) 0%, var(--crema) 50%, rgb(254 248 235 / .55) 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: brillo 2.4s linear infinite; }
@keyframes brillo { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.deslizar-boton { position: absolute; top: 4px; left: 4px; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: grab;
  background: var(--naranja-2); color: var(--negro); font-size: 22px; font-weight: 700; touch-action: none; z-index: 1;
  box-shadow: 0 2px 8px rgb(0 0 0 / .35); }
.deslizar.arrastrando .deslizar-boton { cursor: grabbing; }
.deslizar.bloqueado { background: var(--info-fondo); color: var(--suave); }
.deslizar.bloqueado::before { display: none; }
.deslizar.bloqueado .deslizar-texto { animation: none; background: none; color: var(--suave); }
.deslizar.bloqueado .deslizar-boton { display: grid; place-items: center; background: var(--borde); box-shadow: none; cursor: not-allowed; font-size: 18px; }
.deslizar.volviendo .deslizar-boton, .deslizar.hecho .deslizar-boton { transition: transform .25s var(--ease); }
.deslizar.hecho .deslizar-boton { background: var(--crema); }
.deslizar-boton:focus-visible { outline: 3px solid var(--crema); outline-offset: 2px; }
:root[data-theme="dark"] .deslizar { background: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .deslizar { background: #000; } }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 12px; }
.kpi { background: var(--superficie); border: 1px solid var(--borde); border-radius: 12px; padding: 10px 12px; }
.kpi b { display: block; font-size: 22px; font-weight: 600; }
.kpi span { color: var(--suave); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Mapa ---------- */
#mapa { height: calc(100vh - 290px); min-height: 360px; border-radius: var(--radio); border: 1px solid var(--borde); }
.leyenda { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--suave); margin: 8px 0; letter-spacing: .04em; }
.leyenda i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.leaflet-container { font-family: var(--f-titulo); }
.leaflet-popup-content { font-size: 14px; }
.leaflet-popup-content a.btn { color: var(--negro); text-decoration: none; min-height: 38px; margin-top: 8px; }
/* Ruta de recogida */
.mapa-ruta { height: 320px !important; min-height: 0 !important; margin-bottom: 14px; }
.num-parada { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--naranja-2); color: var(--negro);
  font-weight: 700; font-size: 15px; flex: none; }
.marcador-inicio { background: var(--negro); color: var(--crema); border-radius: 50%; font-weight: 600; font-size: 11px; letter-spacing: .02em;
  text-align: center; line-height: 26px; border: 2px solid var(--crema); box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.parada .check { padding: 8px 0; }
.marcador-pend { background: var(--naranja-2); color: var(--negro); border-radius: 12px; font-weight: 700; font-size: 12px;
  text-align: center; line-height: 22px; border: 2px solid var(--crema); box-shadow: 0 1px 3px rgba(0,0,0,.4); }

/* ---------- Tablas ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--borde); vertical-align: top; }
th { color: var(--suave); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.tabla { overflow-x: auto; }
@media (max-width: 600px) {
  .tabla table, .tabla thead, .tabla tbody, .tabla tr, .tabla td { display: block; }
  .tabla thead { display: none; }
  .tabla tr { border: 1px solid var(--borde); border-radius: 12px; margin-bottom: 8px; padding: 8px 12px; background: var(--superficie); }
  .tabla td { border: 0; padding: 2px 0; }
  .tabla td[data-l]::before { content: attr(data-l) ": "; color: var(--suave); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
}
.tachada { opacity: .5; text-decoration: line-through; }

/* ---------- Avisos y diálogos ---------- */
.toast { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translate(-50%, 8px);
  background: var(--negro); color: var(--crema); padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid rgb(254 248 235 / .15); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 2000; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
dialog { border: 1px solid var(--borde); border-radius: 18px; background: var(--superficie); color: var(--texto);
  width: min(520px, calc(100% - 32px)); padding: 18px; }
dialog::backdrop { background: rgb(33 33 33 / .55); }
.lista-opciones { max-height: 50vh; overflow: auto; margin: 8px 0; }
.lista-opciones button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--borde);
  background: none; padding: 12px 4px; cursor: pointer; }

/* ---------- Uso con una mano y a simple vista: tamaños, respuesta al tocar y transiciones ---------- */
.reserva .hora { display: inline-flex; align-items: center; gap: 5px; font-size: 17px; font-weight: 600; color: var(--suave); min-width: 0; }
/* El nombre del cliente es lo primero que se lee; la hora, justo encima */
.reserva .nombre { font-size: 23px; font-weight: 700; letter-spacing: .01em; line-height: 1.15; margin-top: 6px; }
.reserva .pedido { font-size: 19px; margin-top: 6px; }
.btn { min-height: 52px; transition: background .2s var(--ease), color .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease); }
.btn:not(.sec):not(:disabled) { box-shadow: 0 3px 10px rgb(255 96 38 / .28); }
.btn:active { transform: scale(.95); box-shadow: none; }
.btn svg { flex: none; }
.btn-anadir { padding: 0 18px; gap: 6px; }
.entrada input { min-height: 56px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.chip, button.chip { transition: transform .12s var(--ease), background .2s var(--ease); }
button.chip:active, .btn-icono:active { transform: scale(.92); }
.check input { width: 28px; height: 28px; }
.tarjeta { transition: background .25s var(--ease), box-shadow .25s var(--ease), opacity .25s var(--ease), transform .15s var(--ease); }
/* Reserva completada: se queda en su sitio, a la vista, marcada en verde (no «desaparece») */
.tarjeta.hecha { opacity: 1; }
.tarjeta.hecha:not(.alter) { background: #f2f6ec; border-color: #cfdcc2; }
.pestanas button { transition: color .2s var(--ease); }
.pestanas button:active svg { transform: scale(.88); }
.pestanas svg { transition: transform .15s var(--ease); }
.pestanas button.activa svg { animation: salto .35s var(--ease); }

/* Al cambiar de pantalla, el contenido entra suavemente y en cascada */
#vista.entrar > * { animation: subir .34s var(--ease) both; }
#vista.entrar > *:nth-child(2) { animation-delay: .03s; }
#vista.entrar > *:nth-child(3) { animation-delay: .06s; }
#vista.entrar > *:nth-child(4) { animation-delay: .09s; }
#vista.entrar > *:nth-child(5) { animation-delay: .12s; }
#vista.entrar > *:nth-child(n+6) { animation-delay: .15s; }
@keyframes subir { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* La paella recién anotada «salta» para confirmar que ha entrado */
.chip.paellera.recien { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@keyframes salto { 0% { transform: translateY(0); } 40% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Paella anotada: se toca para cambiar el número o quitarla */
button.chip.paellera.editable { border: 0; cursor: pointer; font-family: var(--f-titulo); font-weight: 700; font-size: 15px; gap: 6px; }
button.chip.paellera.editable .lapiz { opacity: .65; }
button.chip.paellera.editable:active { transform: scale(.93); }
dialog.editar-paella .campo input { font-size: 26px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
dialog.editar-paella .acciones .btn { flex: 1; }
dialog.editar-paella .quitar { color: var(--alerta); border-color: rgb(178 63 36 / .35); }
dialog[open] { animation: subir .25s var(--ease); }
/* Llegadas: cada una con la hora y el nombre de quien la anota */
.registro-quien { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 14px; font-weight: 600; color: var(--texto); }
dialog.pregunta .acciones .btn { flex: 1; }
dialog.editar-paella .quitar.seguro { background: var(--naranja-1); color: var(--crema); border-color: var(--naranja-1); }

/* Huecos de paella: uno por cada paella que lleva la reserva. El primero libre «late» para indicar dónde va el número */
.huecos { gap: 8px; }
.hueco { display: inline-flex; align-items: center; gap: 6px; min-width: 76px; justify-content: center; padding: 6px 12px; border-radius: 999px;
  border: 2px dashed rgb(33 33 33 / .28); color: var(--suave); font-size: 13px; font-weight: 600; letter-spacing: .06em; background: transparent; }
.hueco .ico-paella { width: 18px; height: 18px; opacity: .6; }
.hueco.toca { border-color: var(--naranja-2); color: var(--naranja-1); animation: latir 1.6s ease-in-out infinite; }
.tarjeta.alter .hueco { border-color: rgb(66 49 20 / .4); }
.tarjeta.alter .hueco.toca { border-color: var(--naranja-2); }
@keyframes latir { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 96 38 / .35); } 50% { box-shadow: 0 0 0 5px rgb(255 96 38 / 0); } }
.chip.paellera { gap: 6px; }
.chip.paellera .ico-paella { width: 17px; height: 17px; flex: none; }
.fila-pend .chip.paellera .ico-paella { width: 19px; height: 19px; }

/* La hora agrupa las reservas: separador entre tarjetas */
.separador-hora { display: flex; align-items: center; gap: 6px; margin: 18px 2px 8px; font-size: 15px; font-weight: 700; letter-spacing: .06em; color: var(--suave); }
.separador-hora::after { content: ""; flex: 1; height: 1px; background: var(--borde); margin-left: 6px; }
.reserva .cabeza { align-items: center; }

/* Fecha: se toca para abrir el calendario */
.abrir-calendario { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--borde); background: var(--superficie);
  border-radius: 14px; padding: 9px 12px; font: inherit; font-size: 16px; font-weight: 600; color: var(--texto); cursor: pointer; width: 100%;
  transition: transform .12s var(--ease); }
.abrir-calendario:active { transform: scale(.97); }
.abrir-calendario svg { flex: none; color: var(--naranja-1); }
dialog.calendario { padding: 16px; max-width: 380px; }
.cal-cabeza { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; text-align: center; margin-bottom: 10px; }
.cal-cabeza b { font-size: 17px; letter-spacing: .04em; }
.cal-cabeza .flecha { min-height: 44px; font-size: 26px; padding: 0; }
.cal-rejilla { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dia-semana { text-align: center; font-size: 11px; font-weight: 600; color: var(--suave); padding: 4px 0; }
.cal-dia { position: relative; aspect-ratio: 1; border: 0; border-radius: 12px; background: var(--info-fondo); font: inherit; font-size: 16px;
  font-weight: 600; color: var(--texto); cursor: pointer; transition: transform .1s var(--ease), background .15s; }
.cal-dia:active { transform: scale(.9); }
.cal-dia.hoy { box-shadow: inset 0 0 0 2px var(--naranja-2); }
.cal-dia.elegido { background: var(--negro); color: var(--crema); }
.cal-dia i { position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--naranja-2); }
dialog.calendario .acciones .btn { flex: 1; }

/* Icono de paella plano, al tamaño de la casa de la ILLA */
.chip.paellera .ico-paella { width: 19px; height: 19px; stroke-width: 2.1; }
.hueco .ico-paella { width: 20px; height: 20px; }
.fila-pend .chip.paellera .ico-paella { width: 21px; height: 21px; }

/* Lema de la app en la cabecera: «NI UNA MÁS», como una pintada de grafiti */
.marca .lema { display: inline-block; font-family: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive; font-size: 34px; line-height: 1;
  text-transform: uppercase; letter-spacing: .02em; color: var(--naranja-2); padding: 4px 0 2px;
  text-shadow: 2px 2px 0 #000, 0 0 14px rgb(255 96 38 / .35); }
.barra { min-height: 64px; }
.marca .lema { white-space: nowrap; font-size: clamp(25px, 8vw, 34px); }

/* Título del día: la fecha completa, se toca para abrir el calendario */
.titulo-fecha { display: block; width: 100%; border: 0; background: none; padding: 0; margin: 4px 0 0; text-align: left; cursor: pointer; color: inherit; }
.titulo-fecha h1 { margin: 0; font-size: clamp(17px, 5.2vw, 23px); font-weight: 600; letter-spacing: .03em; line-height: 1.15; text-transform: uppercase; white-space: nowrap; }
.estado-dia { margin: -4px 0 12px; }
.estado-dia .volver-hoy { margin: 0; }
.navega-dia .abrir-calendario { min-height: 52px; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
/* Visitas del cliente junto al nombre (historial de CoverManager) */
.reserva .nombre .visitas { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 6px; padding: 3px 9px; border-radius: 999px;
  background: var(--negro); color: var(--crema); font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }

[hidden] { display: none !important; }

/* ---------- Escena de entrada y acceso: fondo negro con brasas, como la portada de la web ---------- */
.escena { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; overflow: auto; color: var(--crema);
  background: radial-gradient(120% 70% at 50% 115%, #5a1c0c 0%, #2a120a 38%, #141210 70%, #0d0c0b 100%); }
.escena .brasas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.escena-resplandor { position: fixed; left: 50%; bottom: -30vh; width: 140vw; height: 60vh; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgb(255 96 38 / .38), rgb(178 63 36 / .12) 55%, transparent);
  animation: respirar 4.5s ease-in-out infinite; }
@keyframes respirar { 0%, 100% { opacity: .75; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
.escena-contenido { position: relative; width: 100%; max-width: 420px; padding: calc(28px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom)); }
body.en-escena { overflow: hidden; }
body.en-escena .barra, body.en-escena .pestanas { visibility: hidden; }

/* Rótulo: logo de L'Alter + REGISTRO · PAELLAS · LLEVAR */
.rotulo { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 26px; }
.rotulo-logo { width: 104px; height: auto; margin-bottom: 18px; filter: drop-shadow(0 0 18px rgb(255 96 38 / .35));
  animation: aparecer .9s var(--ease) both; }
.rotulo-linea { font-size: 13px; font-weight: 500; letter-spacing: .5em; text-transform: uppercase; padding-left: .5em; color: rgb(254 248 235 / .78);
  animation: aparecer .9s var(--ease) both; }
.rotulo-linea:last-child { animation-delay: .32s; }
.rotulo-grande { font-size: clamp(46px, 14vw, 62px); line-height: 1; font-weight: 600; letter-spacing: .12em; padding-left: .12em; text-transform: uppercase;
  margin: 6px 0 8px; background: linear-gradient(180deg, #fff3dc 0%, #ffb27a 55%, #ff6026 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgb(255 96 38 / .35)); animation: aparecer .9s var(--ease) .16s both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; } }

.acceso-form { background: rgb(20 18 16 / .62); border: 1px solid rgb(254 248 235 / .14); border-radius: 22px; padding: 20px 20px 16px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 60px rgb(0 0 0 / .45); animation: aparecer .8s var(--ease) .45s both; }
.acceso-form .campo { color: rgb(254 248 235 / .7); margin-top: 0; }
.acceso-form .campo input { background: rgb(254 248 235 / .06); border-color: rgb(254 248 235 / .18); color: var(--crema); }
.acceso-form .campo input:focus { border-color: var(--naranja-2); box-shadow: 0 0 0 4px rgb(255 96 38 / .2); }
.acceso-form .pin { font-size: 28px; letter-spacing: .6em; text-align: center; padding-left: calc(14px + .6em); }
.recordar { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; font-size: 14px; color: rgb(254 248 235 / .82); cursor: pointer; }
.recordar input { width: 22px; height: 22px; accent-color: var(--naranja-2); flex: none; }
.acceso-form .msg.alerta { background: rgb(178 63 36 / .25); color: #ffb39b; }
.acceso-form .btn { margin-top: 4px; }
.lema-acceso { margin: 14px 0 0; text-align: center; font-family: "Permanent Marker", "Marker Felt", cursive; font-size: 22px; text-transform: uppercase;
  color: var(--naranja-2); text-shadow: 2px 2px 0 #000; }
.acceso-form.tiembla { animation: temblar .4s; }
@keyframes temblar { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* Animación al entrar: el rótulo se enciende y la escena se abre sobre la app */
.escena.entrando .acceso-form { transition: opacity .35s, transform .35s var(--ease); opacity: 0; transform: translateY(24px) scale(.97); }
.escena.entrando .rotulo { transition: transform .7s var(--ease); transform: scale(1.08) translateY(40px); }
.escena.entrando .rotulo-logo { filter: drop-shadow(0 0 34px rgb(255 96 38 / .8)); transition: filter .5s; }
.escena.saliendo { transition: opacity .6s var(--ease), transform .7s var(--ease); opacity: 0; transform: scale(1.06); pointer-events: none; }
body.app-entra .barra { animation: bajar .6s var(--ease) both; }
body.app-entra .pestanas { animation: subir-nav .6s var(--ease) .1s both; }
body.app-entra #vista > * { animation: subir .5s var(--ease) both; }
body.app-entra #vista > *:nth-child(2) { animation-delay: .08s; }
body.app-entra #vista > *:nth-child(3) { animation-delay: .14s; }
body.app-entra #vista > *:nth-child(n+4) { animation-delay: .2s; }
@keyframes bajar { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes subir-nav { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Usuario de la cabecera: se toca para ver Mi perfil y Salir ---------- */
.usuario-caja { position: relative; }
button.usuario { border: 1px solid rgb(254 248 235 / .18); background: rgb(254 248 235 / .06); color: var(--crema); border-radius: 999px;
  padding: 4px 10px 4px 4px; cursor: pointer; transition: background .2s var(--ease); }
button.usuario:hover, button.usuario[aria-expanded="true"] { background: rgb(254 248 235 / .14); }
.usuario .flecha-menu { opacity: .7; transition: transform .2s var(--ease); }
.usuario[aria-expanded="true"] .flecha-menu { transform: rotate(180deg); }
.menu-usuario { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--superficie); color: var(--texto);
  border: 1px solid var(--borde); border-radius: 16px; box-shadow: 0 14px 40px rgb(0 0 0 / .25); padding: 6px; z-index: 1200;
  animation: subir .2s var(--ease); }
.menu-cabeza { padding: 10px 12px 8px; border-bottom: 1px solid var(--borde); margin-bottom: 4px; }
.menu-cabeza b { display: block; letter-spacing: .06em; }
.menu-cabeza span { font-size: 13px; color: var(--suave); word-break: break-all; }
.menu-usuario button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; text-align: left; }
.menu-usuario button:hover { background: var(--info-fondo); }
.menu-usuario .salir { color: var(--alerta); }

/* Mi perfil */
.perfil-cabeza { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.perfil-cabeza i { width: 54px; height: 54px; border-radius: 50%; background: var(--naranja-2); color: var(--negro); display: grid; place-items: center;
  font-style: normal; font-weight: 700; font-size: 24px; flex: none; }
.perfil-cabeza h2 { margin: 0 0 4px; color: var(--texto); font-size: 20px; letter-spacing: .08em; }
.perfil-datos { margin: 0 0 12px; }
.perfil-datos > div { padding: 10px 0; border-top: 1px solid var(--borde); }
.perfil-datos dt { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--suave); }
.perfil-datos dd { margin: 2px 0 0; font-size: 16px; word-break: break-word; }
.pin-oculto { font-size: 22px; letter-spacing: .3em; }
.form-pin { margin-bottom: 12px; }
dialog.perfil .tarjeta { margin-bottom: 10px; }
dialog.perfil { max-height: calc(100dvh - 32px); overflow: auto; }

/* ---------- Estadísticas ---------- */
.kpis.estad { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi small { display: block; color: var(--suave); font-size: 13px; margin-top: 2px; }
.kpi.grande-kpi { background: var(--negro); color: var(--crema); border-color: var(--negro); }
.kpi.grande-kpi span, .kpi.grande-kpi small { color: rgb(254 248 235 / .7); }
.kpi.grande-kpi b { font-size: 34px; color: var(--naranja-2); line-height: 1.1; }
.grafico { display: flex; align-items: stretch; gap: 4px; height: 190px; margin: 14px 0 6px; border-bottom: 1px solid var(--borde); }
.barra-mes { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border: 0; background: none;
  padding: 0; cursor: pointer; position: relative; border-radius: 8px; }
.barra-mes i { display: block; width: min(70%, 34px); background: var(--marron); border-radius: 4px 4px 0 0; transition: height .5s var(--ease), background .2s; }
.barra-mes.actual i { background: var(--naranja-1); }
.barra-mes:hover i, .barra-mes.elegida i { background: var(--naranja-2); }
.barra-mes .valor { font-size: 12px; font-weight: 600; color: var(--texto); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.barra-mes .valor.oculto { visibility: hidden; }
.barra-mes:hover .valor.oculto, .barra-mes.elegida .valor.oculto { visibility: visible; }
.barra-mes .mes { position: absolute; bottom: -22px; font-size: 11px; color: var(--suave); letter-spacing: .04em; }
.detalle-mes { margin: 30px 0 0; }
.top { list-style: none; margin: 0; padding: 0; }
.top li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--borde); }
.top li:first-child { border-top: 0; }
.puesto { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--info-fondo); font-weight: 700; flex: none; font-size: 14px; }
.top li:nth-child(-n+3) .puesto { background: var(--negro); color: var(--naranja-2); }
.nombre-top { flex: 1; min-width: 0; font-weight: 600; letter-spacing: .02em; }
.cifra-top { text-align: right; white-space: nowrap; font-size: 14px; }
.cifra-top b { font-size: 18px; }
.cifra-top small { display: block; color: var(--suave); font-size: 12px; }

/* ---------- Rejillas: una columna en el móvil, varias en tablet y PC ---------- */
.rejilla { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; align-items: start; }
@media (min-width: 720px) {
  main { max-width: 1180px; padding: 20px 24px; }
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titulo-fecha h1 { font-size: 26px; }
  .navega-dia { max-width: 560px; }
  .pestanas { left: 50%; right: auto; width: min(640px, 100%); transform: translateX(-50%); border-radius: 22px 22px 0 0; }
}
/* PC: las pestañas pasan a la cabecera, arriba, como en una web */
@media (min-width: 1000px) {
  body { padding-bottom: 24px; }
  .barra { padding-left: 28px; padding-right: 28px; }
  .pestanas { position: fixed; top: 0; bottom: auto; left: 50%; width: auto; transform: translateX(-50%); background: transparent;
    display: flex; gap: 4px; height: 64px; align-items: center; padding: 0; border-radius: 0; z-index: 1150; }
  .pestanas button { flex-direction: row; gap: 8px; font-size: 12px; padding: 10px 16px; border-radius: 999px; }
  .pestanas button:hover { color: var(--crema); background: rgb(254 248 235 / .08); }
  .pestanas button.activa { background: rgb(255 96 38 / .14); }
  .pestanas button.activa::before { display: none; }
  .pestanas svg { width: 20px; height: 20px; }
  .pestanas b { position: static; margin-left: 2px; }
  body.app-entra .pestanas { animation: none; }
  .toast { bottom: 28px; }
  #mapa { height: calc(100vh - 260px); }
  .mapa-ruta { height: 420px !important; }
}
@media (min-width: 1400px) { .rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Mapa del Tancat: casas, chinchetas y lugares sobre satélite o plano ---------- */
.mapa-pro { --vidrio: rgb(20 18 16 / .72); --vidrio-texto: var(--crema); --vidrio-borde: rgb(254 248 235 / .16);
  position: relative; height: max(460px, calc(100dvh - 240px)); border-radius: 20px; overflow: hidden; background: #1b1915;
  box-shadow: 0 10px 30px rgb(33 33 33 / .18); isolation: isolate; }
.mapa-pro.plano { --vidrio: rgb(255 253 247 / .86); --vidrio-texto: var(--negro); --vidrio-borde: rgb(33 33 33 / .12); background: #ede6d8; }
.mapa-pro #mapa { position: absolute; inset: 0; height: 100%; min-height: 0; border: 0; border-radius: 0; background: inherit; }
.mapa-pro .leaflet-control-attribution { background: rgb(0 0 0 / .35); color: rgb(255 255 255 / .75); font-size: 10px; }
.mapa-pro.plano .leaflet-control-attribution { background: rgb(255 255 255 / .6); color: #555; }
.mapa-pro .leaflet-control-attribution a { color: inherit; }
.mapa-pro .leaflet-bar { border: 0; box-shadow: none; }
.mapa-pro .leaflet-control-zoom a { width: 40px; height: 40px; line-height: 40px; font-size: 20px; background: var(--vidrio); color: var(--vidrio-texto);
  border: 1px solid var(--vidrio-borde); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mapa-pro .leaflet-control-zoom a:first-child { border-radius: 12px 12px 0 0; }
.mapa-pro .leaflet-control-zoom a:last-child { border-radius: 0 0 12px 12px; }
.mapa-pro .leaflet-bottom.leaflet-right { margin-bottom: 4px; }
/* Paneles de vidrio encima del mapa */
.mapa-arriba { position: absolute; z-index: 800; top: 10px; left: 10px; right: 10px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.mapa-arriba > * { pointer-events: auto; }
.mapa-buscar { position: relative; max-width: 420px; }
.mapa-buscar input { width: 100%; padding: 12px 16px 12px 42px; border-radius: 999px; border: 1px solid var(--vidrio-borde); background: var(--vidrio) no-repeat 14px 50% / 18px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6026' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E");
  color: var(--vidrio-texto); font-size: 16px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 20px rgb(0 0 0 / .25); }
.mapa-buscar input::placeholder { color: color-mix(in srgb, var(--vidrio-texto) 60%, transparent); }
.mapa-buscar input:focus { outline: none; border-color: var(--naranja-2); }
.mapa-resultados { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--superficie); border-radius: 16px; overflow: hidden;
  box-shadow: 0 14px 40px rgb(0 0 0 / .3); animation: subir .2s var(--ease); }
.mapa-resultados button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-bottom: 1px solid var(--borde); background: none; padding: 10px 12px;
  text-align: left; cursor: pointer; font-size: 14px; color: var(--texto); }
.mapa-resultados button:hover { background: var(--info-fondo); }
.mapa-resultados .illa-badge.mini { margin: 0; flex: none; }
.mapa-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mapa-chips button, .mapa-capas button, .mapa-boton { border: 1px solid var(--vidrio-borde); background: var(--vidrio); color: var(--vidrio-texto); border-radius: 999px;
  padding: 8px 14px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s var(--ease), color .2s var(--ease), transform .12s var(--ease); }
.mapa-chips button:active, .mapa-capas button:active, .mapa-boton:active { transform: scale(.94); }
.mapa-chips button.activa, .mapa-capas button.activa, .mapa-boton.activa { background: var(--naranja-2); color: var(--negro); border-color: var(--naranja-2); }
.mapa-chips .calor { margin-left: auto; }
.mapa-chips .calor::before { content: ""; display: inline-block; width: 26px; height: 8px; border-radius: 4px; margin-right: 6px; vertical-align: 1px;
  background: linear-gradient(90deg, #fcd9b6, #f9a868, #ef6a2a, #a8321a); }
.mapa-capas { position: absolute; z-index: 800; left: 10px; bottom: 54px; display: flex; gap: 0; }
.mapa-capas button:first-child { border-radius: 999px 0 0 999px; }
.mapa-capas button:last-child { border-radius: 0 999px 999px 0; border-left: 0; }
.mapa-boton { position: absolute; z-index: 800; display: inline-flex; align-items: center; gap: 6px; }
.escanear-boton { right: 10px; bottom: 102px; width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 12px; }
.mapa-leyenda { position: absolute; z-index: 800; left: 10px; bottom: 10px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; max-width: calc(100% - 80px);
  padding: 7px 12px; border-radius: 12px; background: var(--vidrio); color: var(--vidrio-texto); font-size: 12px; font-weight: 500;
  border: 1px solid var(--vidrio-borde); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mapa-leyenda span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mapa-leyenda i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.mapa-leyenda i.cliente { background: #ff6026; box-shadow: inset 0 0 0 2px #ffb27a; }
.mapa-leyenda i.sin-cliente { background: rgb(254 248 235 / .25); box-shadow: inset 0 0 0 1.5px currentColor; }
.mapa-leyenda .rampa { display: flex; gap: 8px; flex-wrap: wrap; }
.mapa-leyenda b { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }

/* Casas (polígonos del mapa de My Maps) */
.leaflet-interactive.casa { transition: fill-opacity .2s, stroke-width .2s; }
.casa.cliente { fill: #ff6026; fill-opacity: .42; stroke: #ffb27a; stroke-opacity: .95; }
.casa.sin-cliente { fill: #fef8eb; fill-opacity: .12; stroke: #fef8eb; stroke-opacity: .7; stroke-dasharray: 3 3; }
.plano .casa.cliente { fill-opacity: .5; stroke: #b23f24; }
.plano .casa.sin-cliente { fill: #8d8173; fill-opacity: .14; stroke: #6b6156; }
.casa.calor-0 { fill: #f3ede4; fill-opacity: .22; stroke: #fef8eb; stroke-opacity: .5; }
.casa.calor-1 { fill: #fcd9b6; fill-opacity: .8; stroke: #fff; stroke-opacity: .7; }
.casa.calor-2 { fill: #f9a868; fill-opacity: .82; stroke: #fff; stroke-opacity: .7; }
.casa.calor-3 { fill: #ef6a2a; fill-opacity: .85; stroke: #fff; stroke-opacity: .7; }
.casa.calor-4 { fill: #a8321a; fill-opacity: .9; stroke: #fff; stroke-opacity: .8; }
.plano .casa.calor-0 { fill: #8d8173; stroke: #6b6156; }
.mapa-leyenda i.calor-0 { background: #f3ede4; opacity: .6; } .mapa-leyenda i.calor-1 { background: #fcd9b6; } .mapa-leyenda i.calor-2 { background: #f9a868; }
.mapa-leyenda i.calor-3 { background: #ef6a2a; } .mapa-leyenda i.calor-4 { background: #a8321a; }
.casa:hover { fill-opacity: .72; }
.casa.elegida { stroke: #fff; stroke-width: 4px; stroke-opacity: 1; stroke-dasharray: none; fill-opacity: .78; animation: latido-casa 1.6s ease-in-out infinite; }
@keyframes latido-casa { 50% { stroke-width: 7px; } }
.entorno.parque { fill: #3d8b40; fill-opacity: .3; stroke: #8fd18f; stroke-opacity: .55; }
.entorno.edificio { fill: #6b4ea0; fill-opacity: .28; stroke: #c3a8f0; stroke-opacity: .6; }
.entorno.dudosa { fill: #9c27b0; fill-opacity: .2; stroke: #e1a3ec; stroke-opacity: .7; stroke-dasharray: 4 3; }
/* Escaneo: un anillo sale del restaurante y las casas se encienden al pasar */
.leaflet-interactive.escaneo { animation: encender .55s var(--ease) both; }
@keyframes encender { from { opacity: 0; stroke-width: 6px; } to { opacity: 1; } }
.onda-escaneo { position: absolute; z-index: 650; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; pointer-events: none;
  border: 2px solid #ff6026; box-shadow: 0 0 40px rgb(255 96 38 / .7), inset 0 0 30px rgb(255 96 38 / .45); animation: onda 1.5s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes onda { from { transform: scale(.2); opacity: 1; } to { transform: scale(42); opacity: 0; } }

/* Chinchetas en forma de gota */
.leaflet-marker-icon.pin { background: none; border: 0; }
.pin-gota { position: absolute; left: 2px; top: 0; width: var(--t); height: var(--t); border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--naranja-2); border: 2px solid #fff; box-shadow: -2px 3px 8px rgb(0 0 0 / .45); display: grid; place-items: center; transition: transform .15s var(--ease); }
.pin-dentro { transform: rotate(45deg); display: grid; place-items: center; color: var(--negro); font-weight: 700; font-size: 15px; line-height: 1; }
.pin:hover .pin-gota { transform: rotate(-45deg) scale(1.12); }
.pin-casa .pin-gota { background: var(--marron); border-width: 1.5px; }
.pin-casa .pin-dentro { color: var(--crema); }
.pin-casa svg { width: 12px; height: 12px; }
.pin-restaurante .pin-gota { background: var(--negro); border-color: var(--naranja-2); }
.pin-restaurante img { width: 22px; height: auto; display: block; }
.pin-parada .pin-gota { animation: botar 2.4s var(--ease) infinite; }
@keyframes botar { 0%, 70%, 100% { transform: rotate(-45deg) translate(0, 0); } 80% { transform: rotate(-45deg) translate(3px, -3px); } }
.etiqueta-illa span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font: 700 11px/1 var(--f-titulo); color: #fff; letter-spacing: .02em;
  text-shadow: 0 1px 2px #000, 0 0 6px rgb(0 0 0 / .8); pointer-events: none; }
.plano .etiqueta-illa span { color: var(--negro); text-shadow: 0 0 3px #fff, 0 0 6px #fff; }
.lugar-mapa.basura { display: grid; place-items: center; border-radius: 50%; background: #2e7d32; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .4); }
.lugar-mapa.lugar span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: rgb(107 78 160 / .9);
  color: #fff; font: 600 10px/1.4 var(--f-titulo); letter-spacing: .12em; }
.leaflet-tooltip.etiqueta-mapa { background: rgb(20 18 16 / .88); color: var(--crema); border: 0; border-radius: 10px; padding: 6px 10px; font: 500 13px/1.3 var(--f-titulo);
  box-shadow: 0 6px 18px rgb(0 0 0 / .35); }
.leaflet-tooltip.etiqueta-mapa::before { display: none; }
.yo-mapa { border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 0 rgb(26 115 232 / .5); animation: yo 1.8s infinite; }
@keyframes yo { 70% { box-shadow: 0 0 0 16px rgb(26 115 232 / 0); } 100% { box-shadow: 0 0 0 0 rgb(26 115 232 / 0); } }

/* Ficha de la casa: hoja que sube en el móvil, panel lateral en el PC */
.ficha { position: absolute; z-index: 900; left: 0; right: 0; bottom: 0; max-height: 64%; overflow: auto; padding: 16px 16px 18px; background: var(--superficie);
  border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgb(0 0 0 / .35); transform: translateY(105%); transition: transform .3s var(--ease); }
.ficha.abierta { transform: none; }
.ficha::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 3px; background: var(--borde); margin: -6px auto 10px; }
.ficha-cerrar { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--info-fondo); font-size: 22px; line-height: 1; cursor: pointer; }
.ficha .persona:first-of-type { margin-top: 12px; }
.ficha-cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 10px; }
.ficha-cifras div { background: var(--info-fondo); border-radius: 12px; padding: 8px 10px; }
.ficha-cifras b { display: block; font-size: 18px; }
.ficha-cifras span { font-size: 11px; color: var(--suave); letter-spacing: .06em; text-transform: uppercase; }
.ficha-historial div { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--borde); font-size: 14px; }
.ficha-historial div > span:first-child { min-width: 64px; font-variant-numeric: tabular-nums; }
.ficha-historial .chip.paellera { font-size: 13px; padding: 3px 9px; }
.ficha-historial .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficha .acciones .btn { flex: 1; }
@media (min-width: 1000px) {
  .mapa-pro { height: calc(100vh - 230px); }
  .ficha { left: auto; top: 10px; right: 60px; bottom: 10px; width: 360px; max-height: none; border-radius: 20px; transform: translateX(calc(100% + 80px)); }
  .ficha::before { display: none; }
}

/* Recoger: mapa de la ruta junto a la lista de paradas */
.recoger-cuerpo { display: grid; gap: 14px; }
.recoger-mapa .mapa-pro { height: 60vh; min-height: 380px; }
.ruta-sombra { stroke: #000; stroke-opacity: .35; fill: none; }
.ruta-animada { stroke: #ff6026; stroke-opacity: 1; fill: none; stroke-dasharray: 12 9; animation: marcha 1s linear infinite; }
@keyframes marcha { to { stroke-dashoffset: -21; } }
.casa.fondo { fill: #fef8eb; fill-opacity: .06; stroke: #fef8eb; stroke-opacity: .32; }
.plano .casa.fondo { fill: #8d8173; stroke: #8d8173; }
.casa.parada-casa { fill: #ff6026; fill-opacity: .55; stroke: #fff; stroke-opacity: 1; animation: parada 1.8s ease-in-out infinite; cursor: pointer; }
@keyframes parada { 50% { fill-opacity: .85; } }
.mapa-siguiente { position: absolute; z-index: 800; top: 10px; left: 10px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px;
  background: var(--vidrio); color: var(--vidrio-texto); border: 1px solid var(--vidrio-borde); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); max-width: calc(100% - 20px); }
.mapa-siguiente small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.mapa-siguiente b { font-size: 16px; letter-spacing: .04em; }
.mapa-siguiente .muted { color: inherit; opacity: .75; font-size: 12px; }
.desde-aqui { top: 66px; left: 10px; }
.desde-aqui.buscando svg { animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.tarjeta.destello { animation: destello 1.2s var(--ease); }
@keyframes destello { 0%, 40% { box-shadow: 0 0 0 4px var(--naranja-2), 0 10px 30px rgb(255 96 38 / .35); } 100% { box-shadow: none; } }
@media (min-width: 1000px) {
  .recoger-cuerpo { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
  .recoger-mapa { position: sticky; top: 80px; }
  .recoger-mapa .mapa-pro { height: calc(100vh - 110px); }
  .recoger-lista .rejilla { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 999px) {
  .mapa-pro.con-ficha .leaflet-control-zoom, .mapa-pro.con-ficha .escanear-boton, .mapa-pro.con-ficha .mapa-capas, .mapa-pro.con-ficha .mapa-leyenda { opacity: 0; pointer-events: none; }
}
.mapa-pro .leaflet-control-zoom, .escanear-boton, .mapa-capas, .mapa-leyenda { transition: opacity .2s; }
@media (min-width: 1000px) { .mapa-chips .calor { margin-left: 0; } .mapa-buscar { max-width: 380px; } }

/* Estadísticas: cuántas de llevar son de la urbanización */
.barra-mes .pila { display: flex; flex-direction: column; width: min(70%, 34px); border-radius: 4px 4px 0 0; overflow: hidden; gap: 2px; transition: height .5s var(--ease); }
.barra-mes .pila i { display: block; width: 100%; min-height: 0; border-radius: 0; transition: background .2s; }
.barra-mes .pila i.resto { background: var(--marron); }
.barra-mes .pila i.urba { background: var(--naranja-2); }
.barra-mes .pila.sin-detalle i.resto { background: repeating-linear-gradient(135deg, var(--marron) 0 4px, #6b5a3a 4px 8px); }
.barra-mes:hover .pila i.resto, .barra-mes.elegida .pila i.resto { background: #5c4520; }
.barra-mes.actual .mes { color: var(--texto); font-weight: 700; }
.leyenda-estad { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--suave); }
.leyenda-estad span { display: inline-flex; align-items: center; gap: 6px; }
.leyenda-estad i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.leyenda-estad i.urba { background: var(--naranja-2); }
.leyenda-estad i.resto { background: var(--marron); }
.leyenda-estad i.sin-detalle { background: repeating-linear-gradient(135deg, var(--marron) 0 3px, #6b5a3a 3px 6px); }
.kpi-urba b em { font-style: normal; font-size: 15px; color: var(--naranja-1); margin-left: 8px; }
.kpi .barrita { display: block; height: 6px; border-radius: 3px; background: var(--info-fondo); margin-top: 8px; overflow: hidden; }
.kpi .barrita i { display: block; height: 100%; background: var(--naranja-2); border-radius: 3px; }
.nombre-top .illa-badge.mini { margin: 0 0 0 8px; vertical-align: middle; }
.chip.tipo { background: var(--aviso-fondo); color: var(--aviso); font-size: 11px; padding: 2px 8px; }
.chip.aclarado { background: var(--illa-fondo); color: var(--illa); font-size: 11px; padding: 2px 8px; cursor: help; }

/* Usuarios (solo administración) */
dialog.usuarios .usuario-fila { margin-bottom: 10px; }
dialog.usuarios .usuario-fila .acciones { margin-top: 8px; }
dialog.usuarios .usuario-fila.inactivo { opacity: .6; }
dialog.usuarios .quitar { color: var(--alerta); border-color: rgb(178 63 36 / .35); }
dialog.usuarios .quitar.seguro { background: var(--naranja-1); color: var(--crema); border-color: var(--naranja-1); }
dialog.usuarios .pin-nuevo .entrada input { font-size: 20px; letter-spacing: .3em; text-align: center; }
.msg.ok-msg { background: var(--ok-fondo); color: var(--ok); }

/* Ruta de Recoger por las calles; la guía recta solo se ve mientras se calcula */
.ruta-guia { stroke: #ff6026; stroke-opacity: .45; stroke-dasharray: 2 8; fill: none; }
.ruta-guia.sin-calles { stroke-opacity: .9; stroke-dasharray: 10 8; }
.pin-restaurante .pin-dentro { color: var(--naranja-2); }
.pin-restaurante .ico-paella { width: 22px; height: 22px; stroke-width: 2.2; }
.puerta-urba span { position: absolute; transform: translate(-50%, 24px); white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: var(--negro);
  color: var(--naranja-2); border: 1px solid var(--naranja-2); font: 700 10px/1.4 var(--f-titulo); letter-spacing: .12em; text-transform: uppercase; }

/* Face ID */
.btn-faceid { margin-top: 10px; background: transparent; color: var(--crema); border-color: rgb(254 248 235 / .35); box-shadow: none !important; }
.btn-faceid svg { color: var(--naranja-2); }
.faceid-fila { padding: 4px 0; font-size: 14px; color: var(--texto); }
#activar-faceid svg { width: 16px; height: 16px; }

/* Recoger por días */
.recoger-dia { margin-top: 4px; }
.recoger-dia .abrir-calendario span { text-transform: uppercase; letter-spacing: .04em; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hecho-item { cursor: default; }
.estado-item { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ok-fondo); color: var(--ok); font-weight: 700; }
.estado-item.perdida { background: var(--alerta-fondo); color: var(--alerta); }
.estado-item.prevista { background: var(--aviso-fondo); color: var(--aviso); }
.estado-item svg { width: 16px; height: 16px; }
.pin-hecha .pin-gota { background: var(--ok); }
.pin-hecha .pin-dentro { color: #fff; }

/* Balance de 2025 (colores como el Numbers de Dani) y perdidas en Pendientes */
.balance { display: grid; gap: 4px; }
.balance-fila { display: grid; grid-template-columns: 1fr auto 110px; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; font-weight: 600; }
.balance-fila b { font-size: 18px; font-variant-numeric: tabular-nums; }
.balance-fila small { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.balance-fila.base { background: var(--superficie); border: 1px solid var(--borde); }
.balance-fila.no-devuelta { background: #f26b5b; color: #fff; }
.balance-fila.perdida { background: var(--negro); color: var(--crema); }
.balance-fila.reembolso { background: #17d9c4; color: var(--negro); }
.balance-fila.total { background: var(--superficie); border: 1px solid var(--borde); }
.balance-fila.devuelta { background: #5fd23a; color: var(--negro); }
.balance-fila.alter { background: var(--naranja-2); color: var(--negro); }
.balance-fila.sin-numero { background: #8d8d8d; color: #fff; }
.chip.reembolso { background: #c9f5ef; color: #0b6b60; }
.fila-pend.perdida { opacity: .85; }

/* Arroz de cocina (sin número): un toque lo apunta como salido */
button.hueco.cocina { font: inherit; font-weight: 600; cursor: pointer; border-style: solid; border-color: var(--naranja-2); color: var(--naranja-1); background: rgb(255 140 40 / .08); }
button.hueco.cocina:active { transform: scale(.97); }
button.hueco.cocina:disabled { opacity: .5; }

/* Recoger: «Pendiente» pequeño, para pasar a Pendientes la que trae el cliente */
.check .chip.mini { margin-left: auto; border: 1px solid var(--borde); background: transparent; font: inherit; font-size: 11.5px; padding: 3px 10px; cursor: pointer; flex: none; }

/* Hoy: «¿No se apuntó el número?» discreto bajo el campo */
.enlace-sn { display: block; margin: 8px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--suave); text-decoration: underline; cursor: pointer; }
.enlace-sn:disabled { opacity: .5; }

/* Hoy: comer aquí (solo informativo) y panel por horas */
.modos-hoy { margin-top: 4px; }
.chip.arroz { background: var(--negro); color: var(--crema); font-weight: 600; letter-spacing: .04em; }
.chip.arroz small { font-size: 9.5px; margin-left: 3px; opacity: .85; }
.chip.arroz.cocina { background: var(--naranja-2); color: #fff; }
.chip.arroz.revisar { background: var(--aviso-fondo); color: var(--aviso); }
.chip.mesa { background: rgb(33 33 33 / .07); }
.chip.aqui-chip { background: transparent; border: 1px solid var(--borde); color: var(--suave); }
.tarjeta.reserva.aqui { border-style: dashed; }
.panel-horas { display: grid; gap: 2px; }
.panel-horas .leyenda { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--suave); }
.panel-horas .leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }
.panel-horas i.aqui { background: #2f2f2f; }
.panel-horas i.llevar { background: var(--naranja-2); }
.franja { display: grid; grid-template-columns: 62px 34px minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--borde); }
.franja:first-of-type { border-top: 0; }
.franja.vacia { opacity: .45; }
.franja-hora { font-weight: 700; font-variant-numeric: tabular-nums; }
.franja-total { font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.franja-cuerpo { display: grid; gap: 6px; min-width: 0; }
.franja-barra { display: flex; height: 8px; border-radius: 99px; background: rgb(33 33 33 / .06); overflow: hidden; }
.franja-barra i { display: block; height: 100%; }
.franja-detalle { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }

/* Tarjetas solo con códigos; restricciones en rojo; aviso de arroz de cocina; Todas por horas */
.codigos { gap: 6px; margin-top: 8px; }
.restricciones { margin-top: 6px; color: var(--alerta); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; }
.chip.cocina-aviso { background: transparent; border: 1.5px solid var(--naranja-2); color: var(--naranja-1); font-weight: 700; }
.txt-cocina { color: var(--naranja-1); }
.grupo-hora { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--negro); }
.grupo-hora h2 { margin: 0; font-size: 22px; font-variant-numeric: tabular-nums; }
