/* ============================================================
   SIKORRE — Dashboard Encanto Colombia
   Sistema de diseño (Refactoring UI + ui-ux-pro-max + marca Encanto)
   Mobile-first. Tema claro cálido (crema). Tokens semánticos.
   ============================================================ */

:root {
    /* -- Marca (colores crudos, NO usar directo en componentes) -- */
    --c-amarillo: #FCD116;
    --c-azul:     #003893;
    --c-rojo:     #CE1126;
    --c-terracota:#B5522E;
    --c-madera:   #3A2A1E;
    --c-crema:    #FAF3E7;
    --c-verde:    #2E7D32;

    /* -- Roles semánticos (SÍ usar estos en componentes) -- */
    --fondo:        #FAF3E7;   /* crema: fondo de la app */
    --superficie:   #FFFFFF;   /* cards, paneles */
    --superficie-2: #FBF6EE;   /* superficie sutilmente teñida */

    --texto-1: #3A2A1E;        /* principal (madera, no negro puro) */
    --texto-2: #6B5D4F;        /* secundario */
    --texto-3: #9B8E7E;        /* terciario / labels */

    --borde:   #ECE1CF;        /* bordes/divisores cálidos */
    --borde-2: #DCCDB4;

    /* Acción primaria = terracota (cálida, de marca, no grita) */
    --primario:       #B5522E;
    --primario-hover: #9A4526;
    --primario-tint:  #F6E7DF;
    --sobre-primario: #FFFFFF;

    /* Estados semánticos (tinte claro + texto oscuro = legible/elegante) */
    --exito:      #2E7D32;  --exito-tint:   #E5F0E5;  --exito-texto:   #1E5A22;
    --pendiente:  #B08400;  --pendiente-tint:#FCF3D4; --pendiente-texto:#7A5D00;
    --peligro:    #CE1126;  --peligro-tint: #FBE4E6;  --peligro-texto: #9E0D1D;
    --info:       #003893;  --info-tint:    #E2E8F3;  --info-texto:    #002A6E;

    /* -- Espaciado (escala fija 4/8) -- */
    --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
    --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;

    /* -- Radios (amigable/familiar, consistente) -- */
    --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;

    /* -- Tipografía -- */
    --fuente-ui: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --fuente-marca: 'Caveat', var(--fuente-ui);
    --ts-xs: 12px; --ts-sm: 14px; --ts-base: 16px; --ts-md: 18px;
    --ts-lg: 20px; --ts-xl: 24px; --ts-2xl: 30px; --ts-3xl: 36px;

    /* -- Sombras (compuestas, luz desde arriba) -- */
    --sombra-sm: 0 1px 2px rgba(58,42,30,.08), 0 1px 1px rgba(58,42,30,.04);
    --sombra-md: 0 4px 8px rgba(58,42,30,.10), 0 2px 4px rgba(58,42,30,.06);
    --sombra-lg: 0 12px 24px rgba(58,42,30,.14), 0 4px 8px rgba(58,42,30,.08);

    --altura-header: 60px;
    --altura-barra-inf: 76px;
    --ancho-max: 720px;
}

/* -- Reset ligero -- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--fuente-ui);
    font-size: var(--ts-base);
    line-height: 1.5;
    color: var(--texto-1);
    background: var(--fondo);
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
}
button { font-family: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; border-radius: var(--r-sm); }

/* Números tabulares para precios (evita salto de layout) */
.num { font-variant-numeric: tabular-nums; }

