:root{
  --brand-blue:#0b1f3f;
  --brand-teal:#00b7a8;
  --brand-teal-dark:#009688;
  --brand-ink:#0f172a;
  --brand-muted:#64748b;
  --bg:#f6f8fb;
  --line:#e4eaf1;
  --shadow:0 26px 70px rgba(15,23,42,.08);
  --shadow-sm:0 14px 34px rgba(15,23,42,.06);
}
*{box-sizing:border-box}
/* Global hidden fix: evita que formularios o bloques con [hidden] sigan visibles por display:grid/flex */
[hidden]{display:none!important}

html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Manrope",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--brand-ink);
  background:
    radial-gradient(circle at 18% 0%,rgba(0,183,168,.12),transparent 420px),
    radial-gradient(circle at 90% 14%,rgba(11,31,63,.08),transparent 340px),
    var(--bg);
}
body.is-locked{overflow:hidden}
button,input,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit}
.container{width:min(1180px,calc(100% - 32px));margin-inline:auto}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.noscript{padding:14px;text-align:center;color:white;background:var(--brand-blue);font-weight:800}
.header{position:sticky;top:0;z-index:80;background:rgba(255,255,255,.94);border-bottom:1px solid rgba(226,232,240,.9);backdrop-filter:blur(18px)}
.header__inner{min-height:84px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px}
.brand{display:inline-flex;align-items:center;text-decoration:none;width:max-content}
.brand img{width:220px;max-height:58px;object-fit:contain;display:block}
.back-to-list{justify-self:center;min-height:44px;border:1px solid rgba(0,183,168,.18);border-radius:999px;padding:0 16px 0 12px;display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--brand-blue);background:white;box-shadow:0 12px 28px rgba(15,23,42,.06);font-size:14px;font-weight:950;transition:.18s ease}
.back-to-list span{width:26px;height:26px;border-radius:999px;display:grid;place-items:center;color:white;background:linear-gradient(135deg,var(--brand-blue),var(--brand-teal-dark));font-size:17px;line-height:1}
.back-to-list:hover{border-color:rgba(0,183,168,.44);transform:translateX(-2px);box-shadow:0 18px 42px rgba(15,23,42,.09)}
.login-link{justify-self:end;min-height:44px;border:1px solid var(--line);border-radius:999px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:var(--brand-blue);background:white;box-shadow:0 10px 24px rgba(15,23,42,.06);font-size:14px;font-weight:950;transition:.18s ease}
.login-link:hover{border-color:rgba(0,183,168,.38);transform:translateY(-1px)}
.store-hero{padding:22px 0 22px}
.store-hero__cover{position:relative;min-height:330px;border:1px solid rgba(226,232,240,.84);border-radius:36px;overflow:hidden;background:radial-gradient(circle at 86% 14%,rgba(0,183,168,.42),transparent 24rem),linear-gradient(135deg,var(--brand-blue),var(--brand-teal-dark));background-size:cover;background-position:center;box-shadow:var(--shadow)}
.store-hero__overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,31,63,.12),rgba(11,31,63,.46))}
.store-hero__content{position:relative;z-index:1;height:100%;min-height:330px;padding:26px;display:grid;grid-template-columns:auto 1fr;align-content:end;align-items:end;gap:22px;color:white}
.floating-back{position:absolute;top:22px;left:22px;min-height:42px;border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:0 15px 0 10px;display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:white;background:rgba(255,255,255,.14);backdrop-filter:blur(14px);box-shadow:0 18px 44px rgba(15,23,42,.14);font-size:13px;font-weight:950;transition:.18s ease}
.floating-back span{width:26px;height:26px;border-radius:999px;display:grid;place-items:center;color:var(--brand-blue);background:white}
.floating-back:hover{transform:translateX(-2px);background:rgba(255,255,255,.20)}
.store-avatar{width:96px;height:96px;border-radius:28px;display:grid;place-items:center;padding:8px;background:white;box-shadow:0 24px 48px rgba(15,23,42,.20);font-size:48px;overflow:hidden}
.store-avatar.has-logo{font-size:0}
.store-avatar img{width:100%;height:100%;object-fit:contain;display:block;border-radius:18px}

