/* Baljam Tacos · estilos del sistema (Bootstrap 5 + Font Awesome 6)
   Colores tomados del logotipo: café, naranja, amarillo, verde y crema. */
:root {
    --cafe: #5a2a12;
    --cafe-osc: #3a1206;
    --naranja: #e8860c;
    --naranja-osc: #b85f00;
    --amarillo: #f4b42a;
    --verde: #6f8f1d;
    --verde-osc: #556f12;
    --crema: #fdf6e9;
    --crema-2: #f6e8cf;
    --linea: #ead8b9;
    --tinta: #2c1a10;
    --suave: #6b5546;
    --bs-body-color: #2c1a10;
    --bs-secondary-color: #6b5546;
    --bs-link-color: #a24f00;
    --bs-border-radius: .8rem;
    --bs-success: #4e7a12;
    --bs-success-rgb: 78, 122, 18;
}
html { font-size: 16px; }
html[data-text-size="2"] { font-size: 18px; }
html[data-text-size="3"] { font-size: 20px; }
body { min-height: 100vh; background: var(--crema); color: var(--tinta); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 992px) { body { padding-bottom: 0; } }
:focus-visible { outline: 3px solid var(--naranja) !important; outline-offset: 2px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 3000; padding: .6rem 1rem; border-radius: .6rem; background: var(--cafe); color: #fff; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

/* Botones grandes, fáciles de tocar */
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .25rem; border-radius: .85rem; font-weight: 700; }
.btn-sm { min-height: 40px; }
.btn-lg { min-height: 58px; font-size: 1.15rem; }
.btn-tacos { background: var(--naranja); border-color: var(--naranja); color: #2b0f00; }
.btn-tacos:hover, .btn-tacos:focus { background: var(--naranja-osc); border-color: var(--naranja-osc); color: #fff; }
.btn-cafe { background: var(--cafe); border-color: var(--cafe); color: #fff; }
.btn-cafe:hover, .btn-cafe:focus { background: var(--cafe-osc); border-color: var(--cafe-osc); color: #fff; }
.btn-cobrar { background: var(--verde); border-color: var(--verde); color: #fff; }
.btn-cobrar:hover, .btn-cobrar:focus { background: var(--verde-osc); border-color: var(--verde-osc); color: #fff; }
.btn-cobrar:disabled { background: #a7b38a; border-color: #a7b38a; color: #fff; }
.btn-outline-cafe { border: 2px solid var(--cafe); color: var(--cafe); background: #fff; }
.btn-outline-cafe:hover { background: var(--cafe); color: #fff; }
.btn-icon { width: 48px; padding: 0; flex: 0 0 48px; }
.form-control, .form-select { min-height: 50px; border-radius: .8rem; border-color: #dcc7a5; font-size: 1.05rem; }
.form-control-lg { min-height: 60px; font-size: 1.4rem; }
.form-label { font-weight: 700; }
.form-text { color: var(--suave); }
.input-group-text { background: #fff; border-color: #dcc7a5; font-weight: 700; }
.form-check-input { width: 1.4em; height: 1.4em; }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; }

/* Encabezado */
.app-header { position: sticky; top: 0; z-index: 1030; background: var(--cafe); box-shadow: 0 4px 14px rgba(58,18,6,.25); }
.app-header::after { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--naranja) 0 33%, var(--amarillo) 33% 66%, var(--verde) 66%); }
.app-nav { display: flex; align-items: center; gap: 1rem; min-height: 68px; padding: .35rem 1rem; }
.app-brand img { display: block; height: 52px; width: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.app-links { list-style: none; margin: 0 auto; padding: 0; gap: .25rem; }
.app-link { display: flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1rem; border-radius: .8rem; color: #f8e7cf; font-weight: 700; text-decoration: none; }
.app-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.app-link.active { color: var(--cafe-osc); background: var(--amarillo); }
.app-user { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.user-chip { align-items: center; gap: .4rem; color: #fde8c8; font-weight: 700; padding: 0 .4rem; }
.btn-salir { color: #fde8c8; border: 2px solid rgba(253,232,200,.45); }
.btn-salir:hover { color: var(--cafe); background: #fde8c8; }
.btn-mas { width: 52px; color: #fff; border: 2px solid rgba(255,255,255,.35); font-size: 1.3rem; }
.text-size { gap: .25rem; }
.text-size .btn { min-height: 40px; min-width: 44px; padding: 0 .5rem; color: #fde8c8; border: 1px solid rgba(253,232,200,.4); }
.text-size .btn[data-text-size="1"] { font-size: 14px; } .text-size .btn[data-text-size="2"] { font-size: 17px; } .text-size .btn[data-text-size="3"] { font-size: 20px; }
.text-size .btn.active { color: var(--cafe-osc); background: var(--amarillo); border-color: var(--amarillo); }
.text-size-lg { display: flex; }
.text-size-lg .btn { flex: 1; min-height: 52px; color: var(--cafe); border: 2px solid var(--linea); background: #fff; }
.text-size-lg .btn.active { color: #fff; background: var(--cafe); border-color: var(--cafe); }
.menu-mas a { display: flex; align-items: center; gap: .8rem; min-height: 56px; padding: 0 1rem; margin-bottom: .4rem; border-radius: .9rem; color: var(--tinta); font-weight: 700; font-size: 1.1rem; text-decoration: none; background: #fff; border: 1px solid var(--linea); }
.menu-mas a i { width: 1.6rem; text-align: center; color: var(--naranja-osc); }
.menu-mas a.active { background: var(--crema-2); border-color: var(--naranja); }
.offcanvas { background: var(--crema); }

/* Barra inferior en teléfono */
.bottom-nav { position: fixed; inset: auto 0 0 0; z-index: 1035; display: flex; background: #fff; border-top: 1px solid var(--linea); box-shadow: 0 -6px 20px rgba(58,18,6,.08); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a, .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 66px; border: 0; background: none; color: var(--suave); font-size: .8rem; font-weight: 700; text-decoration: none; }
.bottom-nav i { font-size: 1.35rem; }
.bottom-nav .active { color: var(--naranja-osc); }
.bottom-nav .active i { color: var(--naranja); }

.main-content { padding-top: 1.25rem; padding-bottom: 2rem; max-width: 1500px; }
.app-footer { padding: 1rem; text-align: center; color: var(--suave); font-size: .9rem; }
@media (max-width: 991.98px) { .app-footer { display: none; } }

/* Avisos */
.app-alert { border: 0; border-radius: 1rem; font-weight: 600; font-size: 1.05rem; box-shadow: 0 6px 18px rgba(58,18,6,.08); }
.toast-zone { position: fixed; z-index: 2000; left: 50%; top: 84px; transform: translateX(-50%); width: min(92vw, 460px); pointer-events: none; }
.app-toast { display: none; padding: 1rem 1.2rem; border-radius: 1rem; color: #fff; background: var(--cafe); font-weight: 700; font-size: 1.05rem; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.app-toast.show { display: block; animation: aparecer .2s ease-out; }
.app-toast.error { background: #b42318; }
.app-toast.ok { background: var(--verde-osc); }
@keyframes aparecer { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Títulos y tarjetas */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.2rem; }
.page-head h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; color: var(--cafe); }
.page-head h1 i { color: var(--naranja); }
.page-head p { margin: .2rem 0 0; color: var(--suave); }
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.panel { background: #fff; border: 1px solid var(--linea); border-radius: 1.2rem; box-shadow: 0 8px 24px rgba(58,18,6,.05); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--linea); }
.panel-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--cafe); }
.panel-body { padding: 1.1rem 1.2rem; }
.empty { padding: 2rem 1rem; text-align: center; color: var(--suave); }
.empty i { display: block; margin-bottom: .6rem; font-size: 2.4rem; color: #d8bf98; }

/* Inicio */
.hello { margin-bottom: 1.2rem; }
.hello h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; color: var(--cafe); margin: 0; }
.hello p { margin: .2rem 0 0; color: var(--suave); font-size: 1.05rem; }
.estado-turno { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; margin-bottom: 1.2rem; border-radius: 1.2rem; background: #fff; border: 2px solid var(--linea); }
.estado-turno .icono { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 1rem; font-size: 1.6rem; color: #fff; background: var(--verde); }
.estado-turno.cerrado .icono { background: #9a6b4b; }
.estado-turno.sin-abrir .icono { background: var(--naranja); }
.estado-turno .texto { flex: 1 1 220px; }
.estado-turno strong { display: block; font-size: 1.2rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin-bottom: 1.4rem; }
.kpi { position: relative; overflow: hidden; padding: 1rem 1.1rem; border-radius: 1.1rem; background: #fff; border: 1px solid var(--linea); text-decoration: none; color: var(--tinta); }
.kpi span { display: block; color: var(--suave); font-weight: 700; font-size: .95rem; }
.kpi strong { display: block; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; line-height: 1.15; }
.kpi small { color: var(--suave); }
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--naranja); }
.kpi.verde::before { background: var(--verde); } .kpi.amarillo::before { background: var(--amarillo); } .kpi.cafe::before { background: var(--cafe); } .kpi.rojo::before { background: #c2410c; }
.kpi.verde strong { color: var(--verde-osc); } .kpi.rojo strong { color: #b42318; }
.accesos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.acceso { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; min-height: 140px; padding: 1rem; border-radius: 1.2rem; background: #fff; border: 2px solid var(--linea); color: var(--tinta); text-decoration: none; text-align: center; font-weight: 800; font-size: 1.1rem; transition: transform .1s, border-color .15s; }
.acceso i { font-size: 2.4rem; color: var(--naranja); }
.acceso:hover { border-color: var(--naranja); color: var(--tinta); }
.acceso:active { transform: scale(.97); }
.acceso.principal { background: var(--naranja); border-color: var(--naranja); color: #2b0f00; }
.acceso.principal i { color: #fff; }
.acceso small { font-weight: 600; color: var(--suave); font-size: .85rem; }
.acceso.principal small { color: #4a1d00; }

/* Pedidos: lista de mesas */
.mesas { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; }
.mesa { display: flex; flex-direction: column; gap: .2rem; padding: 1rem; min-height: 130px; border-radius: 1.1rem; background: #fff; border: 2px solid var(--linea); border-bottom-width: 6px; color: var(--tinta); text-decoration: none; }
.mesa:hover { border-color: var(--naranja); color: var(--tinta); }
.mesa.con-cuenta { border-bottom-color: var(--verde); }
.mesa.vacia { border-bottom-color: var(--amarillo); }
.mesa .nombre { font-size: 1.4rem; font-weight: 800; color: var(--cafe); overflow-wrap: anywhere; }
.mesa .total { font-size: 1.3rem; font-weight: 800; color: var(--verde-osc); }
.mesa .meta { margin-top: auto; color: var(--suave); font-size: .9rem; }
.mesa-nueva { align-items: center; justify-content: center; border-style: dashed; border-bottom-width: 2px; color: var(--naranja-osc); font-weight: 800; font-size: 1.1rem; background: transparent; }
.mesa-nueva i { font-size: 2rem; }

/* Pedidos: tomar orden */
.pos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 992px) { .pos { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.pos-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.pos-top h1 { flex: 1; min-width: 0; margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--cafe); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buscador { position: relative; margin-bottom: .8rem; }
.buscador i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--suave); }
.buscador input { padding-left: 2.6rem; }
.cats { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem .1rem .6rem; margin-bottom: .4rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.cats .btn { flex: 0 0 auto; min-height: 48px; padding: 0 1.1rem; border: 2px solid var(--linea); background: #fff; color: var(--tinta); border-radius: 999px; white-space: nowrap; }
.cats .btn.active { background: var(--cafe); border-color: var(--cafe); color: #fff; }
.subcat { margin: 1rem 0 .5rem; font-size: 1rem; font-weight: 800; color: var(--cafe); text-transform: uppercase; letter-spacing: .04em; }
.productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: .6rem; }
@media (max-width: 575.98px) { .productos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.producto { position: relative; display: flex; flex-direction: column; align-items: stretch; padding: 0; min-height: 132px; border: 2px solid var(--linea); border-radius: 1rem; background: #fff; text-align: center; overflow: hidden; transition: transform .08s, border-color .15s; }
.producto:hover { border-color: var(--naranja); }
.producto:active { transform: scale(.96); }
.producto .foto { display: grid; place-items: center; height: 74px; background: var(--crema-2); }
.producto .foto img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.producto .foto i { font-size: 1.8rem; color: #c9a77a; }
.producto .nombre { padding: .45rem .5rem 0; font-weight: 800; line-height: 1.2; font-size: .98rem; color: var(--tinta); }
.producto .precio { margin-top: auto; padding: .2rem .5rem .55rem; font-weight: 800; color: var(--verde-osc); font-size: 1.05rem; }
.producto.combo { border-color: #f1c66a; }
.producto.combo .foto { background: #fff1cf; }
.producto .badge-combo { position: absolute; top: 6px; left: 6px; font-size: .7rem; background: var(--amarillo); color: #3a1206; }
.producto.extra .foto { height: 44px; background: #eef3df; }
.producto .qty-badge { position: absolute; top: 6px; right: 6px; display: none; min-width: 30px; height: 30px; padding: 0 .4rem; border-radius: 999px; background: var(--verde); color: #fff; font-weight: 800; align-items: center; justify-content: center; }
.producto.en-cuenta .qty-badge { display: inline-flex; }

/* Cuenta */
.cuenta { position: sticky; top: 88px; display: flex; flex-direction: column; max-height: calc(100vh - 100px); }
@media (min-width: 992px) { .pos > aside { position: sticky; top: 88px; } .pos > aside .cuenta { position: static; max-height: calc(100vh - 160px); } }
.cuenta .panel-head { background: var(--cafe); border-radius: 1.2rem 1.2rem 0 0; }
.cuenta .panel-head h2 { color: #fff; }
.cuenta-items { flex: 1; overflow-y: auto; margin: 0; padding: 0; list-style: none; min-height: 120px; }
.cuenta-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .6rem; padding: .75rem 1rem; border-bottom: 1px solid var(--linea); }
.cuenta-item .nom { font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.cuenta-item .sub { font-weight: 800; color: var(--verde-osc); text-align: right; white-space: nowrap; }
.cuenta-item .det { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .88rem; color: var(--suave); }
.cuenta-item .ctrl { grid-column: 1 / -1; display: flex; align-items: center; gap: .4rem; }
.cuenta-item .ctrl .cant { min-width: 44px; text-align: center; font-size: 1.2rem; font-weight: 800; }
.cuenta-item .ctrl .btn { width: 46px; min-height: 46px; padding: 0; font-size: 1.1rem; }
.cuenta-item .ctrl .btn-quitar { margin-left: auto; width: auto; padding: 0 .8rem; }
.promo { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .5rem; border-radius: 999px; background: #e8f1d2; color: #3f5a0b; font-weight: 700; }
.promo.off { background: #eee5d8; color: var(--suave); }
.link-promo { min-height: 34px; padding: 0 .6rem; border-radius: 999px; font-size: .82rem; }
.cuenta-pie { padding: 1rem 1.1rem; border-top: 1px solid var(--linea); background: #fffaf1; border-radius: 0 0 1.2rem 1.2rem; }
.cuenta-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .7rem; }
.cuenta-total span { font-weight: 800; color: var(--suave); }
.cuenta-total strong { font-size: 2rem; font-weight: 900; color: var(--verde-osc); }
.barra-cuenta { position: fixed; inset: auto 0 0 0; z-index: 1036; display: flex; gap: .6rem; padding: .7rem .8rem calc(.7rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--linea); box-shadow: 0 -8px 24px rgba(58,18,6,.12); }
.barra-cuenta .btn { flex: 1; min-height: 58px; font-size: 1.1rem; }
.barra-cuenta .btn-ver { flex: 1.3; justify-content: space-between; padding: 0 1rem; }
body.pos-mode { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (min-width: 992px) { body.pos-mode { padding-bottom: 0; } .barra-cuenta { display: none; } }
body.pos-mode .bottom-nav { display: none !important; }
.offcanvas-cuenta { height: 88vh !important; border-radius: 1.4rem 1.4rem 0 0; }
.offcanvas-cuenta .cuenta { position: static; max-height: none; height: 100%; border: 0; box-shadow: none; }

/* Cobro */
.cobro-total { padding: 1rem; margin-bottom: 1rem; border-radius: 1rem; background: var(--crema-2); text-align: center; }
.cobro-total span { display: block; font-weight: 800; color: var(--suave); }
.cobro-total strong { display: block; font-size: clamp(2.4rem, 9vw, 3.2rem); font-weight: 900; color: var(--cafe); line-height: 1.1; }
.cobro-total small { color: var(--suave); }
.metodos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.metodos .btn { flex-direction: column; min-height: 78px; border: 2px solid var(--linea); background: #fff; color: var(--tinta); }
.metodos .btn i { font-size: 1.5rem; color: var(--naranja); }
.btn-check:checked + .btn { border-color: var(--cafe); background: var(--cafe); color: #fff; }
.btn-check:checked + .btn i { color: var(--amarillo); }
.billetes { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .4rem; margin: .5rem 0; }
.billetes .btn { min-height: 48px; border: 2px solid var(--linea); background: #fff; color: var(--tinta); }
.cambio { display: flex; align-items: baseline; justify-content: space-between; padding: .8rem 1rem; border-radius: .9rem; background: #eef3df; }
.cambio span { font-weight: 800; }
.cambio strong { font-size: 1.8rem; font-weight: 900; color: var(--verde-osc); }
.cambio.debe { background: #fde8e4; }
.cambio.debe strong { color: #b42318; }

/* Caja */
.caja-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 992px) { .caja-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lista { margin: 0; padding: 0; list-style: none; }
.lista li { display: flex; align-items: center; gap: .8rem; padding: .8rem 1.2rem; border-bottom: 1px solid var(--linea); }
.lista li:last-child { border-bottom: 0; }
.lista .info { flex: 1; min-width: 0; }
.lista .info strong { display: block; overflow-wrap: anywhere; }
.lista .info small { color: var(--suave); }
.lista .monto { font-weight: 800; white-space: nowrap; }
.metodo { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.metodo.Efectivo { background: #e8f1d2; color: #3f5a0b; }
.metodo.Tarjeta { background: #e0ecfb; color: #1d4f91; }
.metodo.Transferencia { background: #fdeccc; color: #8a4b00; }
.desglose { margin: 0; }
.desglose div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--linea); }
.desglose div:last-child { border-bottom: 0; }
.desglose dt { font-weight: 600; color: var(--suave); }
.desglose dd { margin: 0; font-weight: 800; white-space: nowrap; }
.desglose .total dt, .desglose .total dd { color: var(--cafe); font-size: 1.15rem; }
.arqueo-campo { padding: 1rem; border: 2px solid var(--linea); border-radius: 1rem; background: #fff; }
.arqueo-campo .esperado { color: var(--suave); font-weight: 700; font-size: .95rem; }
.resultado-arqueo { padding: 1rem; border-radius: 1rem; background: var(--crema-2); text-align: center; }
.resultado-arqueo strong { display: block; font-size: 1.8rem; font-weight: 900; }

/* Menú (administración) */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.platillo { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--linea); border-radius: 1.1rem; background: #fff; }
.platillo .foto { display: grid; place-items: center; height: 130px; background: var(--crema-2); }
.platillo .foto img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.platillo .foto i { font-size: 2.4rem; color: #c9a77a; }
.platillo .cuerpo { flex: 1; display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; }
.platillo h3 { margin: 0; font-size: 1.08rem; font-weight: 800; }
.platillo p { margin: 0; color: var(--suave); font-size: .92rem; }
.platillo .precio { margin-top: auto; padding-top: .4rem; font-size: 1.3rem; font-weight: 900; color: var(--verde-osc); }
.platillo .acciones { display: flex; gap: .4rem; padding: 0 1rem 1rem; }
.platillo .acciones .btn { flex: 1; }
.platillo.combo { border: 2px solid #f1c66a; }
.etiqueta-combo { align-self: flex-start; padding: .1rem .5rem; border-radius: 999px; background: var(--amarillo); color: #3a1206; font-weight: 800; font-size: .78rem; }
.combo-items { margin: 0; padding: 0; list-style: none; border: 1px solid var(--linea); border-radius: .9rem; background: #fff; min-height: 90px; }
.combo-items li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .8rem; border-bottom: 1px solid var(--linea); }
.combo-items li:last-child { border-bottom: 0; }

/* Personal */
.usuarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.usuario { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.1rem; border-radius: 1.1rem; background: #fff; border: 1px solid var(--linea); }
.usuario .cab { display: flex; align-items: center; gap: .8rem; }
.usuario .avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--crema-2); color: var(--cafe); font-weight: 900; font-size: 1.3rem; }
.usuario strong { font-size: 1.15rem; overflow-wrap: anywhere; }
.rol { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .82rem; font-weight: 800; background: #eee5d8; color: var(--cafe); }
.rol.superadmin { background: var(--cafe); color: #fff; } .rol.Administrador { background: #fdeccc; color: #8a4b00; } .rol.Ventas { background: #e8f1d2; color: #3f5a0b; }
.usuario .acciones { display: flex; gap: .4rem; margin-top: auto; }
.usuario .acciones .btn { flex: 1; }
.permisos { margin: 0; padding-left: 1.1rem; color: var(--suave); font-size: .92rem; }

/* Acceso (login) */
body.login { display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 20% 10%, #7a3a14 0, transparent 45%), linear-gradient(160deg, var(--cafe), var(--cafe-osc)); }
.login-card { width: 100%; max-width: 440px; padding: 2rem 1.6rem; border-radius: 1.6rem; background: var(--crema); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.login-card .logo { display: block; width: 230px; max-width: 80%; height: auto; margin: 0 auto 1rem; }
.login-card h1 { text-align: center; font-size: 1.5rem; font-weight: 800; color: var(--cafe); margin-bottom: 1.2rem; }

.modal-content { border: 0; border-radius: 1.3rem; }
.modal-header { border-bottom: 1px solid var(--linea); }
.modal-title { font-weight: 800; color: var(--cafe); }
.modal-footer { border-top: 1px solid var(--linea); }
@media (max-width: 575.98px) { .modal-dialog { margin: .5rem; } }
.table { --bs-table-bg: transparent; }
.small-help { color: var(--suave); font-size: .92rem; }
.text-cafe { color: var(--cafe) !important; }
.text-verde { color: var(--verde-osc) !important; }
.text-naranja { color: var(--naranja-osc) !important; }

/* Ajustes finos */
.producto .foto { overflow: hidden; }
.producto .foto img { display: block; max-height: 74px; }
.barra-cuenta .btn-ver { white-space: nowrap; }
.resultado-arqueo strong { font-size: clamp(1.05rem, 4.6vw, 1.8rem); overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
    .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .platillo .foto { height: 84px; }
    .platillo .cuerpo { padding: .7rem .75rem; }
    .platillo h3 { font-size: 1rem; }
    .platillo p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; }
    .platillo .precio { font-size: 1.15rem; }
    .platillo .acciones { padding: 0 .75rem .75rem; }
    .barra-cuenta .btn-ver { font-size: 1rem; padding: 0 .75rem; }
    .toast-zone { top: auto; bottom: calc(96px + env(safe-area-inset-bottom)); }
}