/* Franja de marca (bandera) arriba de todo */
.franja-marca {
    height: 4px;
    background: linear-gradient(90deg,
        var(--c-amarillo) 0 33.3%,
        var(--c-azul) 33.3% 66.6%,
        var(--c-rojo) 66.6% 100%);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.contenedor {
    width: 100%;
    max-width: var(--ancho-max);
    margin: 0 auto;
    padding: 0 var(--sp-4);
}

.app-header {
    position: sticky; top: 0; z-index: 40;
    height: var(--altura-header);
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-3);
    background: var(--superficie);
    border-bottom: 1px solid var(--borde);
    padding: 0 var(--sp-4);
}
.app-header .marca-wordmark {
    font-family: var(--fuente-marca);
    font-size: var(--ts-2xl);
    font-weight: 700;
    color: var(--primario);
    line-height: 1;
}
/* Logo de marca en el header (imagen real de Encanto) */
.app-header .marca {
    display: flex; align-items: center; gap: var(--sp-2); min-width: 0;
}
.app-header .marca-logo {
    height: 34px; width: auto; display: block;
    /* el logo trae fondo claro; lo fundimos con el header */
    mix-blend-mode: multiply;
}
.app-header .marca-sufijo {
    font-weight: 800; font-size: var(--ts-md); color: var(--texto-2);
    white-space: nowrap;
}
@media (min-width: 700px) { .app-header .marca-logo { height: 40px; } }
.header-usuario { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.header-usuario .quien { text-align: right; min-width: 0; }
.header-usuario .nombre {
    font-weight: 700; font-size: var(--ts-sm); color: var(--texto-1);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header-usuario .rol { font-size: var(--ts-xs); color: var(--texto-3); text-transform: capitalize; }

main { padding: var(--sp-5) 0 calc(var(--altura-barra-inf) + var(--sp-5)); }

.pantalla { display: none; }
.pantalla.activa { display: block; animation: aparecer .18s ease-out; }
@keyframes aparecer { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .pantalla.activa { animation: none; }
    * { transition: none !important; }
}

.titulo-pantalla { font-size: var(--ts-xl); font-weight: 800; margin-bottom: var(--sp-1); }
.sub-pantalla { color: var(--texto-2); font-size: var(--ts-sm); margin-bottom: var(--sp-5); }

.fila-titulo { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.fila-titulo .titulo-pantalla { margin: 0; }

/* ============================================================
   BOTONES  (jerarquía: primario / secundario / terciario / peligro)
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: var(--sp-2);
    min-height: 48px; padding: 0 var(--sp-5);
    font-size: var(--ts-base); font-weight: 700;
    border: 1px solid transparent; border-radius: var(--r-pill);
    cursor: pointer; user-select: none;
    transition: background .15s ease, transform .06s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .icono { width: 20px; height: 20px; }

.btn-primario { background: var(--primario); color: var(--sobre-primario); box-shadow: var(--sombra-sm); }
.btn-primario:not(:disabled):hover { background: var(--primario-hover); }

.btn-secundario { background: var(--superficie); color: var(--texto-1); border-color: var(--borde-2); }
.btn-secundario:not(:disabled):hover { background: var(--superficie-2); }

.btn-terciario { background: transparent; color: var(--primario); min-height: 44px; padding: 0 var(--sp-3); }
.btn-terciario:not(:disabled):hover { background: var(--primario-tint); }

.btn-exito { background: var(--exito); color: #fff; box-shadow: var(--sombra-sm); }
.btn-exito:not(:disabled):hover { filter: brightness(.94); }

.btn-peligro-suave { background: transparent; color: var(--peligro-texto); }
.btn-peligro-suave:not(:disabled):hover { background: var(--peligro-tint); }

.btn-bloque { width: 100%; }

/* Botón ícono redondo (44x44 mínimo) */
.btn-icono {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--r-pill);
    background: var(--superficie); border: 1px solid var(--borde-2);
    color: var(--texto-1); cursor: pointer;
}
.btn-icono:hover { background: var(--superficie-2); }
.btn-icono .icono { width: 22px; height: 22px; }

/* ============================================================
   CARDS y GRIDS
   ============================================================ */
.card {
    background: var(--superficie);
    border: 1px solid var(--borde);
    border-radius: var(--r-lg);
    box-shadow: var(--sombra-sm);
}

/* Grid de mesas */
.grid-mesas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
}
@media (min-width: 520px) { .grid-mesas { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .grid-mesas { grid-template-columns: repeat(4, 1fr); } }

.mesa-card {
    position: relative;
    display: flex; flex-direction: column; gap: var(--sp-2);
    padding: var(--sp-4);
    min-height: 104px;
    text-align: left;
    background: var(--superficie);
    border: 1px solid var(--borde);
    border-radius: var(--r-lg);
    box-shadow: var(--sombra-sm);
    cursor: pointer;
    transition: transform .06s ease, box-shadow .15s ease, border-color .15s ease;
}
.mesa-card:hover { box-shadow: var(--sombra-md); }
.mesa-card:active { transform: scale(.98); }
.mesa-card .mesa-num { font-size: var(--ts-lg); font-weight: 800; }
.mesa-card .mesa-num small { font-weight: 600; color: var(--texto-3); font-size: var(--ts-xs); display: block; }
.mesa-card.ocupada { border-color: var(--borde-2); background: var(--superficie-2); }
/* franja de acento lateral según estado */
.mesa-card::before {
    content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px;
    border-radius: var(--r-pill); background: var(--exito);
}
.mesa-card.ocupada::before { background: var(--primario); }
/* El estado lo comunican los tags (Listo recoger / En preparación), no el
   color de toda la tarjeta: una mesa puede llevar ambos tags a la vez. */
.mesa-badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================================================
   PANEL DE SALONES — vista de columnas (SOLO computador/tablet)
   Izquierda: lista de salones con su estado. Derecha: las mesas
   del salón elegido, con libre/ocupada, sin cambiar de pantalla.
   En celular esto se oculta y queda el flujo simple (tarjetas -> mesas).
   ============================================================ */
.salones-panel { display: none; }

@media (min-width: 960px) {
    .contenedor { max-width: 1080px; }

    /* En la pantalla de salones: ocultamos la vista móvil y mostramos el panel */
    #p-salones #grid-salones,
    #p-salones .sub-pantalla { display: none; }
    #p-salones .salones-panel {
        display: grid; grid-template-columns: 264px 1fr; gap: var(--sp-5); align-items: start;
    }

    /* Las pantallas con mucho texto no deben estirarse a lo ancho */
    #p-mesa .lista, #p-mesa .fila-titulo { max-width: 760px; }
}

.salones-lista { display: flex; flex-direction: column; gap: var(--sp-2);
    position: sticky; top: calc(var(--altura-header) + var(--sp-4)); }
.salon-item {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4); text-align: left; cursor: pointer; font-family: inherit;
    background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--r-md);
    transition: background .12s ease, border-color .12s ease;
}
.salon-item:hover { background: var(--superficie-2); }
.salon-item.activo { border-color: var(--primario); background: var(--primario-tint); }
.salon-item .s-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.salon-item .s-nombre { font-weight: 800; font-size: var(--ts-md); }
.salon-item .s-sub { font-size: var(--ts-xs); color: var(--texto-3); font-weight: 700; }

