/* ==========================================================================
   MenuPro - experiencia publica del restaurante (menu, checkout, seguimiento)
   ========================================================================== */

.public-body { background: var(--bg); }
.menu-public { background: #fbf8f3; }
[data-theme="dark"] .menu-public { background: var(--bg); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 9999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; color: #fff; }

/* ------------------------------ Encabezado ------------------------------ */
.menu-topbar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.menu-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 14px; }
.menu-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; letter-spacing: -.02em; min-width: 0; }
.menu-brand:hover { color: var(--ink); }
.menu-brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.menu-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .98rem; }
.menu-topbar-actions { display: flex; align-items: center; gap: 6px; }
.cart-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; border-radius: 99px; background: rgba(255,255,255,.24); color: #fff; font-size: .66rem; padding: 0 5px; }
.cart-label { font-size: .82rem; }

/* -------------------------------- Hero ---------------------------------- */
.restaurant-hero { position: relative; color: #fff; }
.restaurant-cover { position: absolute; inset: 0; overflow: hidden; background: #2a1d15; }
.restaurant-cover img { width: 100%; height: 100%; object-fit: cover; }
.restaurant-cover-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,15,11,.15) 0%, rgba(20,15,11,.55) 55%, rgba(20,15,11,.9) 100%); }
.restaurant-hero-content { position: relative; display: flex; align-items: flex-end; gap: 20px; min-height: 330px; padding-top: 52px; padding-bottom: 30px; }
.restaurant-logo { flex: 0 0 auto; }
.restaurant-logo img { width: 92px; height: 92px; border-radius: 24px; object-fit: cover; border: 3px solid rgba(255,255,255,.65); box-shadow: 0 14px 34px rgba(0,0,0,.35); background: #fff; }
.restaurant-info { min-width: 0; flex: 1; }
.restaurant-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.restaurant-title-row h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0; letter-spacing: -.035em; text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.open-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 650; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(4px); color: #fff; }
.open-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #8b8177; }
.open-pill.is-open .dot { background: #5fd39b; box-shadow: 0 0 0 3px rgba(95,211,155,.22); }
.open-pill.is-closed .dot { background: #ffb4a6; }
.restaurant-tagline { color: rgba(255,255,255,.82); font-size: .9rem; max-width: 620px; margin: 8px 0 12px; line-height: 1.5; }
.restaurant-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .79rem; color: rgba(255,255,255,.8); }
.restaurant-meta a, .restaurant-meta .link-button { color: rgba(255,255,255,.88); display: inline-flex; align-items: center; gap: 6px; }
.restaurant-meta a:hover, .restaurant-meta .link-button:hover { color: #fff; }
.link-button { border: 0; background: transparent; padding: 0; font: inherit; display: inline-flex; align-items: center; gap: 6px; }
.restaurant-open-detail { font-size: .72rem; color: rgba(255,255,255,.6); margin: 8px 0 0; }

.table-banner, .closed-banner {
  display: flex; align-items: center; gap: 13px; margin-top: 18px; padding: 13px 16px;
  border-radius: 13px; border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
  background: var(--brand-050); color: var(--brand-700); font-size: .83rem;
}
.table-banner svg, .closed-banner svg { width: 22px; height: 22px; flex: 0 0 auto; }
.table-banner strong, .closed-banner strong { display: block; font-size: .86rem; }
.table-banner span, .closed-banner span { color: var(--muted); font-size: .76rem; }
.table-banner.compact { margin: 0 0 18px; }
.closed-banner { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 22%, var(--line)); color: var(--warning); }

/* ------------------------------- Toolbar -------------------------------- */
.menu-toolbar {
  position: sticky; top: 64px; z-index: 50; margin-top: 18px;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.menu-toolbar-inner { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.menu-search { position: relative; display: flex; align-items: center; flex: 0 0 300px; }
.menu-search > svg { position: absolute; left: 12px; color: var(--muted); width: 17px; height: 17px; }
.menu-search input { padding-left: 38px; padding-right: 34px; height: 42px; background: var(--surface); }
.search-clear { position: absolute; right: 7px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; background: var(--surface-2); color: var(--muted); }
.category-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 3px; }
.category-chips::-webkit-scrollbar { display: none; }
.category-chips a { padding: 7px 13px; border-radius: 999px; font-size: .79rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.category-chips a:hover { color: var(--ink); border-color: var(--line-strong); }
.category-chips a.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.menu-content { padding-top: 34px; padding-bottom: 80px; }
.featured-section, .menu-category { scroll-margin-top: 140px; margin-bottom: 46px; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading-row h2 { font-size: 1.5rem; }
.section-hint { color: var(--muted); font-size: .76rem; }
.featured-scroll { display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.featured-card { flex: 0 0 260px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); }
.featured-media { position: relative; height: 148px; background: var(--surface-2); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.discount-flag, .chip { display: inline-flex; align-items: center; gap: 4px; font-size: .64rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.discount-flag { position: absolute; top: 10px; left: 10px; background: var(--brand); color: #fff; }
.featured-body { padding: 13px 14px 14px; }
.featured-body h3 { font-size: .92rem; margin-bottom: 3px; }
.featured-body p { color: var(--muted); font-size: .73rem; line-height: 1.45; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.category-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.category-heading h2 { font-size: 1.4rem; letter-spacing: -.03em; }
.category-heading p { color: var(--muted); font-size: .8rem; margin: 4px 0 0; }
.category-count { color: var(--muted-2); font-size: .72rem; white-space: nowrap; }

/* ------------------------------- Productos ------------------------------ */
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dish { display: grid; grid-template-columns: 158px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.dish:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.dish.is-sold-out { opacity: .72; }
.dish-media { position: relative; min-height: 158px; background: var(--surface-2); overflow: hidden; }
.dish-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.dish-flags { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.chip { background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(4px); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.chip-new { background: var(--ink); color: #fff; }
.chip-popular { background: var(--accent); color: #3a2a00; }
.chip-off { background: var(--brand); color: #fff; }
.sold-out-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(23,19,16,.48); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dish-body { padding: 14px 16px; display: flex; flex-direction: column; min-width: 0; }
.dish-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.dish-heading h3 { font-size: .98rem; line-height: 1.3; letter-spacing: -.015em; }
.prep-time { display: inline-flex; align-items: center; gap: 3px; color: var(--muted-2); font-size: .66rem; white-space: nowrap; margin-top: 3px; }
.dish-description { color: var(--muted); font-size: .76rem; line-height: 1.5; margin: 5px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.allergens { color: var(--muted-2); font-size: .66rem; margin: 6px 0 0; display: flex; align-items: center; gap: 4px; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.price-block { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price-block s { color: var(--muted-2); font-size: .74rem; }
.price-block strong { font-size: 1rem; letter-spacing: -.02em; color: var(--ink); }
.price-from { color: var(--muted-2); font-size: .62rem; }
.add-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 0; background: var(--brand); color: #fff; transition: background .15s ease, transform .15s ease; flex: 0 0 auto; }
.add-btn:hover { background: var(--brand-700); transform: translateY(-1px); }
.add-btn:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; transform: none; font-size: .66rem; width: auto; padding: 0 10px; }
.dish-foot .btn-sm { font-size: .72rem; }

/* ------------------------------ Info seccion ---------------------------- */
.restaurant-info-section { border-top: 1px solid var(--line); padding-top: 34px; margin-top: 20px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.info-card h3 { font-size: .95rem; margin-bottom: 12px; }
.info-card p { font-size: .8rem; color: var(--muted); margin: 0 0 6px; }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-050); color: var(--brand); margin-bottom: 12px; }
.hours-list { display: grid; gap: 7px; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; color: var(--muted); padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.hours-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours-list li strong { color: var(--ink-2); font-weight: 550; text-align: right; }
.hours-list li.is-today { color: var(--brand-700); font-weight: 650; }
.hours-list li.is-today strong { color: var(--brand-700); }
.payment-list { display: grid; gap: 8px; }
.payment-list li { display: flex; flex-direction: column; font-size: .8rem; color: var(--ink-2); padding-bottom: 7px; border-bottom: 1px dashed var(--line); }
.payment-list li:last-child { border-bottom: 0; }
.payment-list small { color: var(--muted); font-size: .7rem; margin-top: 2px; }
.menu-note { margin-top: 12px !important; font-size: .72rem !important; }
.menu-legal { text-align: center; color: var(--muted-2); font-size: .72rem; margin-top: 46px; }
.menu-legal p { margin: 4px 0; }
.menu-legal a { text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------- Carrito ------------------------------ */
.cart-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 70; width: min(560px, calc(100vw - 28px));
  border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 20px 50px -16px rgba(0,0,0,.55);
  animation: cart-in .22s ease both;
}
@keyframes cart-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cart-bar-inner { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; background: transparent; color: #fff; text-align: left; }
.cart-bar-icon { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.12); }
.cart-bar-icon span { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--brand); font-size: .62rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.cart-bar-text { flex: 1; }
.cart-bar-text strong { display: block; font-size: .82rem; }
.cart-bar-text small { color: rgba(255,255,255,.6); font-size: .68rem; }
.cart-bar-total { font-weight: 700; font-size: .9rem; }

.cart-drawer { background: var(--surface); }
.cart-empty { padding: 40px 16px; }
.cart-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { padding-top: 0; }
.cart-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex: 0 0 auto; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-head { display: flex; justify-content: space-between; gap: 8px; }
.cart-item-head strong { font-size: .84rem; line-height: 1.3; }
.cart-remove { border: 0; background: transparent; color: var(--muted-2); padding: 2px; border-radius: 5px; }
.cart-remove:hover { color: var(--danger); background: var(--danger-soft); }
.cart-item small { display: block; color: var(--muted); font-size: .7rem; line-height: 1.35; }
.cart-mods { color: var(--brand-700) !important; }
.cart-notes { font-style: italic; }
.cart-item-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; background: var(--surface); }
.qty-stepper button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--ink); font-size: 1.05rem; line-height: 1; }
.qty-stepper button:hover { background: var(--surface-2); }
.qty-stepper span { min-width: 30px; text-align: center; font-size: .85rem; font-weight: 650; }
.qty-stepper-sm button { width: 26px; height: 26px; font-size: .9rem; }
.qty-stepper-sm span { min-width: 24px; font-size: .78rem; }
.cart-totals { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.cart-line { display: flex; justify-content: space-between; gap: 14px; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.cart-line strong { color: var(--ink); font-weight: 600; }
.cart-total-line { font-size: .95rem; color: var(--ink); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.cart-total-line strong { font-size: 1.1rem; }
.cart-tax-note { color: var(--muted-2); font-size: .68rem; margin: 0; }

/* ------------------------------ Modal producto -------------------------- */
.product-modal { max-width: 600px; width: min(600px, calc(100vw - 20px)); overflow: hidden; }
.product-modal-media { height: 230px; background: var(--surface-2); position: relative; }
.product-modal-media img { width: 100%; height: 100%; object-fit: cover; }
.product-modal-close { position: absolute; top: 12px; right: 12px; z-index: 4; background: rgba(255,255,255,.9); color: var(--ink); }
.product-modal-body { padding: 20px 22px 8px; }
.pm-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.pm-heading h3 { font-size: 1.28rem; }
.pm-heading p { margin: 5px 0 0; font-size: .82rem; line-height: 1.5; }
.pm-price { flex-direction: column; align-items: flex-end; gap: 2px; }
.pm-price strong { font-size: 1.2rem; }
.pm-section { border-top: 1px solid var(--line); padding: 16px 0; }
.pm-section h4 { font-size: .88rem; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.required-mark { color: var(--brand); }
.optional, .group-hint { color: var(--muted-2); font-weight: 400; font-size: .7rem; }
.group-note { color: var(--muted-2); font-size: .68rem; margin: 6px 0 0; }
.option-list { display: grid; gap: 7px; }
.option-card { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.option-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.option-card:has(input:checked) { border-color: var(--brand); background: var(--brand-050); }
.option-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-card-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px; }
.option-name { font-size: .82rem; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.option-name::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); flex: 0 0 auto; }
.option-card input[type="checkbox"] + .option-card-body .option-name::before { border-radius: 5px; }
.option-card input:checked + .option-card-body .option-name::before { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px var(--surface); }
.option-price { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.product-modal-foot { display: flex; align-items: center; gap: 12px; padding: 14px 22px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); }
.product-modal-foot .btn { flex: 1; }
#pm-notes { min-height: 64px; }
.pm-error { margin: 8px 0 12px; }
@media (max-width: 560px) {
  .product-modal-media { height: 180px; }
  .product-modal-body { padding: 16px 16px 4px; }
  .product-modal-foot { padding: 12px 16px 16px; }
  .pm-heading { gap: 10px; }
}

/* --------------------------------- Checkout ----------------------------- */
.checkout-public { background: var(--bg); }
.checkout-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.checkout-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 64px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.back-link:hover { color: var(--ink); }
.secure-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .74rem; }
.checkout-header .menu-brand span { font-size: .9rem; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 26px; align-items: start; padding-top: 34px; padding-bottom: 70px; }
.checkout-title { margin-bottom: 22px; }
.checkout-title h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.checkout-title p { color: var(--muted); font-size: .86rem; margin: 8px 0 0; max-width: 600px; }
.checkout-form { display: grid; gap: 16px; }
.checkout-step { padding: 20px 22px; }
.step-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 16px; }
.step-badge { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--brand-050); color: var(--brand-700); font-size: .8rem; font-weight: 750; flex: 0 0 auto; }
.step-head h2 { font-size: 1rem; }
.step-head p { color: var(--muted); font-size: .76rem; margin: 3px 0 0; }
.service-options { display: grid; gap: 8px; }
.service-option { display: block; cursor: pointer; }
.service-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.service-option-body { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; transition: border-color .15s ease, background .15s ease; }
.service-option-body > svg { color: var(--muted); width: 22px; height: 22px; flex: 0 0 auto; }
.service-option-body span { display: grid; gap: 2px; }
.service-option-body strong { font-size: .85rem; color: var(--ink); }
.service-option-body small { color: var(--muted); font-size: .72rem; }
.service-option input:checked + .service-option-body { border-color: var(--brand); background: var(--brand-050); }
.service-option input:checked + .service-option-body > svg { color: var(--brand); }
.payment-options { display: grid; gap: 8px; }
.payment-option { display: block; cursor: pointer; }
.payment-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.payment-option-body { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; }
.payment-option-body > svg { width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; margin-top: 2px; }
.payment-option-body span { display: grid; gap: 2px; }
.payment-option-body strong { font-size: .84rem; color: var(--ink); }
.payment-option-body small { color: var(--muted); font-size: .71rem; line-height: 1.4; }
.payment-option input:checked + .payment-option-body { border-color: var(--brand); background: var(--brand-050); }
.payment-option input:checked + .payment-option-body > svg { color: var(--brand); }
.checkout-form .check { margin-top: 12px; }
.checkout-submit { margin-top: 2px; }
.checkout-disclaimer { text-align: center; color: var(--muted-2); font-size: .7rem; margin: 0; }
.checkout-summary { position: sticky; top: 22px; display: grid; gap: 12px; }
.summary-card { overflow: hidden; }
.summary-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.summary-head h2 { font-size: 1rem; }
.summary-head a { font-size: .76rem; font-weight: 650; }
.summary-items { padding: 14px 20px; max-height: 300px; overflow-y: auto; }
.summary-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; padding: 12px 0; }
.summary-empty { padding: 22px 20px; text-align: center; color: var(--muted); font-size: .84rem; }
.summary-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.summary-item:last-child { border-bottom: 0; }
.summary-qty { font-size: .74rem; font-weight: 700; color: var(--brand-700); min-width: 22px; }
.summary-item-info { flex: 1; min-width: 0; }
.summary-item-info strong { display: block; font-size: .79rem; line-height: 1.35; }
.summary-item-info small { display: block; font-size: .68rem; color: var(--muted); }
.summary-note { font-style: italic; }
.summary-item-price { font-size: .78rem; white-space: nowrap; }
.coupon-box { padding: 14px 20px; border-top: 1px solid var(--line); }
.coupon-box label { display: block; font-size: .73rem; font-weight: 650; color: var(--muted); margin-bottom: 6px; }
.coupon-input { display: flex; gap: 6px; }
.coupon-input input { height: 38px; font-size: .8rem; }
.coupon-input .btn { flex: 0 0 auto; }
.coupon-message { font-size: .71rem; margin: 6px 0 0; min-height: 0; }
.coupon-message.is-success { color: var(--success); }
.coupon-message.is-error { color: var(--danger); }
.summary-totals { padding: 14px 20px; border-top: 1px solid var(--line); }
.summary-line { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 7px; }
.summary-line strong { color: var(--ink-2); font-weight: 600; }
.summary-total { font-size: 1rem; color: var(--ink); border-top: 1px dashed var(--line); margin-top: 9px; padding-top: 10px; margin-bottom: 0; }
.summary-total strong { font-size: 1.2rem; color: var(--ink); }
.summary-info { display: flex; gap: 8px; align-items: flex-start; padding: 12px 20px; background: var(--surface-2); color: var(--muted); font-size: .71rem; }
.summary-trust { display: flex; justify-content: space-around; gap: 10px; color: var(--muted); font-size: .68rem; }
.summary-trust span { display: inline-flex; gap: 5px; align-items: center; }
.summary-trust svg { color: var(--success); }

/* ------------------------------- Seguimiento ---------------------------- */
.tracking-public { background: var(--bg); }
.tracking-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.tracking-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 64px; }
.tracking-layout { padding-top: 26px; padding-bottom: 70px; }
.tracking-success-banner { display: flex; align-items: center; gap: 12px; background: var(--success-soft); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 22%, transparent); padding: 13px 16px; border-radius: 13px; margin-bottom: 18px; font-size: .82rem; }
.tracking-success-banner > svg { width: 24px; height: 24px; flex: 0 0 auto; }
.tracking-success-banner div { flex: 1; }
.tracking-success-banner strong { display: block; }
.tracking-success-banner span { color: color-mix(in srgb, var(--success) 80%, var(--muted)); font-size: .75rem; }
.tracking-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.tracking-card { overflow: hidden; }
.tracking-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.tracking-card-head h1 { font-size: 1.9rem; margin: 2px 0 4px; letter-spacing: -.04em; }
.tracking-card-head p { margin: 0; font-size: .76rem; }
.tracking-progress { padding: 24px; border-bottom: 1px solid var(--line); }
.tracking-timeline { display: flex; justify-content: space-between; gap: 4px; position: relative; }
.tracking-timeline::before { content: ""; position: absolute; left: 22px; right: 22px; top: 17px; height: 2px; background: var(--line); }
.timeline-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; text-align: center; z-index: 1; }
.timeline-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); color: var(--muted-2); display: grid; place-items: center; }
.timeline-label { font-size: .68rem; color: var(--muted); line-height: 1.2; max-width: 90px; }
.timeline-step.is-done .timeline-dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline-step.is-current .timeline-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-100); }
.timeline-step.is-current .timeline-label { color: var(--brand-700); font-weight: 700; }
.timeline-step.is-done .timeline-label { color: var(--ink-2); }
.tracking-hint { text-align: center; color: var(--muted); font-size: .8rem; margin: 18px 0 0; }
.tracking-section { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.tracking-section:last-child { border-bottom: 0; }
.tracking-section h2 { font-size: .95rem; margin-bottom: 12px; }
.tracking-items { display: grid; gap: 9px; }
.tracking-items li { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.tracking-items li:last-child { border-bottom: 0; padding-bottom: 0; }
.tracking-items li > div { flex: 1; min-width: 0; }
.tracking-items strong { font-size: .8rem; }
.tracking-items small { display: block; color: var(--muted); font-size: .68rem; }
.tracking-qty { color: var(--brand-700); font-weight: 700; font-size: .75rem; min-width: 24px; }
.tracking-totals { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.tracking-totals > div { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.tracking-totals strong { color: var(--ink-2); }
.tracking-total { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; font-size: .92rem !important; color: var(--ink) !important; }
.tracking-total strong { font-size: 1.1rem; color: var(--ink); }
.tracking-payment { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--muted); flex-wrap: wrap; }
.tracking-payment svg { color: var(--success); }
.tracking-aside { display: grid; gap: 0; }
.tracking-back { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); padding: 12px 4px; }
.tracking-back:hover { color: var(--brand-700); }
.success-burst { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); margin: 6px auto 0; }

/* ------------------------------- Instalador ----------------------------- */
.install-head { margin-bottom: 18px; }
.install-head h2 { font-size: 1.6rem; margin-bottom: 6px; }
.install-head p { color: var(--muted); font-size: .86rem; margin: 0; }
.install-steps { display: flex; gap: 6px; margin: 20px 0 24px; padding: 0; list-style: none; }
.install-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .66rem; color: var(--muted); position: relative; }
.install-steps li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.install-steps li:first-child::before { display: none; }
.install-step-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: .72rem; font-weight: 700; position: relative; z-index: 1; }
.install-steps li.is-current { color: var(--brand-700); font-weight: 650; }
.install-steps li.is-current .install-step-dot { background: var(--brand); color: #fff; border-color: var(--brand); }
.install-steps li.is-done .install-step-dot { background: var(--success); border-color: var(--success); color: #fff; }
.install-steps li.is-done::before, .install-steps li.is-current::before { background: var(--success); }
.check-list { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-bottom: 1px solid var(--line); font-size: .8rem; }
.check-row:last-child { border-bottom: 0; }
.check-status { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.check-status.is-ok { background: var(--success-soft); color: var(--success); }
.check-status.is-fail { background: var(--danger-soft); color: var(--danger); }
.check-label { flex: 1; color: var(--ink-2); }
.check-detail { color: var(--muted); font-size: .72rem; text-align: right; }
.check-status.is-fail + .check-label + .check-detail { color: var(--danger); }
.install-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.install-note { color: var(--muted-2); font-size: .72rem; display: flex; align-items: center; gap: 6px; margin: 16px 0 0; }
.install-note code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.install-db-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; margin-bottom: 18px; font-size: .78rem; color: var(--muted); }
.install-success { text-align: center; padding: 12px 0 4px; }
.install-success-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--success-soft); color: var(--success); margin: 0 auto 14px; }
.install-success h3 { font-size: 1.2rem; }
.install-success p { color: var(--muted); font-size: .84rem; max-width: 480px; margin: 6px auto 0; }

/* ------------------------------- Responsive ----------------------------- */
@media (max-width: 980px) {
  .checkout-layout, .tracking-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .dish-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .menu-toolbar { top: 64px; }
}
@media (max-width: 760px) {
  .restaurant-hero-content { min-height: 280px; padding-bottom: 22px; align-items: flex-end; gap: 14px; }
  .restaurant-logo img { width: 68px; height: 68px; border-radius: 18px; }
  .restaurant-title-row h1 { font-size: 1.65rem; }
  .restaurant-tagline { font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .restaurant-meta { gap: 7px 12px; font-size: .72rem; }
  .menu-toolbar-inner { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 0; }
  .menu-search { flex: 1 1 auto; }
  .category-chips { width: 100%; }
  .menu-content { padding-top: 24px; }
  .featured-card { flex-basis: 220px; }
  .dish { grid-template-columns: 124px minmax(0, 1fr); }
  .dish-media { min-height: 138px; }
  .dish-body { padding: 12px 13px; }
  .dish-description { -webkit-line-clamp: 2; }
  .info-grid { grid-template-columns: 1fr; }
  .cart-label { display: none; }
  .checkout-header-inner { height: 58px; }
  .checkout-header .menu-brand span { display: none; }
  .checkout-layout { padding-top: 22px; }
  .checkout-step { padding: 17px 16px; }
  .tracking-card-head { padding: 18px; }
  .tracking-progress, .tracking-section { padding: 18px; }
  .tracking-timeline { overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  .timeline-step { min-width: 78px; }
  .tracking-timeline::before { left: 34px; right: 34px; }
  .tracking-success-banner { flex-wrap: wrap; }
  .tracking-success-banner .btn { width: 100%; }
  .install-steps li span:last-child { display: none; }
}
@media (max-width: 480px) {
  .restaurant-hero-content { flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 320px; }
  .restaurant-logo img { width: 62px; height: 62px; }
  .menu-topbar-inner { height: 58px; }
  .menu-toolbar { top: 58px; }
  .featured-section, .menu-category { margin-bottom: 34px; }
  .dish { grid-template-columns: 106px minmax(0, 1fr); }
  .dish-media { min-height: 124px; }
  .dish-heading h3 { font-size: .9rem; }
  .dish-description { font-size: .71rem; }
  .prep-time { display: none; }
  .category-count { display: none; }
  .cart-bar { bottom: 10px; }
  .checkout-header-inner .secure-note { display: none; }
  .tracking-card-head h1 { font-size: 1.5rem; }
}

/* Campañas promocionales configurables por restaurante */
.campaign-banner-section{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;margin-top:24px;margin-bottom:8px}
.campaign-banner{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:flex-end;min-height:220px;border-radius:20px;background:#30251f;color:#fff;box-shadow:0 8px 26px rgba(35,25,18,.12)}
.campaign-banner>img{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover}
.campaign-banner-shade{position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(20,14,11,.82),rgba(20,14,11,.24))}
.campaign-banner-copy{padding:clamp(20px,4vw,32px);max-width:620px}
.campaign-banner-copy h2{margin:0 0 8px;color:#fff;font-size:clamp(1.35rem,3vw,2rem);line-height:1.15}
.campaign-banner-copy p{margin:0 0 16px;color:rgba(255,255,255,.94);max-width:52ch}
.campaign-banner-copy .btn{display:inline-flex;text-decoration:none}
@media(max-width:600px){.campaign-banner-section{gap:12px;margin-top:16px}.campaign-banner{min-height:190px;border-radius:16px}.campaign-banner-copy{padding:20px}}
