/* Mandadito: interfaz clara para uso diario. Naranja original, superficies claras.
   Radios: superficies 20px; controles 12px; avatares y filtros compactos 999px. */
:root{--brand:#17365d;--brand-hover:#0f2642;--soft:#eaf0fd;--ink:#252820;--muted:#65695f;--line:#e8ebe4;--bg:#f8f9f6;--surface:#fff;--green:#286445;--green-soft:#eaf4ec;--red:#b32624;--font:'DM Sans',sans-serif;--display:'Plus Jakarta Sans',sans-serif;--shadow:0 10px 35px rgba(10,25,80,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--bg);font:15px/1.5 var(--font);min-height:100dvh}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0;background:none}button:disabled{opacity:.45;cursor:not-allowed}button:not(:disabled):active{transform:scale(.98)}button,a{touch-action:manipulation}input,textarea{caret-color:var(--brand)}::selection{background:#c9efd6;color:#001962}:focus-visible{outline:3px solid var(--brand);outline-offset:4px}a{color:var(--brand);text-underline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--display);line-height:1.25;letter-spacing:-.035em}h1{font-size:30px;font-weight:800}h2{font-size:22px;font-weight:800}h3{font-size:16px;font-weight:700}small{font-size:12px}.muted{color:var(--muted)}.small{font-size:13px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.grow{flex:1;min-width:0}.stack{display:grid;gap:16px}.icon{width:21px;height:21px;flex-shrink:0;stroke-width:1.8}.hidden{display:none!important}.loading{padding:80px;text-align:center}.btn{display:inline-flex;gap:8px;align-items:center;justify-content:center;background:var(--brand);color:#fff;padding:13px 20px;border-radius:12px;font-weight:700;white-space:nowrap;transition:background .15s}.btn:hover{background:var(--brand-hover)}.btn.secondary{background:#fff;border:1px solid var(--line);color:var(--ink)}.btn.secondary:hover{border-color:#bbbfb4;background:var(--bg)}.btn.green{background:var(--green)}.btn.danger{background:#fff0ef;color:var(--red)}.btn.sm{padding:9px 13px;font-size:13px}.btn.block{width:100%}.icon-btn{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:12px;background:#fff}.icon-btn:hover{background:var(--soft);color:var(--brand)}.text-btn{color:var(--brand);font-weight:700;font-size:13px}.pill{padding:5px 10px;border-radius:999px;font-size:12px;font-weight:600;background:var(--green-soft);color:var(--green);white-space:nowrap}.pill.orange{background:var(--soft);color:var(--brand)}.pill.gray{background:#f0f1ee;color:var(--muted)}.pill.red{background:#fff0ef;color:var(--red)}
.sidebar{position:fixed;inset:0 auto 0 0;width:226px;background:#fff;border-right:1px solid var(--line);padding:28px 22px;z-index:20;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--ink);font:800 25px var(--display);letter-spacing:-1.2px}.brand img{width:39px;height:39px}.brand span{color:var(--brand)}.side-caption{font-size:12px;color:var(--muted);margin:8px 0 38px 49px}.side-nav{display:grid;gap:7px}.side-nav button{display:flex;align-items:center;gap:13px;padding:13px 15px;border-radius:12px;text-align:left;color:var(--muted);font-weight:500}.side-nav button.active{background:var(--soft);color:var(--brand);font-weight:700}.side-nav button:hover{background:var(--bg)}.side-nav button.active:hover{background:var(--soft)}.side-nav .count{margin-left:auto;font-size:11px;background:var(--brand);color:#fff;border-radius:6px;min-width:21px;text-align:center}.sidebar-bottom{margin-top:auto}.region{padding:18px 0;margin-top:35px;border-top:1px solid var(--line)}.region .icon{color:var(--brand)}.profile{display:flex;gap:10px;padding-top:18px;border-top:1px solid var(--line)}.avatar{width:39px;height:39px;border-radius:50%;background:#eff1e9;display:grid;place-items:center;font-size:13px;font-weight:700;flex-shrink:0}.profile b{font-size:13px}.profile small{display:block;color:var(--muted)}
.workspace{margin-left:226px}.topbar{display:flex;align-items:center;gap:24px;padding:19px 34px;background:#fff;border-bottom:1px solid var(--line);height:88px}.location{display:flex;gap:10px;align-items:center;text-align:left;min-width:190px}.location>.icon{color:var(--brand)}.location small{display:block;color:var(--muted);font-size:11px}.location b{font-size:13px}.location .chevron{width:14px}.search-box{display:flex;gap:10px;align-items:center;background:#f5f6f2;border:1px solid var(--line);border-radius:12px;max-width:560px;flex:1;padding:11px 14px;color:var(--muted)}.search-box input{border:0;outline:0;background:transparent;width:100%;font-size:13px}.search-box input::placeholder{color:var(--muted)}.search-box:focus-within{border-color:var(--brand)}.topbar .search-box .icon{width:18px}.top-actions{display:flex;align-items:center;gap:12px;margin-left:auto}.mobile-brand{display:none}.content{padding:30px 34px 48px;max-width:1600px;margin:auto}.page-heading{margin-bottom:24px}.page-heading p{margin-top:7px;color:var(--muted);font-size:14px}.hero{display:grid;grid-template-columns:1.1fr 1fr;border-radius:22px;overflow:hidden;background:#eaf0fd;min-height:232px;margin:0 0 28px}.hero-copy{padding:28px 36px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.hero h2{font-size:clamp(27px,2.7vw,38px);font-weight:800;color:#001962;line-height:1.15;max-width:400px;letter-spacing:-1.5px}.hero p{color:#1d2f6f;font-size:13px;max-width:310px;margin:12px 0 19px}.hero .btn{font-size:12px;padding:11px 15px}.hero-photo{position:relative;min-height:232px;overflow:hidden}.hero-photo img{width:100%;height:100%;position:absolute;object-fit:cover;object-position:center 54%}.hero-photo::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#eaf0fd 0%,transparent 35%)}.categories{display:flex;gap:12px;margin-bottom:29px;overflow:auto;scrollbar-width:none;padding:4px 0}.category{padding:13px 20px;background:#fff;border:1px solid var(--line);border-radius:14px;display:flex;align-items:center;gap:11px;font-size:13px;font-weight:600;white-space:nowrap;transition:border-color .15s,background .15s}.category .icon{width:22px;height:22px}.category:hover{border-color:#9fb3ea}.category.active{background:var(--soft);color:var(--brand);border-color:#c9d6f6}.browse-layout{display:grid;grid-template-columns:minmax(0,1fr) 282px;gap:26px;align-items:start}.section-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:18px}.section-head h2{font-size:20px}.section-head p{font-size:12px;color:var(--muted);margin-top:5px}.sort{padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:12px;max-width:158px}.business-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.business-card{border:1px solid var(--line);border-radius:17px;overflow:hidden;background:#fff;position:relative;transition:box-shadow .18s,transform .18s}.business-card:hover{box-shadow:var(--shadow);transform:translateY(-3px)}.business-link{padding:0;display:block;width:100%;text-align:left}.business-photo{height:151px;overflow:hidden;background:#f0eee9}.business-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}.business-card:hover .business-photo img{transform:scale(1.04)}.favorite{position:absolute;top:12px;right:12px;width:32px;height:32px;background:#fff;border-radius:50%;display:grid;place-items:center;box-shadow:0 2px 8px #00000012}.favorite .icon{width:17px;height:17px}.favorite.on{color:var(--brand)}.favorite.on .icon{fill:var(--soft)}.business-body{padding:16px}.business-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.business-title h3{font-size:14px;letter-spacing:-.025em}.rating{font-size:12px;font-weight:600;white-space:nowrap;display:flex;align-items:center;gap:4px}.rating .icon{width:12px;height:12px;fill:#cd9600;color:#cd9600;stroke-width:0}.business-category{font-size:11px;color:var(--muted);margin:5px 0 12px}.business-meta{display:flex;align-items:center;gap:13px;font-size:11px;border-top:1px solid #f0f1ec;padding-top:11px;color:var(--muted)}.business-meta span{display:flex;align-items:center;gap:5px}.business-meta .icon{width:14px;height:14px}.business-meta .fee{color:var(--green)}.closed-label{font-size:11px;color:var(--red)}.cart-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;position:sticky;top:20px}.cart-title{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding-bottom:18px}.cart-title .icon{color:var(--brand)}.cart-title h2{font-size:17px}.cart-empty{text-align:center;padding:28px 8px 26px}.cart-illustration{width:69px;height:69px;display:grid;place-items:center;background:var(--bg);border-radius:50%;margin:0 auto 16px;color:#959c8b}.cart-illustration .icon{width:31px;height:31px}.cart-empty h3{font-size:14px;margin-bottom:7px}.cart-empty p{font-size:12px;color:var(--muted)}.delivery-note{display:flex;align-items:flex-start;gap:10px;font-size:11px;color:var(--muted);padding-top:16px;border-top:1px solid var(--line)}.delivery-note .icon{width:17px;height:17px;color:var(--green)}.cart-biz{font-weight:600;font-size:12px;margin-top:15px}.cart-line{display:flex;align-items:center;gap:10px;padding:15px 0;border-bottom:1px solid var(--line)}.cart-line h3{font-size:12px;letter-spacing:0}.cart-line p{font-size:12px;color:var(--muted);margin:4px 0 8px}.stepper{display:inline-flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:8px}.stepper button{width:27px;height:26px;display:grid;place-items:center}.stepper .icon{width:12px;height:12px}.stepper span{min-width:13px;text-align:center;font-size:12px;font-weight:700}.amount{font-variant-numeric:tabular-nums;white-space:nowrap}.totals{margin:18px 0}.totals div{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);padding:4px 0}.totals .total{font-size:16px;color:var(--ink);font-weight:700;border-top:1px dashed var(--line);padding-top:13px;margin-top:8px}.cart-panel .btn{font-size:12px}.mobile-cart{display:none}.empty{padding:50px 24px;text-align:center;border:1px dashed #dce0d4;border-radius:18px;background:#fff}.empty>.icon{width:38px;height:38px;color:#8b9481;margin-bottom:14px}.empty p{margin:10px auto 20px;color:var(--muted);max-width:340px;font-size:13px}.photo-disclaimer{margin-top:18px;color:var(--muted);font-size:11px}
.overlay{position:fixed;inset:0;z-index:100;background:rgba(24,30,18,.42);display:flex;justify-content:center;align-items:center;padding:20px}.dialog{width:min(700px,100%);max-height:90dvh;overflow:auto;background:#fff;border-radius:22px;box-shadow:0 30px 70px #1b2d1530;animation:dialog-in .22s ease-out}.dialog-head{position:sticky;top:0;z-index:3;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid var(--line);gap:12px}.dialog-head h2{font-size:19px}.dialog-body{padding:24px}.menu-hero{height:180px;position:relative;overflow:hidden}.menu-hero img{height:100%;width:100%;object-fit:cover}.menu-description{color:var(--muted);font-size:13px;margin-top:8px}.menu-meta{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 22px}.menu-meta span{font-size:12px;background:var(--bg);border-radius:8px;padding:7px 10px}.product{display:flex;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}.product:last-child{border:0}.product h3{font-size:14px;letter-spacing:-.02em}.product p{font-size:12px;color:var(--muted);margin:6px 0 8px}.product strong{font-size:13px}.product .add{background:var(--soft);color:var(--brand);border-radius:12px;width:39px;height:39px;display:grid;place-items:center}.product .add:hover{background:#dbe4fb}.dialog-footer{position:sticky;bottom:0;background:#fff;padding:16px 24px;border-top:1px solid var(--line)}.field{display:grid;gap:7px}.field label{font-size:13px;font-weight:700}.input{width:100%;padding:12px 14px;border:1px solid #dce1d5;border-radius:11px;background:#fff;outline:0}.input:focus{border-color:var(--brand);box-shadow:0 0 0 3px #17365d12}.input::placeholder{color:var(--muted)}textarea.input{resize:vertical;min-height:85px}.field small{color:var(--muted)}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-error{font-size:13px;color:var(--red);border-radius:10px;background:#fff0ef;padding:10px 12px}.payment-choice{background:var(--green-soft);border:1px solid #d1e5d6;border-radius:12px;padding:14px;display:flex;align-items:center;gap:13px;color:var(--green)}.payment-choice .icon{width:25px;height:25px}.payment-choice b{display:block;font-size:13px}.payment-choice small{font-size:11px}.checkout-summary{background:var(--bg);border-radius:14px;padding:18px}.checkout-summary h3{font-size:14px;margin-bottom:12px}.checkout-summary .totals{margin-bottom:0}.info-box{padding:16px;background:var(--soft);border-radius:14px;color:#1d2f6f;font-size:13px}.info-box .icon{width:18px;height:18px}.loading-action{opacity:.65}
.order-list{display:grid;gap:16px}.order-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:21px 24px}.order-card-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.order-id{font-size:11px;color:var(--muted);margin-bottom:7px}.order-card h3{font-size:16px}.order-details{display:flex;flex-wrap:wrap;gap:18px;color:var(--muted);font-size:12px;margin-top:12px}.order-details span{display:flex;gap:6px;align-items:center}.order-details .icon{width:15px;height:15px}.order-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:17px;padding-top:17px;border-top:1px solid var(--line)}.order-actions .total{margin-right:auto;font-weight:700}.tracking-heading{text-align:center;padding:8px 0 21px}.tracking-heading .icon{width:38px;height:38px;color:var(--brand);margin-bottom:10px}.tracking-heading h2{font-size:24px}.tracking-heading p{color:var(--muted);font-size:12px;margin-top:8px}.tracker{display:grid;grid-template-columns:repeat(6,1fr);margin:18px 0 26px}.track-step{position:relative;text-align:center;font-size:10px;color:var(--muted)}.track-step::before{content:'';position:absolute;height:2px;background:var(--line);top:15px;left:0;right:0}.track-step:first-child::before{left:50%}.track-step:last-child::before{right:50%}.track-circle{position:relative;z-index:1;width:31px;height:31px;border:2px solid var(--line);background:#fff;border-radius:50%;display:grid;place-items:center;margin:0 auto 10px}.track-circle .icon{width:13px;height:13px}.track-step.done::before{background:var(--brand)}.track-step.done .track-circle{background:var(--brand);color:#fff;border-color:var(--brand)}.driver-box{display:flex;align-items:center;gap:12px;background:var(--bg);border-radius:14px;padding:17px;margin:18px 0}.driver-box .avatar{background:#dbe4fb;color:var(--green)}.driver-box h3{font-size:13px;letter-spacing:0}.driver-box p{font-size:11px;color:var(--muted);margin-top:4px}.order-summary-rows{display:grid;gap:6px;margin-top:15px;font-size:12px;color:var(--muted)}.order-summary-rows>div{display:flex;justify-content:space-between;gap:10px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);background:#fff;border-radius:17px;overflow:hidden;margin:24px 0}.stat{padding:23px;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat small{display:block;color:var(--muted);font-size:12px}.stat b{display:block;font:700 26px var(--display);margin-top:9px;letter-spacing:-.04em}.operation-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}.operation-heading p{color:var(--muted);font-size:13px;margin-top:8px}.operation-heading .row{flex-wrap:wrap}.dashboard-sub{display:flex;justify-content:space-between;align-items:center;margin:26px 0 16px}.filters{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}.filter{padding:8px 14px;border:1px solid var(--line);background:#fff;border-radius:999px;color:var(--muted);font-size:12px}.filter.active{background:var(--ink);color:#fff;border-color:var(--ink)}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:17px}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th{color:var(--muted);font-size:11px;font-weight:500;background:var(--bg)}td,th{padding:16px 19px;border-bottom:1px solid var(--line);white-space:nowrap}tr:last-child td{border:0}.stock-row{display:flex;align-items:center;gap:15px;padding:16px 0;border-bottom:1px solid var(--line)}.stock-row:last-child{border:0}.toggle{display:flex;align-items:center;gap:8px;color:var(--green);font-size:12px}.toggle[aria-pressed=false]{color:var(--muted)}.toggle .icon{width:30px;height:30px}.account-panel{max-width:650px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px}.account-panel .profile{border:0;padding:0;margin-bottom:25px}.account-panel .avatar{width:60px;height:60px;font-size:19px}.account-panel h3{font-size:18px}.account-row{padding:16px 0;border-bottom:1px solid var(--line);font-size:13px}.account-row:last-child{border:0}.account-row small{display:block;color:var(--muted);margin-bottom:4px}.scenario{display:flex;justify-content:space-between;align-items:center;gap:16px;background:var(--soft);border:1px solid #c9d6f6;border-radius:14px;padding:18px;margin-bottom:22px}.scenario p{font-size:12px;color:#1d2f6f;margin-top:5px}.scenario h3{font-size:14px}.bottom-nav{display:none}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,15px);z-index:200;background:#2d3526;color:#fff;border-radius:12px;padding:13px 20px;font-size:13px;box-shadow:var(--shadow);opacity:0;pointer-events:none;max-width:calc(100% - 32px);transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}#toast.error{background:var(--red)}
@keyframes dialog-in{from{opacity:.6;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(min-width:1600px){.business-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-photo{max-height:254px}.hero{min-height:254px}}
@media(max-width:1200px){.sidebar{width:200px;padding:24px 16px}.workspace{margin-left:200px}.brand{font-size:23px}.content{padding:25px}.topbar{padding:19px 25px;gap:16px}.browse-layout{gap:20px;grid-template-columns:minmax(0,1fr) 253px}.business-body{padding:13px}.business-title{align-items:flex-start}.business-title h3{font-size:13px}.business-meta{gap:7px}.business-meta span{font-size:10px}.business-photo{height:135px}.hero-copy{padding:26px}.category{padding:12px 16px}.cart-panel{padding:18px}.stat{padding:19px}}
@media(max-width:1000px){.sidebar{width:175px;padding:22px 12px}.brand{font-size:20px}.brand img{width:34px;height:34px}.workspace{margin-left:175px}.side-nav button{padding:12px 10px;font-size:13px}.side-caption{margin-left:0}.browse-layout{grid-template-columns:minmax(0,1fr)}.cart-panel{position:static}.cart-panel.empty-panel{display:none}.cart-panel:not(.empty-panel){margin-top:5px}.cart-panel:not(.empty-panel) .cart-lines{display:grid;grid-template-columns:1fr 1fr;gap:15px}.cart-panel:not(.empty-panel) .totals{max-width:320px;margin-left:auto}.cart-panel:not(.empty-panel) .checkout-btn{max-width:320px;margin-left:auto;display:flex}.hero h2{font-size:30px}.hero p{font-size:12px}.topbar .location{min-width:165px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--line)}}
@media(max-width:760px){.sidebar{display:none}.workspace{margin-left:0}.topbar{height:auto;min-height:75px;padding:16px 18px;flex-wrap:wrap;gap:12px}.mobile-brand{display:flex}.mobile-brand .brand{font-size:19px}.mobile-brand .brand img{width:30px;height:30px}.topbar>.location{margin-left:auto;min-width:0}.topbar .location small{font-size:10px}.topbar .location b{font-size:11px}.topbar .location>.icon{width:18px}.topbar .top-actions{display:none}.search-box{flex-basis:100%;max-width:none;order:3;padding:11px 12px}.content{padding:23px 18px 150px}.page-heading{margin-bottom:20px}.page-heading h1{font-size:25px}.page-heading p{font-size:12px}.hero{grid-template-columns:1.15fr 1fr;min-height:195px;margin-bottom:22px;border-radius:17px}.hero-copy{padding:22px 19px}.hero h2{font-size:25px;letter-spacing:-1px}.hero p{font-size:11px;margin:10px 0 14px}.hero .btn{font-size:10px;padding:9px 11px}.hero .btn .icon{width:14px}.hero-photo{min-height:195px}.hero-photo::after{background:linear-gradient(90deg,#eaf0fd,transparent 45%)}.categories{gap:9px;margin-bottom:22px}.category{padding:11px 13px;font-size:11px;gap:8px;border-radius:11px}.category .icon{width:19px;height:19px}.section-head h2{font-size:18px}.section-head p{font-size:11px}.sort{max-width:120px;font-size:10px;padding:8px}.business-grid{gap:14px}.business-photo{height:135px}.business-body{padding:13px}.business-title{gap:6px}.business-title h3{font-size:13px}.rating{font-size:10px}.business-category{font-size:10px}.business-meta{flex-wrap:wrap;gap:5px 10px}.business-meta span{font-size:10px}.favorite{width:29px;height:29px;top:10px;right:10px}.cart-panel{display:none}.photo-disclaimer{font-size:10px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);z-index:30;justify-content:space-around;padding:9px 10px calc(9px + env(safe-area-inset-bottom))}.bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10px;color:var(--muted);min-width:65px}.bottom-nav button.active{color:var(--brand);font-weight:700}.bottom-nav .icon{width:21px;height:21px}.mobile-cart{display:flex;align-items:center;justify-content:space-between;gap:12px;position:fixed;left:18px;right:18px;bottom:calc(80px + env(safe-area-inset-bottom));z-index:35;background:var(--brand);color:#fff;padding:13px 17px;border-radius:12px;font-size:13px;font-weight:700;box-shadow:0 8px 20px #17365d25}.overlay{padding:0;align-items:flex-end}.dialog{width:100%;max-height:94dvh;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom)}.dialog-head{padding:17px 20px}.dialog-head h2{font-size:17px}.dialog-body{padding:20px}.menu-hero{height:155px}.dialog-footer{padding:15px 20px}.field-row{grid-template-columns:1fr}.tracker{margin-top:10px}.track-step{font-size:9px}.order-card{padding:18px}.order-card-top{flex-wrap:wrap}.order-card h3{font-size:14px}.operation-heading h1{font-size:25px}.operation-heading p{font-size:12px}.scenario{align-items:flex-start;flex-direction:column;padding:16px}.scenario .btn{font-size:12px}.stats{margin:20px 0}.stat b{font-size:23px}.stat small{font-size:11px}.dashboard-sub h2{font-size:18px}.account-panel{padding:22px}.order-actions .total{width:100%;margin-bottom:6px}.order-actions .btn{font-size:11px}#toast{bottom:calc(150px + env(safe-area-inset-bottom));font-size:12px}.profile small{font-size:11px}}
@media(max-width:380px){.hero h2{font-size:22px}.hero-copy{padding:20px 15px}.business-grid{grid-template-columns:1fr}.business-photo{height:170px}.hero-photo{min-height:210px}.mobile-brand .brand{font-size:17px}.topbar .location b{max-width:120px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stats{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}.business-card:hover{transform:none}}

/* ───────── Mandadito v2: añadidos para la versión conectada al servidor ───────── */
.auth{min-height:100dvh;display:grid;grid-template-columns:1.05fr 1fr;background:var(--bg)}
.auth-art{position:relative;overflow:hidden;background:#eaf0fd;display:flex;flex-direction:column;justify-content:space-between;padding:44px}
.auth-art img.photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.92}
.auth-art::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#eaf0fdf2 0%,#eaf0fdd9 38%,#eaf0fd00 75%)}
.auth-art>*{position:relative;z-index:1}
.auth-art h1{font-size:clamp(30px,3.4vw,46px);color:#001962;max-width:13ch;line-height:1.08;letter-spacing:-1.8px}
.auth-art p{color:#1d2f6f;max-width:36ch;margin-top:14px}
.auth-form{display:flex;align-items:center;justify-content:center;padding:40px 24px}
.auth-box{width:100%;max-width:420px}
.auth-box h2{font-size:26px}
.tabs{display:flex;background:#f0f1ec;padding:4px;border-radius:12px;margin:20px 0}
.tabs button{flex:1;padding:10px;border-radius:9px;font-weight:600;color:var(--muted);font-size:14px}
.tabs button.active{background:#fff;color:var(--ink);box-shadow:0 2px 6px #2c351f14}
.map{height:260px;border-radius:16px;overflow:hidden;border:1px solid var(--line);background:#eef0ea;z-index:0}
.map.tall{height:330px}
.map-fallback{height:100%;display:grid;place-items:center;text-align:center;padding:20px;color:var(--muted);font-size:13px}
.leaflet-div-icon{background:transparent;border:0}
.pin{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:#fff;border:3px solid #fff;box-shadow:0 4px 12px #0003}
.pin svg{width:17px;height:17px}
.pin.home{background:var(--brand)}.pin.biz{background:#fff;color:var(--brand);border-color:var(--brand)}.pin.driver{background:var(--green)}
.load-more{display:flex;justify-content:center;margin:22px 0 4px}
.skeleton{background:linear-gradient(90deg,#eef0ea 25%,#f6f7f3 50%,#eef0ea 75%);background-size:200% 100%;animation:shimmer 1.2s infinite;border-radius:17px;min-height:250px}
@keyframes shimmer{to{background-position:-200% 0}}
.net-banner{position:fixed;top:0;left:0;right:0;z-index:300;background:#2d3526;color:#fff;text-align:center;font-size:13px;padding:8px}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}
.kpi{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}
.kpi small{color:var(--muted);font-size:12px;display:block}
.kpi b{display:block;font:700 25px var(--display);letter-spacing:-.04em;margin-top:8px}
.delta{font-size:11px;font-weight:700;margin-top:6px;display:inline-flex;gap:4px;align-items:center}
.delta.up{color:var(--green)}.delta.down{color:var(--red)}.delta.flat{color:var(--muted)}
.chart-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:16px;margin-bottom:16px}
.panel{background:#fff;border:1px solid var(--line);border-radius:17px;padding:20px;min-width:0}
.panel h3{font-size:15px}.panel .sub{font-size:12px;color:var(--muted);margin-top:4px}
.bars{display:flex;align-items:flex-end;gap:3px;height:170px;margin-top:18px;border-bottom:1px solid var(--line);position:relative}
.bar{flex:1;min-width:3px;background:var(--brand);border-radius:4px 4px 0 0;position:relative;transition:opacity .15s}
.bar.zero{background:transparent}
.bars:hover .bar{opacity:.55}.bars .bar:hover{opacity:1}
.bar[data-tip]:hover::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);background:#2d3526;color:#fff;font-size:11px;padding:6px 9px;border-radius:8px;white-space:nowrap;z-index:5;pointer-events:none}
.bar-axis{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:6px}
.hbar{display:grid;grid-template-columns:150px 1fr 60px;gap:10px;align-items:center;font-size:12px;margin:9px 0}
.hbar .track{height:10px;background:#f0f1ec;border-radius:6px;overflow:hidden}
.hbar .fill{height:100%;background:var(--brand);border-radius:6px}
.hbar b{text-align:right;font-variant-numeric:tabular-nums}
.range{display:flex;gap:4px;background:#f0f1ec;border-radius:10px;padding:3px}
.range button{padding:7px 12px;border-radius:8px;font-size:12px;font-weight:600;color:var(--muted)}
.range button.active{background:#fff;color:var(--ink);box-shadow:0 2px 5px #2c351f14}
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:18px 0}
.toolbar .input{max-width:280px;padding:9px 12px;font-size:13px}
.timeline{list-style:none;padding:0;margin:14px 0 0;font-size:12px;color:var(--muted)}
.timeline li{display:flex;justify-content:space-between;padding:5px 0;border-bottom:1px dashed var(--line)}
.stars{display:flex;gap:6px}
.stars button{color:#d5d8cf}.stars button.on{color:#cd9600}
.stars .icon{width:30px;height:30px}
.stars button.on .icon{fill:#cd9600}
.err-row td{white-space:normal;max-width:420px;font-size:12px}
.err-row code{font-size:11px;color:var(--muted);display:block;max-height:60px;overflow:hidden}
.install-card{display:flex;gap:14px;align-items:center;background:var(--green-soft);border-radius:14px;padding:16px;margin-top:18px}
.install-card .icon{color:var(--green);width:26px;height:26px}
.hidden-sm{display:inline}
@media(max-width:1000px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-grid{grid-template-columns:1fr}}
@media(max-width:760px){.auth{grid-template-columns:1fr}.auth-art{min-height:230px;padding:26px 22px}.auth-art h1{font-size:30px}.auth-art img.photo{opacity:.7}
.map{height:210px}.hbar{grid-template-columns:100px 1fr 46px}.kpi b{font-size:21px}.hidden-sm{display:none}.toolbar .input{max-width:none;flex:1}}
.totals .discount{color:var(--green);font-weight:600}
.popular-row{display:flex;gap:12px;overflow-x:auto;padding:2px 0 14px;margin-bottom:14px;scrollbar-width:thin;scroll-snap-type:x mandatory}
.popular-card{flex:0 0 220px;scroll-snap-align:start;display:flex;gap:10px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px;text-align:left}
.popular-card:hover{border-color:#9fb3ea}
.popular-card img{width:58px;height:58px;border-radius:10px;object-fit:cover;flex-shrink:0}
.popular-card b{display:block;font-size:13px;line-height:1.3}
.popular-card small{display:flex;align-items:center;gap:4px;color:var(--muted);margin-top:4px}
.popular-card small .icon{width:12px;height:12px;fill:#cd9600;color:#cd9600;stroke-width:0}
.hero .pill .icon{width:14px;height:14px;vertical-align:-2px}

/* ───────── v4: instalación, carruseles, fotos, mandado libre, zonas ───────── */






.install-steps ol{margin:0;padding-left:22px;line-height:2;font-size:15px}
.install-steps .icon{width:18px;height:18px;vertical-align:-3px;color:var(--brand)}
.banner-carousel{position:relative;margin-bottom:24px}
.banner-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;border-radius:22px;scrollbar-width:none}
.banner-track::-webkit-scrollbar{display:none}
.banner-slide{flex:0 0 100%;scroll-snap-align:start;position:relative;aspect-ratio:16/6;min-height:180px;padding:0;overflow:hidden;text-align:left}
.banner-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.banner-slide::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#000a,#0000 60%)}
.banner-text{position:absolute;left:28px;bottom:26px;z-index:1;color:#fff;max-width:60%}
.banner-text b{display:block;font:800 clamp(22px,3vw,34px)/1.1 var(--display);letter-spacing:-1px}
.banner-text small{display:block;font-size:14px;margin-top:6px;opacity:.9}
.banner-dots{position:absolute;bottom:12px;right:18px;display:flex;gap:6px}
.banner-dots i{width:8px;height:8px;border-radius:50%;background:#fff8;transition:.2s}
.banner-dots i.on{background:#fff;width:22px;border-radius:5px}
.food-carousel{display:flex;gap:14px;overflow-x:auto;padding:2px 0 16px;margin-bottom:12px;scroll-snap-type:x mandatory;scrollbar-width:thin}
.food-card{flex:0 0 190px;scroll-snap-align:start;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;padding:0;text-align:left;transition:transform .15s,box-shadow .15s}
.food-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.food-card img{width:100%;height:130px;object-fit:cover;display:block}
.food-card span{display:block;padding:10px 12px 12px}
.food-card b{display:block;font-size:13px;line-height:1.3}
.food-card small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.food-card em{display:block;font-style:normal;font-weight:700;color:var(--brand);margin-top:6px;font-size:13px}
.errand-cta{display:flex;gap:16px;align-items:center;background:#fff;border:1px dashed #9fb3ea;border-radius:18px;padding:18px 20px;margin-bottom:24px}
.errand-ic{width:52px;height:52px;border-radius:14px;background:var(--soft);color:var(--brand);display:grid;place-items:center;flex-shrink:0}
.errand-ic .icon{width:26px;height:26px}
.errand-cta p{font-size:13px;color:var(--muted);margin-top:4px}
.business-photo{position:relative}
.biz-logo{position:absolute;left:12px;bottom:-18px;width:48px!important;height:48px!important;border-radius:12px;border:3px solid #fff;box-shadow:0 3px 10px #0002;object-fit:cover;background:#fff}
.business-card .business-body{padding-top:22px}
.menu-hero{position:relative}
.hero-logo{position:absolute;left:20px;bottom:-26px;width:72px!important;height:72px!important;border-radius:16px;border:4px solid #fff;object-fit:cover;background:#fff;box-shadow:0 6px 16px #0002}
.menu-hero+.dialog-body{padding-top:34px}
.menu-carousel{display:flex;gap:12px;overflow-x:auto;margin:12px 0 22px;padding-bottom:8px;scroll-snap-type:x mandatory}
.menu-slide{flex:0 0 160px;scroll-snap-align:start;position:relative;border-radius:14px;overflow:hidden;border:1px solid var(--line);padding:0;text-align:left;background:#fff}
.menu-slide img{width:100%;height:110px;object-fit:cover;display:block}
.menu-slide span{display:block;padding:8px 10px 10px}
.menu-slide b{display:block;font-size:12px}
.menu-slide small{color:var(--brand);font-weight:700}
.menu-slide .plus{position:absolute;top:8px;right:8px;width:30px;height:30px;border-radius:50%;background:#fff;display:grid;place-items:center;color:var(--brand);box-shadow:0 2px 6px #0002}
.menu-slide .plus .icon{width:16px;height:16px}
.product-thumb{width:64px;height:64px;border-radius:12px;object-fit:cover;flex-shrink:0}
.photo-pick,.logo-pick{width:58px;height:58px;border-radius:12px;border:1px dashed #cfd4c7;display:grid;place-items:center;cursor:pointer;overflow:hidden;flex-shrink:0;color:var(--muted);background:var(--bg)}
.logo-pick{width:76px;height:76px;border-radius:16px}
.photo-pick img,.logo-pick img{width:100%;height:100%;object-fit:cover}
.cover-pick{display:block;position:relative;border-radius:16px;overflow:hidden;border:1px dashed #cfd4c7;background:var(--bg);aspect-ratio:16/7;cursor:pointer}
.cover-pick img{width:100%;height:100%;object-fit:cover;display:block}
.cover-pick>span{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:8px;color:var(--muted);font-weight:600;text-align:center;padding:12px}
.cover-change{position:absolute;right:12px;bottom:12px;background:#fff;border-radius:10px;padding:8px 12px;font-size:12px;display:flex;gap:6px;align-items:center;box-shadow:0 2px 8px #0002}
.cover-change .icon{width:15px;height:15px}
.mini-logo{width:36px;height:36px;border-radius:9px;object-fit:cover}
.fee-details{font-size:12px;color:var(--muted);margin:10px 0}
.fee-details summary{cursor:pointer;color:var(--brand);font-weight:600}
.fee-details div{display:flex;justify-content:space-between;padding:3px 0}
.fee-details small{display:block;color:var(--green);margin-top:4px}
.seg{display:flex;gap:4px;background:#f0f1ec;border-radius:11px;padding:3px;margin-bottom:8px}
.seg button{flex:1;padding:9px;border-radius:9px;font-weight:600;font-size:13px;display:flex;gap:6px;align-items:center;justify-content:center;color:var(--muted)}
.seg button.active{background:#fff;color:var(--brand);box-shadow:0 2px 5px #2c351f14}
.seg .icon{width:16px;height:16px}
.zone-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.zone-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px}
.zone-card.off{opacity:.7;background:#fbfbf9}
.tariff{display:flex;gap:6px;margin-top:12px;flex-wrap:wrap}
.tariff span{background:var(--bg);border-radius:9px;padding:6px 9px;text-align:center;min-width:52px}
.tariff small{display:block;font-size:10px;color:var(--muted)}
.tariff b{font-size:13px}
.sim-result div{display:flex;justify-content:space-between;font-size:12px;padding:3px 0;color:var(--muted)}
.sim-result .total{font-size:15px;color:var(--ink);font-weight:700;border-top:1px dashed var(--line);margin-top:6px;padding-top:8px}
.zone-label{background:#fffffff0;border:1px solid #c9d6f6;color:#001962;font-weight:700;font-size:11px;box-shadow:none}
.zone-list{display:flex;flex-wrap:wrap;gap:6px}
.banner-admin{display:grid;gap:12px}
.banner-admin-card{display:flex;gap:14px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px}
.banner-admin-card.off{opacity:.6}
.banner-admin-card img{width:160px;height:70px;border-radius:10px;object-fit:cover}
.more-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.more-item{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px;border:1px solid var(--line);border-radius:14px;font-size:12px;font-weight:600;text-align:center}
.more-item.active{background:var(--soft);color:var(--brand);border-color:#c9d6f6}
.code-input{font-size:28px;letter-spacing:10px;text-align:center;font-weight:700}
.api-key{display:block;word-break:break-all;font-size:13px;margin-top:6px;color:var(--ink)}
@media(max-width:760px){
  
  
  
  
  .banner-slide{aspect-ratio:16/9;min-height:170px}
  .banner-text{left:16px;bottom:18px;max-width:80%}
  .errand-cta{flex-wrap:wrap}
  .errand-cta .btn{width:100%}
  .food-card{flex-basis:150px}
  .food-card img{height:110px}
  .banner-admin-card{flex-wrap:wrap}
  .banner-admin-card img{width:100%;height:110px}
}

/* ───────── Mandadito v5: entrada, aviso de instalación, chat y pantalla de entrega ───────── */
.auth{grid-template-columns:1.3fr 1fr}.auth-art{background:#1a0f08;padding:48px 56px;gap:28px}
.auth-art picture{position:absolute;inset:0;z-index:0}.auth-art::after{z-index:0}
.auth-art img.photo{opacity:1;object-position:left center}
.auth-art::after{background:linear-gradient(90deg,rgba(18,9,4,.86) 0%,rgba(18,9,4,.7) 34%,rgba(18,9,4,.38) 58%,rgba(18,9,4,.05) 85%),linear-gradient(0deg,rgba(18,9,4,.6),transparent 30%)}
.brand.light{color:#fff;font-size:30px;letter-spacing:-1.4px}.brand.light span{color:#ffd23f}.brand.light img{width:50px;height:50px;border-radius:14px;box-shadow:0 8px 24px rgba(18,161,80,.45)}
.auth-copy{max-width:560px}
.auth-art h1{color:#fff;font-size:clamp(42px,4.6vw,68px);line-height:1.04;letter-spacing:-.022em;word-spacing:.06em;max-width:none;text-shadow:0 2px 28px rgba(0,0,0,.35)}
.auth-art h1 em{font-style:normal;color:#9fb7ff;text-shadow:none;white-space:nowrap;filter:drop-shadow(0 3px 14px rgba(0,0,0,.25))}
.auth-art p{color:#fff;opacity:.92;font-size:18px;line-height:1.45;max-width:32ch;margin-top:18px;text-shadow:0 1px 12px rgba(0,0,0,.4)}
.auth-perks{list-style:none;padding:0;margin:24px 0 0;display:flex;flex-wrap:wrap;gap:8px}
.auth-perks li{display:flex;align-items:center;gap:7px;padding:8px 13px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);color:#fff;font-size:13px;font-weight:600}
.auth-perks .icon{width:16px;height:16px;color:#ffe066}
.auth-foot{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;font-size:13px!important;opacity:.8!important;margin:0!important}.auth-foot span{display:flex;align-items:center;gap:7px}.auth-foot .icon{width:16px;height:16px;color:#ffe066}
@media(max-width:760px){
  .auth{display:block}
  .auth-art{min-height:min(520px,66dvh);padding:20px 20px 58px;justify-content:space-between;gap:16px}
  .auth-art img.photo{object-position:center}
  .auth-art::after{background:linear-gradient(180deg,rgba(18,9,4,.6) 0%,rgba(18,9,4,.08) 22%,rgba(18,9,4,.42) 45%,rgba(18,9,4,.94) 82%)}
  .brand.light{font-size:25px}.brand.light img{width:42px;height:42px;border-radius:12px}
  .auth-art h1{font-size:clamp(34px,10vw,44px)}
  .auth-art p{font-size:15px;margin-top:12px}
  .auth-perks{margin-top:16px}.auth-perks li{font-size:12px;padding:6px 11px}
  .auth-foot{display:none!important}
  .auth-form{position:relative;z-index:2;margin-top:-28px;border-radius:26px 26px 0 0;background:var(--bg);padding:28px 20px calc(28px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px rgba(0,0,0,.12)}
}

/* aviso de instalación pequeño y discreto, abajo */
.install-bar{position:fixed;left:12px;right:12px;margin:0 auto;max-width:440px;bottom:20px;z-index:40;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px 8px 8px 10px;box-shadow:0 10px 30px rgba(30,30,20,.16);animation:dialog-in .25s ease-out}
.install-bar img{width:34px;height:34px;border-radius:9px}
.install-bar b{font-size:13px;display:block;line-height:1.2}.install-bar small{color:var(--muted);font-size:11px}
.install-bar .btn{padding:8px 12px;font-size:12px}
.install-bar .icon-btn{width:32px;height:32px;border:0}.install-bar .icon-btn .icon{width:16px;height:16px}
@media(max-width:760px){.install-bar{bottom:calc(76px + env(safe-area-inset-bottom))}}

/* pantalla de entrega del repartidor */
.delivery{border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}
.delivery-map{height:300px;border:0;border-radius:0}
.delivery-sheet{position:relative;z-index:2;background:#fff;border-radius:24px 24px 0 0;margin-top:-22px;padding:12px 22px 22px;box-shadow:0 -8px 24px rgba(30,30,20,.08)}
.sheet-handle{width:44px;height:5px;border-radius:9px;background:#d9dcd3;margin:0 auto 14px}
.delivery-sheet h2{font-size:24px}.delivery-sheet h2 .muted{font-size:18px;font-weight:600}
.delivery-sheet .pill .icon{width:14px;height:14px;vertical-align:-3px}
.stops{list-style:none;padding:0;margin:18px 0;display:grid;gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.stops li{display:flex;gap:12px;align-items:flex-start;padding:13px 0;position:relative}
.stops li+li{border-top:1px dashed var(--line)}
.stops li>i{font-style:normal;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;background:#eef0ea;color:var(--muted);flex-shrink:0}
.stops li.current>i{background:var(--brand);color:#fff;box-shadow:0 0 0 4px var(--soft)}.stops li.done>i{background:var(--green);color:#fff}
.stops b{font-size:14px;display:block}.stops small{color:var(--muted);font-size:12px;display:block;margin-top:2px}
.stops .when{text-align:right;white-space:nowrap}.stops .when b{font-variant-numeric:tabular-nums}.stops .when .icon{width:16px;height:16px;color:var(--green)}
.delivery table.items{width:100%;font-size:13px}.delivery table.items th,.delivery table.items td{padding:7px 0;border:0;background:none}.delivery table.items th{font-size:11px;color:var(--muted);font-weight:600}
.delivery table.items th:nth-child(2),.delivery table.items td:nth-child(2){text-align:center;width:50px}.delivery table.items th:last-child,.delivery table.items td:last-child{text-align:right}
.delivery table.items td{color:#4a4e44;white-space:normal}
.collect{display:flex;align-items:center;gap:10px;margin-top:12px;padding:12px 14px;border-radius:12px;background:var(--green-soft);color:var(--green);font-size:13px;font-weight:600}.collect b{font-size:16px}
.dest{display:flex;align-items:center;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.dest b{display:block;font-size:15px}.dest small{color:var(--muted);font-size:12px}
.round-btn{position:relative;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--brand);flex-shrink:0;text-decoration:none}
.round-btn:hover{background:#dbe4fb}.round-btn .icon{width:20px;height:20px}
.round-btn .chat-badge,.icon-btn .chat-badge{position:absolute;top:-3px;right:-3px}
.pin.num{font:800 14px var(--display);background:#fff;color:var(--brand);border-color:var(--brand)}.pin.num.home{background:var(--brand);color:#fff;border-color:#fff}.pin.num.done{background:var(--green);color:#fff;border-color:#fff}
/* deslizar para confirmar */
.slide-confirm{--p:0;position:relative;margin-top:18px;height:60px;border-radius:999px;background:linear-gradient(90deg,#2f5bd8,#17365d);display:flex;align-items:center;justify-content:center;overflow:hidden;user-select:none;-webkit-user-select:none;box-shadow:0 10px 24px rgba(11,127,59,.28)}
.slide-confirm::before{content:'';position:absolute;inset:0;width:calc(var(--p) * 100%);background:#ffffff26}
.slide-label{color:#fff;font-weight:800;font-size:15px;padding-left:44px;opacity:calc(1 - var(--p));pointer-events:none}
.slide-knob{position:absolute;left:4px;top:4px;width:52px;height:52px;border-radius:50%;background:#fff;color:var(--brand);display:grid;place-items:center;cursor:grab;touch-action:none;box-shadow:0 3px 10px rgba(0,0,0,.18);transition:transform .25s}
.slide-confirm.dragging .slide-knob{transition:none;cursor:grabbing}.slide-confirm.done{background:var(--green);box-shadow:none}
.slide-knob .icon{width:24px;height:24px}
.slide-knob:focus-visible{outline:3px solid #fff;outline-offset:-6px}
@media(max-width:760px){
  .delivery{margin:0 -18px;border-radius:0;border-left:0;border-right:0;box-shadow:none}
  .delivery-map{height:44dvh;min-height:260px}
  .delivery-sheet{padding:10px 18px 20px}
}

/* mensajería */
.chat-badge{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#e5322d;color:#fff;font:700 11px var(--font);line-height:1;margin-left:4px;box-shadow:0 0 0 2px #fff}
.chat-btn{position:relative}
.icon-btn.chat-icon{position:relative;color:var(--brand)}
.msg-dot{width:9px;height:9px;border-radius:50%;background:#e5322d;box-shadow:0 0 0 2px #fff;margin-left:6px}
.bottom-nav button{position:relative}.bottom-nav .msg-dot{position:absolute;top:-2px;right:calc(50% - 18px);margin:0}
.chat-line{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:14px 16px;border:1px solid var(--line);border-radius:14px;margin-bottom:14px;font-size:13px;background:#fff}
.chat-line:hover{border-color:#c9d6f6;background:#f4f7fe}.chat-line>.icon:first-child{color:var(--brand)}.chat-line .icon:last-child{width:16px;color:var(--muted)}
.dialog.chat{display:flex;flex-direction:column;width:min(520px,100%);height:min(680px,90dvh);overflow:hidden}
.dialog.chat .dialog-head h2{font-size:16px}.dialog.chat .dialog-head small{font-size:12px}.dialog.chat .avatar{background:var(--soft);color:var(--brand)}
.chat-tabs{display:flex;gap:6px;padding:10px 16px;border-bottom:1px solid var(--line);background:#fff}
.chat-tabs button{flex:1;padding:9px 10px;border-radius:10px;font-size:13px;font-weight:600;color:var(--muted);background:var(--bg);display:flex;align-items:center;justify-content:center;gap:4px}
.chat-tabs button.active{background:var(--soft);color:var(--brand)}
.chat-log{flex:1;overflow:auto;padding:18px 16px;background:#f6f4ef;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
.bubble{max-width:80%;align-self:flex-start;background:#fff;border-radius:16px 16px 16px 4px;padding:9px 12px 6px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.bubble p{font-size:14px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
.bubble time{display:block;text-align:right;font-size:10px;color:var(--muted);margin-top:2px}
.bubble .who{display:block;font-size:11px;font-weight:700;color:var(--brand);margin-bottom:2px}
.bubble.mine{align-self:flex-end;background:linear-gradient(135deg,#2f5bd8,#17365d);color:#fff;border-radius:16px 16px 4px 16px}.bubble.mine time{color:#d9f5e2}
.chat-empty{margin:auto;text-align:center;color:var(--muted);max-width:280px;font-size:13px}.chat-empty .icon{width:34px;height:34px;color:#c8b9a8;margin-bottom:8px}
.chat-quick{display:flex;gap:6px;overflow-x:auto;padding:10px 16px 0;scrollbar-width:none;background:#fff}
.chip{flex-shrink:0;padding:7px 12px;border-radius:999px;border:1px solid #c9d6f6;background:#f4f7fe;color:#1d2f6f;font-size:12px;font-weight:600;white-space:nowrap}
.chip:hover{background:var(--soft)}
.chat-form{display:flex;gap:8px;padding:10px 16px calc(12px + env(safe-area-inset-bottom));background:#fff}
.chat-form .input{border-radius:999px;padding:12px 16px}.chat-form .btn{border-radius:50%;width:46px;height:46px;padding:0;flex-shrink:0}
.chat-closed{padding:14px 16px calc(14px + env(safe-area-inset-bottom));text-align:center;color:var(--muted);font-size:13px;background:#fff;border-top:1px solid var(--line)}
@media(max-width:760px){.dialog.chat{height:94dvh;max-height:94dvh}}
.help-list{display:grid;gap:8px}
.help-item{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;text-align:left;color:var(--ink);text-decoration:none;width:100%;background:#fff}
.help-item:hover{border-color:#c9d6f6;background:#f4f7fe}.help-item>.icon{color:var(--brand);width:22px;height:22px}
.help-item b{display:block;font-size:14px}.help-item small{color:var(--muted);font-size:12px}

/* mapas con aspecto real */
.leaflet-container .gl-base{position:absolute!important;inset:0;z-index:0;pointer-events:none;width:100%;height:100%}
.gl-base .maplibregl-canvas{outline:0}
.leaflet-container{background:#eef0ea;font-family:var(--font)}
.map-toggle{display:flex;align-items:center;gap:6px;background:#fff;border-radius:10px;padding:7px 11px;font-size:12px;font-weight:700;color:var(--ink);box-shadow:0 2px 10px rgba(0,0,0,.18);cursor:pointer}
.map-toggle .icon{width:16px;height:16px;color:var(--brand)}
.is-satellite .leaflet-control-attribution{background:rgba(0,0,0,.45);color:#eee}.is-satellite .leaflet-control-attribution a{color:#fff}
.leaflet-control-zoom{border:0!important;box-shadow:0 2px 10px rgba(0,0,0,.18)!important;border-radius:10px!important;overflow:hidden}
.leaflet-control-zoom a{width:34px!important;height:34px!important;line-height:34px!important;color:var(--ink)!important}
.drop{width:40px;height:50px;position:relative;filter:drop-shadow(0 4px 6px rgba(0,0,0,.35))}
.drop-head{width:40px;height:40px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--brand);border:3px solid #fff;display:grid;place-items:center}
.drop-head svg{transform:rotate(45deg);width:18px;height:18px;color:#fff}
.drop.biz .drop-head{background:#fff;border-color:var(--brand)}.drop.biz .drop-head svg{color:var(--brand)}
.drop::after{content:'';position:absolute;left:50%;bottom:-2px;width:14px;height:5px;margin-left:-7px;border-radius:50%;background:rgba(0,0,0,.25);filter:blur(1px)}
.pin.driver{position:relative;width:40px;height:40px;background:var(--green);border:3px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.35)}
.pin.driver svg{position:relative;z-index:1}
.pin.driver .pulse{position:absolute;inset:-3px;border-radius:50%;background:var(--green);opacity:.45;animation:pulse 1.8s ease-out infinite}
@keyframes pulse{from{transform:scale(1);opacity:.45}to{transform:scale(2.4);opacity:0}}
.pin.num{width:36px;height:36px;box-shadow:0 4px 10px rgba(0,0,0,.35)}

/* repartidor en revisión */
.pending-card{max-width:560px;margin:30px auto;text-align:center;background:#fff;border:1px solid var(--line);border-radius:22px;padding:34px 26px;box-shadow:var(--shadow)}
.pending-card>.icon{width:46px;height:46px;color:var(--brand);margin-bottom:10px}
.pending-card h1{font-size:26px}.pending-card>p{color:var(--muted);margin:12px auto 0;max-width:42ch}
.pending-steps{list-style:none;padding:0;margin:22px auto;display:grid;gap:10px;text-align:left;max-width:340px}
.pending-steps li{display:flex;align-items:center;gap:10px;padding:11px 14px;border-radius:12px;background:var(--bg);font-size:14px;color:var(--muted)}
.pending-steps li.done{background:var(--green-soft);color:var(--green);font-weight:600}
.pending-steps .icon{width:18px;height:18px}
.pending-card .btn{margin-top:16px}
.leaflet-control-attribution{font-size:10px!important;max-width:75%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* abrir o cerrar el registro de negocios y repartidores */
.signup-switch{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:16px;border:1px solid var(--line);background:#fff;margin-bottom:18px}
.signup-switch>.icon{width:28px;height:28px;color:var(--muted)}
.signup-switch.on{background:var(--green-soft);border-color:#cfe3d4}.signup-switch.on>.icon{color:var(--green)}
.signup-switch b{display:block;font-size:14px}.signup-switch small{color:var(--muted);font-size:12px}
@media(max-width:760px){.signup-switch{flex-wrap:wrap}.signup-switch .btn{width:100%}}

/* cerrar sesión siempre a la vista: iniciales arriba a la derecha (también en el teléfono) */
.top-actions .avatar{cursor:pointer;background:var(--soft);color:var(--brand)}
.profile .logout-btn{width:34px;height:34px;align-self:center;color:var(--muted)}.profile .logout-btn:hover{color:var(--red);background:#fff0ef}
.avatar.big{width:52px;height:52px;font-size:17px;background:var(--soft);color:var(--brand)}
.help-item.logout-item>.icon{color:var(--red)}.help-item.logout-item b{color:var(--red)}
.more-item.danger{color:var(--red)}
@media(max-width:760px){
  .topbar .top-actions{display:flex;margin-left:0}
  .topbar .top-actions .avatar{width:36px;height:36px;font-size:12px}
  .topbar>.location{margin-left:auto}
  .topbar>.grow{flex:1}
}
@media(max-width:480px){.topbar>.grow.muted{display:none}.topbar .top-actions{margin-left:auto}}

/* ───────── Marca Dalepue ───────── */
/* El logo (barra lateral, encabezado del celular y entrada) está en un solo lugar: «Logo Dalepue», al final. */
.side-caption{margin-left:0!important;margin-top:10px!important}

/* ───────── Entrada Dalepue: fondo verde de la marca, moto de reparto y comida ───────── */
.auth-art{background:radial-gradient(60% 45% at 100% 0%,rgba(90,140,255,.32) 0%,rgba(90,140,255,0) 70%),linear-gradient(160deg,#17365d 0%,#00227f 45%,#000c33 100%)!important;padding:44px 52px!important}
.auth-art::after{content:'';position:absolute;inset:0;z-index:0;background:repeating-linear-gradient(115deg,rgba(255,255,255,.035) 0 26px,transparent 26px 92px)!important}
.auth-art h1{text-shadow:0 3px 18px rgba(0,0,0,.25)!important}
.auth-art p{text-shadow:none!important}
.auth-perks .icon,.auth-foot .icon{color:#9fb7ff}
.auth-copy{max-width:470px;position:relative;z-index:2}
.hero-scene{position:absolute!important;z-index:1;right:-10px;bottom:30px;width:min(54%,560px);aspect-ratio:600/520;pointer-events:none}
.hero-scene .moto{position:absolute;left:0;right:0;bottom:0;width:100%;filter:drop-shadow(0 18px 30px rgba(0,0,0,.25));animation:moto-in .9s cubic-bezier(.2,.8,.2,1) both}
.hero-scene .food{position:absolute;border-radius:50%;border:6px solid #fff;box-shadow:0 14px 30px rgba(0,0,0,.3);object-fit:cover;animation:float 6s ease-in-out infinite}
.hero-scene .f1{width:34%;right:6%;top:-6%}
.hero-scene .f2{width:22%;right:44%;top:-14%;animation-delay:-2s}
.hero-scene .f3{width:20%;right:-2%;top:30%;animation-delay:-4s}
.hero-scene .f4{width:15%;right:40%;top:14%;animation-delay:-3s}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes moto-in{from{transform:translateX(-40px);opacity:0}to{transform:none;opacity:1}}
.auth-foot{position:relative;z-index:2;max-width:46%}
@media(max-width:1200px){.hero-scene{width:50%;bottom:60px}}
@media(max-width:760px){
  .auth-art{min-height:auto!important;padding:18px 20px 56px!important;gap:6px!important}
  .hero-scene{position:relative!important;right:auto;bottom:auto;width:86%;max-width:420px;margin:4px auto 0}
  .hero-scene .f2{top:-4%}
  .auth-copy{max-width:none}
  .auth-art h1{font-size:clamp(32px,9.5vw,42px)!important}
}
@media(prefers-reduced-motion:reduce){.hero-scene .food,.hero-scene .moto{animation:none}}
.auth-copy{max-width:540px}
.hero-scene{width:min(46%,520px)!important}@media(max-width:760px){.hero-scene{width:86%!important}}
/* foto propia de la pantalla de inicio (se cambia desde Anuncios → Pantalla de inicio) */
.auth-art.has-photo{background:linear-gradient(90deg,rgba(0,20,80,.92) 0%,rgba(0,20,80,.72) 45%,rgba(0,20,80,.25) 100%),var(--hero-img) center/cover no-repeat!important}
.auth-art.has-photo::after{display:none}
@media(max-width:760px){.auth-art.has-photo{background:linear-gradient(180deg,rgba(0,20,80,.55) 0%,rgba(0,20,80,.25) 35%,rgba(0,20,80,.92) 85%),var(--hero-img) center/cover no-repeat!important;min-height:520px!important;justify-content:space-between!important}}
/* tarjeta de la pantalla de inicio en el panel */
.hero-admin-grid{display:grid;grid-template-columns:280px 1fr;gap:20px;align-items:start}
.hero-preview{position:relative;border-radius:16px;overflow:hidden;aspect-ratio:16/10;background:linear-gradient(160deg,#17365d,#000c33);display:flex;align-items:flex-end;padding:14px;color:#fff}
.hero-preview img{position:absolute;right:-6%;top:6%;width:70%}
.hero-preview.has-photo{background:linear-gradient(90deg,rgba(0,20,80,.85),rgba(0,20,80,.2)),var(--hero-img) center/cover}
.hero-preview div{position:relative;font:800 18px/1.1 var(--display)}.hero-preview b{display:block}.hero-preview em{font-style:normal;color:#9fb7ff}
@media(max-width:760px){.hero-admin-grid{grid-template-columns:1fr}}

/* v6.3.4 · Menú lateral en computadora: el logo y la cuenta (con Cerrar sesión) quedan siempre fijos y visibles;
   si la ventana es baja, solo la lista de secciones se desplaza con la rueda del ratón. */
.sidebar{overflow:hidden}
.sidebar>.brand,.sidebar>.side-caption,.sidebar-bottom{flex-shrink:0}
.side-nav{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;margin:0 -6px;padding:0 6px 6px;scrollbar-width:thin;scrollbar-color:#cfd8cc transparent}
.side-nav.more{-webkit-mask-image:linear-gradient(#000 calc(100% - 26px),transparent);mask-image:linear-gradient(#000 calc(100% - 26px),transparent)}
.side-nav::-webkit-scrollbar{width:6px}.side-nav::-webkit-scrollbar-thumb{background:#cfd8cc;border-radius:6px}
.sidebar-bottom .region{margin-top:12px}
@media(max-height:820px){.side-caption{margin-bottom:18px}.side-nav{gap:3px}.side-nav button{padding:10px 14px}.sidebar-bottom .region{padding:12px 0;margin-top:8px}.sidebar-bottom .region p{display:none}.profile{padding-top:12px}.sidebar{padding-top:20px;padding-bottom:16px}}
@media(max-height:620px){.sidebar-bottom .region{display:none}}

/* v6.4 · Tarifas por destino (estilo de la tabla de fletes de Dalepue) */
.dest-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;margin-bottom:16px}
.dest-panel.off .dest-table{opacity:.55}
.dest-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.dest-head h3{display:flex;align-items:center;gap:8px;font-size:16px}.dest-head h3 .icon{color:var(--brand)}
.dest-head p{margin-top:4px}
.dest-warn{display:flex;gap:10px;align-items:flex-start;background:#fff6e5;border:1px solid #f3d39a;color:#7a4b00;border-radius:12px;padding:10px 12px;margin-top:12px;font-size:12px}
.dest-warn .icon{flex-shrink:0;color:#c77700}
.dest-switches{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin:14px 0}
.dest-switch{display:flex;gap:10px;align-items:flex-start;text-align:left;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--bg)}
.dest-switch b{display:block;font-size:13px}.dest-switch small{display:block;color:var(--muted);font-size:11px;margin-top:2px;line-height:1.35}
.dest-switch .knob{flex-shrink:0;width:34px;height:20px;border-radius:999px;background:#cfd4c7;position:relative;margin-top:1px;transition:.15s}
.dest-switch .knob::after{content:'';position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:.15s}
.dest-switch.on{background:var(--soft);border-color:#c9d6f6}.dest-switch.on .knob{background:var(--brand)}.dest-switch.on .knob::after{left:16px}
.dest-table,.dest-public{display:grid;gap:6px}
.dest-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;width:100%;text-align:left;background:#f6f8f4;border-radius:12px;padding:7px 8px 7px 7px;border:1px solid transparent}
button.dest-row:hover{border-color:#c9d6f6;background:var(--soft)}
.dest-row.head{background:linear-gradient(90deg,#17365d,#2f5bd8);color:#fff;font:800 11px var(--display);letter-spacing:.06em;text-transform:uppercase;padding:9px 14px}
.dest-row.head span:last-child{background:#001962;border-radius:8px;padding:3px 14px}
.dest-row.inactive{opacity:.5}
.dest-name{display:flex;align-items:center;gap:10px;min-width:0}
.dest-name b{display:block;font:800 13px var(--display);text-transform:uppercase;letter-spacing:.01em;color:#001962}
.dest-name small{display:block;color:var(--muted);font-size:11px}.dest-name em{color:#c77700;font-style:normal;font-weight:700}
.dest-ic{width:34px;height:34px;border-radius:50%;background:#17365d;color:#fff;display:grid;place-items:center;flex-shrink:0}
.dest-ic .icon{width:17px;height:17px}
.dest-fee{background:#17365d;color:#fff;font:800 14px var(--display);border-radius:9px;padding:7px 12px;white-space:nowrap;min-width:92px;text-align:center}
.dest-icons{display:flex;flex-wrap:wrap;gap:6px}
.dest-icons label{cursor:pointer}.dest-icons input{position:absolute;opacity:0;pointer-events:none}
.dest-icons span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);color:var(--muted);background:#fff}
.dest-icons input:checked+span{background:#17365d;border-color:#17365d;color:#fff}
.dest-icons input:focus-visible+span{outline:2px solid #17365d;outline-offset:2px}
.dest-public{margin-top:6px;padding-top:14px;border-top:1px solid var(--line)}
.dest-public h3{display:flex;align-items:center;gap:8px;font-size:15px;margin-bottom:4px}.dest-public h3 .icon{color:var(--brand)}
.dest-public .dest-row{padding:6px 6px 6px 6px}.dest-public .dest-fee{min-width:84px;font-size:13px}
@media(max-width:760px){.dest-panel{padding:14px}.dest-fee{min-width:80px;font-size:13px;padding:6px 10px}.dest-name b{font-size:12px}}
.dest-approx{display:inline-block;background:#fff6e5;color:#a35f00;border:1px solid #f3d39a;border-radius:999px;padding:2px 9px;font-size:11px;font-weight:700;margin-left:4px}
#ds-radius{width:100%;accent-color:#17365d}

/* v6.4.1 · Teléfono con +504 y máscara 0000-0000; desglose del pedido; mapa debajo de los negocios */
.phone-input{display:flex;align-items:stretch}
.phone-cc{display:flex;align-items:center;padding:0 12px;background:var(--soft);color:var(--brand);font-weight:700;font-size:14px;border:1px solid var(--line);border-right:0;border-radius:12px 0 0 12px;white-space:nowrap}
.phone-input .input{border-radius:0 12px 12px 0;letter-spacing:.04em;min-width:0;flex:1}
.input.invalid{border-color:var(--red);box-shadow:0 0 0 3px #e5484d1f}
.phone-hint{display:block;margin-top:5px;font-size:11px;color:var(--muted)}.phone-hint.error{color:var(--red);font-weight:600}
.order-actions>.total{display:flex;flex-direction:column;gap:2px;margin-right:auto}
.order-money{color:var(--muted);font-size:12px;font-weight:500}

@media(max-width:760px){.order-actions>.total{width:100%;margin-bottom:6px}}

/* v6.4.2 · Botón "Instalar app" en la barra de arriba (reemplaza el aviso flotante de abajo) */
.top-actions{display:flex;align-items:center;gap:10px}
.install-btn{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 14px 0 11px;border-radius:999px;background:var(--brand);color:#fff;font-weight:700;font-size:13px;white-space:nowrap;box-shadow:0 4px 14px #17365d33;animation:install-pulse 2.6s ease-in-out 1.2s 3}
.install-btn:hover{background:var(--brand-hover)}
.install-btn .icon{width:17px;height:17px}
@keyframes install-pulse{0%,100%{box-shadow:0 4px 14px #17365d33}50%{box-shadow:0 0 0 7px #17365d1f,0 4px 14px #17365d33}}
@media(prefers-reduced-motion:reduce){.install-btn{animation:none}}
@media(max-width:760px){.install-btn{height:34px;padding:0 11px 0 9px;font-size:12px;gap:5px}.install-btn .icon{width:15px;height:15px}}
@media(max-width:480px){.install-btn .ib-app{display:none}.topbar .location{min-width:0}}
@media(max-width:350px){.install-btn>span{display:none}.install-btn{width:34px;padding:0;justify-content:center}}
.errand-cta{margin-top:18px}
/* Celular con botón de instalar: fila 1 logo + Instalar + cuenta, fila 2 dirección, fila 3 búsqueda. */
@media(max-width:760px){
  .topbar:has(.install-btn) .top-actions{margin-left:auto;order:1}
  .topbar:has(.install-btn)>.location{order:2;flex-basis:100%;margin-left:0;background:var(--bg);border-radius:12px;padding:8px 12px}
  .topbar:has(.install-btn)>.location .chevron{margin-left:auto}
  .topbar:has(.install-btn)>.location b{max-width:none}
}

/* v6.4.3 · Populares y Antojos debajo del mapa, en filas que se deslizan de lado */
.home-rails{margin-top:26px}
.home-rails .section-head{margin-top:6px}
[data-rail]{scroll-behavior:smooth;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:none;
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);padding-right:28px}
[data-rail]::-webkit-scrollbar{display:none}
@media(max-width:760px){.popular-card{flex-basis:78%}.food-card{flex-basis:46%}}

/* v6.4.4 · Corazón de favoritos: antes quedaba DEBAJO de la foto del negocio (no se veía ni se podía tocar). */
.business-card .favorite{z-index:3;color:#5b6157;width:36px;height:36px;box-shadow:0 2px 10px #0000002e}
.business-card .favorite .icon{width:19px;height:19px}
.favorite.on{color:#e0245e}
.favorite.on .icon{fill:#e0245e}
.favorite.pop{animation:fav-pop .35s ease-out}
@keyframes fav-pop{0%{transform:scale(1)}45%{transform:scale(1.28)}100%{transform:scale(1)}}
@media(max-width:760px){.business-card .favorite{width:34px;height:34px;top:10px;right:10px}}

/* v6.5.1 · Registro de clientes cerrado: aviso "Muy pronto" en lugar del formulario */
.signup-soon{text-align:center;background:var(--soft);border:1px solid #c9d6f6;border-radius:16px;padding:26px 20px;margin-top:6px;display:grid;gap:10px;justify-items:center}
.signup-soon .icon{width:34px;height:34px;color:var(--brand)}
.signup-soon h3{font-size:20px}.signup-soon p{color:var(--muted);font-size:13px;max-width:320px}

/* v6.6 · Respaldo y restauración de menús */
.menu-backup{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.menu-backup b{display:flex;align-items:center;gap:6px;font-size:13px}.menu-backup b .icon{width:16px;height:16px;color:var(--brand)}
.menu-backup small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.menu-backup label.btn{cursor:pointer}
.mr-modes{border:0;padding:0;margin:0;display:grid;gap:8px}
.mr-mode{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:10px 12px;cursor:pointer;background:#fff}
.mr-mode:has(input:checked){border-color:#9fb3ea;background:var(--soft)}
.mr-mode input{margin-top:3px;accent-color:#17365d}
.mr-mode b{display:block;font-size:13px}.mr-mode small{display:block;color:var(--muted);font-size:11px;margin-top:2px;line-height:1.4}

/* v7 · Marca Dalepue: logo en insignia (naranja y azul marino), más alto que el anterior */
.sidebar>.brand{margin-bottom:22px;justify-content:center}

/* v7.1 · Empresas de reparto */
.invite-card{display:flex;gap:18px;align-items:center;flex-wrap:wrap;background:linear-gradient(135deg,#001962,#00227f);color:#fff;border-radius:20px;padding:22px 24px;margin:18px 0}
.invite-card small{color:#9fb7ff;font-weight:700;text-transform:uppercase;letter-spacing:.06em;font-size:11px}
.invite-code{font:800 38px/1.1 var(--display);letter-spacing:6px;margin:6px 0 8px;color:#fff}
.invite-card p{color:#d8def5;font-size:13px;max-width:52ch}
.invite-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch;min-width:200px}
.invite-actions .btn.secondary{background:#ffffff14;color:#fff;border-color:#ffffff40}
.invite-actions .text-btn{color:#9fb7ff;justify-content:center}
.pill.navy{background:#e6eaf7;color:#001962;display:inline-flex;align-items:center;gap:4px;margin-top:4px}
.pill.navy .icon{width:12px;height:12px}
.live-list{display:grid;gap:8px}
.live-item{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.live-item>.icon{color:var(--brand);width:22px;height:22px}
.live-item b{display:block;font-size:14px}.live-item small{color:var(--muted);font-size:12px}
@media(max-width:760px){.invite-card{padding:18px}.invite-code{font-size:30px;letter-spacing:4px}.invite-actions{width:100%}}
/* Repartidor en el mapa: azul marino de la marca (antes verde) */
.pin.driver,.pin.driver .pulse{background:#001962}
.invite-actions a.btn{text-decoration:none}

/* v8.0.2 · Botones de acción (Abrir registro, Aprobar, Encender…) con el mismo color que los demás botones */
.btn.green{background:var(--brand)}.btn.green:hover{background:var(--brand-hover)}

/* ── v8.1.0: privacidad y eliminar cuenta (Google Play) ── */
.auth-legal { text-align: center; margin-top: 18px; color: var(--muted, #6b7280); }
.auth-legal a, .account-legal a { color: var(--brand); }
.account-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line, #e5e7eb); font-size: 14px; }
.account-legal a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; }
.account-legal svg { width: 16px; height: 16px; }
.text-btn.danger-text { color: #b42318; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.text-btn.danger-text svg { width: 16px; height: 16px; }
.danger-note { display: flex; gap: 12px; background: #fdecea; color: #7a1a12; border-radius: 12px; padding: 12px 14px; }
.danger-note svg { flex: none; width: 22px; height: 22px; color: #b42318; margin-top: 2px; }
.danger-note p { margin: 4px 0 0; color: #7a1a12; }


/* ═════════ v8.3.0: sensación de app en el celular (sin cambiar la estructura) ═════════ */
/* Toques: sin destello gris, sin retraso de doble toque y con respuesta al presionar. */
html { -webkit-tap-highlight-color: transparent; }
button, a, .btn, [data-action], .business-card, .category { touch-action: manipulation; }
.bottom-nav, .bottom-nav *, .btn, .category, .tabs button, .filter { -webkit-user-select: none; user-select: none; }
@media (hover: none) {
  .btn:active, .category:active, .filter:active, .business-card:active, .order-card:active, .tabs button:active, .icon-btn:active { transform: scale(.97); transition: transform .08s; }
}
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  body { overscroll-behavior-y: contain; }
  /* iPhone no hace zoom al escribir si la letra mide 16 px. */
  input, select, textarea { font-size: 16px !important; }
  .section-head .sort { max-width: 190px; padding: 8px 10px; }

  /* Encabezado fijo arriba, compacto, con sombra al desplazar. */
  .topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px; min-height: 0; gap: 8px; transition: box-shadow .2s; }
  body.scrolled .topbar { box-shadow: 0 6px 18px rgba(15, 30, 60, .08); }
  .topbar .top-actions .btn { padding: 8px 12px; font-size: 12px; }
  .topbar .top-actions .avatar { width: 36px; height: 36px; font-size: 12px; }
  /* "Entregar en": una sola línea, como chip. */
  .topbar > .location { order: 2; flex-basis: 100%; margin: 0; padding: 7px 12px; min-height: 0; border-radius: 12px; }
  .topbar > .location > div { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
  .topbar > .location small { font-size: 12px; white-space: nowrap; }
  .topbar > .location b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search-box { padding: 9px 12px; border-radius: 12px; }
  /* El buscador y la dirección solo hacen falta en Inicio y Favoritos. */
  body[data-role="cliente"]:not([data-tab="home"]):not([data-tab="favorites"]) .topbar > .location,
  body[data-role="cliente"]:not([data-tab="home"]) .search-box { display: none; }

  /* Contenido: márgenes de app y transición suave al cambiar de pestaña. */
  .content { padding: 18px 16px calc(110px + env(safe-area-inset-bottom)); animation: page-in .2s ease-out; }
  .page-heading h1, .operation-heading h1 { font-size: 23px; }
  .order-card, .account-panel, .stat, .zone-card, .empty-state { border-radius: 16px; }

  /* Categorías en una fila que se desliza con el dedo. */
  .categories { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px; scroll-snap-type: x proximity; }
  .categories::-webkit-scrollbar { display: none; }
  .categories > * { flex: none; scroll-snap-align: start; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; padding: 9px 16px; font-size: 13px; }

  /* Barra de abajo estilo app: ícono con píldora en la pestaña activa. */
  .bottom-nav { padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 -4px 18px rgba(15, 30, 60, .06); border-top-color: transparent; }
  .bottom-nav button { gap: 3px; font-size: 11px; min-width: 0; flex: 1; padding: 4px 0; }
  .bottom-nav button .icon { width: 52px; height: 28px; padding: 4px 14px; border-radius: 14px; box-sizing: border-box; transition: background .2s; }
  .bottom-nav button.active .icon { background: var(--soft); color: var(--brand); }
  .mobile-cart { border-radius: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  #toast { bottom: calc(140px + env(safe-area-inset-bottom)); }

  /* Ventanas como hoja que sube desde abajo, con agarradera. */
  .dialog { border-radius: 24px 24px 0 0; animation: sheet-in .26s cubic-bezier(.2,.8,.2,1); }
  .dialog-head { position: sticky; padding-top: 22px; }
  .dialog-head::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #d5dae3; }

  /* Pantalla de entrada: presentación corta y el formulario como tarjeta que sube. */
  .auth-art:not(.has-photo) { min-height: 0 !important; padding: calc(22px + env(safe-area-inset-top)) 20px 64px !important; }
  .auth-art:not(.has-photo) .hero-scene, .auth-art .auth-foot { display: none !important; }
  .auth-art .auth-perks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .auth-art .auth-perks::-webkit-scrollbar { display: none; }
  .auth-art .auth-perks li { flex: none; }
  .auth-form { margin-top: -40px; border-radius: 26px 26px 0 0; position: relative; z-index: 2; box-shadow: 0 -10px 30px rgba(0, 10, 40, .18); }
  .auth-box .btn.block { padding: 15px; border-radius: 14px; }
}
@keyframes sheet-in { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

/* Instalada como app: respeta la muesca y la barra del sistema. */
@media (display-mode: standalone) and (max-width: 760px) {
  body { -webkit-user-select: none; user-select: none; }
  input, textarea, [contenteditable], .selectable, .order-card p, .chat-msg { -webkit-user-select: text; user-select: text; }
}

/* ── v8.3.1: en el celular los negocios se deslizan de lado (como Uber Eats), no hacia abajo ── */
@media (max-width: 760px) {
  #catalog .business-grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 74%; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 4px 16px 10px; scroll-padding: 0 16px; }
  #catalog .business-grid::-webkit-scrollbar { display: none; }
  #catalog .business-grid > * { scroll-snap-align: start; min-width: 0; }
  #catalog .business-grid .business-photo { height: 150px; }
  #catalog .load-more { margin-top: 4px; }
}
/* Recuperar contraseña: igual que la entrada, sin la escena de la moto. */
.auth-recover .auth-art .auth-copy { margin-top: auto; }

/* ── v8.3.3: títulos sin letras encimadas en el celular ── */
@media (max-width: 760px) {
  /* La letra de títulos venía muy apretada (-0.035em): se abre un poco para que no se monten las letras. */
  h1, h2, h3, .page-heading h1, .operation-heading h1, .hero h2 { letter-spacing: -0.012em !important; word-spacing: .06em; line-height: 1.22; }
  /* "Negocios cerca de ti": el título ocupa todo el ancho en una línea y los botones van debajo. */
  .section-head { flex-wrap: wrap; align-items: flex-end; row-gap: 10px; }
  .section-head > div:first-child { flex: 1 1 100%; min-width: 0; }
  .section-head h2 { font-size: 20px; }
  .section-head p { font-size: 13px; line-height: 1.4; }
  /* Ordenar primero y el mapa después, alineados a la izquierda. */
  .section-head > .row { margin-left: 0; justify-content: flex-start; }
  .section-head > .row .sort { order: -1; max-width: 190px; }
}

/* ── v8.4.0: menú por secciones y "Lo más pedido" (estilo Uber Eats) ── */
.menu-tabs { position: sticky; top: var(--dh, 0px); z-index: 2; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  background: #fff; margin: 18px -24px 4px; padding: 10px 24px; border-bottom: 1px solid var(--line); }
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid transparent; white-space: nowrap; }
.menu-tab.active { background: var(--brand); color: #fff; }
.menu-section { scroll-margin-top: 120px; }
.menu-section > h3 { font-size: 18px; margin: 22px 0 4px; }
.menu-section > h3 .muted { font-weight: 500; }
.menu-popular-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 20px 0 10px; }
.menu-popular-head h3 { display: flex; align-items: center; gap: 6px; font-size: 18px; }
.menu-popular-head h3 .icon { width: 18px; height: 18px; color: #e8590c; }
.menu-popular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 761px) { .menu-popular { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.menu-pop { text-align: left; display: grid; gap: 4px; padding: 0; background: none; border: 0; color: inherit; }
.menu-pop:disabled { opacity: .6; }
.mp-img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--bg); }
.mp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.mp-noimg .icon { width: 30px; height: 30px; }
.mp-img .plus { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0,0,0,.18); color: var(--ink); }
.mp-img .plus .icon { width: 18px; height: 18px; }
.menu-pop b { font-size: 14px; line-height: 1.25; margin-top: 4px; }
.menu-pop small { font-size: 13px; color: var(--muted); }
/* Mi menú (negocio): título de cada sección y sugerencias al crear un producto. */
.menu-admin-section { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0 6px; border-bottom: 2px solid var(--soft); }
.menu-admin-section:first-child { padding-top: 0; }
.menu-admin-section h3 { font-size: 16px; color: var(--brand); }
.section-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.section-picks .filter { padding: 6px 12px; font-size: 12px; }
@media (max-width: 760px) { .menu-tabs { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; } }
.menu-popular-head { flex-direction: column; align-items: flex-start; gap: 2px; }
.mp-img.nophoto { aspect-ratio: 16 / 10; background: var(--soft); }
.mp-img.nophoto .mp-noimg { color: var(--brand); opacity: .55; }

/* ── v8.6.0: opciones y extras del producto ── */
.item-opts { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.item-opts-inline { color: var(--muted); }
.custom-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-size: 11px; color: var(--brand); font-weight: 600; }
.custom-tag .icon { width: 13px; height: 13px; }
.add-wrap { position: relative; display: inline-flex; }
.add-wrap .in-cart { position: absolute; top: -6px; left: -6px; z-index: 1; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brand); color: #fff; font: 700 11px/20px var(--font, inherit); font-style: normal; text-align: center; }
/* Hoja del cliente */
.po-photo { aspect-ratio: 16 / 9; background: var(--bg); overflow: hidden; }
.po-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.po-price { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.po-group { margin-top: 18px; border-radius: 14px; background: var(--bg); padding: 4px 14px 8px; transition: box-shadow .2s; }
.po-group header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0 6px; }
.po-group h3 { font-size: 15px; }
.po-group header small { color: var(--muted); font-size: 12px; }
.po-tag { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #e6e8ec; color: #4a5160; }
.po-tag.req { background: var(--brand); color: #fff; }
.po-tag.ok { background: #e3f3e9; color: #1f6b43; }
.po-tag .icon { width: 12px; height: 12px; }
.po-group.shake { animation: po-shake .4s; box-shadow: 0 0 0 2px #e8590c inset; }
@keyframes po-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.po-choice { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 2px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font-size: 14px; color: var(--ink); }
.po-choice:first-of-type { border-top: 0; }
.po-choice:disabled { opacity: .45; }
.po-choice em { font-style: normal; color: var(--muted); font-size: 12px; }
.po-mark { flex: none; width: 22px; height: 22px; border: 2px solid #b8bec9; display: grid; place-items: center; color: #fff; background: #fff; }
.po-mark.radio { border-radius: 50%; }
.po-mark.check { border-radius: 6px; }
.po-choice.on .po-mark { border-color: var(--brand); background: var(--brand); }
.po-choice.on .po-mark.radio { background: #fff; box-shadow: inset 0 0 0 5px var(--brand); }
.po-mark .icon { width: 14px; height: 14px; }
.po-extra { color: var(--muted); font-size: 13px; white-space: nowrap; }
.po .field { margin-top: 18px; }
.po-foot { display: flex; gap: 12px; align-items: center; }
.po-foot .btn { justify-content: center; padding: 14px; }
/* Editor del negocio */
.opt-editor { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.opt-editor-head label { font-weight: 700; font-size: 13px; }
.opt-editor-head small { display: block; color: var(--muted); margin-top: 3px; }
.opt-group { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 0 0 10px; display: grid; gap: 10px; background: #fbfcfe; }
.opt-group-top { display: flex; gap: 8px; }
.opt-group-top .input { font-weight: 600; }
.opt-rules { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { padding: 7px 12px; font-size: 12px; font-weight: 600; background: #fff; color: var(--muted); border: 0; }
.seg button.on { background: var(--brand); color: #fff; }
.opt-num { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.opt-num .input { width: 64px; padding: 7px 8px; }
.opt-choices { display: grid; gap: 6px; }
.opt-choice { display: grid; grid-template-columns: 1fr 96px auto auto; gap: 6px; align-items: center; }
.opt-choice.off .input { opacity: .5; text-decoration: line-through; }
.opt-price { position: relative; }
.opt-price span { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); }
.opt-price .input { padding-left: 30px; }
.opt-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.opt-add .filter { display: inline-flex; align-items: center; gap: 4px; }
.opt-add .icon, .opt-group .text-btn .icon { width: 14px; height: 14px; }
.opt-group .text-btn { justify-self: start; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }

/* ── v8.6.0: Mis direcciones ── */
.addr-list { display: grid; gap: 8px; }
.addr-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.addr-title .icon { width: 16px; height: 16px; color: var(--brand); }
.addr-item { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 4px 6px 4px 4px; background: #fff; }
.addr-item.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.addr-use { flex: 1; display: flex; align-items: center; gap: 12px; padding: 8px; text-align: left; background: none; border: 0; min-width: 0; }
.addr-use b { display: block; font-size: 14px; }
.addr-use small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--brand); }
.addr-ic .icon { width: 18px; height: 18px; }
.addr-on { color: var(--brand); }
.addr-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin-top: 6px; }
.addr-or::before, .addr-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.addr-save { display: grid; gap: 10px; border: 1px dashed var(--line); border-radius: 14px; padding: 12px; }
.addr-check { gap: 8px; font-weight: 600; }
.addr-check input { width: 18px; height: 18px; }
.addr-save-fields { display: grid; gap: 8px; }
.addr-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.addr-chips .filter { display: inline-flex; align-items: center; gap: 5px; }
.addr-chips .filter .icon { width: 14px; height: 14px; }
.addr-chips .filter.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── v8.6.0: horario, "Sin cobertura", Promociones especiales, Ayuda y buscador del menú ── */
.business-hours { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.business-hours .icon { width: 13px; height: 13px; }
.business-card { position: relative; }
.business-card.no-coverage .business-photo img:not(.biz-logo) { filter: grayscale(1); opacity: .55; }
.business-card.no-coverage .business-body { opacity: .7; }
.no-cov-pill { position: absolute; z-index: 4; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: rgba(30, 36, 50, .85); color: #fff; font-size: 11px; font-weight: 700; }
.no-cov-pill .icon { width: 13px; height: 13px; }
.no-cov-head { margin-top: 26px; }
.promo-band { margin: 4px -4px 22px; padding: 16px 0 14px; border-radius: 20px; background: linear-gradient(135deg, #ff7a1a, #f04e12); color: #fff; }
.promo-band-head { padding: 0 18px 10px; }
.promo-band-head h2 { display: flex; align-items: center; gap: 6px; font-size: 20px; color: #fff; }
.promo-band-head h2 .icon { width: 20px; height: 20px; }
.promo-band-head p { font-size: 13px; opacity: .9; margin-top: 2px; }
.promo-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 42%); gap: 12px; overflow-x: auto; padding: 4px 18px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.promo-track::-webkit-scrollbar { display: none; }
.promo-card { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; text-align: left; background: #fff; color: var(--ink); border: 0; border-radius: 16px; overflow: hidden; padding: 0; box-shadow: 0 6px 16px rgba(120, 30, 0, .18); }
.promo-img { display: block; aspect-ratio: 16 / 10; background: #fff1e6; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-noimg { width: 100%; height: 100%; display: grid; place-items: center; color: #e8590c; }
.promo-noimg .icon { width: 30px; height: 30px; }
.promo-body { display: grid; gap: 3px; padding: 10px 12px 12px; }
.promo-body b { font-size: 14px; line-height: 1.25; }
.promo-body small { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo-body em { font-style: normal; font-weight: 800; color: #e8590c; font-size: 15px; }
.promo-biz { font-size: 11px; color: var(--muted); }
@media (min-width: 761px) { .promo-band { margin: 4px 0 26px; } .promo-track { grid-auto-columns: 230px; } }
.help-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; margin-top: 18px; padding: 14px; border-radius: 14px; background: #e7f6ec; border: 1px solid #c6ead3; color: #1d5c3a; }
.help-row > .icon:first-child { width: 22px; height: 22px; flex: none; }
.help-row b { display: block; font-size: 14px; }
.help-row small { display: block; font-size: 12px; opacity: .85; }
.support-card { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 14px 0; padding: 16px; border-radius: 16px; border: 1px solid #c6ead3; background: #f2fbf5; }
.support-card h3 { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.support-card .phone-field, .support-card .phone-wrap { max-width: 230px; }
.promo-check { align-items: flex-start; gap: 8px; padding: 12px; border-radius: 12px; background: #fff4ec; font-weight: 500; }
.promo-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.promo-check > .icon { color: #e8590c; width: 18px; height: 18px; flex: none; margin-top: 2px; }
.menu-search { display: flex; align-items: center; gap: 8px; margin: 18px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.menu-search .icon { width: 18px; height: 18px; color: var(--muted); }
.menu-search input { flex: 1; border: 0; background: none; outline: 0; font: inherit; }
.menu-none { margin: 14px 0; }
/* Lo oculto con el atributo hidden nunca se muestra (aunque su clase tenga display:flex). */
[hidden] { display: none !important; }
.addr-use .grow { min-width: 0; }
.addr-item { min-width: 0; }

/* ── v8.7.2: revisión con Slop Patterns (sloppatterns.com) ── */
/* A55: títulos en orden (h1 → h2). Estos h2 conservan el tamaño que tenían como h3. */
h2.h3 { font-size: 16px; font-weight: 700; }
.empty h2.h3 { font-size: 16px; }
.scenario h2.h3 { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.panel h2.h3 { font-size: 15px; }
.account-panel .profile h2.h3 { font-size: 18px; }

/* ───────── Logo Dalepue: todas las reglas del logo juntas (v8.8.0) ───────── */
/* Barra lateral: logo de color a lo ancho, sin sombra. */
.brand img.brand-logo{width:100%;max-width:184px;height:auto;border-radius:0;box-shadow:none;filter:none}
/* Encabezado del celular. */
.mobile-brand .brand img.brand-logo{width:auto;max-width:none;height:34px}
/* Entrada (fondo oscuro): un contorno blanco fino hace que la D azul se lea. */
.brand.light{position:relative;z-index:3}
.brand.light img.brand-logo{width:auto;max-width:100%;height:112px;background:none;padding:0;
  filter:drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 6px 14px rgba(0,0,0,.35))}
@media(max-width:760px){.brand.light img.brand-logo{height:64px}}

/* ── v8.9.0: administración legible en el celular ── */
/* Respaldo del menú y "Eliminar el negocio": el texto ocupa su propia línea en vez de encogerse a una palabra. */
.menu-backup .grow, .danger-zone .grow { flex: 1 1 220px; }
.danger-zone { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid #f3c9c4; background: #fff7f6; border-radius: 14px; padding: 12px 14px; }
.danger-zone b { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--red); }
.danger-zone b .icon { width: 16px; height: 16px; }
.danger-zone small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.delete-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
@media (max-width: 760px) {
  /* Buscador de las listas: toda la fila arriba; los filtros debajo (antes quedaba un cuadrito vacío). */
  .toolbar .input { flex: 1 1 100%; max-width: none; }
  .toolbar .filters { flex: 1 1 100%; min-width: 0; }
  /* Tablas → tarjetas: cada fila es una tarjeta con "Columna: valor", y los botones quedan a la vista. */
  .table-wrap { overflow: visible; background: none; border: 0; border-radius: 0; }
  .table-wrap table { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tbody { display: grid; gap: 10px; }
  .table-wrap tr { display: grid; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
  .table-wrap td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0; border: 0; white-space: normal; text-align: right; max-width: none; font-size: 13px; }
  .table-wrap td::before { content: attr(data-label); flex: none; max-width: 45%; text-align: left; color: var(--muted); font-size: 12px; }
  .table-wrap td:first-child { display: block; text-align: left; font-size: 14px; }
  .table-wrap td:first-child::before, .table-wrap td[data-label=""]::before { content: none; }
  .table-wrap td[data-label=""] { justify-content: flex-start; flex-wrap: wrap; }
  .table-wrap td:empty { display: none; }
}
/* Nombres de zonas inactivas en el mapa: más discretos. */
.zone-label.off { color: var(--muted); border-color: var(--line); font-weight: 600; }
/* Nombres o descripciones con una palabra muy larga (sin espacios) se parten en vez de ensanchar la pantalla. */
.grow { overflow-wrap: anywhere; }
.driver-tip{margin:0 0 16px}.driver-tip ul{margin:8px 0 12px 18px;display:grid;gap:4px}.track-age{display:flex;align-items:center;gap:6px;margin:-6px 0 12px;color:var(--orange,#b45309)}.track-age .icon{width:15px;height:15px}.loc-old{color:var(--red);font-weight:700;display:inline-flex;align-items:center;gap:4px}.loc-old .icon{width:13px;height:13px}