.salones-detalle .detalle-cabecera {
    display: flex; align-items: baseline; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.salones-detalle .detalle-titulo { font-size: var(--ts-xl); font-weight: 800; }
.salones-detalle .detalle-sub { font-size: var(--ts-sm); color: var(--texto-2); }

/* ============================================================
   BADGES de estado (icono + texto, no solo color)
   ============================================================ */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: var(--r-pill);
    font-size: var(--ts-xs); font-weight: 700; line-height: 1.4;
    white-space: nowrap;
}
.badge .icono { width: 14px; height: 14px; }
.badge-libre       { background: var(--exito-tint);     color: var(--exito-texto); }
.badge-ocupada     { background: var(--primario-tint);  color: var(--primario); }
.badge-preparacion { background: var(--pendiente-tint); color: var(--pendiente-texto); }
.badge-listo       { background: var(--exito-tint);     color: var(--exito-texto); }
.badge-actualizado { background: var(--pendiente);      color: #fff; }

/* ============================================================
   LISTA DE PEDIDOS / ITEMS
   ============================================================ */
.lista { display: flex; flex-direction: column; gap: var(--sp-3); }

.pedido-card { padding: var(--sp-4); }
.pedido-card .pedido-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.pedido-card .pedido-id { font-weight: 800; }
.pedido-card .pedido-hora { font-size: var(--ts-xs); color: var(--texto-3); }
.pedido-badges { display: inline-flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: flex-end; }
/* Pedido editado tras mandarse a cocina: borde ámbar para que salte a la vista */
.pedido-card.actualizado { border-color: var(--pendiente); box-shadow: inset 3px 0 0 var(--pendiente), var(--sombra-sm); }
.pedido-items { display: flex; flex-direction: column; gap: 6px; }
.pedido-item-linea { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: var(--ts-sm); }
.pedido-item-linea .cant { color: var(--texto-2); font-weight: 700; }
.pedido-item-linea .nota { color: var(--texto-3); font-size: var(--ts-xs); font-style: italic; }
.pedido-total { display: flex; justify-content: space-between; margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--borde); font-weight: 800; }

/* Tags de estado con hora (Creado / Listo) — visibles, no texto gris */
.pedido-estados { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: var(--r-pill);
    font-size: var(--ts-xs); font-weight: 800; line-height: 1.3; white-space: nowrap;
}
.tag .icono { width: 14px; height: 14px; }
.tag .tag-hora { font-variant-numeric: tabular-nums; font-weight: 700; opacity: .95; }
.tag-creado { background: var(--info-tint);     color: var(--info-texto); }
.tag-prep   { background: var(--pendiente-tint); color: var(--pendiente-texto); }
.tag-listo  { background: var(--exito-tint);     color: var(--exito-texto); }

/* Edición de un pedido en preparación (stepper por ítem + cancelar) */
.btn-peligro { background: var(--peligro); color: #fff; box-shadow: var(--sombra-sm); }
.btn-peligro:not(:disabled):hover { filter: brightness(.94); }
.pedido-item-linea.editable { align-items: center; gap: var(--sp-3); }
.pedido-item-linea .li-nombre { min-width: 0; }
.stepper-sm button { width: 32px; height: 32px; }
.stepper-sm .qty { min-width: 20px; }
.pedido-acciones { margin-top: var(--sp-4); }

/* ============================================================
   NUEVO PEDIDO — menú + carrito
   ============================================================ */
/* Buscador de platos: escribe → dropdown de coincidencias */
.buscador-menu { position: relative; margin-bottom: var(--sp-3); }
.buscador-menu .buscador-lupa {
    position: absolute; left: var(--sp-3); top: 50%; transform: translateY(-50%);
    display: flex; color: var(--texto-2); pointer-events: none;
}
.buscador-menu .buscador-lupa .icono { width: 18px; height: 18px; }
#buscar-plato {
    width: 100%; min-height: 46px;
    padding: 0 44px 0 42px;
    font-family: inherit; font-size: var(--ts-sm); color: var(--texto-1);
    background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--r-pill);
}
#buscar-plato:focus {
    outline: none; border-color: var(--c-madera);
    box-shadow: 0 0 0 3px rgba(58, 42, 30, .16);
}
.buscador-menu .buscador-limpiar {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; border: none; border-radius: 50%;
    background: transparent; color: var(--texto-2); cursor: pointer;
}
.buscador-menu .buscador-limpiar:hover { background: var(--superficie-2); }
.buscador-menu .buscador-limpiar .icono { width: 16px; height: 16px; }
.buscador-resultados {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
    max-height: 320px; overflow-y: auto;
    background: var(--superficie); border: 1px solid var(--borde-2); border-radius: var(--r-md);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}
.buscar-item {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
    width: 100%; padding: var(--sp-3) var(--sp-4); min-height: 54px;
    background: transparent; border: none; border-bottom: 1px solid var(--borde);
    text-align: left; cursor: pointer;
}
.buscar-item:last-child { border-bottom: none; }
.buscar-item:hover, .buscar-item.marcado { background: var(--superficie-2); }
.buscar-item .bi-info { min-width: 0; }
.buscar-item .bi-nombre { font-weight: 700; font-size: var(--ts-sm); color: var(--texto-1); }
.buscar-item .bi-cat { font-size: var(--ts-xs); color: var(--texto-2); }
.buscar-item .bi-der { display: flex; align-items: center; gap: var(--sp-2); flex: 0 0 auto; }
.buscar-item .bi-precio { font-size: var(--ts-sm); color: var(--texto-2); }
.buscar-item .bi-add { display: flex; color: var(--c-madera); }
.buscar-item .bi-add .icono { width: 20px; height: 20px; }
.buscar-item .bi-en-carro { font-size: var(--ts-xs); color: var(--c-madera); font-weight: 700; }
.buscar-vacio { padding: var(--sp-4); font-size: var(--ts-sm); color: var(--texto-2); text-align: center; }

