/* Menú Studio · estilos nuevos: menú público tipo app de pedidos + panel de cocina */
.toast{z-index:400}
.top-actions .btn.secondary{display:inline-flex}
.nav-badge{margin-left:auto;background:#e11d48;color:#fff;border-radius:99px;font-size:11px;font-weight:800;min-width:20px;height:20px;padding:0 6px;display:inline-grid;place-items:center}
.notice-bar{background:#fff1f0;border:1px solid #f5c2bd;color:#9b2c20;border-radius:12px;padding:12px 14px;margin-bottom:16px;font-size:13px;font-weight:600}
.form-error{background:#fff1f0;border:1px solid #f5c2bd;color:#9b2c20;border-radius:10px;padding:10px 12px;margin:0 0 12px;font-size:12.5px;line-height:1.45}
.form-error[hidden]{display:none}

/* ============ MENÚ PÚBLICO ============ */
.pm,.pm-overlay,.pm-msg{--line:#eee7df;--muted:#7a736c;--oa:var(--on-accent,#fff);font-family:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink)}
.pm [hidden],.pm-overlay [hidden]{display:none!important}
.pm{max-width:760px;margin:0 auto;min-height:100vh;background:var(--paper);padding-bottom:calc(110px + env(safe-area-inset-bottom))}
body.pm-lock{overflow:hidden}
.pm button{font-family:inherit}
.pm-hero{background:#fff;border-radius:0 0 26px 26px;box-shadow:0 10px 30px rgba(40,25,10,.07);padding-bottom:16px;overflow:hidden}
.pm-cover{height:168px;background:linear-gradient(135deg,var(--accent),var(--accent-2)) center/cover no-repeat}
.pm-head{display:flex;align-items:flex-end;gap:14px;padding:0 18px;margin-top:-40px}
.pm-logo{width:88px;height:88px;border-radius:24px;border:4px solid #fff;background:#fff;object-fit:cover;box-shadow:0 8px 22px rgba(0,0,0,.14);flex:none}
.pm-logo-ph{display:grid;place-items:center;font-size:36px;font-weight:800;color:var(--oa);background:var(--accent)}
.pm-title{min-width:0;padding-bottom:4px}
.pm-title h1{margin:0;font-size:25px;line-height:1.1;letter-spacing:-.5px}
.pm-title p{margin:4px 0 0;color:var(--muted);font-size:13.5px}
.pm-desc{margin:14px 18px 0;color:#4a443e;font-size:14.5px;line-height:1.5}
.pm-infos{display:flex;flex-wrap:wrap;gap:8px;margin:14px 18px 0}
.pm-info{display:inline-flex;align-items:center;gap:6px;background:#f6f1ea;border-radius:99px;padding:7px 12px;font-size:12.5px;font-weight:600;color:#4a443e;text-decoration:none}
a.pm-info:hover{background:#efe6da}
.pm-order-banner{display:flex;justify-content:space-between;align-items:center;width:calc(100% - 32px);margin:14px 16px 0;padding:13px 16px;border:0;border-radius:16px;background:var(--accent);color:var(--oa);font-size:14px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.14)}
.pm-promos{display:flex;gap:12px;overflow-x:auto;padding:16px;scroll-snap-type:x mandatory;scrollbar-width:none}
.pm-promos::-webkit-scrollbar,.pm-cats::-webkit-scrollbar{display:none}
.pm-promo{flex:0 0 min(80%,300px);scroll-snap-align:start;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:var(--oa);min-height:100px;position:relative;display:flex;flex-direction:column;justify-content:flex-end}
.pm-promo img{width:100%;height:120px;object-fit:cover}
.pm-promo div{padding:12px 14px}
.pm-promo strong{display:block;font-size:15px}.pm-promo p{margin:3px 0 0;font-size:12.5px;opacity:.92}
.pm-sticky{position:sticky;top:0;z-index:30;background:var(--paper);border-bottom:1px solid var(--line);padding:10px 0}
.pm-cats{display:flex;gap:8px;overflow-x:auto;padding:0 16px;scrollbar-width:none}
.pm-chip{flex:none;border:1px solid var(--line);background:#fff;border-radius:99px;padding:9px 16px;font-size:14px;font-weight:700;color:#4a443e;cursor:pointer;white-space:nowrap}
.pm-chip.on{background:var(--accent);border-color:var(--accent);color:var(--oa)}
.pm-searchrow{padding:14px 16px 0}
.pm-input{width:100%;border:1.5px solid #e6ded5;border-radius:14px;padding:13px 14px;font-size:16px;background:#fff;color:var(--ink);outline:0;font-family:inherit}
.pm-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 20%,transparent)}
textarea.pm-input{resize:vertical;min-height:64px}
.pm-list{padding:6px 16px 0}
.pm-sec{scroll-margin-top:70px;padding-top:18px}
.pm-sec h2{margin:0 0 12px;font-size:21px;letter-spacing:-.3px}
.pm-grid{display:grid;gap:12px}
.pm-item{display:flex;gap:12px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px;box-shadow:0 2px 10px rgba(40,25,10,.04)}
.pm-item-body{flex:1;min-width:0;text-align:left;background:none;border:0;padding:0;cursor:pointer;display:flex;flex-direction:column;color:inherit}
.pm-item-body h3{margin:0;font-size:16px;line-height:1.25}
.pm-item-body p{margin:5px 0 8px;color:var(--muted);font-size:13px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pm-price{margin-top:auto;font-weight:800;font-size:16px;color:var(--ink)}
.pm-price.big{font-size:22px;margin:10px 0 16px}
.pm-tag{display:inline-block;background:color-mix(in srgb,var(--accent-2) 35%,#fff);color:#7a4a00;border-radius:99px;padding:2px 8px;font-size:10.5px;font-weight:800;vertical-align:middle}
.pm-media{position:relative;width:104px;height:104px;flex:none}
.pm-imgbtn{display:block;width:100%;height:100%;padding:0;border:0;border-radius:16px;overflow:hidden;cursor:pointer;background:#f3ece3}
.pm-imgbtn img{width:100%;height:100%;object-fit:cover}
.pm-noimg{display:grid;place-items:center;font-size:34px;font-weight:800;color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,#fff)}
.pm-add{position:absolute;right:-6px;bottom:-6px;min-width:38px;height:38px;border-radius:99px;border:3px solid #fff;background:var(--accent);color:var(--oa);font-size:22px;font-weight:700;line-height:1;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.2);padding:0 8px}
.pm-add.has{font-size:15px}
.pm-empty{text-align:center;color:var(--muted);padding:40px 10px}
.pm-foot{text-align:center;color:#a39a91;font-size:12px;padding:28px 0 8px}
.pm-cartbar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;justify-content:center;padding:12px 14px calc(12px + env(safe-area-inset-bottom));pointer-events:none;background:linear-gradient(to top,var(--paper) 55%,transparent)}
.pm-cartbar[hidden]{display:none}
.pm-cartbtn{pointer-events:auto;width:min(560px,100%);display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-radius:18px;padding:15px 18px;background:var(--accent);color:var(--oa);font-size:16px;font-weight:700;cursor:pointer;box-shadow:0 12px 28px rgba(0,0,0,.25)}
.pm-cart-n{background:var(--oa);color:var(--accent);min-width:28px;height:28px;border-radius:99px;display:inline-grid;place-items:center;font-size:14px;font-weight:800;padding:0 7px}
@media(min-width:760px){.pm{max-width:980px}.pm-grid{grid-template-columns:1fr 1fr}.pm-cover{height:220px}.pm-hero{border-radius:0 0 30px 30px}}

/* hoja inferior (producto, carrito, datos, seguimiento) */
.pm-overlay{position:fixed;inset:0;z-index:200;background:rgba(20,12,4,.55);display:flex;align-items:flex-end;justify-content:center;animation:pmfade .18s}
.pm-overlay[hidden]{display:none}
.pm-sheet{position:relative;background:#fff;width:100%;max-width:560px;max-height:92vh;overflow-y:auto;border-radius:26px 26px 0 0;animation:pmup .24s ease-out;-webkit-overflow-scrolling:touch}
@media(min-width:700px){.pm-overlay{align-items:center}.pm-sheet{border-radius:26px;max-height:88vh}}
@keyframes pmfade{from{opacity:0}}@keyframes pmup{from{transform:translateY(40px);opacity:.4}}
.pm-sheet img.pm-sheet-img{width:100%;height:230px;object-fit:cover}
.pm-pad{padding:18px 20px}
.pm-h2{margin:0;font-size:22px;letter-spacing:-.3px}
.pm-sheet-desc{color:#5a534c;font-size:14.5px;line-height:1.5;margin:8px 0 0}
.pm-x{position:absolute;top:12px;right:12px;width:38px;height:38px;border-radius:50%;border:0;background:rgba(255,255,255,.95);box-shadow:0 2px 10px rgba(0,0,0,.2);font-size:24px;cursor:pointer;z-index:2;line-height:1}
.pm-x.static{position:static;background:#f3eee8;box-shadow:none}
.pm-head-bar{position:sticky;top:0;z-index:3;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 20px 12px;border-bottom:1px solid var(--line)}
.pm-head-bar .pm-h2{flex:1}
.pm-back{width:38px;height:38px;border-radius:50%;border:0;background:#f3eee8;font-size:26px;cursor:pointer;line-height:1}
.pm-foot-bar{position:sticky;bottom:0;z-index:3;background:#fff;border-top:1px solid var(--line);display:flex;gap:10px;align-items:center;padding:12px 20px calc(12px + env(safe-area-inset-bottom))}
.pm-primary,.pm-secondary{flex:1;border:0;border-radius:15px;padding:15px 18px;font-size:16px;font-weight:800;cursor:pointer;text-align:center;text-decoration:none;display:inline-block;font-family:inherit}
.pm-primary{background:var(--accent);color:var(--oa)}
.pm-secondary{background:#f3eee8;color:var(--ink)}
.pm-primary.block,.pm-secondary.block{display:block;width:100%;margin-top:10px}
.pm-primary:disabled{opacity:.6}
.pm-lab{display:block;font-size:14px;font-weight:800;margin:14px 0 8px}.pm-lab span,.pm-field label span{font-weight:500;color:var(--muted)}
.pm-stepper{display:flex;align-items:center;gap:6px;background:#f3eee8;border-radius:99px;padding:4px}
.pm-stepper button{width:38px;height:38px;border-radius:50%;border:0;background:#fff;font-size:22px;font-weight:700;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.pm-stepper b{min-width:26px;text-align:center;font-size:16px}
.pm-stepper.sm button{width:32px;height:32px;font-size:19px}
.pm-foot-bar .pm-stepper{flex:none}
.pm-crow{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
.pm-cinfo{flex:1;min-width:0}.pm-cinfo strong{display:block;font-size:15px}.pm-cinfo em{display:block;font-size:12.5px;color:#9a6412;margin-top:2px}.pm-cinfo small{color:var(--muted);font-size:12.5px}
.pm-cline{min-width:78px;text-align:right;font-size:14.5px}
.pm-total{display:flex;justify-content:space-between;align-items:center;font-size:18px;margin:16px 0 6px}
.pm-hint{color:var(--muted);font-size:13px;line-height:1.5;margin:8px 0}
.pm-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:6px}
.pm-mode{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;border:2px solid #e6ded5;border-radius:16px;padding:12px 4px;text-align:center;cursor:pointer;font-size:13px}
.pm-mode input{position:absolute;opacity:0;pointer-events:none}
.pm-mode span{font-size:24px}
.pm-mode.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,#fff)}
.pm-field{display:grid;gap:6px;margin:12px 0}.pm-field label{font-size:13.5px;font-weight:700}
.pm-loyal{background:#fff8ea;border:1px solid #f1dcae;border-radius:14px;padding:12px 14px;margin:14px 0;font-size:13px;line-height:1.45}.pm-loyal p{margin:4px 0 8px}.pm-loyal label{display:flex;gap:8px;align-items:flex-start}
.pm-err{margin-top:12px}
.pm-done{text-align:center}
.pm-check{width:72px;height:72px;margin:6px auto 12px;border-radius:50%;background:var(--accent);color:var(--oa);display:grid;place-items:center;font-size:36px;font-weight:800}
.pm-lead{font-size:16px;margin:6px 0 16px}
.pm-steps{list-style:none;display:flex;justify-content:space-between;margin:16px 0 8px;padding:0;position:relative}
.pm-steps li{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11.5px;color:#a39a91;font-weight:700;position:relative}
.pm-steps li i{width:20px;height:20px;border-radius:50%;background:#e6ded5;display:block;position:relative;z-index:1}
.pm-steps li:not(:first-child)::before{content:"";position:absolute;top:9px;right:50%;width:100%;height:3px;background:#e6ded5}
.pm-steps li.done i,.pm-steps li.now i{background:var(--accent)}
.pm-steps li.done:not(:first-child)::before,.pm-steps li.now:not(:first-child)::before{background:var(--accent)}
.pm-steps li.now{color:var(--ink)}
.pm-steps li.now i{box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 25%,transparent)}
.pm-track-head{font-size:15px;margin-bottom:4px}
.pm-track-msg{font-weight:700;font-size:15px;margin:10px 0 4px}
.pm-track-cancel{background:#fff1f0;border-radius:14px;padding:14px;display:grid;gap:4px;color:#9b2c20}
.pm-msg{max-width:440px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column;justify-content:center;gap:12px;padding:28px 22px;text-align:center}
.pm-msg img{height:54px;width:auto;margin:0 auto;object-fit:contain}
.pm-msg h1{margin:6px 0 0;font-size:24px}.pm-msg p{margin:0;color:#6b645d;line-height:1.5}
.pm-msg form{display:grid;gap:10px;margin-top:8px}
#track-result{margin-top:14px;text-align:left}

/* ============ PANEL DE COCINA ============ */
.kds-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.kds-tabs{display:flex;gap:6px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:4px}
.kds-tabs button{border:0;background:none;padding:9px 16px;border-radius:10px;font-weight:700;font-size:13px;color:#6b645d;cursor:pointer}
.kds-tabs button.on{background:var(--accent);color:var(--on-accent,#fff)}
.kds-tabs i{font-style:normal;background:rgba(0,0,0,.12);border-radius:99px;padding:1px 7px;margin-left:4px;font-size:11px}
.kds-tools{display:flex;gap:8px;flex-wrap:wrap}
.kds-btn{border:1px solid var(--line);background:#fff;border-radius:11px;padding:9px 12px;font-size:12.5px;font-weight:700;cursor:pointer;color:var(--ink)}
.kds-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
@media(max-width:1000px){.kds-board{grid-template-columns:1fr}}
.kds-col{background:#f6f1ea;border-radius:18px;padding:12px;min-height:140px}
.kds-col h3{margin:2px 4px 12px;font-size:15px;display:flex;justify-content:space-between}
.kds-col h3 i{font-style:normal;background:#fff;border-radius:99px;padding:1px 10px;font-size:13px}
.c-recibido h3{color:#be123c}.c-preparando h3{color:#b45309}.c-listo h3{color:#15803d}
.kds-none{text-align:center;color:#a39a91;font-size:13px;padding:18px 0;margin:0}
.kds-ticket{background:#fff;border-radius:16px;padding:14px;margin-bottom:12px;border-left:6px solid #e11d48;box-shadow:0 3px 12px rgba(40,25,10,.08)}
.kds-ticket.st-preparando{border-left-color:#f59e0b}.kds-ticket.st-listo,.kds-ticket.st-en_camino{border-left-color:#16a34a}
.kds-ticket.warn{box-shadow:0 0 0 2px #fbbf24 inset,0 3px 12px rgba(40,25,10,.08)}
.kds-ticket.late{box-shadow:0 0 0 2px #ef4444 inset,0 3px 12px rgba(40,25,10,.08);animation:kdspulse 1.6s infinite}
@keyframes kdspulse{50%{background:#fff4f4}}
.kds-ticket header{display:flex;justify-content:space-between;align-items:center;gap:8px}
.kds-ticket header small{color:#7a736c;font-weight:700}
.kds-num{font-size:24px;letter-spacing:-.5px;margin-right:8px}
.kds-mode{display:inline-block;border-radius:99px;padding:3px 10px;font-size:11.5px;font-weight:800;background:#e8f1ff;color:#1d4ed8}
.kds-mode.m-pickup{background:#fff1d6;color:#9a6412}.kds-mode.m-delivery{background:#e9fbe9;color:#15803d}
.kds-cust{margin:8px 0 2px;font-size:14px}.kds-cust a{color:var(--accent)}
.kds-place{margin:0 0 8px;font-size:13px;color:#4a443e;line-height:1.4}
.kds-items{list-style:none;margin:0;padding:8px 0;border-top:1px dashed #d9cfc3;border-bottom:1px dashed #d9cfc3;display:grid;gap:6px}
.kds-items li{display:flex;gap:8px;font-size:15px;font-weight:700}
.kds-items .q{color:var(--accent);min-width:30px}
.kds-items em{display:block;font-weight:500;font-size:12.5px;color:#9a6412}
.kds-note{background:#fff8ea;border-radius:10px;padding:8px 10px;font-size:13px;margin:10px 0 0}
.kds-fee{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;margin-top:10px}
.kds-fee input{width:90px;border:1px solid #e6ded5;border-radius:9px;padding:6px 8px;font-size:13px}
.kds-total{display:flex;justify-content:space-between;font-size:14px;margin:10px 0}.kds-total b{font-size:17px}
.kds-ticket footer{display:flex;gap:8px}
.kds-go{flex:1;border:0;border-radius:12px;padding:13px 10px;font-size:14.5px;font-weight:800;background:var(--accent);color:var(--on-accent,#fff);cursor:pointer}
.st-preparando .kds-go{background:#f59e0b;color:#fff}.st-listo .kds-go,.st-en_camino .kds-go{background:#16a34a;color:#fff}
.kds-mini{width:46px;border:1px solid var(--line);background:#fff;border-radius:12px;font-size:16px;cursor:pointer}
.kds-mini.danger{color:#b91c1c;background:#fff1f0}
.kds-hist{background:#fff}
:fullscreen .sidebar{display:none}:fullscreen .app-shell{display:block}
.pm *,.pm-overlay *,.pm-msg *{box-sizing:border-box}