.store-copy{min-width:0}
.store-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.store-badges span{min-height:34px;padding:0 13px;border-radius:999px;display:inline-flex;align-items:center;color:white;background:rgba(255,255,255,.17);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(12px);font-size:13px;font-weight:950}
.store-copy h1{max-width:850px;margin:0 0 9px;color:white;font-size:clamp(44px,7vw,88px);line-height:.9;letter-spacing:-.08em;text-wrap:balance;text-shadow:0 18px 42px rgba(0,0,0,.18)}
.store-copy p{max-width:680px;margin:0 0 16px;color:rgba(255,255,255,.86);font-size:clamp(16px,2vw,20px);line-height:1.45;font-weight:750;text-wrap:balance}
.store-meta{display:flex;flex-wrap:wrap;gap:8px}
.store-meta span{min-height:34px;border-radius:999px;padding:0 12px;display:inline-flex;align-items:center;color:var(--brand-blue);background:rgba(255,255,255,.94);font-size:13px;font-weight:950}
.menu-layout{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:22px;align-items:start;padding:28px 0 34px}
.menu-main{min-width:0}
.menu-toolbar{margin-bottom:14px;display:grid;grid-template-columns:1fr minmax(280px,390px);gap:16px;align-items:end}
.menu-toolbar span{color:var(--brand-teal-dark);font-size:13px;font-weight:950;letter-spacing:.04em;text-transform:uppercase}
.menu-toolbar h2{margin:6px 0 0;color:var(--brand-blue);font-size:clamp(34px,4.8vw,56px);line-height:.96;letter-spacing:-.055em}
.menu-search{display:flex;align-items:center;border:1px solid rgba(226,232,240,.94);border-radius:999px;background:white;box-shadow:var(--shadow-sm)}
.menu-search input{width:100%;min-height:54px;border:0;border-radius:999px;padding:0 18px;color:var(--brand-blue);outline:0;background:transparent;font-size:15px;font-weight:850}
.menu-search input::placeholder{color:#94a3b8}
.category-strip{margin:0 0 18px;display:flex;gap:10px;flex-wrap:wrap}
.category-chip{min-height:44px;border:1px solid var(--line);border-radius:999px;padding:0 18px;color:var(--brand-blue);background:white;box-shadow:0 12px 26px rgba(15,23,42,.05);font-size:14px;font-weight:950;transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease}
.category-chip:hover{border-color:rgba(0,183,168,.42);transform:translateY(-2px);box-shadow:0 18px 36px rgba(15,23,42,.08)}
.category-chip.is-active{color:white;background:linear-gradient(135deg,var(--brand-blue),var(--brand-teal-dark));border-color:transparent;box-shadow:0 18px 38px rgba(11,31,63,.16)}
.products-grid{display:grid;gap:13px;transition:opacity .16s ease,transform .16s ease}
.products-grid.is-filtering{opacity:.35;transform:translateY(4px)}
.product-card{position:relative;padding:18px;display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;border:1px solid var(--line);border-radius:26px;background:white;box-shadow:var(--shadow-sm);animation:cardIn .28s ease both;transition:.18s ease}
.product-card:hover{border-color:rgba(0,183,168,.40);transform:translateY(-3px);box-shadow:0 24px 50px rgba(15,23,42,.10)}
@keyframes cardIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.product-card__info span{display:inline-flex;min-height:28px;margin-bottom:9px;border-radius:999px;padding:0 10px;align-items:center;color:var(--brand-teal-dark);background:rgba(0,183,168,.10);font-size:12px;font-weight:950}
.product-card h3{margin:0 0 7px;color:var(--brand-blue);font-size:22px;line-height:1.05;letter-spacing:-.04em}
.product-card p{max-width:620px;margin:0;color:var(--brand-muted);font-size:14px;line-height:1.45;font-weight:750}
.product-card__side{display:grid;gap:12px;justify-items:end;align-items:center}
.product-card__side strong{color:var(--brand-blue);font-size:24px;letter-spacing:-.04em}
.product-card__side button{min-height:46px;border:0;border-radius:999px;padding:0 18px;color:white;background:linear-gradient(135deg,var(--brand-blue),var(--brand-teal-dark));box-shadow:0 16px 32px rgba(11,31,63,.18);font-weight:950;transition:.18s ease}
.product-card__side button:hover{transform:translateY(-1px)}
.cart-panel{position:sticky;top:108px;max-height:calc(100dvh - 130px);display:flex;flex-direction:column;border:1px solid var(--line);border-radius:30px;background:white;box-shadow:var(--shadow);overflow:hidden}
.cart-panel__head{flex:0 0 auto;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:linear-gradient(135deg,rgba(0,183,168,.12),rgba(11,31,63,.04)),#fff;border-bottom:1px solid var(--line)}
.cart-panel__head span{color:var(--brand-teal-dark);font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.04em}
.cart-panel__head h2{margin:4px 0 0;color:var(--brand-blue);font-size:26px;line-height:1;letter-spacing:-.045em}
.cart-panel__head strong{width:38px;height:38px;border-radius:999px;display:grid;place-items:center;color:white;background:linear-gradient(135deg,var(--brand-blue),var(--brand-teal-dark));font-weight:950}
.cart-empty{margin:18px;padding:22px;border:1px dashed #cbd5e1;border-radius:22px;color:var(--brand-muted);text-align:center;background:#f8fafc}
.cart-empty strong{display:block;margin-bottom:7px;color:var(--brand-blue)}
.cart-empty p{margin:0;line-height:1.4;font-weight:750}
.cart-items{padding:14px 18px 10px;overflow:auto}
.cart-item{margin-bottom:10px;border:1px solid #e2e8f0;border-radius:20px;padding:13px;display:grid;grid-template-columns:1fr auto;gap:12px;background:white;box-shadow:0 12px 26px rgba(15,23,42,.05)}
.cart-item h4{margin:0 0 4px;color:var(--brand-blue);font-size:15px;line-height:1.1}
.cart-item small{color:var(--brand-muted);font-size:12px;font-weight:850}
.cart-item>strong{color:var(--brand-blue);font-size:15px;white-space:nowrap}
.cart-qty{margin-top:10px;display:flex;align-items:center;gap:8px}
.cart-qty button{width:30px;height:30px;border:0;border-radius:10px;color:white;background:var(--brand-blue);font-weight:950}
.cart-qty b{min-width:18px;text-align:center;color:var(--brand-blue)}
.cart-summary{flex:0 0 auto;margin-top:auto;padding:16px 18px calc(18px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:white;box-shadow:0 -16px 34px rgba(15,23,42,.06)}
.cart-summary>div{min-height:34px;display:flex;justify-content:space-between;align-items:center;color:var(--brand-muted);font-weight:850}
.cart-summary strong{color:var(--brand-blue)}
.cart-total{margin:8px 0 12px;padding-top:10px;border-top:1px solid var(--line);font-size:20px}
.cart-summary--drawer{display:block}
.btn{min-height:54px;border:1px solid transparent;border-radius:999px;padding:0 24px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:950;letter-spacing:-.025em;transition:.18s ease}
.btn:hover{transform:translateY(-2px) scale(1.01)}
.btn:disabled{opacity:.68;cursor:not-allowed;transform:none}
.btn--primary{position:relative;color:white;background:linear-gradient(135deg,var(--brand-blue),var(--brand-teal-dark));border-color:rgba(11,31,63,.12);box-shadow:0 20px 42px rgba(11,31,63,.18),inset 0 -2px 0 rgba(15,23,42,.10)}
.btn--primary::after{content:"→";margin-left:10px;font-weight:900}
.btn--secondary{color:var(--brand-blue);background:white;border-color:var(--line);box-shadow:var(--shadow-sm)}
.btn--full{width:100%}
.mobile-cart{position:fixed;z-index:90;left:0;right:0;bottom:0;padding:0 14px calc(12px + env(safe-area-inset-bottom));display:none}
.mobile-cart button{width:100%;min-height:60px;border:0;border-radius:22px;padding:0 18px;display:flex;justify-content:space-between;align-items:center;color:white;background:linear-gradient(135deg,var(--brand-blue),var(--brand-teal-dark));box-shadow:0 18px 44px rgba(15,23,42,.22);font-weight:950}
.drawer,.modal{position:fixed;inset:0;z-index:120;pointer-events:none}
.drawer.is-open,.modal.is-open{pointer-events:auto}
.drawer__overlay,.modal__overlay{position:absolute;inset:0;opacity:0;background:rgba(15,23,42,.45);transition:opacity .18s ease}
.drawer.is-open .drawer__overlay,.modal.is-open .modal__overlay{opacity:1}
.drawer__panel,.checkout{position:absolute;right:0;top:0;width:min(100%,500px);height:100dvh;max-height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:#f8fafc;box-shadow:-28px 0 80px rgba(15,23,42,.18);transform:translateX(105%);transition:transform .22s ease}
.drawer.is-open .drawer__panel,.modal.is-open .checkout{transform:translateX(0)}
.drawer__head{flex:0 0 auto;padding:20px 20px 14px;display:flex;justify-content:space-between;gap:16px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line)}
.drawer__head span{color:var(--brand-teal-dark);font-size:13px;font-weight:950;text-transform:uppercase}
.drawer__head h2{margin:4px 0 0;color:var(--brand-blue);font-size:clamp(25px,4vw,32px);line-height:1;letter-spacing:-.055em}
.icon-btn{width:42px;height:42px;border:1px solid var(--line);border-radius:14px;color:var(--brand-blue);background:white;font-size:28px;line-height:1}
.drawer-cart-content{min-height:0;overflow:auto;display:flex;flex-direction:column;flex:1}
.checkout-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.form-grid{padding:16px 20px 12px;display:grid;grid-template-columns:1fr;gap:14px}
.form-grid label{color:var(--brand-blue);font-size:14px;font-weight:900}
.form-grid input,.form-grid textarea{width:100%;min-height:54px;border:1px solid #dbe5ef;border-radius:18px;padding:0 14px;background:white;color:var(--brand-blue);font-size:15px;font-weight:750;outline:0;box-shadow:0 10px 24px rgba(15,23,42,.035)}
.form-grid textarea{min-height:92px;padding-top:13px;resize:none;line-height:1.35}
.delivery-box{display:grid;gap:12px}
.delivery-box[hidden]{display:none}
.choice-field{min-width:0;border:1px solid rgba(219,229,239,.92);border-radius:22px;padding:14px;margin:0;background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(248,250,252,.96));box-shadow:0 10px 26px rgba(15,23,42,.04)}
.choice-field legend{padding:0 8px;margin-left:2px;color:var(--brand-ink);font-size:14px;font-weight:950}
.choice-grid--two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.choice-card{position:relative;min-height:84px;border:1px solid #dbe5ef;border-radius:20px;padding:14px 14px 14px 46px;display:flex;align-items:center;background:white;box-shadow:0 10px 24px rgba(15,23,42,.035);cursor:pointer;transition:.18s ease}
.choice-card:hover{transform:translateY(-1px);border-color:rgba(0,183,168,.38);box-shadow:0 16px 30px rgba(15,23,42,.07)}
.choice-card.is-disabled{opacity:.48;pointer-events:none}
.choice-card input{position:absolute;left:16px;top:50%;width:18px;height:18px;margin:0;accent-color:var(--brand-teal-dark);transform:translateY(-50%)}
.choice-card span{min-width:0;display:grid;gap:3px}
.choice-card strong{color:var(--brand-ink);font-size:15px;font-weight:950;line-height:1.05}
.choice-card small{color:var(--brand-muted);font-size:12px;font-weight:800;line-height:1.25}
.choice-card:has(input:checked){border-color:rgba(0,150,136,.34);background:linear-gradient(135deg,rgba(0,150,136,.09),rgba(0,183,168,.06)),white;box-shadow:0 14px 28px rgba(0,150,136,.08),0 0 0 3px rgba(0,150,136,.06)}
.checkout-help{margin:0;border:1px solid rgba(0,183,168,.20);border-radius:18px;padding:12px 14px;color:var(--brand-muted);background:rgba(0,183,168,.08);font-size:13px;font-weight:800;line-height:1.35}
.checkout-footer{position:relative;z-index:5;flex:0 0 auto;border-top:1px solid var(--line);padding:12px 20px calc(16px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(255,255,255,.92),#fff 28%),#fff;box-shadow:0 -16px 34px rgba(15,23,42,.08)}
.checkout-total{min-height:56px;margin:0 0 10px;border-radius:20px;padding:0 16px;display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,rgba(0,183,168,.12),rgba(11,31,63,.04)),#eef8fd}
.checkout-total span{color:var(--brand-muted);font-weight:850}
.checkout-total strong{color:var(--brand-blue);font-size:26px;letter-spacing:-.04em}
.order-result{display:grid;gap:8px;margin-top:10px}
.order-result:empty{display:none}
.result{padding:12px 14px;border-radius:16px;font-size:13px;font-weight:850;line-height:1.35}
.result--ok{color:#087443;background:rgba(8,116,67,.10)}
.result--error{color:#b42318;background:rgba(180,35,24,.10)}
.empty-state{grid-column:1/-1;padding:28px;border:1px dashed #cbd5e1;border-radius:24px;color:var(--brand-muted);text-align:center;background:white}
.empty-state strong{display:block;margin-bottom:8px;color:var(--brand-blue);font-size:18px}
.empty-state p{margin:0;font-weight:700}
.skeleton{min-height:128px;background:linear-gradient(90deg,rgba(226,232,240,.55),rgba(255,255,255,.95),rgba(226,232,240,.55));background-size:240% 100%;animation:shimmer 1.2s linear infinite}
@keyframes shimmer{to{background-position:-240% 0}}
.page-error{min-height:420px;display:grid;place-items:center;text-align:center;align-content:center;gap:16px}
.page-error h1{margin:0;color:var(--brand-blue);font-size:clamp(42px,7vw,84px);line-height:.92;letter-spacing:-.075em}
.page-error p{max-width:560px;margin:0;color:var(--brand-muted);font-size:18px;font-weight:750;line-height:1.5}
.toast{position:fixed;z-index:200;left:50%;bottom:22px;width:min(420px,calc(100% - 28px));transform:translate(-50%,20px);opacity:0;pointer-events:none;padding:14px 16px;border-radius:18px;color:white;background:var(--brand-blue);box-shadow:0 18px 40px rgba(15,23,42,.18);font-weight:850;text-align:center;transition:.18s ease}
.toast.is-visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:1040px){
  .menu-layout{grid-template-columns:1fr}
  .cart-panel{display:none}
  .mobile-cart{display:block}
  .mobile-cart[hidden]{display:none}
}
@media(max-width:820px){
  body{padding-bottom:90px}
  .container{width:min(100% - 24px,1180px)}
  .header__inner{min-height:74px;display:flex;justify-content:space-between}
  .brand img{width:170px;max-height:48px}
  .back-to-list{display:none}
  .login-link{min-height:40px;padding:0 13px;font-size:13px}
  .store-hero{padding-top:14px}
  .store-hero__cover{border-radius:28px;min-height:430px}
  .store-hero__content{min-height:430px;grid-template-columns:1fr;align-content:end;gap:16px;padding:20px}
  .floating-back{top:16px;left:16px}
  .store-avatar{width:82px;height:82px;border-radius:24px;font-size:40px}
  .store-copy h1{font-size:clamp(42px,13vw,64px)}
  .store-copy p{font-size:16px}
  .menu-layout{padding-top:22px}
  .menu-toolbar{grid-template-columns:1fr;align-items:start}
  .menu-toolbar h2{font-size:clamp(34px,10vw,50px)}
  .category-strip{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
  .category-strip::-webkit-scrollbar{display:none}
  .category-chip{flex:0 0 auto}
  .product-card{grid-template-columns:1fr;gap:14px}
  .product-card__side{grid-template-columns:1fr auto;justify-items:stretch}
  .product-card__side strong{align-self:center}
  .product-card__side button{justify-self:end}
  .drawer__panel,.checkout{width:100%;box-shadow:none}
  .choice-grid--two{grid-template-columns:1fr}
  .choice-card{min-height:74px}
}

/* Local v2 polish: experiencia tipo marketplace */
.header__inner{min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.local-actionbar{padding-top:18px;display:flex;align-items:center;justify-content:flex-start;animation:fadeUp .34s ease both}
.local-actionbar .back-to-list{justify-self:start;background:rgba(255,255,255,.92);border-color:rgba(0,183,168,.22)}
.store-hero{padding:14px 0 22px}
.store-hero__cover{min-height:360px;background:radial-gradient(circle at 86% 14%,rgba(0,183,168,.42),transparent 24rem),linear-gradient(135deg,var(--brand-blue),var(--brand-teal-dark));animation:heroIn .42s ease both}
.store-hero__cover.has-image{background-size:cover;background-position:center;}
.store-hero__cover.has-image .store-hero__overlay{background:linear-gradient(90deg,rgba(5,16,34,.82),rgba(5,16,34,.50) 48%,rgba(0,122,115,.22))}
.store-hero__content{min-height:360px;padding:34px;grid-template-columns:auto 1fr;align-content:end;align-items:end}
.store-avatar{transform-origin:center;animation:popIn .38s .08s ease both}
.store-copy{animation:fadeUp .38s .12s ease both}
.menu-toolbar{animation:fadeUp .35s .08s ease both}
.category-strip{animation:fadeUp .35s .12s ease both}
.cart-panel{animation:fadeUp .35s .16s ease both}
.product-card{animation:cardIn .32s ease both}
.product-card:nth-child(2){animation-delay:.035s}
.product-card:nth-child(3){animation-delay:.07s}
.product-card:nth-child(4){animation-delay:.105s}
.product-card:nth-child(5){animation-delay:.14s}
.product-card__side button.is-added{background:linear-gradient(135deg,#087443,var(--brand-teal-dark));box-shadow:0 16px 34px rgba(8,116,67,.18);transform:scale(.98)}
.cart-panel.is-bumping,.mobile-cart.is-bumping{animation:bump .34s ease both}
.cart-panel__head strong{transition:transform .18s ease, background .18s ease}
.cart-panel.is-bumping .cart-panel__head strong{transform:scale(1.12)}
.toast{bottom:26px;background:linear-gradient(135deg,var(--brand-blue),var(--brand-teal-dark));box-shadow:0 22px 56px rgba(11,31,63,.24)}
@keyframes fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes heroIn{from{opacity:0;transform:translateY(14px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes popIn{from{opacity:0;transform:translateY(8px) scale(.92)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes bump{0%{transform:scale(1)}45%{transform:scale(1.025)}100%{transform:scale(1)}}
@media(max-width:820px){
  .local-actionbar{padding-top:14px}
  .local-actionbar .back-to-list{min-height:42px;font-size:13px}
  .store-hero{padding-top:12px}
  .store-hero__cover{min-height:390px;border-radius:28px}
  .store-hero__content{min-height:390px;grid-template-columns:1fr;gap:16px;padding:22px}
  .store-hero__cover.has-image .store-hero__overlay{background:linear-gradient(180deg,rgba(5,16,34,.30),rgba(5,16,34,.82))}
}
@media(max-width:820px){.local-actionbar .back-to-list{display:inline-flex}}


/* Local v4: carrito profesional responsive */
.menu-layout{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:22px;align-items:start;max-width:1180px}
.menu-main{width:100%;max-width:none;margin-inline:0}
.cart-panel{display:flex!important}
.mobile-cart{display:none}
.cart-panel.is-bumping,.mobile-cart.is-bumping{animation:bump .34s ease both}
.product-card__side button.is-added{background:linear-gradient(135deg,#087443,var(--brand-teal-dark));box-shadow:0 16px 34px rgba(8,116,67,.18);transform:scale(.98)}
.cart-panel__head strong{transition:transform .18s ease, background .18s ease}
.cart-panel.is-bumping .cart-panel__head strong{transform:scale(1.12)}
.mobile-cart button small{font-size:12px;opacity:.82;font-weight:850}
.mobile-cart button strong{font-size:16px;white-space:nowrap}
.drawer-cart-content .cart-summary{position:sticky;bottom:0}
@media(max-width:1040px){
  .menu-layout{grid-template-columns:1fr;max-width:1180px}
  .menu-main{max-width:none}
  .cart-panel{display:none!important}
  .mobile-cart{display:block}
  .mobile-cart[hidden]{display:none!important}
}
@media(max-width:820px){
  body{padding-bottom:90px}
  .mobile-cart{padding:0 12px calc(12px + env(safe-area-inset-bottom))}
  .mobile-cart button{min-height:62px;border-radius:22px;padding:0 16px;gap:10px}
}
@media(max-width:420px){
  .mobile-cart button{display:grid;grid-template-columns:1fr auto;align-items:center;text-align:left}
  .mobile-cart button span{grid-column:1;grid-row:1;font-size:14px}
  .mobile-cart button small{grid-column:1;grid-row:2;font-size:11px}
  .mobile-cart button strong{grid-column:2;grid-row:1/3;font-size:15px}
}

/* Local v5: barra móvil de pedido refinada */
@media(max-width:1040px){
  .cart-panel{display:none!important}
  .mobile-cart{
    position:fixed;
    z-index:110;
    left:50%;
    right:auto;
    bottom:calc(14px + env(safe-area-inset-bottom));
    width:min(380px,calc(100% - 28px));
    padding:0;
    transform:translateX(-50%);
    display:block;
    pointer-events:none;
  }
  .mobile-cart[hidden]{display:none!important}
  .mobile-cart button{
    pointer-events:auto;
    width:100%;
    min-height:56px;
    border:0;
    border-radius:999px;
    padding:0 12px 0 18px;
    display:grid;
    grid-template-columns:1fr auto;
    grid-template-areas:"title total" "count total";
    align-items:center;
    column-gap:12px;
    color:white;
    background:linear-gradient(135deg,var(--brand-blue),var(--brand-teal-dark));
    box-shadow:0 20px 50px rgba(11,31,63,.28);
    text-align:left;
    font-weight:950;
  }
  .mobile-cart button span{
    grid-area:title;
    font-size:14px;
    line-height:1.05;
    letter-spacing:-.02em;
  }
  .mobile-cart button small{
    grid-area:count;
    margin-top:2px;
    font-size:11px;
    line-height:1.05;
    opacity:.82;
    font-weight:850;
  }
  .mobile-cart button strong{
    grid-area:total;
    min-height:38px;
    border-radius:999px;
    padding:0 13px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--brand-blue);
    background:white;
    font-size:15px;
    line-height:1;
    white-space:nowrap;
    box-shadow:inset 0 -1px 0 rgba(15,23,42,.06);
  }
  body{padding-bottom:112px}
  .menu-layout{padding-bottom:116px}
  .products-grid{padding-bottom:90px}
}
@media(max-width:420px){
  .mobile-cart{width:calc(100% - 22px);bottom:calc(10px + env(safe-area-inset-bottom))}
  .mobile-cart button{min-height:54px;padding-left:16px;padding-right:10px}
  .mobile-cart button span{font-size:13px}
  .mobile-cart button small{font-size:10.5px}
  .mobile-cart button strong{min-height:36px;font-size:14px;padding:0 11px}
}

/* Auth + authenticated checkout */
.auth-modal{
  position:absolute;
  right:0;
  top:0;
  width:min(100%,480px);
  height:100dvh;
  max-height:100dvh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#f8fafc;
  box-shadow:-28px 0 80px rgba(15,23,42,.18);
  transform:translateX(105%);
  transition:transform .22s ease;
}
.modal.is-open .auth-modal{transform:translateX(0)}
.auth-body{flex:1;min-height:0;overflow:auto;padding:18px 20px 22px;display:grid;gap:14px}
.auth-intro{padding:18px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(135deg,rgba(0,183,168,.10),rgba(11,31,63,.04)),white;box-shadow:var(--shadow-sm)}
.auth-intro strong{display:block;color:var(--brand-blue);font-size:18px;line-height:1.15;letter-spacing:-.03em}
.auth-intro p{margin:8px 0 0;color:var(--brand-muted);font-weight:750;line-height:1.45}
.auth-form{display:grid;gap:12px}
.auth-form label{display:grid;gap:7px;color:var(--brand-blue);font-size:14px;font-weight:950}
.auth-form label small{color:var(--brand-muted);font-weight:850}
.auth-form input{width:100%;min-height:54px;border:1px solid #dbe5ef;border-radius:18px;padding:0 14px;background:white;color:var(--brand-blue);font-size:15px;font-weight:800;outline:0;box-shadow:0 10px 24px rgba(15,23,42,.035)}
.auth-form input:focus{border-color:rgba(0,183,168,.48);box-shadow:0 0 0 4px rgba(0,183,168,.10)}
.auth-logout{width:100%;min-height:46px;border:1px solid #fed7d7;border-radius:999px;background:#fff5f5;color:#b42318;font-weight:950}
.checkout-customer{padding:15px 16px;border:1px solid rgba(0,183,168,.22);border-radius:20px;background:linear-gradient(135deg,rgba(0,183,168,.11),rgba(11,31,63,.04)),white;box-shadow:0 10px 26px rgba(15,23,42,.04)}
.checkout-customer span{display:block;color:var(--brand-teal-dark);font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.04em}
.checkout-customer strong{display:block;margin-top:3px;color:var(--brand-blue);font-size:18px;letter-spacing:-.035em}
.checkout-customer small{display:block;margin-top:2px;color:var(--brand-muted);font-weight:850}
.order-success{display:grid;gap:10px;padding:16px;border-radius:20px;background:linear-gradient(135deg,rgba(8,116,67,.10),rgba(0,183,168,.08)),white;border:1px solid rgba(8,116,67,.16)}
.order-success__icon{width:42px;height:42px;border-radius:999px;display:grid;place-items:center;color:white;background:#087443;font-weight:950;font-size:22px}
.order-success strong{color:var(--brand-blue);font-size:20px;letter-spacing:-.04em}
.order-success p{margin:0;color:var(--brand-muted);font-weight:750;line-height:1.42}
.order-success__meta{min-height:38px;border-top:1px solid rgba(15,23,42,.08);display:flex;justify-content:space-between;gap:12px;align-items:center;color:var(--brand-muted);font-weight:850}
.order-success__meta b{color:var(--brand-blue);font-size:13px;text-align:right;word-break:break-word}
@media(max-width:720px){.auth-modal{width:100%;box-shadow:none}.auth-body{padding:16px}}


/* Local v6: sesión discreta + carrito persistente */
.auth-pill{
  flex-direction:column;
  align-items:flex-end;
  gap:1px;
  min-width:132px;
  line-height:1.05;
}
.auth-pill span{display:block}
.auth-pill small{
  display:block;
  max-width:150px;
  color:var(--brand-muted);
  font-size:11px;
  font-weight:850;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.auth-pill small:empty{display:none}
.auth-pill.is-authenticated{
  border-color:rgba(0,183,168,.24);
  background:linear-gradient(135deg,rgba(0,183,168,.09),rgba(255,255,255,.96));
}
.cart-head-actions{display:flex;align-items:center;gap:8px}
.cart-clear{
  min-height:34px;
  border:1px solid rgba(226,232,240,.96);
  border-radius:999px;
  padding:0 11px;
  color:#b42318;
  background:white;
  font-size:12px;
  font-weight:950;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.cart-clear:hover{border-color:#fecaca;background:#fff5f5}
.cart-clear--drawer{
  width:100%;
  min-height:44px;
  margin-top:10px;
  font-size:13px;
}
@media(max-width:720px){
  .auth-pill{min-width:auto;max-width:154px;padding:0 12px;align-items:flex-end}
  .auth-pill small{max-width:128px}
  .cart-head-actions{gap:7px}
}

/* Local v7: fix barra móvil centrada al agregar productos */
@media(max-width:1040px){
  .mobile-cart{
    left:50%!important;
    right:auto!important;
    width:min(430px,calc(100vw - 24px))!important;
    max-width:calc(100vw - 24px)!important;
    transform:translateX(-50%)!important;
    transform-origin:center bottom;
  }
  .mobile-cart.is-bumping{
    animation:mobileCartBump .34s ease both!important;
  }
  .mobile-cart button{
    overflow:hidden;
  }
}
@media(max-width:420px){
  .mobile-cart{
    width:calc(100vw - 22px)!important;
    max-width:calc(100vw - 22px)!important;
  }
}
@keyframes mobileCartBump{
  0%{transform:translateX(-50%) scale(1)}
  45%{transform:translateX(-50%) scale(1.025)}
  100%{transform:translateX(-50%) scale(1)}
}

/* Local v8: barra móvil optimizada sin cortes ni desplazamientos */
@media(max-width:1040px){
  body{
    padding-bottom:calc(106px + env(safe-area-inset-bottom))!important;
  }
  .menu-layout{
    padding-bottom:120px!important;
  }
  .products-grid{
    padding-bottom:100px!important;
  }
  .mobile-cart{
    position:fixed!important;
    z-index:130!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    max-width:none!important;
    padding:12px max(14px,env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-right))!important;
    transform:none!important;
    pointer-events:none!important;
    background:linear-gradient(180deg,rgba(246,248,251,0),rgba(246,248,251,.94) 34%,#f6f8fb 100%)!important;
  }
  .mobile-cart[hidden]{display:none!important}
  .mobile-cart button{
    pointer-events:auto!important;
    width:100%!important;
    max-width:430px!important;
    min-height:58px!important;
    margin:0 auto!important;
    border:0!important;
    border-radius:20px!important;
    padding:8px 9px 8px 18px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"title total" "count total"!important;
    align-items:center!important;
    column-gap:12px!important;
    color:white!important;
    background:linear-gradient(135deg,var(--brand-blue),#006f72 58%,var(--brand-teal-dark))!important;
    box-shadow:0 18px 42px rgba(11,31,63,.28)!important;
    overflow:hidden!important;
    text-align:left!important;
  }
  .mobile-cart button span{
    grid-area:title!important;
    min-width:0!important;
    font-size:14px!important;
    line-height:1.05!important;
    font-weight:950!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .mobile-cart button small{
    grid-area:count!important;
    min-width:0!important;
    margin-top:3px!important;
    color:rgba(255,255,255,.78)!important;
    font-size:11px!important;
    line-height:1!important;
    font-weight:900!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .mobile-cart button strong{
    grid-area:total!important;
    min-height:40px!important;
    max-width:124px!important;
    border-radius:999px!important;
    padding:0 14px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:var(--brand-blue)!important;
    background:white!important;
    font-size:15px!important;
    line-height:1!important;
    font-weight:950!important;
    white-space:nowrap!important;
    box-shadow:inset 0 -1px 0 rgba(15,23,42,.06)!important;
  }
  .mobile-cart.is-bumping{
    animation:none!important;
    transform:none!important;
  }
  .mobile-cart.is-bumping button{
    animation:mobileCartButtonPop .28s ease both!important;
  }
}
@media(max-width:420px){
  .mobile-cart{
    padding-left:11px!important;
    padding-right:11px!important;
    padding-bottom:calc(10px + env(safe-area-inset-bottom))!important;
  }
  .mobile-cart button{
    max-width:none!important;
    min-height:56px!important;
    border-radius:19px!important;
    padding-left:16px!important;
    padding-right:8px!important;
  }
  .mobile-cart button span{font-size:13px!important}
  .mobile-cart button small{font-size:10.5px!important}
  .mobile-cart button strong{
    min-height:38px!important;
    max-width:112px!important;
    padding:0 12px!important;
    font-size:14px!important;
  }
}
@keyframes mobileCartButtonPop{
  0%{transform:scale(1)}
  45%{transform:scale(1.018)}
  100%{transform:scale(1)}
}


/* Local v9: mobile profesional final */
@media(max-width:1040px){
  .mobile-cart{
    position:fixed!important;
    z-index:140!important;
    left:50%!important;
    right:auto!important;
    bottom:calc(16px + env(safe-area-inset-bottom))!important;
    width:min(430px,calc(100vw - 36px))!important;
    max-width:calc(100vw - 36px)!important;
    padding:0!important;
    transform:translateX(-50%)!important;
    pointer-events:none!important;
    background:transparent!important;
  }
  .mobile-cart[hidden]{display:none!important}
  .mobile-cart button{
    pointer-events:auto!important;
    width:100%!important;
    min-height:64px!important;
    margin:0!important;
    border:1px solid rgba(255,255,255,.18)!important;
    border-radius:24px!important;
    padding:10px 10px 10px 20px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"title total" "count total"!important;
    align-items:center!important;
    column-gap:14px!important;
    color:white!important;
    background:linear-gradient(135deg,#09213f 0%,#065969 52%,#008f86 100%)!important;
    box-shadow:0 22px 54px rgba(7,21,42,.30),0 8px 16px rgba(0,0,0,.10)!important;
    text-align:left!important;
    overflow:hidden!important;
  }
  .mobile-cart button span{
    grid-area:title!important;
    min-width:0!important;
    color:white!important;
    font-size:15px!important;
    line-height:1.08!important;
    font-weight:950!important;
    letter-spacing:-.025em!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .mobile-cart button small{
    grid-area:count!important;
    min-width:0!important;
    margin-top:4px!important;
    color:rgba(255,255,255,.78)!important;
    font-size:11.5px!important;
    line-height:1!important;
    font-weight:900!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .mobile-cart button strong{
    grid-area:total!important;
    min-width:86px!important;
    max-width:126px!important;
    min-height:44px!important;
    border-radius:999px!important;
    padding:0 14px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:var(--brand-blue)!important;
    background:white!important;
    font-size:16px!important;
    line-height:1!important;
    font-weight:950!important;
    white-space:nowrap!important;
    box-shadow:inset 0 -1px 0 rgba(15,23,42,.06),0 10px 20px rgba(15,23,42,.12)!important;
  }
  .mobile-cart.is-bumping{animation:mobileCartFloatBump .30s ease both!important}
  .mobile-cart.is-bumping button{animation:none!important}

  body{padding-bottom:calc(118px + env(safe-area-inset-bottom))!important}
  .menu-layout{padding-bottom:118px!important}
  .products-grid{padding-bottom:104px!important}
}

@media(max-width:820px){
  .container{width:min(100% - 28px,1180px)!important}
  .header__inner{min-height:76px!important;padding:0 2px!important}
  .brand img{width:142px!important;max-height:42px!important}
  .auth-pill,.login-link{
    min-height:46px!important;
    border-radius:999px!important;
    padding:0 17px!important;
    font-size:14px!important;
  }
  .auth-pill small{display:none!important}

  .local-actionbar{padding-top:18px!important}
  .local-actionbar .back-to-list{
    min-height:42px!important;
    padding:0 14px 0 10px!important;
    font-size:13px!important;
  }

  .store-hero{padding:16px 0 26px!important}
  .store-hero__cover{
    min-height:390px!important;
    border-radius:30px!important;
    box-shadow:0 26px 62px rgba(11,31,63,.14)!important;
  }
  .store-hero__content{
    min-height:390px!important;
    padding:30px 28px!important;
    gap:18px!important;
  }
  .store-avatar{
    width:86px!important;
    height:86px!important;
    border-radius:24px!important;
    font-size:42px!important;
  }
  .store-badges{gap:9px!important;margin-bottom:16px!important}
  .store-badges span{
    min-height:36px!important;
    padding:0 15px!important;
    font-size:13px!important;
  }
  .store-copy h1{
    margin-bottom:12px!important;
    font-size:clamp(40px,10.8vw,58px)!important;
    line-height:.94!important;
    letter-spacing:-.055em!important;
    word-spacing:.02em!important;
  }
  .store-copy p{
    margin-bottom:18px!important;
    font-size:16px!important;
    line-height:1.45!important;
  }
  .store-meta{gap:10px!important}
  .store-meta span{
    min-height:38px!important;
    padding:0 15px!important;
    font-size:13px!important;
  }

  .menu-layout{padding-top:30px!important}
  .menu-toolbar{gap:16px!important;margin-bottom:18px!important}
  .menu-toolbar span{font-size:13px!important}
  .menu-toolbar h2{
    font-size:clamp(38px,11vw,54px)!important;
    line-height:.96!important;
    letter-spacing:-.06em!important;
  }
  .menu-search{border-radius:26px!important}
  .menu-search input{
    min-height:62px!important;
    padding:0 22px!important;
    font-size:16px!important;
  }
  .category-strip{
    margin-bottom:22px!important;
    gap:12px!important;
    padding:0 0 10px!important;
    scroll-padding-left:2px!important;
  }
  .category-chip{
    min-height:54px!important;
    padding:0 22px!important;
    border-radius:999px!important;
    font-size:16px!important;
  }
  .product-card{
    border-radius:28px!important;
    padding:22px!important;
    gap:18px!important;
  }
  .product-card h3{
    font-size:26px!important;
    line-height:1.06!important;
    letter-spacing:-.045em!important;
  }
  .product-card p{
    font-size:15px!important;
    line-height:1.45!important;
  }
  .product-card__side{
    grid-template-columns:1fr auto!important;
    gap:14px!important;
  }
  .product-card__side strong{
    font-size:28px!important;
  }
  .product-card__side button{
    min-height:58px!important;
    min-width:124px!important;
    padding:0 22px!important;
    border-radius:999px!important;
    font-size:16px!important;
  }
}

@media(max-width:420px){
  .container{width:min(100% - 24px,1180px)!important}
  .brand img{width:134px!important}
  .auth-pill,.login-link{min-height:44px!important;padding:0 14px!important;font-size:13px!important}
  .store-hero__cover{min-height:372px!important;border-radius:28px!important}
  .store-hero__content{min-height:372px!important;padding:26px 24px!important}
  .store-avatar{width:78px!important;height:78px!important;border-radius:22px!important;font-size:38px!important}
  .store-copy h1{font-size:clamp(38px,11.5vw,50px)!important;letter-spacing:-.052em!important}
  .store-badges span,.store-meta span{font-size:12.5px!important;padding:0 13px!important}
  .menu-toolbar h2{font-size:clamp(36px,11.5vw,48px)!important}
  .category-chip{min-height:52px!important;padding:0 20px!important;font-size:15px!important}
  .product-card{padding:20px!important;border-radius:26px!important}
  .product-card h3{font-size:24px!important}
  .product-card__side strong{font-size:26px!important}
  .product-card__side button{min-width:116px!important;min-height:56px!important}
  .mobile-cart{width:calc(100vw - 28px)!important;max-width:calc(100vw - 28px)!important;bottom:calc(14px + env(safe-area-inset-bottom))!important}
  .mobile-cart button{min-height:62px!important;border-radius:23px!important;padding:9px 9px 9px 18px!important;column-gap:12px!important}
  .mobile-cart button span{font-size:14px!important}
  .mobile-cart button small{font-size:11px!important}
  .mobile-cart button strong{min-width:80px!important;min-height:42px!important;font-size:15px!important;padding:0 12px!important}
}

@keyframes mobileCartFloatBump{
  0%{transform:translateX(-50%) translateY(0) scale(1)}
  45%{transform:translateX(-50%) translateY(-2px) scale(1.015)}
  100%{transform:translateX(-50%) translateY(0) scale(1)}
}


/* Local v11: cuando el drawer/modal está abierto, ocultar la barra flotante móvil */
body.is-locked .mobile-cart{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* Local v18: cuenta iniciada compacta
   Evita que el layout grid estire la tarjeta de cuenta y el botón de cerrar sesión
   cuando los formularios de login están ocultos. */
.auth-body{
  align-content:start!important;
  align-items:stretch!important;
}
.auth-intro{
  min-height:auto!important;
}
.auth-logout{
  height:auto!important;
  min-height:52px!important;
  padding:0 18px!important;
  border-radius:999px!important;
  align-self:start!important;
  justify-self:stretch!important;
  margin-top:4px!important;
}
.auth-modal .order-result{
  align-self:start!important;
}
@media(max-width:720px){
  .auth-intro{
    padding:18px!important;
  }
  .auth-logout{
    min-height:50px!important;
    margin-top:2px!important;
  }
}



/* Local v20: ubicación de delivery con pin ajustable */
.location-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.delivery-map-box{
  display:grid;
  gap:12px;
  border:1px solid rgba(219,229,239,.96);
  border-radius:22px;
  padding:12px;
  background:white;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}

.delivery-map-box[hidden]{
  display:none!important;
}

.delivery-map-head{
  display:grid;
  gap:3px;
}

.delivery-map-head strong{
  color:var(--brand-blue);
  font-size:15px;
  font-weight:950;
}

.delivery-map-head span{
  color:var(--brand-muted);
  font-size:13px;
  font-weight:800;
  line-height:1.3;
}

.delivery-map{
  width:100%;
  min-height:280px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#e2e8f0;
}

.delivery-map .leaflet-control-attribution{
  font-size:10px;
}

@media(max-width:720px){
  .location-actions{
    grid-template-columns:1fr;
  }

  .delivery-map{
    min-height:300px;
  }
}



/* Local v21: búsqueda de dirección + confirmación clara */
.location-search{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
}

.location-search input{
  width:100%;
  min-height:50px;
  border:1px solid #dbe5ef;
  border-radius:17px;
  padding:0 14px;
  background:white;
  color:var(--brand-blue);
  font-size:14px;
  font-weight:800;
  outline:0;
  box-shadow:0 10px 24px rgba(15,23,42,.035);
}

.location-search input:focus{
  border-color:rgba(0,183,168,.48);
  box-shadow:0 0 0 4px rgba(0,183,168,.10);
}

.location-search .btn{
  min-height:50px;
  padding-inline:16px;
}

.location-results{
  display:grid;
  gap:7px;
}

.location-results[hidden]{
  display:none!important;
}

.location-result{
  width:100%;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:11px 12px;
  display:grid;
  gap:3px;
  text-align:left;
  color:var(--brand-blue);
  background:#fff;
  box-shadow:0 8px 18px rgba(15,23,42,.035);
}

.location-result strong{
  font-size:13px;
  font-weight:950;
  line-height:1.25;
}

.location-result span{
  color:var(--brand-muted);
  font-size:12px;
  font-weight:750;
  line-height:1.28;
}

.location-result:hover{
  border-color:rgba(0,183,168,.38);
  transform:translateY(-1px);
}

.location-result-empty{
  border:1px dashed #cbd5e1;
  border-radius:16px;
  padding:12px;
  color:var(--brand-muted);
  background:#f8fafc;
  font-size:13px;
  font-weight:800;
  line-height:1.35;
}

.selected-location{
  border:1px solid rgba(0,183,168,.22);
  border-radius:17px;
  padding:12px 13px;
  display:grid;
  gap:3px;
  background:linear-gradient(135deg,rgba(0,183,168,.10),rgba(11,31,63,.035)),#fff;
}

.selected-location[hidden]{
  display:none!important;
}

.selected-location span{
  color:var(--brand-teal-dark);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.selected-location strong{
  color:var(--brand-blue);
  font-size:13px;
  font-weight:950;
  line-height:1.3;
  word-break:break-word;
}

@media(max-width:720px){
  .location-search{
    grid-template-columns:1fr;
  }

  .location-search .btn{
    width:100%;
  }
}



/* Local v22: consolidado PedidosYa style sin romper flujo actual */
.store-availability{
  margin-top:-8px;
  margin-bottom:8px;
}

.store-availability[hidden]{
  display:none!important;
}

.store-availability__card{
  border:1px solid rgba(100,116,139,.16);
  border-radius:24px;
  padding:16px 18px;
  display:grid;
  gap:5px;
  color:#475569;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,250,252,.96));
  box-shadow:var(--shadow-sm);
}

.store-availability__card strong{
  color:var(--brand-blue);
  font-size:16px;
  font-weight:950;
  letter-spacing:-.02em;
}

.store-availability__card p{
  margin:0;
  color:var(--brand-muted);
  font-size:14px;
  line-height:1.42;
  font-weight:800;
}

.store-availability__card.is-paused{
  border-color:rgba(217,119,6,.18);
  background:linear-gradient(135deg,#fffbeb,rgba(255,255,255,.96));
}

.store-availability__card.is-paused strong{
  color:#92400e;
}

.store-status--active{
  color:#047857!important;
  background:#ecfdf5!important;
  border-color:rgba(16,185,129,.22)!important;
}

.store-status--paused{
  color:#92400e!important;
  background:#fffbeb!important;
  border-color:rgba(217,119,6,.22)!important;
}

.store-status--closed,
.store-status--unavailable{
  color:#475569!important;
  background:#f8fafc!important;
  border-color:rgba(100,116,139,.20)!important;
}

.product-card--disabled{
  opacity:.88;
}

.product-card--disabled:hover{
  transform:none;
}

.product-card__side button:disabled,
.btn:disabled,
.cart-qty button:disabled{
  cursor:not-allowed!important;
  opacity:.58!important;
  transform:none!important;
  box-shadow:none!important;
  filter:saturate(.72)!important;
}

.product-card__side button:disabled{
  color:#475569!important;
  background:#f1f5f9!important;
}

.cart-summary .btn:disabled,
.drawer-cart-content .btn:disabled{
  color:#475569!important;
  background:#f1f5f9!important;
  border-color:#e2e8f0!important;
}

.saved-address-btn{
  width:100%;
  min-height:46px;
  border:1px solid rgba(0,183,168,.20);
  border-radius:999px;
  padding:0 16px;
  color:var(--brand-blue);
  background:linear-gradient(135deg,rgba(0,183,168,.08),rgba(255,255,255,.96));
  box-shadow:0 10px 22px rgba(15,23,42,.04);
  font-size:13px;
  font-weight:950;
  text-align:center;
}

.saved-address-btn:hover{
  border-color:rgba(0,183,168,.40);
  transform:translateY(-1px);
}

.saved-address-btn[hidden]{
  display:none!important;
}

@media(max-width:820px){
  .store-availability{
    margin-top:-4px;
  }

  .store-availability__card{
    border-radius:22px;
    padding:14px 15px;
  }
}



/* Local v23: dirección limpia estilo app de pedidos */
.selected-address{
  border:1px solid rgba(0,183,168,.22);
  border-radius:17px;
  padding:12px 13px;
  display:grid;
  gap:3px;
  background:linear-gradient(135deg,rgba(0,183,168,.10),rgba(11,31,63,.035)),#fff;
}

.selected-address[hidden]{
  display:none!important;
}

.selected-address span{
  color:var(--brand-teal-dark);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.selected-address strong{
  color:var(--brand-blue);
  font-size:14px;
  font-weight:950;
  line-height:1.3;
  word-break:break-word;
}

.selected-location{
  background:#f8fafc;
  border-color:rgba(100,116,139,.16);
}

.selected-location span{
  color:#64748b;
}

.selected-location strong{
  color:#475569;
  font-size:12px;
}


/* Local v26: flujo sin SMS + delivery coordinado por WhatsApp */
.auth-form[data-auth-profile-form]{
  margin-top:0;
}
.auth-logout{
  margin-top:2px!important;
}
.checkout-footer .btn[data-submit-order]{
  min-height:56px;
}


/* Local v26: checkout simple, sin pedir ubicación ni dirección antes de WhatsApp */
.delivery-box--simple{
  display:block;
}
.delivery-box--simple .checkout-help{
  margin:0;
}


/* Local v27: mobile-first polish + WhatsApp visible sin romper flujo */
html,
body{
  max-width:100%;
  overflow-x:hidden;
}

.checkout-help strong{
  color:var(--brand-blue);
  font-weight:950;
  white-space:nowrap;
}

.checkout-customer small{
  overflow-wrap:anywhere;
}

@media(max-width:820px){
  body{
    background:var(--bg)!important;
  }

  .header{
    z-index:95!important;
  }

  .header__inner{
    min-height:68px!important;
    gap:10px!important;
  }

  .brand img{
    width:124px!important;
    max-height:38px!important;
  }

  .auth-pill,.login-link{
    min-height:40px!important;
    max-width:132px!important;
    padding:0 12px!important;
    font-size:12.5px!important;
    text-align:right!important;
  }

  .auth-pill span{
    max-width:106px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  .local-actionbar{
    padding-top:12px!important;
  }

  .local-actionbar .back-to-list{
    min-height:38px!important;
    padding:0 12px 0 8px!important;
    font-size:12.5px!important;
    box-shadow:0 10px 22px rgba(15,23,42,.05)!important;
  }

  .local-actionbar .back-to-list span{
    width:24px!important;
    height:24px!important;
    font-size:15px!important;
  }

  .store-hero{
    padding:10px 0 16px!important;
  }

  .store-hero__cover{
    min-height:285px!important;
    border-radius:24px!important;
    box-shadow:0 18px 42px rgba(11,31,63,.12)!important;
  }

  .store-hero__content{
    min-height:285px!important;
    padding:18px!important;
    gap:12px!important;
  }

  .store-avatar{
    width:64px!important;
    height:64px!important;
    border-radius:20px!important;
    font-size:32px!important;
    box-shadow:0 14px 30px rgba(15,23,42,.18)!important;
  }

  .store-badges{
    gap:7px!important;
    margin-bottom:10px!important;
  }

  .store-badges span{
    min-height:30px!important;
    max-width:150px!important;
    padding:0 10px!important;
    font-size:11.5px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  .store-copy h1{
    margin-bottom:8px!important;
    font-size:clamp(32px,10vw,44px)!important;
    line-height:.96!important;
    letter-spacing:-.045em!important;
  }

  .store-copy p{
    margin-bottom:12px!important;
    font-size:14px!important;
    line-height:1.4!important;
  }

  .store-meta{
    gap:7px!important;
  }

  .store-meta span{
    min-height:31px!important;
    max-width:100%!important;
    padding:0 10px!important;
    font-size:11.5px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  .menu-layout{
    padding-top:18px!important;
  }

  .menu-toolbar{
    gap:12px!important;
    margin-bottom:14px!important;
  }

  .menu-toolbar h2{
    font-size:clamp(30px,9.4vw,42px)!important;
    letter-spacing:-.045em!important;
  }

  .menu-search{
    border-radius:22px!important;
  }

  .menu-search input{
    min-height:52px!important;
    padding:0 16px!important;
    font-size:14.5px!important;
  }

  .category-strip{
    margin-bottom:16px!important;
    gap:9px!important;
    padding-bottom:8px!important;
  }

  .category-chip{
    min-height:42px!important;
    padding:0 16px!important;
    font-size:13.5px!important;
    box-shadow:0 9px 20px rgba(15,23,42,.045)!important;
  }

  .products-grid{
    gap:10px!important;
    padding-bottom:86px!important;
  }

  .product-card{
    border-radius:22px!important;
    padding:16px!important;
    gap:12px!important;
    box-shadow:0 12px 28px rgba(15,23,42,.055)!important;
  }

  .product-card:hover{
    transform:none!important;
  }

  .product-card__info span{
    min-height:24px!important;
    margin-bottom:8px!important;
    font-size:11px!important;
  }

  .product-card h3{
    font-size:20px!important;
    line-height:1.08!important;
  }

  .product-card p{
    font-size:13.2px!important;
    line-height:1.38!important;
  }

  .product-card__side{
    grid-template-columns:1fr auto!important;
    gap:10px!important;
  }

  .product-card__side strong{
    font-size:22px!important;
  }

  .product-card__side button{
    min-width:98px!important;
    min-height:46px!important;
    padding:0 16px!important;
    font-size:14px!important;
  }

  .drawer__panel,.checkout,.auth-modal{
    width:100%!important;
    height:100dvh!important;
    max-height:100dvh!important;
    box-shadow:none!important;
  }

  .drawer__head{
    padding:14px 16px 12px!important;
    gap:10px!important;
  }

  .drawer__head h2{
    font-size:clamp(26px,8vw,34px)!important;
    line-height:1!important;
    letter-spacing:-.045em!important;
  }

  .drawer__head span{
    font-size:11.5px!important;
  }

  .icon-btn{
    flex:0 0 auto!important;
    width:44px!important;
    height:44px!important;
    border-radius:16px!important;
    font-size:26px!important;
  }

  .checkout-body{
    background:#f8fafc!important;
  }

  .form-grid{
    padding:14px 14px 12px!important;
    gap:12px!important;
  }

  .checkout-customer{
    padding:13px 14px!important;
    border-radius:18px!important;
  }

  .choice-field{
    border-radius:20px!important;
    padding:12px!important;
  }

  .choice-field legend{
    font-size:13px!important;
  }

  .checkout .choice-grid--two{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }

  .choice-card{
    min-height:72px!important;
    border-radius:18px!important;
    padding:12px 10px 12px 39px!important;
  }

  .choice-card input{
    left:13px!important;
    width:18px!important;
    height:18px!important;
  }

  .choice-card strong{
    font-size:14px!important;
  }

  .choice-card small{
    font-size:11.3px!important;
    line-height:1.18!important;
  }

  .checkout-help{
    border-radius:17px!important;
    padding:12px 13px!important;
    font-size:12.8px!important;
  }

  .form-grid textarea{
    min-height:82px!important;
    border-radius:18px!important;
    font-size:14px!important;
  }

  .checkout-footer{
    padding:10px 14px calc(12px + env(safe-area-inset-bottom))!important;
  }

  .checkout-total{
    min-height:50px!important;
    margin-bottom:9px!important;
    border-radius:18px!important;
    padding:0 14px!important;
  }

  .checkout-total strong{
    font-size:24px!important;
  }

  .checkout-footer .btn[data-submit-order]{
    min-height:56px!important;
    border-radius:22px!important;
    font-size:15px!important;
  }

  .mobile-cart{
    width:calc(100vw - 24px)!important;
    max-width:430px!important;
    bottom:calc(12px + env(safe-area-inset-bottom))!important;
  }

  .mobile-cart button{
    min-height:58px!important;
    border-radius:21px!important;
    padding:9px 9px 9px 16px!important;
  }

  .mobile-cart button span{
    font-size:13.5px!important;
  }

  .mobile-cart button strong{
    min-width:76px!important;
    min-height:38px!important;
    font-size:14px!important;
  }

  .auth-body{
    padding:14px!important;
    gap:12px!important;
  }

  .auth-intro{
    padding:15px!important;
    border-radius:19px!important;
  }

  .auth-intro strong{
    font-size:16px!important;
  }

  .auth-intro p{
    font-size:13px!important;
  }

  .auth-form input{
    min-height:50px!important;
    border-radius:17px!important;
  }
}

@media(max-width:460px){
  .checkout .choice-grid--two{
    grid-template-columns:1fr!important;
  }

  .choice-card{
    min-height:64px!important;
  }
}

@media(max-width:380px){
  .container{
    width:min(100% - 18px,1180px)!important;
  }

  .brand img{
    width:112px!important;
  }

  .auth-pill,.login-link{
    max-width:116px!important;
    padding:0 10px!important;
    font-size:12px!important;
  }

  .store-hero__cover,
  .store-hero__content{
    min-height:260px!important;
  }

  .store-copy h1{
    font-size:32px!important;
  }

  .product-card{
    padding:14px!important;
  }

  .product-card h3{
    font-size:18.5px!important;
  }

  .product-card__side strong{
    font-size:20px!important;
  }

  .product-card__side button{
    min-width:88px!important;
    min-height:44px!important;
    padding:0 13px!important;
  }
}

/* Local v28: ajuste final mobile/web sin cambiar flujo MVP */
@media(max-width:1040px){
  .mobile-cart{
    contain:layout paint!important;
  }
  .mobile-cart button{
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
  }
}

@media(max-width:820px){
  .header__inner{
    grid-template-columns:none!important;
  }

  .store-hero__cover,
  .store-hero__content{
    min-height:clamp(250px,38vh,310px)!important;
  }

  .store-copy,
  .product-card__info,
  .product-card__side,
  .cart-item,
  .checkout-customer,
  .checkout-help{
    min-width:0!important;
  }

  .product-card h3,
  .product-card p,
  .cart-item h4,
  .cart-item small{
    overflow-wrap:anywhere!important;
  }

  .product-card__side{
    align-items:center!important;
  }

  .product-card__side button,
  .cart-qty button,
  .choice-card,
  .btn,
  .icon-btn,
  .auth-logout{
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
  }

  .menu-search input,
  .form-grid input,
  .form-grid textarea,
  .auth-form input{
    font-size:16px!important;
  }

  .checkout-help strong{
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  .checkout-customer strong,
  .checkout-customer small{
    overflow-wrap:anywhere!important;
  }

  .drawer__panel,
  .checkout,
  .auth-modal{
    height:100vh!important;
    height:100dvh!important;
  }
}

@media(max-width:380px){
  .store-badges span,
  .store-meta span{
    max-width:100%!important;
  }

  .checkout-total strong{
    font-size:22px!important;
  }

  .mobile-cart button{
    grid-template-columns:minmax(0,1fr) auto!important;
  }
}

/* Local v29: checkout selector cards anti-overlap
   Corrige radios/combos que se pisaban con el texto en mobile y en drawers estrechos. */
.checkout .choice-grid{
  min-width:0!important;
}

.checkout .choice-grid--two{
  grid-template-columns:1fr!important;
  gap:10px!important;
}

.checkout .choice-card{
  position:relative!important;
  min-width:0!important;
  width:100%!important;
  min-height:68px!important;
  padding:13px 14px!important;
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:12px!important;
  text-align:left!important;
}

.checkout .choice-card input{
  position:static!important;
  left:auto!important;
  top:auto!important;
  width:20px!important;
  height:20px!important;
  margin:0!important;
  flex:0 0 auto!important;
  transform:none!important;
  grid-column:1!important;
  grid-row:1!important;
}

.checkout .choice-card span{
  min-width:0!important;
  width:100%!important;
  display:grid!important;
  gap:4px!important;
  grid-column:2!important;
  grid-row:1!important;
}

.checkout .choice-card strong,
.checkout .choice-card small{
  min-width:0!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  white-space:normal!important;
}

.checkout .choice-card strong{
  font-size:15px!important;
  line-height:1.15!important;
}

.checkout .choice-card small{
  font-size:12px!important;
  line-height:1.25!important;
}

.checkout .choice-card:has(input:checked){
  outline:0!important;
}

.checkout .choice-field{
  min-width:0!important;
  overflow:hidden!important;
}

.checkout .choice-field legend{
  max-width:100%!important;
  white-space:normal!important;
}

.checkout .checkout-help{
  overflow-wrap:anywhere!important;
}

.checkout .checkout-help strong{
  display:inline!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

@media(min-width:560px){
  .checkout .choice-grid--two{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .checkout .choice-card{
    min-height:76px!important;
    align-items:center!important;
    column-gap:10px!important;
    padding:13px 12px!important;
  }
}

@media(max-width:820px){
  .checkout .choice-grid--two{
    grid-template-columns:1fr!important;
  }

  .checkout .choice-card{
    min-height:64px!important;
    border-radius:17px!important;
    padding:12px 13px!important;
    grid-template-columns:22px minmax(0,1fr)!important;
    column-gap:11px!important;
  }

  .checkout .choice-card input{
    width:19px!important;
    height:19px!important;
  }

  .checkout .choice-card strong{
    font-size:14.5px!important;
  }

  .checkout .choice-card small{
    font-size:11.8px!important;
  }
}

@media(max-width:380px){
  .checkout .choice-card{
    min-height:62px!important;
    padding:11px 12px!important;
    grid-template-columns:21px minmax(0,1fr)!important;
    column-gap:10px!important;
  }

  .checkout .choice-card input{
    width:18px!important;
    height:18px!important;
  }

  .checkout .choice-card strong{
    font-size:14px!important;
  }

  .checkout .choice-card small{
    font-size:11.3px!important;
  }
}


/* Local v31: WhatsApp central Comiona */
.checkout-help strong[data-order-whatsapp-text]{
  display:inline!important;
  color:var(--brand-blue)!important;
  font-weight:950!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}


/* Local v32: flujo WhatsApp claro + delivery por confirmar */
.checkout-delivery-note{
  margin:0 0 10px;
  border:1px solid rgba(217,119,6,.18);
  border-radius:16px;
  padding:10px 12px;
  color:#92400e;
  background:#fffbeb;
  font-size:12.8px;
  font-weight:850;
  line-height:1.35;
}

.checkout-delivery-note[hidden]{
  display:none!important;
}

.delivery-note-inline{
  display:block;
  margin-top:6px;
  color:#92400e;
  font-weight:900;
  line-height:1.35;
}

@media(max-width:820px){
  .checkout-delivery-note{
    margin-bottom:9px;
    border-radius:15px;
    padding:10px 11px;
    font-size:12.4px;
  }

  .delivery-note-inline{
    margin-top:5px;
  }
}


/* Local v35: logo de local con marco más fino */
.store-avatar.has-logo{
  padding:4px!important;
}

.store-avatar.has-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  border-radius:14px!important;
}

@media(max-width:820px){
  .store-avatar.has-logo{
    padding:4px!important;
  }

  .store-avatar.has-logo img{
    border-radius:13px!important;
  }
}

@media(max-width:420px){
  .store-avatar.has-logo{
    padding:3px!important;
  }

  .store-avatar.has-logo img{
    border-radius:12px!important;
  }
}


/* Local v36: logo igual que Home y Locales */
.store-avatar.has-logo{
  width:76px!important;
  height:76px!important;
  border-radius:16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:5px!important;
  background:white!important;
  box-shadow:0 16px 30px rgba(15,23,42,.13)!important;
  font-size:0!important;
  overflow:hidden!important;
}

.store-avatar.has-logo img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  display:block!important;
  border-radius:11px!important;
}


/* Local v37: checkout MVP claro */
.checkout-order-summary{
  display:grid;
  gap:10px;
  border:1px solid rgba(0,183,168,.16);
  border-radius:22px;
  padding:14px;
  background:linear-gradient(135deg,rgba(0,183,168,.08),rgba(11,31,63,.03)),white;
  box-shadow:0 10px 26px rgba(15,23,42,.04);
}
.checkout-order-summary span{
  display:block;
  color:var(--brand-teal-dark);
  font-size:12px;
  font-weight:950;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.checkout-order-summary strong{
  display:block;
  margin-top:3px;
  color:var(--brand-blue);
  font-size:18px;
  line-height:1.1;
  letter-spacing:-.035em;
}
.checkout-back-link{
  width:max-content;
  min-height:36px;
  border:1px solid rgba(11,31,63,.10);
  border-radius:999px;
  padding:0 13px;
  color:var(--brand-blue);
  background:white;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
  font-size:13px;
  font-weight:950;
}
.checkout-back-link:hover{
  border-color:rgba(0,183,168,.34);
}
