:root{--green:#0c8d45;--red:#e61414;--cream:#f8f5df;--ink:#222;--card:#fff;--line:#e8e8e8}
*{box-sizing:border-box} body{margin:0;font-family:Inter,system-ui,Segoe UI,Arial,sans-serif;background:#f5f5f3;color:var(--ink)}
.topbar{position:sticky;top:0;z-index:20;background:white;display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line)}
.brand{display:flex;flex-direction:column;line-height:.95}.brand span{color:var(--green);font-weight:900;letter-spacing:5px;font-size:14px}.brand strong{color:var(--red);font-size:26px;letter-spacing:1px}
.ghost,.primary,.cart-button,.tab{border:0;border-radius:14px;padding:12px 16px;font-weight:800;cursor:pointer}.ghost{background:#eef7f1;color:var(--green)}.primary{background:var(--green);color:#fff}.full{width:100%;font-size:17px}
.hero{min-height:330px;background:url('img/montepinar-cover.jpeg') center 35%/cover no-repeat;display:flex;align-items:end}.hero-overlay{width:100%;padding:34px 22px;color:white;background:linear-gradient(transparent,rgba(0,0,0,.76))}.hero h1{margin:0 0 8px;font-size:38px}.hero p{font-size:18px;margin:0}
main{max-width:1180px;margin:auto}.status{margin:18px;background:#fff8dc;border:1px solid #eadb9d;padding:13px 15px;border-radius:14px}.menu-wrap{padding:4px 18px 120px}.section-title{display:flex;justify-content:space-between;gap:15px;align-items:end}.section-title h2{font-size:30px;margin-bottom:8px}.section-title span{color:#666;font-size:13px}.chips{display:flex;overflow:auto;gap:8px;padding:10px 0 16px}.chip{white-space:nowrap;border:1px solid #ddd;background:white;border-radius:999px;padding:9px 13px;cursor:pointer}.chip.active{background:var(--green);color:white;border-color:var(--green)}
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:13px}.product{background:var(--card);padding:17px;border-radius:18px;border:1px solid var(--line);box-shadow:0 3px 12px rgba(0,0,0,.035);display:flex;flex-direction:column;gap:9px}.product h3{margin:0;font-size:18px}.product p{margin:0;color:#666;min-height:38px}.price-row{display:flex;align-items:center;justify-content:space-between;margin-top:auto}.price{font-size:20px;font-weight:900;color:var(--red)}.add{border:0;background:var(--green);color:#fff;border-radius:12px;padding:10px 14px;font-weight:900;cursor:pointer}
.cart-button{position:fixed;z-index:25;right:18px;bottom:18px;background:var(--red);color:white;box-shadow:0 9px 30px rgba(0,0,0,.25);font-size:16px}
dialog{border:0;border-radius:20px;padding:0;max-width:520px;width:calc(100% - 24px)}dialog::backdrop{background:rgba(0,0,0,.55)}.modal{position:relative;padding:24px}.close{position:absolute;right:16px;top:12px;border:0;background:transparent;font-size:30px;cursor:pointer}.tabs{display:flex;gap:8px;margin:10px 0 18px}.tab{flex:1;background:#eee}.tab.active{background:#dff2e6;color:var(--green)}.form{display:grid;gap:14px}.hidden{display:none}.form label,.notes{display:grid;gap:6px;font-weight:700}.form input,textarea{width:100%;border:1px solid #ccc;border-radius:12px;padding:12px;font:inherit}.msg{min-height:20px;color:#b00}.cart-item{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px 0;border-bottom:1px solid #eee}.cart-item .qty{display:flex;gap:8px;align-items:center}.qty button{border:0;border-radius:8px;width:30px;height:30px;cursor:pointer}.cart-summary{display:flex;justify-content:space-between;font-size:21px;padding:18px 0}.notes{margin-top:16px}
@media(max-width:600px){.hero{min-height:280px}.hero h1{font-size:31px}.section-title{display:block}.section-title span{display:block;margin-bottom:6px}.brand strong{font-size:21px}.topbar{padding:11px 12px}.ghost{padding:10px 11px;font-size:12px}}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form small{font-weight:500;color:#777}.delivery-address{font-size:13px;color:#555}@media(max-width:520px){.form-row{grid-template-columns:1fr}}
.customize-modal{max-height:min(88vh,820px);overflow:auto}.custom-section{padding:10px 0;border-bottom:1px solid #eee}.custom-section h3{margin:4px 0}.help{margin:4px 0 10px;color:#666;font-size:13px}.option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.option{display:flex;align-items:center;gap:8px;border:1px solid #ddd;border-radius:12px;padding:10px;background:#fff;cursor:pointer}.option input{width:18px;height:18px;flex:0 0 auto}.price-option span{flex:1}.price-option strong{white-space:nowrap;color:var(--red);font-size:13px}.item-details{display:block;margin-top:5px;line-height:1.45;color:#555}.item-details .removed{color:#a22}.item-details .added{color:#087a3b}@media(max-width:520px){.option-grid{grid-template-columns:1fr}.customize-modal{padding:20px}}

.delivery-section{margin-top:16px;padding-top:8px;border-top:1px solid #eee}.delivery-section h3{margin:8px 0 12px}.delivery-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.delivery-choice{display:flex;align-items:center;gap:10px;border:2px solid #ddd;border-radius:14px;padding:12px;cursor:pointer;background:#fff}.delivery-choice.active{border-color:var(--green);background:#eef8f2}.delivery-choice input{width:18px;height:18px}.delivery-choice span{display:grid;gap:3px}.delivery-choice small{font-weight:500;color:#666}.delivery-fields{display:grid;gap:10px;margin-top:12px;padding:12px;background:#f7faf8;border-radius:14px}.delivery-fields label{display:grid;gap:6px;font-weight:700}.delivery-fields input{width:100%;border:1px solid #ccc;border-radius:12px;padding:12px;font:inherit}.minimum-note{margin:0;font-weight:800;color:#a21}.minimum-note.ok{color:var(--green)}@media(max-width:520px){.delivery-options{grid-template-columns:1fr}}

.price-breakdown{display:grid;gap:6px;padding:12px 0 0}.price-breakdown>div{display:flex;justify-content:space-between;color:#555}.price-breakdown strong{color:var(--ink)}

/* v0.12: hidden must prevail over display:grid in forms and delivery sections. */
.hidden{display:none!important}
button:disabled{opacity:.52;cursor:not-allowed}
.order-notice,.pending-notice{margin:18px;padding:18px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-radius:16px}
.order-notice{background:#eef8f2;border:1px solid #abd8bd;color:#145b33}
.pending-notice{background:#fff8e4;border:1px solid #e6cc87;color:#715315}
.order-notice p,.pending-notice p{margin:5px 0 0;font-size:14px;line-height:1.5}
.order-notice button,.pending-notice button{flex-shrink:0}
.confirmation-modal{text-align:center;padding:30px 24px}
.confirmation-check{width:58px;height:58px;border-radius:50%;background:#e2f4e8;color:var(--green);font-size:34px;font-weight:900;display:grid;place-items:center;margin:0 auto 14px}
.confirmation-eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:var(--green);margin:0}
.confirmation-modal h2{font-size:29px;line-height:1.2;margin:12px 0}
#confirmationMessage{color:#555;line-height:1.6;margin:0 0 20px}
.receipt-summary{padding:4px 16px;background:#f6f8f6;border-radius:16px;text-align:left;margin-bottom:16px}
.receipt-summary>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e2e9e3}
.receipt-summary>div:last-child{border:0}
.receipt-summary span{color:#626962;font-size:14px}
.receipt-summary strong{text-align:right}
.receipt-summary .receipt-total strong{color:var(--green);font-size:24px}
.confirmation-modal .help{margin:12px 0 20px}
@media(max-width:520px){.order-notice,.pending-notice{align-items:stretch;flex-direction:column}.confirmation-modal{padding:26px 20px}}

/* v0.14: explicit delivery zones, responsive and keyboard accessible. */
.form select,.delivery-fields select{width:100%;padding:12px;border:1px solid #ccc;border-radius:10px;font:inherit;background:#fff;color:#17221b;min-height:46px;}
input[readonly]{background:#f0f3ef;color:#425046;}
.zone-help{font-size:.86rem;line-height:1.45;margin:0 0 12px;}
.save-address-option{display:flex!important;align-items:flex-start;gap:10px;font-weight:normal!important;margin:14px 0;}
.save-address-option input{width:20px!important;height:20px;min-width:20px;margin-top:1px;accent-color:#0f8c45;}
.save-address-option span{font-size:.92rem;line-height:1.35;}
select:focus-visible{outline:3px solid #0f8c45;outline-offset:2px;}
#checkoutDeliveryFee,#checkoutTotal{max-width:62%;text-align:right;}
#checkoutDeliveryLabel{max-width:62%;}

/* v0.15: client-initiated WhatsApp registration, four digits, no manual code entry. */
.verification-modal{text-align:center;padding:32px 24px;line-height:1.5}
.verification-modal h2{font-size:27px;line-height:1.2;margin:12px 0}
.verification-icon{margin:0 auto 12px;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#e3f4e8;color:var(--green);font-size:30px;font-weight:900}
.verification-phone{font-size:14px;color:#555}
.verification-code{padding:16px 10px;margin:18px 0 10px;border:2px dashed #a6cdb6;background:#f1f8f3;border-radius:14px;font-size:clamp(21px,6vw,29px);font-weight:900;letter-spacing:1px;user-select:all;color:#155432;white-space:nowrap}
.verification-link{display:block;text-decoration:none;margin:18px 0 10px;font-size:16px;line-height:1.35}
.verification-state{padding:12px;background:#fff7dd;border-radius:12px;font-weight:600;font-size:14px;color:#6d5421;min-height:65px}
.verification-cancel{border:0;background:transparent;color:#7b2626;text-decoration:underline;margin:18px auto 10px;font:inherit;cursor:pointer;font-size:13px}
#registrationTestNumber{overflow-wrap:anywhere}
.verification-modal .full{margin-top:10px}
@media(max-width:380px){.verification-modal{padding:28px 16px}.verification-modal h2{font-size:24px}}

/* v0.16: free food sauces vs individually selected paid tubs. */
.free-option{border-color:#b7dbc4;background:#f4fbf6}
.free-option:has(input:checked){border-color:var(--green);box-shadow:0 0 0 1px var(--green)}
.sauce-hint{color:#215c38;font-size:13px;line-height:1.45;margin:12px 0 8px}
.recipe-sauce-note{font-size:12px;line-height:1.45;color:#666}
#customizeTitle{padding-right:18px;line-height:1.25}
#tubSauceBlock .option:has(input:checked){border-color:var(--green);background:#eef8f2;box-shadow:0 0 0 1px var(--green)}
.option input{accent-color:var(--green)}
.option:focus-within{outline:2px solid var(--green);outline-offset:2px}

/* v0.18: notices appear only on closure, delay or an unavailable status check. */
.service-notice{background:#fff4d9;border:1px solid #dcb871;border-left:5px solid #b07819;border-radius:12px;padding:16px 18px;margin:0 0 18px;line-height:1.45}
.service-notice strong{font-size:1.1rem;display:block}.service-notice p{margin:6px 0 0;font-size:1rem}
.service-notice.closed{background:#fff0ed;border-color:#d8887c;border-left-color:#b42318}
.service-notice.unavailable{background:#f1f4f7;border-color:#abb7c2;border-left-color:#586f83}
.wait-acceptance{display:flex;align-items:flex-start;gap:12px;margin:14px 0 18px;padding:14px;background:#fff8e9;border-radius:10px;line-height:1.4}
.wait-acceptance input{width:23px;height:23px;flex:0 0 23px;margin:2px 0 0;accent-color:#0f8c45}
.service-receipt{padding:12px;background:#fff4d9;border-radius:10px;line-height:1.4}
#refreshService{margin:0 0 12px}#sendOrder:disabled{cursor:not-allowed;opacity:.6}
.hidden{display:none!important}

.cash-change-box{display:grid;gap:8px;padding:12px;border:1px solid #dbe4dc;border-radius:14px;background:#fff}
.cash-change-box>strong{font-size:15px}
.cash-change-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cash-change-box .help{margin:0}
@media(max-width:520px){.cash-change-options{grid-template-columns:1fr}}

/* v0.26: disponibilidad diaria de productos. */
.product-unavailable{opacity:.68;background:#f4f4f4;border-color:#d9d9d9}
.product-unavailable .price{color:#777}
.sold-out{display:inline-block;margin-top:8px;padding:5px 8px;border-radius:999px;background:#fde8e5;color:#9d2018;font-size:12px;font-weight:900;letter-spacing:.02em}
.cart-item-unavailable{background:#fff4f2;border-radius:12px;padding-left:10px;padding-right:10px}
.cart-sold-out{display:block;margin-top:5px;color:#a2231b;font-weight:800;font-size:12px}
/* v0.27: opciones agotables por variante/pan/salsa. */
.option-unavailable{opacity:.5;background:#f2f2f2;border-color:#d7d7d7;cursor:not-allowed}.option-unavailable input{cursor:not-allowed}.stock-option-out{margin-left:auto;color:#9d2018;font-weight:800;font-size:11px;white-space:nowrap}

/* v0.29: aviso visible de pago en efectivo para reparto a domicilio. */
.cash-only-notice{display:grid;gap:4px;padding:13px 14px;border:1px solid #e2b46a;border-left:5px solid #b87816;border-radius:12px;background:#fff5dc;color:#5d3a00;line-height:1.4}.cash-only-notice strong{font-size:15px}.cash-only-notice span{font-size:13px;font-weight:600}
/* v0.30: fotos de producto y bloque Novedades. */
.news-section{margin:18px;background:linear-gradient(135deg,#fff8e9,#fff);border:1px solid #ead9ad;border-radius:20px;padding:18px;display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,310px);gap:16px;align-items:center;box-shadow:0 5px 18px #0000000a}.news-section.hidden{display:none}.news-copy h2{font-size:30px;margin:2px 0 7px;color:var(--green)}.news-copy p{margin:0;line-height:1.5}.news-eyebrow{font-size:12px!important;font-weight:900;letter-spacing:.12em;color:var(--red);margin-bottom:3px!important}.news-main-image{width:100%;max-height:220px;object-fit:cover;border-radius:15px;border:1px solid #e1d6b9}.featured-products{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.featured-card{background:#fff;border:1px solid #e4d9be;border-radius:16px;overflow:hidden;display:grid;grid-template-rows:170px auto}.featured-card.no-image{grid-template-rows:auto}.featured-card img{width:100%;height:170px;object-fit:cover}.featured-card-body{padding:13px;display:grid;gap:6px}.featured-card h3{margin:0}.featured-card .featured-action{display:flex;justify-content:space-between;align-items:center;gap:8px}.featured-card button{border:0;background:var(--green);color:#fff;border-radius:10px;padding:8px 12px;font-weight:900}.product.has-photo{display:grid;grid-template-columns:84px 1fr;column-gap:12px}.product.has-photo .product-photo{width:84px;height:84px;object-fit:cover;border-radius:13px;border:1px solid var(--line);grid-row:1/3}.product.has-photo .price-row{grid-column:1/-1}.product-photo{background:#eee}
@media(max-width:600px){.news-section{grid-template-columns:1fr;padding:14px;margin:12px}.news-main-image{max-height:190px}.featured-products{grid-template-columns:1fr 1fr}.featured-card{grid-template-rows:125px auto}.featured-card img{height:125px}.product.has-photo{grid-template-columns:72px 1fr}.product.has-photo .product-photo{width:72px;height:72px}}