.tabs-categorias {
    display: flex; gap: var(--sp-2); overflow-x: auto;
    padding-bottom: var(--sp-2); margin-bottom: var(--sp-4);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tabs-categorias::-webkit-scrollbar { display: none; }
/* En computador/tablet no hay scroll con el dedo: que se vean TODAS
   las categorías envolviendo en varias filas (arregla "Parrilladas"
   inalcanzable en la captura). */
@media (min-width: 760px) {
    .tabs-categorias { flex-wrap: wrap; overflow-x: visible; }
}
.tab-cat {
    flex: 0 0 auto; min-height: 40px; padding: 0 var(--sp-4);
    border-radius: var(--r-pill); border: 1px solid var(--borde-2);
    background: var(--superficie); color: var(--texto-2);
    font-weight: 700; font-size: var(--ts-sm); cursor: pointer; white-space: nowrap;
}
.tab-cat.activa { background: var(--c-madera); color: #fff; border-color: var(--c-madera); }

.grid-productos { display: flex; flex-direction: column; gap: var(--sp-2); }
/* En pantalla grande, el menú en 2 columnas aprovecha el ancho */
@media (min-width: 760px) {
    .grid-productos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); align-items: start; }
}
.producto-fila {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: var(--superficie); border: 1px solid var(--borde);
    border-radius: var(--r-md); min-height: 56px;
}
.producto-fila.en-carro { border-color: var(--borde-2); background: var(--superficie-2); }
.producto-fila .p-info { min-width: 0; flex: 1; }
.producto-fila .p-nombre { font-weight: 700; font-size: var(--ts-sm); }
.producto-fila .p-precio { color: var(--texto-2); font-size: var(--ts-sm); }

/* Zona de notas de un producto ya agregado al carrito */
.p-nota-zona { flex: 1 0 100%; display: flex; flex-direction: column; gap: var(--sp-2);
    margin-top: var(--sp-2); padding-top: var(--sp-3); border-top: 1px dashed var(--borde-2); }
.p-nota-zona input {
    width: 100%; min-height: 42px; padding: 0 var(--sp-3);
    font-family: inherit; font-size: var(--ts-sm); color: var(--texto-1);
    background: var(--superficie); border: 1px solid var(--borde-2); border-radius: var(--r-sm);
}
.p-nota-zona input:focus { border-color: var(--primario); outline: none; box-shadow: 0 0 0 3px var(--primario-tint); }
/* Editor de cada unidad, inline en el producto cuando se separó en unidades */
.unidad-sep { flex: 1 0 100%; }
.unidad-sep .unidad-lbl { font-size: var(--ts-xs); font-weight: 800; color: var(--primario);
    text-transform: uppercase; letter-spacing: .04em; margin-top: var(--sp-2); }
.chips-rapidos { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    min-height: 34px; padding: 0 var(--sp-3); border-radius: var(--r-pill);
    border: 1px solid var(--borde-2); background: var(--superficie);
    color: var(--texto-2); font-family: inherit; font-weight: 700; font-size: var(--ts-xs);
    cursor: pointer; white-space: nowrap;
}
.chip:hover { background: var(--superficie-2); }
/* Ingrediente marcado para QUITAR: se ve tachado y en rojo ("sin X") */
.chip-sin.activo {
    background: var(--peligro-tint); color: var(--peligro-texto);
    border-color: var(--peligro-texto); text-decoration: line-through;
}
/* Extra AGREGADO (ej. "Para llevar"): terracota de marca */
.chip-extra.activo { background: var(--primario); color: var(--sobre-primario); border-color: var(--primario); }
.nota-hint { font-size: var(--ts-xs); color: var(--texto-3); font-weight: 700; }

