*{box-sizing:border-box}body{margin:0;background:#fff;color:#171717;font:15px/1.45 Arial,sans-serif}header,main{width:min(100% - 28px,760px);margin:auto}.cover{width:100%;height:150px;object-fit:cover;display:block}.head{display:flex;align-items:center;gap:12px;padding:18px 0 10px}.logo{width:54px;height:54px;object-fit:contain}.head h1{font-size:24px;margin:0}.head p{margin:3px 0 0;color:#666}.cat{margin:18px 0 24px}.cat h2{font-size:17px;margin:0 0 8px;padding-bottom:5px;border-bottom:1px solid #ddd}.product{padding:5px 0}.line{display:flex;gap:12px;align-items:baseline}.nom{font-weight:600}.price{margin-left:auto;white-space:nowrap}.desc{font-size:13px;color:#555;margin:1px 0 0}@media(max-width:480px){header,main{width:calc(100% - 20px)}.cover{height:120px}.head{padding-top:12px}.head h1{font-size:21px}}
#actions{position:fixed;right:14px;bottom:14px;z-index:20;display:flex;gap:8px}#actions button{border:1px solid #bbb;border-radius:7px;background:#fff;color:#171717;padding:9px 12px;font-weight:700;box-shadow:0 4px 14px #0002}dialog{width:min(92vw,520px);border:1px solid #ccc;border-radius:10px;padding:18px;background:#fff;color:#171717}dialog::backdrop{background:#0008}dialog .x{float:right;border:0;background:transparent;font-size:22px}dialog form{display:grid;gap:9px}dialog input,dialog textarea{width:100%;box-sizing:border-box;padding:9px;border:1px solid #ccc;border-radius:6px;font:inherit}dialog textarea{min-height:80px}.scanrow{display:grid;grid-template-columns:1fr auto;gap:7px}.scanrow button,dialog form button{padding:9px 12px;border:1px solid #999;border-radius:6px;background:#f5f5f5;font-weight:700}#scanvideo{width:100%;aspect-ratio:4/3;object-fit:cover;background:#000;border-radius:7px}#scanstatus,#reservestatus{min-height:18px;margin:0;font-size:13px}

#wabtn{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;padding:6px;border:1px solid #1eae54;border-radius:999px;background:#25d366;box-shadow:0 6px 18px #25d36645;text-decoration:none}#wabtn .wa-icon{width:30px;height:30px;display:block;object-fit:contain;background:transparent}#wabtn:hover{background:#31dc70}

/* carrito */
#cartbtn{display:inline-flex;align-items:center;gap:7px!important;border-color:#ddd!important;background:#fff!important}#cartbtn b{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:99px;background:#171717;color:#fff;font-size:11px}.product{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.product .add{display:inline-flex;align-items:center;justify-content:center;justify-self:end;width:max-content;min-height:44px;padding:.5rem .75rem;border:1px solid #ddd;border-radius:10px;background:#fff;color:#222;font:inherit;font-size:.85rem;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer}.product .add:hover{background:#171717;color:#fff}.cartdialog{width:min(94vw,620px);border:0;padding:0;background:transparent}.cartdialog::backdrop,#choicedialog::backdrop{background:#111a;backdrop-filter:blur(4px)}.cartbox,.choicebox{position:relative;overflow:hidden;border:1px solid #e7e7e7;border-radius:22px;background:#fff;box-shadow:0 24px 80px #0003}.cartbox>.x,.choicebox>.x{position:absolute;right:14px;top:14px;z-index:2;width:36px;height:36px;border:0;border-radius:99px;background:#f2f2f2;color:#222;float:none}.carthead{padding:22px 24px 15px;border-bottom:1px solid #eee}.carthead span{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:#888}.carthead h2{margin:2px 0 0;font-size:26px}#cartItems{max-height:43vh;overflow:auto;padding:4px 24px}.cartitem{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:16px 0;border-bottom:1px solid #eee}.cartitem>div:first-child{min-width:0}.cartitem b{display:block;font-size:15px}.cartitem small{display:block;margin-top:5px;color:#777;font-size:12px;line-height:1.45}.cartitem>strong{white-space:nowrap}.qty{grid-column:1/-1;display:flex;align-items:center;gap:8px}.qty button{width:30px;height:30px;border:1px solid #ddd;border-radius:9px;background:#fafafa;font-size:18px}.qty span{min-width:22px;text-align:center;font-weight:700}.cartempty{padding:28px 0;text-align:center;color:#888}.cartnotes{padding:14px 24px;border-top:1px solid #eee}.cartnotes label{display:block;margin-bottom:6px;font-size:12px;font-weight:700;color:#555}.cartnotes textarea{min-height:64px;background:#fafafa}.cartfoot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 24px 20px;background:#fafafa;border-top:1px solid #eee}.cartfoot small{display:block;color:#777}.cartfoot strong{font-size:22px}.cartfoot button{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:12px;padding:12px 16px;background:#25d366;color:#082b15;font-weight:800}.cartfoot button:disabled{opacity:.45}.cartfoot button img{width:22px;height:22px}#choicedialog{width:min(94vw,620px);border:0;padding:0;background:transparent}.choicebox{max-height:88vh;overflow:auto;padding:22px}.choice{display:grid;gap:9px}.choice h3{margin:0 38px 3px 0}.component{display:grid;gap:7px;padding:11px;border:1px solid #e5e5e5;border-radius:12px;background:#fafafa}.ingredient{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #eee}.ingredient>span{display:flex;align-items:center;gap:5px}.ingredient button{min-width:32px;height:30px;border:1px solid #ddd;border-radius:8px;background:#fff}.ingredient strong{min-width:22px;text-align:center}.choicefoot{position:sticky;bottom:-22px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;margin:16px -22px -22px;padding:14px 22px;background:#fff;border-top:1px solid #eee}.choicefoot small{color:#b42318}.choicefoot button{border:0;border-radius:10px;padding:10px 14px;background:#171717;color:#fff;font-weight:700}@media(max-width:480px){.cartfoot{align-items:stretch;flex-direction:column}.cartfoot button{justify-content:center;width:100%}.cartbox{border-radius:18px}.cartdialog{width:96vw}}
.cartcustomer{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.cartcustomer input{width:100%;box-sizing:border-box;border:1px solid var(--line,#ddd);border-radius:12px;padding:12px 14px;font:inherit;background:var(--card,#fff);color:inherit}.cartcustomer input:last-child{grid-column:1/-1}.orderstatus{min-height:20px;margin:10px 0 0;font-size:.9rem}.cartcustomer input:focus{outline:2px solid currentColor;outline-offset:1px}@media(max-width:560px){.cartcustomer{grid-template-columns:1fr}.cartcustomer input:last-child{grid-column:auto}}

.non{display:none!important}.sendwhats{display:block;margin:10px 24px 22px;padding:14px 18px;border-radius:12px;background:#25d366;color:#071b0e!important;text-align:center;text-decoration:none;font-weight:800}.sendwhats[aria-disabled="true"]{pointer-events:none;opacity:.45}
.personalizar{display:block;width:100%;margin:10px 0;padding:10px 12px;border:1px solid #ddd;border-radius:10px;background:#fafafa;color:#222;font-weight:750;text-align:left}.personalizar::after{content:'+';float:right}.personalizacion{display:grid;gap:7px;margin-top:7px}.non{display:none!important}

/* Compact mobile quantity selector */
.qtyctl{display:inline-flex;align-items:center;flex:none;gap:0;overflow:hidden;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#172033;min-height:38px;vertical-align:middle}
.qtyctl>button{appearance:none;display:grid;place-items:center;width:38px;min-width:38px;height:38px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#172033;font-size:21px;font-weight:650;line-height:1;cursor:pointer}
.qtyctl>button:first-child{border-right:1px solid #e2e8f0}.qtyctl>button:nth-child(3){border-left:1px solid #e2e8f0}
.qtyctl>b{display:grid;place-items:center;min-width:30px;padding:0 4px;font-size:15px;font-weight:750;color:#172033}
.qtyctl>button:disabled{opacity:.35;cursor:not-allowed}.qtyctl>button:active:not(:disabled){background:#eaf1ff}
.qtyctl>.qtyreset{display:none!important}
.component.ingredient{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.component.ingredient>b{min-width:0;overflow-wrap:anywhere}

/* Acciones permanentes y legibles */
#actions{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));justify-content:center;flex-wrap:wrap;gap:10px;pointer-events:none}
#actions>*{pointer-events:auto}#actions button,#actions a{min-height:54px!important;padding:12px 20px!important;font-size:16px!important;border-radius:14px!important;box-shadow:0 5px 20px #0005!important}
#actions .non,#actions [hidden]{display:none!important}
body{padding-bottom:76px}


/* Carrito móvil: desplazamiento interno sin arrastrar la carta de fondo. */
#cartdialog{max-height:calc(100dvh - 16px);overflow:hidden;overscroll-behavior:contain}
#cartdialog .cartbox{max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
#cartItems{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
@media(max-width:560px){#cartdialog .cartbox{max-height:calc(100dvh - 12px)}#cartItems{max-height:min(34dvh,260px)}}

/* Personalización compacta: carrito público (abcQR222) */
.ing-group{display:grid;gap:2px;margin:5px 0;min-width:0}
.ing-group-title{margin:3px 0 2px;padding:3px 5px;border-bottom:1px solid currentColor;opacity:.85;font-size:.78rem;font-weight:750;line-height:1.2}
.choice .component.ingredient,.choice .ingredient,.abcchoice .abccomponent.abcing{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0;min-height:28px;padding:3px 5px;margin:0;border-radius:5px;font-size:.82rem;line-height:1.2}
.choice .component.ingredient>b,.choice .ingredient>b,.abcchoice .abccomponent.abcing>b{flex:1;min-width:0;margin:0;overflow-wrap:anywhere;font-size:inherit;line-height:1.2}
.choice .personalizar,.abcchoice .personalizar{display:block;width:100%;text-align:left;margin:5px 0;padding:6px 9px;border:1px solid currentColor;border-radius:6px;background:transparent;color:inherit;cursor:pointer;font-size:.85rem;line-height:1.2}
.choice .personalizacion,.abcchoice .personalizacion{display:grid;gap:3px;margin-top:3px}
.choice .personalizar::after{content:'+';float:right}
.personalizacion.non{display:none!important}
.qtyctl{min-height:24px;border-radius:7px;font-size:12px}
.qtyctl>button{width:24px;min-width:24px;height:24px;font-size:14px;padding:0}
.qtyctl>b,.qtyctl>strong{min-width:18px;padding:0 2px;font-size:12px;line-height:1}


/* abcQR223: filas de ingredientes compactas; componentes y controles sin cambios */
.ing-group{gap:0;margin:2px 0}
.ing-group-title{margin:1px 0;padding:2px 3px}
.choice .personalizacion,.abcchoice .personalizacion{gap:0;margin-top:2px}
.choice .component.ingredient,.choice .ingredient,.abcchoice .abccomponent.abcing{
  box-sizing:border-box;max-width:440px;min-height:24px;
  gap:4px;margin:0;padding:0 2px;line-height:1.1
}
.choice .component.ingredient>b,.choice .ingredient>b,.abcchoice .abccomponent.abcing>b{line-height:1.1}
.choice .component.ingredient .qtyctl,.choice .ingredient .qtyctl,.abcchoice .abccomponent.abcing .qtyctl{margin:0}

/* Featured ingredients open above personalization; independent collapsed included/optional. */
.ing-featured{display:grid;gap:0;margin:2px 0 4px;min-width:0}
.ing-fold{display:block;margin:2px 0;min-width:0;border:1px solid var(--br,rgba(128,128,128,.25));border-radius:6px;overflow:hidden}
.ing-fold>.ing-group-title,.ing-fold>.inggroup-title{display:list-item;list-style-position:inside;cursor:pointer;user-select:none;padding:4px 6px;margin:0;font-size:.82rem;line-height:1.2;font-weight:700}
.ing-fold>.ing-group-title::marker,.ing-fold>.inggroup-title::marker{font-size:.75em}
.ing-fold>.ing-group-items{display:grid;gap:0;padding:1px 3px 3px}
.ing-fold:not([open])>.ing-group-items{display:none}
.ing-featured>.ing-group-title,.ing-featured>.inggroup-title{padding:3px 4px;font-size:.82rem;font-weight:750;margin:0}

#cartItems .qty button[data-edit]{width:auto;min-width:54px;padding:0 8px;font-size:12px}

/* Personalización: indicador del desplegable realmente abierto. */
.personalizar[aria-expanded="true"]::after,.choice .personalizar[aria-expanded="true"]::after,.abcchoice .personalizar[aria-expanded="true"]::after{content:"−"}


/* abcQR231: optional lists stay compact even with 30+ ingredients. */
.ing-fold[open]>.ing-group-items,.choiceDialog .ing-fold[open]>.ing-group-items{
 max-height:min(260px,36dvh);overflow-y:auto;overscroll-behavior:contain;
}
.ing-fold>.ing-group-title,.ing-fold>.inggroup-title{position:relative;}

.product .add:disabled{cursor:not-allowed;opacity:.6}
.closedorders{margin:10px 0;padding:11px 12px;border-radius:10px;background:#fff2f2;border:1px solid #c47b7b;color:#8f2222;font-weight:700}

@import url("professional.css");

.headcopy{min-width:0;flex:1}.theme-picker{display:grid;gap:3px;flex:0 0 auto;font-size:12px;color:#666}.theme-picker select{min-width:104px;padding:8px 10px;border:1px solid #d8d8d8;border-radius:9px;background:#fff;color:#171717;font:inherit}@media(max-width:480px){.theme-picker select{min-width:82px;padding:7px 6px}}
body.theme-black{background:#0b111a;color:#f3f6f8}body.theme-black .head p,body.theme-black .desc{color:#aab6c4}body.theme-black .cat h2{border-color:#26364a}body.theme-black #actions button,body.theme-black #cartbtn,body.theme-black #reservebtn{background:#172333!important;color:#f3f6f8!important;border-color:#34465d!important}body.theme-black #cartbtn b{background:#45b987;color:#102018}body.theme-black .product .add{background:#172333;color:#f3f6f8;border-color:#34465d}body.theme-black .product .add:hover{background:#45b987;color:#102018}body.theme-black .theme-picker{color:#aab6c4}body.theme-black .theme-picker select{background:#172333;color:#f3f6f8;border-color:#34465d}body.theme-black #reservedialog,body.theme-black #choicedialog{background:#111a27;color:#f3f6f8;border-color:#34465d}body.theme-black #reservedialog input,body.theme-black #reservedialog textarea,body.theme-black #choicedialog select{background:#172333;color:#f3f6f8;border-color:#34465d}
