:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --soft:#f5f5f5;
  --line:#e6e6e6;
  --text:#111111;
  --muted:#717171;
  --brand:#078365;
  --brandDark:#00684f;
  --danger:#b42318;
  --shadow:0 14px 38px rgba(0,0,0,.14);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{height:100%;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{min-height:100%;margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;overflow-x:hidden}
button,input{font:inherit;font-size:16px}button{cursor:pointer}a{text-decoration:none;color:inherit}.hidden,[hidden]{display:none!important}
.appHeader{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.appTop{height:64px;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;gap:8px;padding:8px 16px 4px}.roundIcon{width:44px;height:44px;border:0;border-radius:999px;background:#f3f3f3;display:grid;place-items:center;font-size:34px;line-height:1;font-weight:500}.appTop .roundIcon:last-child{font-size:20px}.headTitle{text-align:center;min-width:0}.headTitle strong{display:block;font-size:18px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.headTitle span{display:block;margin-top:2px;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.switchRow{display:flex;gap:8px;padding:0 16px 10px}.menuTab{flex:1;border:0;border-radius:999px;background:#f2f2f2;color:#222;height:42px;font-weight:850}.menuTab.active{background:var(--brand);color:white}
.searchBar{margin:0 16px 10px;height:44px;border-radius:999px;background:#f3f4f4;display:flex;align-items:center;gap:8px;padding:0 14px;color:var(--muted)}.searchBar input{width:100%;height:100%;border:0;background:transparent;outline:0;color:var(--text);font-size:16px}.searchBar input::placeholder{color:#8a8a8a}
.categoryRail{display:flex;gap:28px;overflow-x:auto;white-space:nowrap;scrollbar-width:none;padding:0 20px;border-top:1px solid transparent}.categoryRail::-webkit-scrollbar{display:none}.catBtn{position:relative;flex:0 0 auto;height:48px;padding:0 0 6px;border:0;background:transparent;color:#222;font-size:18px;font-weight:500}.catBtn.active{font-weight:900}.catBtn.active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;border-radius:999px;background:#111}
.menuPage{padding:18px 26px 108px;max-width:860px;margin:0 auto}.seoIntro{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.menuSections{display:flex;flex-direction:column;gap:0}.categorySection{scroll-margin-top:190px}.categoryTitle{font-size:28px;line-height:1.1;font-weight:950;margin:22px 0 18px}.dish{position:relative;display:grid;grid-template-columns:1fr auto;gap:14px;min-height:112px;padding:20px 0;border-bottom:1px solid var(--line)}.dishMain{min-width:0;padding-right:4px}.dishName{font-size:20px;line-height:1.18;font-weight:650;letter-spacing:-.01em}.dishSub{margin-top:8px;color:#555;font-size:15px;line-height:1.25}.dishCode{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:28px;margin-right:8px;border-radius:8px;background:#f2f2f2;color:#333;font-size:14px;font-weight:850;vertical-align:2px}.dishRight{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;min-width:86px}.dishPrice{font-size:17px;font-weight:650;white-space:nowrap}.roundPlus{width:46px;height:46px;border:0;border-radius:999px;background:#f3f3f3;color:#111;font-size:31px;line-height:46px;display:grid;place-items:center;padding:0}.qtyPill{height:42px;display:flex;align-items:center;gap:12px;border-radius:999px;background:#f3f3f3;padding:0 10px}.qtyPill button{width:28px;height:32px;border:0;background:transparent;border-radius:999px;display:grid;place-items:center;font-size:25px;line-height:1}.qtyPill .trash{font-size:18px}.qtyPill strong{min-width:14px;text-align:center;font-size:18px;font-weight:850}.emptyMsg{padding:38px 0;color:var(--muted);text-align:center}.cartBar{position:fixed;left:0;right:0;bottom:0;z-index:80;height:86px;padding:12px 26px calc(12px + env(safe-area-inset-bottom));display:grid;grid-template-columns:96px 1fr;gap:14px;align-items:center;background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.cartBarTotal{font-size:20px;font-weight:900}.cartBarBtn{height:58px;border:0;border-radius:999px;background:var(--brand);color:white;font-size:20px;font-weight:900}.cartBarBtn:active,.sendBtn:active,.roundPlus:active{transform:scale(.98)}.overlay{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.36)}.checkoutPanel{position:fixed;inset:0;z-index:101;background:#f7f7f7;display:flex;flex-direction:column}.checkoutHeader{height:64px;flex:0 0 auto;display:grid;grid-template-columns:48px 1fr 72px;align-items:center;gap:8px;padding:8px 14px;background:#fff;border-bottom:1px solid var(--line)}.checkoutHeader strong{display:block;font-size:19px;font-weight:900}.checkoutHeader span{display:block;color:var(--muted);font-size:12px}.backBtn{width:44px;height:44px;border:0;border-radius:999px;background:#f3f3f3;font-size:34px;line-height:1}.clearBtn{border:0;background:transparent;color:var(--danger);font-size:15px;font-weight:800}.checkoutBody{flex:1;overflow:auto;padding:14px 14px 150px}.checkoutCard{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;margin-bottom:12px}.checkoutCard h2{font-size:18px;margin:0 0 12px;font-weight:950}.cartItems{display:flex;flex-direction:column;gap:10px}.cartItem{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #f0f0f0}.cartItem:last-child{border-bottom:0}.cartItemTitle{font-weight:850}.cartItemMeta{font-size:13px;color:var(--muted);margin-top:3px}.cartItemRight{display:flex;align-items:center;gap:10px}.cartItemPrice{font-weight:900;white-space:nowrap}.miniQty{height:36px;display:flex;align-items:center;gap:10px;border-radius:999px;background:#f3f3f3;padding:0 8px}.miniQty button{border:0;background:transparent;width:25px;height:30px;border-radius:999px;font-size:21px}.miniQty strong{min-width:14px;text-align:center}.totals{margin-top:12px;padding-top:10px;border-top:1px dashed var(--line)}.totalRow{display:flex;justify-content:space-between;padding:5px 0;color:#333}.totalRow.grand{font-size:20px;color:#000}.receiveGrid{display:grid;grid-template-columns:1fr;gap:10px}.receiveOption{border:2px solid var(--line);background:#fff;border-radius:16px;padding:14px;text-align:left}.receiveOption b{display:block;font-size:17px}.receiveOption small{display:block;margin-top:4px;color:var(--muted);font-size:13px}.receiveOption.active{border-color:var(--brand);box-shadow:0 0 0 3px rgba(7,131,101,.12)}.hint{margin:10px 2px 0;color:var(--muted);font-size:13px}.hint.warn{color:var(--danger);font-weight:800}.formStack{display:flex;flex-direction:column;gap:12px}.formStack label,.labelText{display:flex;flex-direction:column;gap:7px;font-size:13px;color:var(--muted);font-weight:650}.formStack input{height:50px;border:1px solid var(--line);border-radius:15px;background:#fff;color:#111;padding:0 14px;outline:0;font-size:16px}.formStack input:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(7,131,101,.12)}.payGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.payOption{height:48px;border:2px solid var(--line);border-radius:15px;background:#fff;font-weight:900}.payOption.active{background:var(--brand);border-color:var(--brand);color:white}.changeLine{margin:0;padding:10px 12px;border-radius:14px;background:#f0faf7;color:#064b3c}.checkoutFooter{position:absolute;left:0;right:0;bottom:0;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:rgba(255,255,255,.98);border-top:1px solid var(--line);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.sendBtn{width:100%;height:56px;border:0;border-radius:999px;background:var(--brand);color:white;font-size:18px;font-weight:950}.checkoutFooter p{margin:8px 0 0;color:var(--muted);font-size:12px;text-align:center}
@media (min-width:760px){.appHeader{max-width:860px;margin:0 auto;border-left:1px solid var(--line);border-right:1px solid var(--line)}.checkoutPanel{left:50%;right:auto;width:min(520px,100vw);transform:translateX(-50%);box-shadow:var(--shadow)}.overlay{background:rgba(0,0,0,.45)}.menuPage{border-left:1px solid #f5f5f5;border-right:1px solid #f5f5f5}.cartBar{left:50%;right:auto;width:min(860px,100vw);transform:translateX(-50%)}}
@media (max-width:420px){.menuPage{padding-left:22px;padding-right:22px}.categoryRail{gap:26px;padding-left:20px;padding-right:20px}.catBtn{font-size:18px}.dish{min-height:108px}.dishName{font-size:19px}.dishRight{min-width:82px}.cartBar{grid-template-columns:90px 1fr;padding-left:26px;padding-right:26px}.roundPlus{width:44px;height:44px}.qtyPill{height:40px}}


/* ===== v7 checkout polish ===== */
.stepCard{
  padding:16px;
}
.stepHead{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
}
.stepNo{
  flex:0 0 auto;
  width:30px;
  height:30px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:var(--brand);
  color:#fff;
  font-weight:950;
  font-size:15px;
  line-height:1;
}
.stepHead h2{
  margin:0;
  font-size:18px;
  line-height:1.15;
  font-weight:950;
}
.stepHead p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}
.checkoutCard.stepCard + .checkoutCard.stepCard{
  margin-top:12px;
}
.hint.ok{
  color:#056247;
  background:#edf8f5;
  padding:10px 12px;
  border-radius:14px;
  font-weight:800;
}
.hint.warn{
  background:#fff4f2;
  padding:10px 12px;
  border-radius:14px;
}
.changeLine{
  font-weight:850;
}
.changeLine.ok{
  background:#edf8f5;
  color:#056247;
}
.changeLine.warn{
  background:#fff4f2;
  color:var(--danger);
}
.dish{
  cursor:pointer;
  border-radius:0;
  transition:background .12s ease, transform .12s ease;
}
.dish:active{
  background:#f7f7f7;
}
.dish:focus-visible{
  outline:3px solid rgba(7,131,101,.22);
  outline-offset:2px;
  border-radius:14px;
}
.dishMain{
  padding-top:2px;
  padding-bottom:2px;
}
.dishRight{
  padding-top:2px;
  padding-bottom:2px;
}
.roundPlus,
.qtyPill,
.miniQty{
  position:relative;
  z-index:2;
}
.receiveOption{
  transition:border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.receiveOption.active{
  background:#fbfffd;
}
.payOption{
  transition:background .12s ease, border-color .12s ease, color .12s ease;
}
.sendBtn{
  box-shadow:0 10px 24px rgba(7,131,101,.22);
}
.cartItem{
  align-items:flex-start;
}
.cartItemTitle{
  line-height:1.25;
}
@media (max-width:420px){
  .checkoutBody{
    padding-left:12px;
    padding-right:12px;
  }
  .checkoutCard{
    border-radius:20px;
  }
  .stepNo{
    width:28px;
    height:28px;
    font-size:14px;
  }
  .stepHead h2{
    font-size:17px;
  }
  .stepHead p{
    font-size:12.5px;
  }
}

/* v9 polish: search clear button */
.searchBar{position:relative;}
.clearSearch{
  flex:0 0 auto;
  width:34px;
  height:34px;
  border:0;
  border-radius:999px;
  background:#e5e7eb;
  color:#4b5563;
  font-size:24px;
  line-height:1;
  display:grid;
  place-items:center;
  padding:0 0 3px;
  font-weight:500;
}
.clearSearch[hidden]{display:none !important;}
.clearSearch:active{transform:scale(.96);}

/* v9 polish: checkout header total */
.checkoutHeader b#checkoutHeaderTotal{
  display:inline;
  color:#111;
  font-weight:900;
}
.clearBtn{
  color:#6b7280 !important;
  background:#f3f4f6 !important;
  border-radius:999px !important;
  padding:8px 10px !important;
  font-size:14px !important;
}
.clearBtn:active{transform:scale(.97);}

/* v9 polish: custom clear cart modal */
.modalOverlay{
  position:fixed;
  inset:0;
  z-index:190;
  background:rgba(0,0,0,.42);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.confirmModal{
  position:fixed;
  left:18px;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  z-index:191;
  max-width:420px;
  margin:0 auto;
  background:#fff;
  border-radius:24px;
  padding:22px 18px 18px;
  text-align:center;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
  border:1px solid rgba(0,0,0,.06);
}
.confirmIcon{
  width:58px;
  height:58px;
  border-radius:999px;
  margin:0 auto 12px;
  display:grid;
  place-items:center;
  background:#fff1f2;
  font-size:28px;
}
.confirmModal h2{
  margin:0;
  font-size:22px;
  line-height:1.15;
  font-weight:950;
  color:#111;
}
.confirmModal p{
  margin:10px auto 18px;
  max-width:310px;
  color:#6b7280;
  font-size:15px;
  line-height:1.35;
}
.confirmActions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.confirmBtn{
  height:50px;
  border:0;
  border-radius:999px;
  font-size:16px;
  font-weight:900;
}
.confirmBtn.ghost{
  background:#f3f4f6;
  color:#111827;
}
.confirmBtn.danger{
  background:#b91c1c;
  color:#fff;
  box-shadow:0 10px 24px rgba(185,28,28,.22);
}
.confirmBtn:active{transform:scale(.98);}
@media (max-width:380px){
  .confirmActions{grid-template-columns:1fr;}
}


/* v12: quick cash suggestions */
.cashSuggestions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:-4px;
}
.cashSuggestions[hidden]{display:none !important;}
.cashSuggestionBtn{
  min-height:44px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  color:#111;
  font-size:15px;
  font-weight:900;
  padding:8px 10px;
}
.cashSuggestionBtn.active{
  border-color:var(--brand);
  background:#edf8f5;
  color:#056247;
  box-shadow:0 0 0 3px rgba(7,131,101,.10);
}
.cashSuggestionBtn.manual{
  color:#4b5563;
  background:#f8fafc;
}
.cashSuggestionBtn:active{transform:scale(.98);}
@media (max-width:380px){
  .cashSuggestions{grid-template-columns:1fr;}
}

/* v13: cash suggestion polish */
.cashSuggestions{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.cashSuggestionBtn{
  min-height:48px;
  border-radius:16px;
  font-size:16px;
  position:relative;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .08s ease;
}
.cashSuggestionBtn.active{
  border-color:var(--brand) !important;
  background:var(--brand) !important;
  color:#fff !important;
  box-shadow:0 8px 22px rgba(7,131,101,.22),0 0 0 3px rgba(7,131,101,.12) !important;
}
.cashSuggestionBtn.active::after{
  content:"✓";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  margin-left:6px;
  border-radius:999px;
  background:rgba(255,255,255,.22);
  font-size:12px;
  vertical-align:1px;
}
.cashSuggestionBtn.manual{
  color:#374151;
  background:#f8fafc;
}
.changeLine{
  margin-top:4px;
  padding:13px 14px;
  border-radius:16px;
  font-size:16px;
  line-height:1.25;
  font-weight:900;
}
.changeLine.ok{
  background:#eaf8f4;
  color:#055c45;
  border:1px solid rgba(7,131,101,.18);
}
.changeLine.warn{
  background:#fff2ef;
  color:#b91c1c;
  border:1px solid rgba(185,28,28,.18);
}
.changeLine strong{
  font-size:18px;
}
@media (max-width:380px){
  .cashSuggestions{grid-template-columns:1fr;}
}


/* v15: mantener 4 botones de efectivo en formato 2x2 */
.cashSuggestions{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
.cashSuggestionBtn{
  min-height:50px;
}
@media (max-width:380px){
  .cashSuggestions{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px;
  }
  .cashSuggestionBtn{
    font-size:14px;
    padding:8px 6px;
  }
}