/* Métodos de pago (hoja de cobro). Reusa .chip; el elegido en terracota. */
.metodos-pago { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.metodo-chip { min-height: 44px; padding: 0 var(--sp-4); font-size: var(--ts-sm); }
.metodo-chip.activo { background: var(--primario); color: var(--sobre-primario); border-color: var(--primario); }
.cobro-total { font-size: var(--ts-lg); font-weight: 800; }

/* Propina (opcional): sugeridos + "Otro", y el total a pagar resaltado */
.cobro-propina { margin-bottom: var(--sp-2); }
.cobro-propina > label { display: block; font-size: var(--ts-sm); font-weight: 700; color: var(--texto-2); margin-bottom: var(--sp-2); }
.propina-chip.activo { background: var(--primario); color: var(--sobre-primario); border-color: var(--primario); }
.propina-otro { margin-top: var(--sp-2); }
.cobro-propina-calc { margin-top: var(--sp-2); font-size: var(--ts-sm); font-weight: 700; color: var(--texto-2); }
.cobro-total-pagar { font-size: var(--ts-md); font-weight: 800; margin: var(--sp-2) 0 var(--sp-4);
    padding-top: var(--sp-2); border-top: 1px solid var(--borde); }

/* Cobro por líneas (pago mixto): cada línea = un método + su monto */
.cobro-linea { border: 1px solid var(--borde); border-radius: var(--r-md);
    padding: var(--sp-3); margin-bottom: var(--sp-2); display: flex; flex-direction: column; gap: var(--sp-2); }
.cobro-linea-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.cobro-monto { display: flex; align-items: center; gap: var(--sp-2);
    background: var(--superficie); border: 1px solid var(--borde-2); border-radius: var(--r-sm); padding: 0 var(--sp-3); }
.cobro-monto .cobro-moneda { color: var(--texto-2); font-weight: 800; }
.cobro-monto-input { flex: 1; min-height: 42px; border: none; background: transparent;
    font-family: inherit; font-size: var(--ts-md); font-weight: 700; color: var(--texto-1); outline: none; }
.cobro-tracker { margin: var(--sp-3) 0; font-weight: 700; font-size: var(--ts-sm); }
.cobro-tracker .ok { color: var(--exito-texto); }
.cobro-tracker .falta { color: var(--pendiente-texto); }
/* Atajo: dividir el total en N partes iguales */
.cobro-partes { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.cobro-partes label { font-size: var(--ts-sm); font-weight: 700; color: var(--texto-2); }
.cobro-partes input { width: 64px; min-height: 40px; text-align: center;
    font-family: inherit; font-size: var(--ts-md); font-weight: 800; color: var(--texto-1);
    background: var(--superficie); border: 1px solid var(--borde-2); border-radius: var(--r-sm); }

/* Stepper cantidad */
.stepper { display: flex; align-items: center; gap: var(--sp-2); }
.stepper .qty { min-width: 24px; text-align: center; font-weight: 800; }
.stepper button {
    width: 36px; height: 36px; border-radius: var(--r-pill);
    border: 1px solid var(--borde-2); background: var(--superficie);
    color: var(--primario); font-size: var(--ts-lg); font-weight: 800; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.stepper button:active { transform: scale(.94); }
.stepper .add { width: auto; padding: 0 var(--sp-4); height: 40px; gap: 6px;
    background: var(--primario-tint); color: var(--primario); border-color: transparent; font-size: var(--ts-sm); }

/* Barra inferior fija (carrito / acción primaria) */
.barra-inferior {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: var(--superficie);
    border-top: 1px solid var(--borde);
    box-shadow: 0 -4px 16px rgba(58,42,30,.08);
    padding: var(--sp-3) var(--sp-4) max(var(--sp-3), env(safe-area-inset-bottom));
}
.barra-inferior .contenedor { display: flex; align-items: center; gap: var(--sp-4); padding: 0; }
/* La zona del total es un botón que despliega el resumen del carrito */
.barra-inferior .resumen {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--sp-2);
    background: none; border: none; padding: var(--sp-1) 0;
    font-family: inherit; color: inherit; text-align: left; cursor: pointer;
}
.barra-inferior .resumen-txt { display: flex; flex-direction: column; min-width: 0; }
.barra-inferior .resumen .cuenta { font-size: var(--ts-xs); color: var(--texto-3); }
.barra-inferior .resumen .total { font-size: var(--ts-lg); font-weight: 800; }
.barra-inferior .chevron { color: var(--texto-3); display: inline-flex; transition: transform .18s ease; }
.barra-inferior .resumen[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* Panel desplegable con el resumen de lo agregado */
.carrito-sheet {
    position: fixed; left: 0; right: 0; z-index: 44;
    background: var(--superficie); border-top: 1px solid var(--borde);
    box-shadow: 0 -8px 24px rgba(58,42,30,.12);
    max-height: 52vh; overflow-y: auto;
    animation: sheet-up .18s ease-out;
}
@keyframes sheet-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.carrito-sheet .contenedor { padding-top: var(--sp-2); padding-bottom: var(--sp-3); }
.sheet-cab {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; background: var(--superficie);
    padding: var(--sp-2) 0; margin-bottom: var(--sp-1);
}
.sheet-titulo { font-weight: 800; font-size: var(--ts-md); }
.btn-icono-sm { width: 36px; height: 36px; }
.btn-icono-sm .icono { width: 18px; height: 18px; }
.sheet-lista { display: flex; flex-direction: column; }
.sheet-linea {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
    padding: var(--sp-3) 0; border-top: 1px solid var(--borde);
}
.sheet-linea:first-child { border-top: none; }
.sheet-info { min-width: 0; }
.sheet-nombre { font-weight: 700; font-size: var(--ts-sm); }
.sheet-nombre .cant { color: var(--texto-2); font-weight: 800; }
.sheet-nota { font-size: var(--ts-xs); color: var(--texto-3); font-style: italic; }
.sheet-controls { display: flex; align-items: center; gap: var(--sp-3); flex: 0 0 auto; }
.sheet-sub { font-weight: 800; font-size: var(--ts-sm); min-width: 64px; text-align: right; }
.sheet-vacio { padding: var(--sp-5) 0; text-align: center; color: var(--texto-3); font-size: var(--ts-sm); }

/* Fila de un plato ya enviado: es un botón (toca → hoja de acciones) */
.it-fila {
    width: 100%; align-items: center; gap: var(--sp-3);
    background: none; border: none; padding: var(--sp-2) 0; cursor: pointer;
    font: inherit; color: inherit; text-align: left;
}
.it-fila:hover { background: var(--superficie-2); border-radius: var(--r-sm); }
.it-fila .li-derecha { display: inline-flex; align-items: center; gap: var(--sp-2); flex: 0 0 auto; }
.it-fila .li-editar {
    display: inline-flex; align-items: center; gap: 2px;
    color: var(--primario); font-size: var(--ts-xs); font-weight: 800;
}
.it-fila .li-editar .icono { width: 14px; height: 14px; }

/* Línea del resumen del carrito con su editor por unidad */
.sheet-fila-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.sheet-linea.editando { background: var(--superficie-2); border-radius: var(--r-md); padding-left: var(--sp-3); padding-right: var(--sp-3); }
.sheet-linea.editando .p-nota-zona { margin-top: var(--sp-3); }
.linea-acciones { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: 6px; }
.mini-btn {
    background: var(--superficie); border: 1px solid var(--borde-2); border-radius: var(--r-pill);
    color: var(--primario); font-family: inherit; font-weight: 800; font-size: var(--ts-xs);
    min-height: 30px; padding: 0 var(--sp-3); cursor: pointer; white-space: nowrap;
}
.mini-btn:hover { background: var(--primario-tint); }

/* Botón fantasma (secundario dentro de una hoja de confirmación) */
.btn-fantasma { background: transparent; color: var(--texto-2); border-color: var(--borde-2); }
.btn-fantasma:not(:disabled):hover { background: var(--superficie-2); }

/* ============================================================
   HOJA MODAL (acciones al tocar un plato / editor de plato)
   Aparece desde abajo (estilo iOS action sheet) con fondo oscurecido.
   ============================================================ */
.hoja-overlay {
    position: fixed; inset: 0; z-index: 120;
    background: rgba(58,42,30,.45);
    display: flex; align-items: flex-end; justify-content: center;
    animation: hoja-fade .15s ease-out;
}
@keyframes hoja-fade { from { opacity: 0; } to { opacity: 1; } }
.hoja {
    width: 100%; max-width: var(--ancho-max);
    background: var(--superficie); border-radius: var(--r-lg) var(--r-lg) 0 0;
    box-shadow: 0 -12px 32px rgba(58,42,30,.22);
    padding: var(--sp-4) var(--sp-4) max(var(--sp-4), env(safe-area-inset-bottom));
    max-height: 88vh; overflow-y: auto;
    animation: hoja-up .2s ease-out;
}
@media (min-width: 640px) {
    .hoja-overlay { align-items: center; }
    .hoja { border-radius: var(--r-lg); margin: var(--sp-4); }
}
@keyframes hoja-up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.hoja-cab { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.hoja-titulo { font-weight: 800; font-size: var(--ts-md); }
.hoja-sub { font-size: var(--ts-sm); color: var(--texto-2); margin-bottom: var(--sp-4); }
.hoja-acciones { display: flex; flex-direction: column; gap: var(--sp-3); }
.hoja-nota-pie { font-size: var(--ts-xs); color: var(--texto-3); text-align: center; margin-top: var(--sp-3); }

/* Editor de plato dentro de la hoja */
.editor-item { display: flex; flex-direction: column; gap: var(--sp-3); }
.editor-fila { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.editor-lbl { font-weight: 800; font-size: var(--ts-sm); }
.editor-item .p-nota-zona { margin-top: 0; padding-top: 0; border-top: none; }
.editor-item .ed-guardar { margin-top: var(--sp-2); }

/* ============================================================
   LOGIN
   ============================================================ */
.login-wrap {
    min-height: 100dvh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: var(--sp-5);
    background:
        radial-gradient(1200px 400px at 50% -10%, rgba(181,82,46,.06), transparent),
        var(--fondo);
}
.login-card {
    width: 100%; max-width: 380px; padding: var(--sp-6) var(--sp-5);
    background: var(--superficie); border: 1px solid var(--borde);
    border-radius: var(--r-lg); box-shadow: var(--sombra-lg);
}
.login-marca { text-align: center; margin-bottom: var(--sp-6); }
.login-marca .login-logo {
    width: 240px; max-width: 88%; height: auto; margin: 0 auto var(--sp-2);
    display: block; mix-blend-mode: multiply;
}
.login-marca .wordmark {
    font-family: var(--fuente-marca); font-size: 44px; font-weight: 700;
    color: var(--primario); line-height: .95;
}
.login-marca .subtitulo { color: var(--texto-2); font-size: var(--ts-sm); font-weight: 700; margin-top: var(--sp-2); }

.campo { margin-bottom: var(--sp-4); }
.campo label { display: block; font-size: var(--ts-sm); font-weight: 700; margin-bottom: 6px; color: var(--texto-1); }
.campo input {
    width: 100%; min-height: 48px; padding: 0 var(--sp-4);
    font-size: var(--ts-base); font-family: inherit;
    color: var(--texto-1); background: var(--superficie);
    border: 1px solid var(--borde-2); border-radius: var(--r-md);
}
.campo input:focus { border-color: var(--primario); outline: none; box-shadow: 0 0 0 3px var(--primario-tint); }

/* Captura de cliente + # personas (pantalla de nuevo pedido) */
.fila-campos { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.fila-campos .campo { margin-bottom: 0; }
.campo-cliente { flex: 1; min-width: 0; }
.campo-personas { width: 104px; flex: none; }

/* Línea "Para Carlos · 3 personas" en las tarjetas de pedido (mesero y cocina) */
.pedido-cliente { font-size: var(--ts-sm); font-weight: 700; color: var(--primario); margin: 0 0 var(--sp-3); }

/* Textarea (motivo de cancelación) — mismo lenguaje visual que los inputs */
.campo textarea {
    width: 100%; min-height: 64px; padding: var(--sp-3) var(--sp-4);
    font-family: inherit; font-size: var(--ts-base);
    color: var(--texto-1); background: var(--superficie);
    border: 1px solid var(--borde-2); border-radius: var(--r-md); resize: vertical;
}
.campo textarea:focus { border-color: var(--primario); outline: none; box-shadow: 0 0 0 3px var(--primario-tint); }

/* Aviso de error dentro de una hoja (clave/motivo faltante) */
.alerta-inline { color: var(--peligro-texto); background: var(--peligro-tint); border-radius: var(--r-sm); padding: var(--sp-2) var(--sp-3); font-size: var(--ts-sm); font-weight: 700; margin-bottom: var(--sp-3); }

/* Selector de tiempo de servicio (mesero, por línea) */
.tiempo-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp-3); }
.tiempo-lbl { font-size: var(--ts-sm); font-weight: 700; color: var(--texto-2); margin-right: 4px; }
.btn-tiempo {
    min-width: 40px; min-height: 36px; padding: 0 10px;
    font-family: inherit; font-size: var(--ts-sm); font-weight: 800;
    color: var(--texto-1); background: var(--superficie);
    border: 1px solid var(--borde-2); border-radius: var(--r-pill); cursor: pointer;
}
.btn-tiempo.activo { color: var(--sobre-primario); background: var(--primario); border-color: var(--primario); }

/* Separador de tiempo en las tarjetas de cocina */
.tiempo-sep { font-size: var(--ts-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--primario); margin: var(--sp-2) 0 4px; }

.alerta {
    display: none; align-items: center; gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4);
    background: var(--peligro-tint); color: var(--peligro-texto);
    border-radius: var(--r-md); font-size: var(--ts-sm); font-weight: 600;
}
.alerta.visible { display: flex; }
.alerta .icono { width: 18px; height: 18px; flex: 0 0 auto; }

/* ============================================================
   ESTADO VACÍO
   ============================================================ */
.vacio {
    text-align: center; padding: var(--sp-7) var(--sp-4); color: var(--texto-2);
}
.vacio .icono-vacio {
    width: 56px; height: 56px; margin: 0 auto var(--sp-4);
    display: flex; align-items: center; justify-content: center;
    background: var(--primario-tint); color: var(--primario); border-radius: var(--r-pill);
}
.vacio .icono-vacio .icono { width: 28px; height: 28px; }
.vacio h3 { font-size: var(--ts-md); font-weight: 800; color: var(--texto-1); margin-bottom: 6px; }
.vacio p { font-size: var(--ts-sm); max-width: 34ch; margin: 0 auto; }

/* ============================================================
   TOASTS  (aria-live; persisten hasta cerrar — decisión de diseño Sikorre)
   ============================================================ */
.toast-zona {
    position: fixed; top: calc(var(--altura-header) + var(--sp-2)); right: var(--sp-3);
    z-index: 100; display: flex; flex-direction: column; gap: var(--sp-2);
    width: min(340px, calc(100vw - var(--sp-5)));
}
.toast {
    display: flex; align-items: flex-start; gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: var(--superficie); border: 1px solid var(--borde-2);
    border-left: 4px solid var(--exito);
    border-radius: var(--r-md); box-shadow: var(--sombra-lg);
    animation: toast-in .2s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.toast .icono { width: 20px; height: 20px; color: var(--exito); flex: 0 0 auto; margin-top: 2px; }
.toast .t-cuerpo { flex: 1; min-width: 0; }
.toast .t-titulo { font-weight: 800; font-size: var(--ts-sm); }
.toast .t-texto { font-size: var(--ts-xs); color: var(--texto-2); }
.toast .t-cerrar { background: none; border: none; color: var(--texto-3); cursor: pointer; padding: 2px; }
.toast .t-cerrar .icono { width: 16px; height: 16px; color: var(--texto-3); }
/* Variante ámbar (actualización de pedido) y roja (error) */
.toast-aviso { border-left-color: var(--pendiente); }
.toast-aviso .icono { color: var(--pendiente); }
.toast-error { border-left-color: var(--peligro); }
.toast-error .icono { color: var(--peligro); }

/* ============================================================
   CANALES DE VENTA (mesa, para llevar, domicilio, Rappi, Uber, DiDi)
   ============================================================ */
.canal-tabs {
    display: flex; gap: var(--sp-2); overflow-x: auto;
    padding-bottom: var(--sp-2); margin-bottom: var(--sp-3);
    -webkit-overflow-scrolling: touch;
}
.canal-chip {
    --canal-color: var(--primario);
    display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
    min-height: 44px; padding: 0 var(--sp-4);
    border: 1px solid var(--borde-2); border-radius: var(--r-pill);
    background: var(--superficie); color: var(--texto-1);
    font: inherit; font-weight: 700; font-size: var(--ts-sm); cursor: pointer;
}
.canal-chip .canal-punto {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--canal-color); flex: 0 0 auto;
}
.canal-chip.activa {
    background: var(--c-madera); color: #fff; border-color: var(--c-madera);
}
.canal-conteo { opacity: .8; }
.canal-nuevo { margin-bottom: var(--sp-3); }

/* ============================================================
   MODIFICADORES POR NIVELES
   Zonas de toque grandes (se usa de pie, con una mano) y NADA truncado:
   el nombre completo se parte en varias líneas y el precio va siempre
   visible. Es el error de Wansoft que no vamos a repetir.
   ============================================================ */
.mods-nivel {
    border: 1px solid var(--borde); border-radius: var(--r-md);
    padding: var(--sp-3); margin-bottom: var(--sp-3); background: var(--superficie-2);
}
.mods-nivel.esperando { opacity: .55; }
.mods-nivel-cab {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: var(--sp-2); flex-wrap: wrap;
}
.mods-nivel-nombre { font-weight: 800; font-size: var(--ts-md); }
.mods-regla { font-size: var(--ts-xs); color: var(--texto-2); }
.mods-conteo { font-size: var(--ts-xs); color: var(--texto-3); margin: 2px 0 var(--sp-2); }
.opciones-grid {
    display: grid; gap: var(--sp-2);
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.opcion-btn {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    min-height: 60px; padding: var(--sp-3);
    border: 1px solid var(--borde-2); border-radius: var(--r-md);
    background: var(--superficie); color: var(--texto-1);
    font: inherit; text-align: left; cursor: pointer;
}
.opcion-btn .opcion-nombre {
    font-weight: 700; font-size: var(--ts-sm);
    /* Nombre COMPLETO: se parte en líneas, nunca se corta. */
    white-space: normal; overflow-wrap: anywhere; line-height: 1.25;
}
.opcion-btn .opcion-precio { font-size: var(--ts-xs); color: var(--texto-2); }
.opcion-btn.activa {
    background: var(--primario); border-color: var(--primario); color: var(--sobre-primario);
}
.opcion-btn.activa .opcion-precio { color: rgba(255,255,255,.9); }
.opcion-btn.agotada { opacity: .45; cursor: not-allowed; }
.mods-total {
    text-align: right; font-weight: 800; font-size: var(--ts-md);
    margin: var(--sp-2) 0 var(--sp-3);
}
.mods-resumen {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-2);
}
.mods-resumen .mods-txt { font-size: var(--ts-xs); color: var(--texto-2); font-weight: 700; }
.sheet-mods { font-size: var(--ts-xs); color: var(--texto-2); font-weight: 700; }
.li-mods { font-size: var(--ts-xs); color: var(--texto-2); font-weight: 700; }

/* ---------- Silla (qué comensal pidió el plato) ---------- */
.silla-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp-3); }
.btn-silla {
    min-width: 44px; min-height: 44px; padding: 0 var(--sp-2);
    border: 1px solid var(--borde-2); border-radius: var(--r-sm);
    background: var(--superficie); color: var(--texto-2);
    font: inherit; font-weight: 700; cursor: pointer;
}
.btn-silla.activo { background: var(--primario); border-color: var(--primario); color: var(--sobre-primario); }
.li-silla {
    font-size: var(--ts-xs); font-weight: 700;
    color: var(--info-texto); background: var(--info-tint);
    padding: 1px 6px; border-radius: var(--r-pill);
}

/* Utilidades */
.oculto { display: none !important; }
.cargando { text-align: center; color: var(--texto-3); padding: var(--sp-6); font-size: var(--ts-sm); }
.spin { animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Cliente por teléfono (nuevo pedido) ---------- */
.cliente-info {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2);
    margin-bottom: var(--sp-3);
}
.cliente-info .ci-nombre { font-weight: 800; color: var(--texto-1); }
.ci-tag {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: var(--ts-xs); font-weight: 700; padding: 3px 8px;
    border-radius: var(--r-pill); background: var(--superficie-2); color: var(--texto-2);
}
.ci-tag .num { font-variant-numeric: tabular-nums; }
.ci-tag-frecuente { background: var(--info-tint); color: var(--info-texto); }
.ci-tag-nuevo { background: var(--superficie-2); color: var(--texto-2); }
.ci-tag-cumple { background: var(--pendiente-tint); color: var(--pendiente-texto); }
.ci-buscando { font-size: var(--ts-sm); color: var(--texto-3); }

/* ---------- Domicilio propio ---------- */
.domicilio-campos { margin-bottom: var(--sp-3); }

/* ---------- Devolución (regla del 30%) ---------- */
.dev-grupo { margin-bottom: var(--sp-4); }
.dev-grupo > label {
    display: block; font-size: var(--ts-sm); font-weight: 700;
    color: var(--texto-2); margin-bottom: var(--sp-2);
}
.dev-opciones { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.dev-opcion {
    flex: 1 1 auto; min-width: 44px; min-height: 52px; padding: var(--sp-2) var(--sp-3);
    border: 1px solid var(--borde-2); border-radius: var(--r-md);
    background: var(--superficie); color: var(--texto-1);
    font: inherit; font-weight: 700; cursor: pointer;
}
.dev-opcion.activo { background: var(--primario); border-color: var(--primario); color: var(--sobre-primario); }
.dev-opcion-grande { min-height: 60px; font-size: var(--ts-md); flex: 1 1 45%; }
.dev-aviso {
    border-radius: var(--r-sm); padding: var(--sp-3);
    font-weight: 800; font-size: var(--ts-sm); margin-bottom: var(--sp-3);
}
.dev-aviso-nocobra { background: var(--exito-tint); color: var(--exito-texto); }
.dev-aviso-cobra { background: var(--pendiente-tint); color: var(--pendiente-texto); }
.dev-resultado { font-size: var(--ts-sm); line-height: 1.45; }
.dev-resultado .num { font-variant-numeric: tabular-nums; font-weight: 800; }

/* ---------- Cambiar de pantalla (ruteo.js) ----------
   Solo aparece para quien tiene acceso a más de un panel — hoy Carlos, y el
   jefe (que puede mirar cocina). Al mesero y al cocinero no se les pinta
   nada: no tienen a dónde ir y un menú de una sola opción confunde. */
.sel-panel-caja { display: flex; align-items: center; }
.sel-panel {
    font: inherit; font-size: .9rem;
    padding: 6px 10px; margin-right: 10px;
    border: 1px solid var(--linea, #E4D5C3); border-radius: 10px;
    background: var(--crema, #FBF6F0); color: var(--tinta, #3A2A1E);
    cursor: pointer; max-width: 9.5rem;
}
.sel-panel:focus-visible { outline: 2px solid var(--terracota, #B5522E); outline-offset: 2px; }

/* Texto que solo leen los lectores de pantalla. */
.sr-solo {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Barra de acción de un canal sin mesa (Para llevar, Domicilio propio).
   Solo aparece donde el pedido lo toma el mesero: en Rappi/Uber/DiDi los
   pedidos entran por integración y aquí no hay nada que crear. */
.canal-acciones { display: flex; justify-content: flex-end; margin: 0 0 16px; }
.canal-acciones .btn { display: inline-flex; align-items: center; gap: 8px; }

/* Sin destello al cambiar de pantalla.
   Con sesión guardada, el login no se pinta nunca: en su lugar se ve un
   "Entrando…" hasta que el JS decide. Si la sesión resultó caducada, el JS
   quita esta clase y el login aparece con normalidad. */
.hay-sesion #vista-login { display: none; }
.hay-sesion body::before {
    content: "Entrando…";
    position: fixed; inset: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    background: var(--crema, #FBF6F0); color: var(--tinta-suave, #7A6753);
    font: 500 1rem/1.4 Nunito, system-ui, sans-serif;
}
/* En cuanto el panel real aparece, el velo sobra. */
.hay-sesion.sesion-lista body::before { display: none; }
