﻿:root {
  --bg: #fbf7f8;
  --card: #ffffff;
  --text: #231f20;
  --muted: #8a8280;
  --border: #f0e6ea;
  --primary: #e8367c;
  --primary-dark: #9e1c52;
  --black: #1c0d14;
  --gold: #d4a017;
  --green: #25d366;
  --green-dark: #1eb958;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(120, 20, 70, .1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.28);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.hidden { display: none !important; }
button { font-family: inherit; }

/* ---------- Hero ---------- */
header {
  background: linear-gradient(160deg, #1c0d14 0%, #7c1444 48%, #e8367c 100%);
  color: #fff;
  padding: 26px 18px 0;
  border-radius: 0 0 26px 26px;
}
.hero-logo {
  width: 88px; height: 88px; object-fit: contain;
  background: #fff; border-radius: 50%; padding: 6px;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  border: 3px solid rgba(255,255,255,.35);
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
}
.hero-badge {
  display: inline-block; background: rgba(212,160,23,.18);
  border: 1px solid rgba(212,160,23,.55);
  color: #ffd66b;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .4px;
}
.hero h1 { margin: 14px 0 4px; font-size: 34px; font-weight: 800; letter-spacing: .5px; }
.hero-sub { margin: 0 0 18px; font-size: 14.5px; opacity: .92; }
.hero-actions { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; }
.hero-phone {
  background: #fff; color: var(--primary-dark);
  font-weight: 800; font-size: 14.5px; text-decoration: none;
  padding: 11px 18px; border-radius: 14px;
  box-shadow: var(--shadow);
}
.hero-wa {
  background: #25d366; color: #fff;
  font-weight: 800; font-size: 14.5px; text-decoration: none;
  padding: 11px 18px; border-radius: 14px;
  box-shadow: 0 4px 12px rgba(37,211,102,.4);
}
.hero-cart {
  position: relative; width: 46px; height: 46px; border-radius: 14px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-size: 20px; cursor: pointer;
}
.badge {
  position: absolute; top: -6px; right: -6px; background: var(--gold); color: #3a2800;
  font-size: 12px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* ---------- Category chips ---------- */
nav#cats {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  padding: 12px 10px 4px;
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
nav#cats::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1.5px solid var(--border); background: var(--card);
  color: var(--text); font-size: 13px; font-weight: 700;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  transition: all .18s;
}
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow); }

main { padding: 8px 14px 150px; max-width: 660px; margin: 0 auto; }

