@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
:root{--p:#3f9b6e;--text:#1d2025;--muted:#6b7280;--line:#e7e8ec;--bg:#f6f6f8;--ok:#1f9d55;--bad:#d93025}
*{box-sizing:border-box}
html,body{margin:0}
body{font:15px/1.45 "Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);padding-bottom:90px}
button,input,select,textarea{font:inherit;color:inherit}
h1,h2,h3{margin:0}
.loading{display:grid;place-items:center;height:80vh;color:var(--muted)}
.wrap{max-width:860px;margin:0 auto;padding:0 14px}
.hero{height:190px;background:linear-gradient(135deg,var(--p),#2b2d31) center/cover no-repeat;position:relative}
.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.35))}
.head{background:#fff;border-radius:18px;margin:-60px auto 0;position:relative;z-index:2;padding:16px 18px;box-shadow:0 6px 24px rgba(0,0,0,.08);display:flex;gap:14px;align-items:center}
.logo{width:76px;height:76px;border-radius:50%;background:#fff center/cover no-repeat;border:3px solid #fff;box-shadow:0 2px 10px rgba(0,0,0,.15);flex:none;display:grid;place-items:center;font-weight:800;font-size:26px;color:var(--p);margin-top:-36px}
.head h1{font-size:22px}
.head p{margin:2px 0 6px;color:var(--muted)}
.tags{display:flex;gap:6px;flex-wrap:wrap}
.tag{font-size:12.5px;font-weight:700;padding:3px 9px;border-radius:12px;background:#f1f2f4;color:#3e444d}
.tag.ok{background:#e3f6ea;color:#16723d}.tag.bad{background:#fde7e5;color:#a3241b}
.contact{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 0}
.contact a{font-size:13px;font-weight:700;text-decoration:none;color:var(--text);background:#fff;border:1px solid var(--line);padding:6px 11px;border-radius:20px}
.notice{margin:12px 0 0;padding:10px 14px;border-radius:12px;background:#fff4dc;color:#7a4f06;font-weight:600;font-size:14px}
.catbar{position:sticky;top:0;z-index:10;background:var(--bg);padding:10px 0 8px;margin-top:6px}
.search{width:100%;border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 14px;margin-bottom:8px}
.chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{border:1px solid var(--line);background:#fff;border-radius:20px;padding:7px 14px;font-weight:700;white-space:nowrap;cursor:pointer;font-size:13.5px}
.chip.active{background:var(--p);border-color:var(--p);color:#fff}
.cat h2{font-size:19px;margin:20px 0 10px}
.plist{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:640px){.plist{grid-template-columns:1fr}}
.prod{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;gap:12px;cursor:pointer;text-align:left;transition:.12s;min-height:104px}
.prod:hover{box-shadow:0 4px 16px rgba(0,0,0,.08)}
.prod .info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.prod b{font-size:15px}
.prod .d{color:var(--muted);font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.prod .pr{font-weight:800;margin-top:auto}
.prod .img{width:92px;height:92px;border-radius:10px;background:#f0f1f3 center/cover no-repeat;flex:none}
.cartbar{position:fixed;left:0;right:0;bottom:0;padding:12px 14px calc(12px + env(safe-area-inset-bottom));z-index:20;display:flex;justify-content:center;pointer-events:none}
.cartbar button{pointer-events:auto;max-width:620px;width:100%;background:var(--p);color:#fff;border:0;border-radius:14px;padding:15px 18px;font-weight:800;font-size:16px;display:flex;justify-content:space-between;box-shadow:0 8px 24px rgba(0,0,0,.2);cursor:pointer}
.cartbar .n{background:rgba(255,255,255,.25);border-radius:10px;padding:0 9px;margin-right:8px}
.sheet-back{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:50;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}
@keyframes fade{from{opacity:0}}
.sheet{background:#fff;width:100%;max-width:620px;max-height:92vh;border-radius:20px 20px 0 0;display:flex;flex-direction:column;animation:up .2s}
@keyframes up{from{transform:translateY(30px)}}
@media(min-width:700px){.sheet-back{align-items:center}.sheet{border-radius:20px}}
.sheet-head{padding:14px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px}
.sheet-head h3{font-size:18px}
.sheet-body{padding:14px 18px;overflow:auto}
.sheet-foot{padding:12px 18px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);display:flex;gap:10px;align-items:center}
.x{border:0;background:#f1f2f4;border-radius:50%;width:34px;height:34px;font-size:18px;cursor:pointer;flex:none}
.pimg{width:100%;height:210px;border-radius:14px;background:#f0f1f3 center/cover no-repeat;margin-bottom:12px}
.grp{margin:14px 0}
.grp h4{display:flex;justify-content:space-between;background:#f6f6f8;margin:0 -18px 6px;padding:8px 18px;font-size:14.5px}
.grp h4 small{font-weight:700;color:var(--muted)}
.grp h4 small.req{color:var(--p)}
.opt{display:flex;align-items:center;gap:10px;padding:10px 2px;border-bottom:1px solid #f1f2f4;cursor:pointer}
.opt input{width:20px;height:20px;accent-color:var(--p)}
.opt .grow{flex:1}
.qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:10px;overflow:hidden;flex:none}
.qty button{border:0;background:#f3f4f6;width:34px;height:34px;font-size:18px;font-weight:800;cursor:pointer}
.qty span{min-width:30px;text-align:center;font-weight:800}
.qty.sm button{width:28px;height:28px;font-size:15px}
.btn{border:0;border-radius:12px;padding:13px 18px;font-weight:800;cursor:pointer;background:#eef0f3}
.btn.p{background:var(--p);color:#fff;flex:1;font-size:15.5px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.sm{padding:8px 12px;font-size:13px;border-radius:10px}
.citem{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #f1f2f4;align-items:flex-start}
.citem .grow{flex:1}
.citem .m{color:var(--muted);font-size:13px}
.sum{display:grid;grid-template-columns:1fr auto;gap:4px;margin-top:12px}
.sum .t{font-weight:800;font-size:18px}
label.f{display:flex;flex-direction:column;gap:4px;font-weight:700;font-size:13px;margin-bottom:10px}
.i{border:1px solid #d5d8de;border-radius:10px;padding:11px 12px;background:#fff;width:100%;font-weight:400;font-size:15px}
.i:focus{outline:2px solid #fde3dc;border-color:var(--p)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}
.seg button{border:2px solid var(--line);background:#fff;border-radius:12px;padding:12px;font-weight:800;cursor:pointer;text-align:left}
.seg button small{display:block;font-weight:600;color:var(--muted)}
.seg button.on{border-color:var(--p);background:#fff3ef}
.seg button:disabled{opacity:.45;cursor:not-allowed}
.pm{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.pm label{border:2px solid var(--line);border-radius:12px;padding:11px 12px;display:flex;gap:10px;align-items:flex-start;cursor:pointer;font-weight:700}
.pm label.on{border-color:var(--p);background:#fff3ef}
.pm .ins{font-weight:500;font-size:13px;color:#4b5260;white-space:pre-line;margin-top:4px}
.err{color:var(--bad);font-weight:700;font-size:14px;margin:6px 0}
#toast{position:fixed;left:50%;transform:translateX(-50%);bottom:90px;z-index:100}
#toast div{background:#24262b;color:#fff;padding:11px 16px;border-radius:12px;font-weight:700;margin-top:6px;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.track{background:#fff;border-radius:18px;padding:20px;margin:20px auto;box-shadow:0 6px 24px rgba(0,0,0,.06)}
.steps{display:flex;flex-direction:column;gap:0;margin:18px 0}
.step{display:flex;gap:12px;align-items:flex-start;position:relative;padding-bottom:18px}
.step:not(:last-child):before{content:"";position:absolute;left:13px;top:28px;bottom:0;width:2px;background:var(--line)}
.step.done:not(:last-child):before{background:var(--ok)}
.step .dot{width:28px;height:28px;border-radius:50%;background:#eceef1;display:grid;place-items:center;font-size:14px;flex:none;color:#fff;font-weight:800}
.step.done .dot{background:var(--ok)} .step.cur .dot{background:var(--p);box-shadow:0 0 0 5px #fde3dc}
.step b{display:block} .step small{color:var(--muted)}
.big-status{font-size:22px;font-weight:800;margin-top:4px}
.empty{text-align:center;color:var(--muted);padding:30px}
footer{text-align:center;color:var(--muted);font-size:12.5px;margin:30px 0}
/* Grupos de opciones en acordeón */
.grp h4{cursor:pointer;align-items:center;gap:10px;user-select:none}
.grp h4 .gt{flex:1}
.grp h4 .pick{color:var(--p);font-weight:800;margin-left:4px}
.grp h4 small.ok{color:#1f9d55;white-space:nowrap}
.grp.closed{margin:8px 0}
.grp.closed h4{margin-bottom:0;border-radius:0}
.grp.has.closed h4{background:#eef8f2}
.grp.open h4{background:#ececf0}
.grp-ok{width:100%;margin-top:8px}
.hidden{display:none!important}
.sdays{display:flex;gap:6px;overflow-x:auto;margin:4px 0 8px;padding-bottom:2px}
.sdays button{flex:0 0 auto;min-width:70px;border:2px solid var(--line);background:#fff;border-radius:10px;padding:6px 8px;font-weight:800;cursor:pointer;font:inherit;font-weight:700}
.sdays button small{display:block;font-weight:500;color:var(--muted);font-size:12px}
.sdays button.on{border-color:var(--p);background:#fff3ef}
.sslots{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.sslots button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 0;font:inherit;font-weight:600;cursor:pointer}
.sslots button.on{background:var(--p);border-color:var(--p);color:#fff}
.sslots button.full{text-decoration:line-through;color:#b0b4bb;background:#f4f5f7;cursor:default}
.sched-banner{background:#eeedfe;color:#3c3489;border-radius:12px;padding:10px 12px;margin:8px 0;font-size:15px}