/* ---------- Tarjeta de fidelidad ---------- */
.loyalty-card {
  margin-top: 16px;
  background: linear-gradient(135deg, #1c0d14, #40162f 60%, #5c2046);
  color: #fff; border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); border: 1px solid rgba(212,160,23,.4);
}
.lc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lc-title { font-weight: 800; font-size: 15px; }
.lc-status { font-size: 12.5px; color: #ffd66b; margin-top: 3px; line-height: 1.4; }
.lc-count {
  flex: 0 0 auto; text-align: center;
  background: rgba(255,255,255,.1); border-radius: 14px; padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.14);
}
.lc-count b { font-size: 20px; display: block; line-height: 1.05; color: var(--gold); }
.lc-count span { font-size: 10.5px; opacity: .85; }
.lc-dots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 14px; }
.lc-dot {
  aspect-ratio: 1; border-radius: 50%;
  background: rgba(255,255,255,.13);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: rgba(255,255,255,.55);
}
.lc-dot.filled { background: var(--gold); color: #3a2800; }
.lc-dot.milestone { border: 1.5px solid var(--gold); }
.lc-foot {
  margin-top: 12px; font-size: 11.5px; color: #ffd66b;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; line-height: 1.5;
}
.lc-foot span { color: rgba(255,255,255,.6); }

/* ---------- Section titles ---------- */
.cat-title {
  font-size: 17px; font-weight: 800; margin: 22px 2px 12px;
  display: flex; align-items: center; gap: 8px;
}
.cat-title::after { content: ""; flex: 1; height: 1.5px; background: var(--border); }

/* ---------- Featured (lo más pedido) ---------- */
.featured-scroll {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 2px 2px 10px; scrollbar-width: none;
}
.featured-scroll::-webkit-scrollbar { display: none; }
.featured {
  flex: 0 0 158px; position: relative; overflow: hidden;
  border-radius: var(--radius); color: #fff;
  padding: 14px; min-height: 150px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between;
}
.featured .f-star {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.22); border-radius: 999px;
  font-size: 11px; font-weight: 800; padding: 4px 8px;
}
.featured .f-emoji { font-size: 36px; line-height: 1; }
.featured .f-name { font-weight: 800; font-size: 14px; line-height: 1.25; margin-top: 8px; }
.featured .f-price { font-weight: 800; font-size: 15px; margin-top: 6px; }
.featured .f-add { margin-top: 8px; }
.featured .f-add .add-btn { background: rgba(255,255,255,.28); color: #fff; width: 38px; height: 38px; border-radius: 12px; }
.featured .f-add .stepper { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.featured .f-add .stepper button { color: #fff; }
.featured .f-add .stepper span { color: #fff; }

/* ---------- Product items ---------- */
.items { display: flex; flex-direction: column; gap: 10px; }
.item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; display: flex; gap: 12px; align-items: center;
  box-shadow: var(--shadow);
}
.item-icon {
  width: 54px; height: 54px; border-radius: 15px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; flex: 0 0 auto;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.12);
}
.item-info { flex: 1; min-width: 0; }
.item-name { font-weight: 800; font-size: 14.5px; }
.item-desc { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.item-price { font-weight: 800; font-size: 15px; color: var(--primary); margin-top: 5px; }

.add-area { flex: 0 0 auto; }
.item.off, .featured.off { opacity: .55; filter: grayscale(.4); }
.soldout {
  display: inline-flex; align-items: center; white-space: nowrap;
  background: #eee; color: #999; border-radius: 13px;
  padding: 0 12px; height: 44px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .2px;
}
.add-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; border-radius: 13px;
  width: 44px; height: 44px; font-size: 24px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(232,54,124,.35);
  transition: transform .12s;
}
.add-btn:active { transform: scale(.92); }
.add-btn.variant { font-size: 14px; width: auto; padding: 0 14px; border-radius: 13px; }
.stepper {
  display: flex; align-items: center; border: 1.5px solid var(--primary);
  border-radius: 13px; overflow: hidden; background: #fff;
}
.stepper button {
  width: 38px; height: 42px; border: none; background: transparent; color: var(--primary);
  font-size: 20px; font-weight: 800; cursor: pointer;
}
.stepper span { min-width: 32px; text-align: center; font-weight: 800; }

/* ---------- Floating cart ---------- */
.float-cart {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45;
  background: #140910; color: #fff; border-radius: 18px; padding: 12px 14px 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-lg); cursor: pointer;
}
.float-cart .fc-left { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.float-cart .fc-icon {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.float-cart .fc-right { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.float-cart .go {
  background: var(--green); color: #fff; border: none; border-radius: 12px;
  padding: 10px 18px; font-weight: 800; font-size: 14px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(37,211,102,.4);
}

/* ---------- Drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(20,10,10,.5); z-index: 60;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100%);
  background: var(--bg); z-index: 70; transform: translateX(100%); transition: transform .28s;
  display: flex; flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer-head {
  padding: 16px; background: var(--card); display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--border);
}
.drawer-head b { font-size: 17px; }
.dh-right { display: flex; align-items: center; gap: 8px; }
.clear-btn {
  border: 1.5px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 800; cursor: pointer;
}
.close-btn { border: none; background: #f3ece2; border-radius: 10px; width: 36px; height: 36px; font-size: 17px; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-line {
  display: flex; align-items: center; gap: 10px; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px;
}
.item-icon.mini { width: 42px; height: 42px; border-radius: 12px; font-size: 16px; }
.cart-line .cl-main { flex: 1; min-width: 0; }
.cart-line .cl-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cart-line .cl-name { font-weight: 800; font-size: 13.5px; line-height: 1.3; }
.cart-line .cl-sub { font-weight: 800; font-size: 13.5px; color: var(--primary); white-space: nowrap; }
.cart-line .cl-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cart-line .cl-price { font-size: 12px; color: var(--muted); font-weight: 700; }
.cl-controls { display: flex; align-items: center; gap: 8px; }
.cart-line .stepper { transform: scale(.88); transform-origin: center; }
.cl-remove {
  width: 38px; height: 38px; border-radius: 11px; border: none; cursor: pointer;
  background: #fdeaf2; color: var(--primary); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.cl-remove:active { transform: scale(.92); }
.drawer-foot { padding: 16px; background: var(--card); border-top: 1px solid var(--border); }
.total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.btn {
  width: 100%; border: none; border-radius: 14px; padding: 16px; font-size: 16px;
  font-weight: 800; cursor: pointer;
  transition: transform .12s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 6px 16px rgba(232,54,124,.35); }
.btn-green { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; box-shadow: 0 6px 16px rgba(37,211,102,.4); }

/* ---------- Checkout ---------- */
.checkout { max-width: 560px; margin: 0 auto; padding: 16px 16px 150px; }
.back-link {
  background: none; border: none; color: var(--primary); font-weight: 800; font-size: 15px;
  cursor: pointer; padding: 4px 0 10px; display: inline-flex; align-items: center; gap: 6px;
}
.checkout h2 { margin: 6px 0 16px; font-size: 21px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px; border: 1.5px solid var(--border); border-radius: 14px;
  font-size: 15px; font-family: inherit; background: var(--card); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,54,124,.12); }
.field textarea { resize: vertical; min-height: 70px; }
.seg { display: flex; gap: 8px; }
.seg .opt {
  flex: 1; text-align: center; padding: 13px 8px; border: 1.5px solid var(--border);
  border-radius: 14px; font-size: 14px; font-weight: 800; background: var(--card); cursor: pointer;
  transition: all .15s;
}
.seg .opt.active { border-color: var(--primary); color: var(--primary); background: #fdeaf2; box-shadow: var(--shadow); }
.delivery-note {
  margin-top: 10px; padding: 12px 14px; border-radius: 14px;
  background: #fff7e6; border: 1.5px solid #ffe1a1; color: #7a5a10;
  font-size: 13px; line-height: 1.45;
}

.order-sum {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; margin: 18px 0;
}
.order-sum h3 { margin: 0 0 10px; font-size: 15px; }
.order-sum .os-line { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; gap: 10px; }
.order-sum .os-total {
  border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 10px;
  font-weight: 800; font-size: 16px; display: flex; justify-content: space-between;
}
.edit-order {
  width: 100%; margin-top: 12px; padding: 12px; border: 1.5px solid var(--border);
  border-radius: 12px; background: #fff; color: var(--muted);
  font-size: 13.5px; font-weight: 800; cursor: pointer;
}
.edit-order:active { transform: scale(.98); }
.wa-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

/* ---------- Variant sheet ---------- */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--bg); border-radius: 22px 22px 0 0; padding: 18px 18px 30px;
  transform: translateY(100%); transition: transform .28s; max-height: 80vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.sheet.show { transform: translateY(0); }
.sheet h3 { margin: 0 0 4px; }
.sheet .sheet-desc { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.sheet .variant-opt {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px; background: var(--card); border: 1.5px solid var(--border);
  border-radius: 14px; margin-bottom: 8px; cursor: pointer; font-weight: 800; font-size: 15px;
}
.sheet .variant-opt.active { border-color: var(--primary); color: var(--primary); background: #fdeaf2; }
.pkg-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; background: var(--card); border: 1.5px solid var(--border);
  border-radius: 14px; margin-bottom: 8px; cursor: pointer; font-weight: 800; font-size: 14.5px;
}
.pkg-opt.active { border-color: var(--primary); background: #fdeaf2; }
.pkg-check {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d8ccd0;
  font-size: 13px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.pkg-opt.active .pkg-check { border-color: var(--primary); background: var(--primary); color: #fff; }
.pkg-label { flex: 1; }
.pkg-legend { font-size: 12px; color: var(--gold); font-weight: 800; white-space: nowrap; }
.pkg-count { text-align: center; font-size: 13.5px; font-weight: 800; color: var(--muted); margin: 4px 0 14px; }
.pkg-group-title{font-weight:900;color:var(--text);padding:12px 4px 6px;border-bottom:2px solid var(--primary);margin-top:8px}
.sauce-field{padding:16px;border:1px solid #eadde2;border-radius:18px;background:#fff8fb}
.sauce-rule{font-size:13px;line-height:1.45;color:var(--muted);margin:6px 0 12px}
.sauce-card{padding:12px 0;border-top:1px solid #eadde2}
.sauce-card:first-child{border-top:0}
.sauce-card>b{display:block;font-size:14px;margin-bottom:8px;color:var(--text)}
.sauce-options{display:flex;gap:7px;flex-wrap:wrap}
.sauce-option{border:1.5px solid #d8cbd0;border-radius:999px;background:#fff;padding:8px 11px;font:inherit;font-size:12px;font-weight:800;color:var(--text);cursor:pointer}
.sauce-option.active{border-color:var(--primary);background:var(--primary);color:#fff}
.sauce-empty{font-size:13px;color:var(--muted);padding:8px 0}
.alga-field{background:#fffdf7;border-color:#eadfbd}
.custom-backdrop{position:fixed;inset:0;z-index:110;background:rgba(17,13,17,.72);display:flex;align-items:center;justify-content:center;padding:18px}
.custom-backdrop.hidden{display:none!important}
.custom-card{width:min(520px,calc(100vw - 20px));max-height:min(92dvh,850px);display:flex;flex-direction:column;overflow:hidden;border-radius:24px;background:#fff;box-shadow:0 22px 65px rgba(24,7,18,.35)}
.custom-banner{height:92px;background:linear-gradient(130deg,#24121d,var(--primary));color:#fff;display:flex;align-items:center;justify-content:center;gap:10px;font-size:40px}
.custom-banner span{font-size:15px;letter-spacing:1.5px;font-weight:800}
.custom-content{overflow-y:auto;overscroll-behavior:contain;padding:18px 18px 0;text-align:center}
.custom-content h2{margin:0 0 4px;font-size:24px;color:#321322}
.custom-content>p{margin:0 0 15px;font-weight:800;color:var(--primary)}
.custom-section{padding:14px 0;border-top:1px solid #f3e5eb;text-align:left}
.custom-section h3{margin:0 0 12px;font-size:15px;font-weight:800;color:#2c1721}
.custom-section h3 small{display:block;margin-top:4px;font-size:11px;font-weight:600;color:#8b7480}
.custom-select{width:100%;padding:13px 10px;border:1.5px solid #e9c7d6;border-radius:12px;font:600 13px Manrope,Arial,sans-serif;background:#fff7fa;color:#3a1728}
.custom-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.custom-options label{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:12px 9px;background:#fff8fb;border:1.5px solid #f2d9e4;border-radius:13px;font-size:12px;font-weight:750;cursor:pointer}
.custom-options label:has(input:checked){background:#ffe8f1;border-color:var(--primary)}
.custom-options input{accent-color:var(--primary);width:17px;height:17px;margin:0}
.custom-options span{flex:1}.custom-options b{color:var(--primary-dark);white-space:nowrap}
.custom-bottom{position:sticky;bottom:0;z-index:2;background:#fff;border-top:1px solid #f3e5eb;padding:12px 0 max(12px,env(safe-area-inset-bottom));box-shadow:0 -8px 18px rgba(255,255,255,.95)}
.custom-bottom>span{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700;margin-bottom:9px}
.custom-bottom strong{font-size:24px;color:var(--primary)}
.custom-bottom .btn{width:100%;padding:13px;font-size:14px}
.custom-cancel{width:100%;margin-top:6px;padding:13px;border:1px solid #e9bfd0;background:#fff;color:#9e1c52;border-radius:14px;font-size:15px;font-weight:800}
.cl-detail{margin:6px 0;padding:6px 8px;border-radius:9px;background:#fff0f6;border:1px solid #eab4ca;color:#9e1c52;font-size:11px;font-weight:800;line-height:1.4}
@media(max-width:370px){.custom-options{grid-template-columns:1fr}}
.btn:disabled { opacity: .45; cursor: not-allowed; }

.empty-cart { text-align: center; color: var(--muted); padding: 40px 0; }
.empty-cart .big { font-size: 42px; margin-bottom: 10px; }

footer {
  text-align: center; font-size: 12px; color: var(--muted); padding: 18px 14px 90px;
  line-height: 1.6;
}
footer .allergy { display: block; color: #b3570e; font-weight: 700; margin-top: 4px; }
footer .card-link {
  display: inline-block; margin-top: 10px; color: var(--primary);
  font-weight: 800; text-decoration: none; border: 1.5px solid var(--primary);
  border-radius: 999px; padding: 8px 16px; font-size: 13px;
}

/* ---------- Barra de estado / horario ---------- */
.status-bar {
  margin: 14px 0 2px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  color: #fff; border-radius: 999px; padding: 7px 14px;
  font-size: 12.5px; font-weight: 700;
}
.status-bar::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: #2ecc71; box-shadow: 0 0 8px #2ecc71;
}
.status-bar.closed::before { background: #ffb03a; box-shadow: 0 0 8px #ffb03a; }

/* ---------- Buscador ---------- */
.search-wrap { padding: 10px 0 4px; }
.search {
  width: 100%; border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.14); color: #fff;
  border-radius: 999px; padding: 11px 16px; font-size: 14px; font-family: inherit;
  outline: none;
}
.search::placeholder { color: rgba(255,255,255,.7); }
.search::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- Reordenar último pedido ---------- */
.repeat-btn {
  display: block; margin: 14px auto 0; padding: 12px 18px;
  border: 1.5px solid var(--primary); background: #fdeaf2; color: var(--primary);
  border-radius: 999px; font-weight: 800; font-size: 13.5px; cursor: pointer;
}
.repeat-btn:active { transform: scale(.98); }

/* ---------- Fotos de platillos ---------- */
.item-icon.photo {
  background-size: cover; background-position: center; background-repeat: no-repeat;
  box-shadow: none;
}
.featured .f-photo {
  width: 46px; height: 46px; border-radius: 50%;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border: 2px solid rgba(255,255,255,.4);
}

/* ---------- Reporte de ventas ---------- */
.report {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg); padding: 18px 18px 40px;
  transform: translateY(100%); transition: transform .28s;
  overflow-y: auto;
}
.report.show { transform: translateY(0); }
.report-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 17px; margin-bottom: 14px;
}
.rep-stats { display: flex; gap: 10px; margin-bottom: 14px; }
.rep-stat {
  flex: 1; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px; text-align: center;
}
.rep-stat b { display: block; font-size: 18px; }
.rep-stat span { font-size: 11px; color: var(--muted); }
.rep-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.rep-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px;
}
.rep-folio { font-weight: 800; color: var(--primary); flex: 0 0 auto; }
.rep-name { flex: 1; font-size: 12.5px; min-width: 0; }
.rep-name b { display: block; }

/* ---------- Experiencia moderna 2026 ---------- */
:root {
  --bg: #f7f3ef;
  --card: rgba(255,255,255,.94);
  --text: #241f20;
  --muted: #756d6f;
  --border: #e9dfd7;
  --primary: #c94b72;
  --primary-dark: #8f294d;
  --black: #171214;
  --gold: #c6a15b;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(52,38,42,.08);
  --shadow-lg: 0 24px 70px rgba(20,13,16,.28);
}
body { background: radial-gradient(circle at 8% 4%, rgba(201,75,114,.08), transparent 28rem), radial-gradient(circle at 92% 18%, rgba(198,161,91,.10), transparent 32rem), linear-gradient(180deg, #fbf9f6, #f5f0eb); }
header { padding: 0; border-radius: 0; background: radial-gradient(circle at 80% 10%, rgba(201,75,114,.22), transparent 24rem), linear-gradient(135deg, #151113 0%, #241a1e 56%, #302125 100%); border-bottom: 1px solid rgba(198,161,91,.42); box-shadow: 0 12px 36px rgba(30,20,24,.16); }
.hero { max-width: 960px; margin: 0 auto; padding: 34px 22px 18px; text-align: center; }
.hero-logo { width: 96px; height: 96px; border: 1px solid rgba(198,161,91,.75); box-shadow: 0 16px 42px rgba(0,0,0,.34); }
.hero-badge { display: block; width: max-content; max-width: 100%; margin: 2px auto 0; background: rgba(198,161,91,.10); border-color: rgba(198,161,91,.42); color: #e2c481; }
.hero h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.05; letter-spacing: -.8px; }
.hero-sub { color: #ded4d7; font-size: 15px; }
.hero-actions { justify-content: center; flex-wrap: wrap; }
.hero-phone, .hero-wa { background: rgba(255,255,255,.96); color: #34262b; border: 1px solid rgba(198,161,91,.45); box-shadow: none; }
.hero-cart { border-color: rgba(198,161,91,.5); background: rgba(198,161,91,.12); }
.status-bar { display: flex; width: max-content; max-width: calc(100% - 32px); margin: 0 auto 10px; background: rgba(255,255,255,.08); border-color: rgba(198,161,91,.35); }
.search-wrap { max-width: 720px; margin: 0 auto; padding: 6px 18px 12px; }
.search { background: rgba(255,255,255,.10); border-color: rgba(198,161,91,.34); }
nav#cats { top: 0; padding: 12px max(14px, calc((100vw - 960px)/2)); background: rgba(250,247,243,.94); border-bottom: 1px solid rgba(198,161,91,.22); backdrop-filter: blur(14px); }
.chip { border-color: #e4d9d1; box-shadow: 0 3px 12px rgba(60,44,49,.04); }
.chip.active { background: #21191c; border-color: #21191c; color: #f2d99d; box-shadow: 0 7px 20px rgba(30,20,24,.18); }
main { max-width: 960px; padding: 16px 18px 160px; }
.loyalty-card { background: linear-gradient(135deg, #1b1517, #302126); border-color: rgba(198,161,91,.52); box-shadow: 0 18px 44px rgba(29,20,23,.16); }
.cat-title { font-size: 20px; margin-top: 28px; }
.cat-title::after { background: linear-gradient(90deg, rgba(198,161,91,.55), transparent); }
.items { gap: 12px; }
.item { min-height: 92px; padding: 15px; border-color: rgba(198,161,91,.20); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.item:hover { transform: translateY(-2px); border-color: rgba(198,161,91,.52); box-shadow: 0 15px 34px rgba(52,38,42,.12); }
.item-icon { border-radius: 18px; }
.item-name { font-size: 15px; }
.item-price { color: var(--primary-dark); }
.featured { background: linear-gradient(145deg, #21191c, #3a2930) !important; border: 1px solid rgba(198,161,91,.42); }
.featured .f-star { background: rgba(198,161,91,.16); color: #efd89f; }
.add-btn, .btn-primary { background: linear-gradient(135deg, #d35f82, #9a3155); box-shadow: 0 7px 18px rgba(154,49,85,.24); }
.float-cart { left: max(12px, calc((100vw - 700px)/2)); right: max(12px, calc((100vw - 700px)/2)); background: linear-gradient(135deg, #171214, #2b2024); border: 1px solid rgba(198,161,91,.58); }
.drawer, .sheet { background: #f8f4f0; }
.drawer-head, .drawer-foot { background: rgba(255,255,255,.96); }
.checkout { max-width: 680px; padding-top: 28px; }
.checkout h2 { font-size: 26px; }
.field input, .field select, .field textarea, .order-sum { border-color: #e5d9d1; box-shadow: 0 6px 20px rgba(52,38,42,.04); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(198,161,91,.14); }
.seg .opt.active, .sheet .variant-opt.active, .pkg-opt.active { background: #fff4f7; border-color: var(--primary); }
footer { color: #766c6f; }
footer .card-link { color: #7e6240; border-color: rgba(198,161,91,.75); background: rgba(255,255,255,.55); }
@media (min-width: 760px) {
  .items { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .featured { flex-basis: 210px; min-height: 175px; }
  .sheet { left: 50%; right: auto; width: min(620px, calc(100% - 32px)); transform: translate(-50%, 110%); border-radius: 24px 24px 0 0; }
  .sheet.show { transform: translate(-50%, 0); }
}
@media (max-width: 480px) {
  .hero { padding-top: 26px; }
  .hero-logo { width: 82px; height: 82px; }
  .hero h1 { margin-top: 12px; }
  .item { padding: 12px; }
  .item-icon { width: 50px; height: 50px; }
}
