:root {
  --radius:   12px;
  --radius-sm: 6px;
  --gap:      16px;
  --gap-sm:    8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input[type="radio"] { accent-color: var(--accent); }
select { font: inherit; }

body {
  background: var(--bg-outer);
  font-family: var(--font-body);
  color: var(--text);
  display: flex;
  justify-content: center;
}

#app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-sm) var(--gap);
  height: 56px;
}

.header-logo {
  font-family: var(--font-title);
  font-size: 28px;
  letter-spacing: 1px;
  color: var(--text);
}

.header-logo span { color: var(--accent); }

.header-actions { display: flex; gap: var(--gap-sm); align-items: center; }

.btn-promo {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.btn-cart {
  position: relative;
  font-size: 22px;
  padding: 4px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gap);
  gap: 4px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 38px;
  line-height: 1;
  color: #fff;
}

.hero-sub {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
}

.modalidad {
  padding: var(--gap) var(--gap) var(--gap-sm);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: var(--gap-sm);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

.radio-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.categories {
  position: sticky;
  top: 56px;
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: var(--gap-sm);
  padding: var(--gap-sm) var(--gap);
  overflow-x: auto;
  scrollbar-width: none;
}

.categories::-webkit-scrollbar { display: none; }

.cat-tag {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: background .2s, color .2s, border-color .2s;
}

.cat-tag.active,
.cat-tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.menu-section { padding: var(--gap); }

.section-title {
  font-family: var(--font-title);
  font-size: 28px;
  letter-spacing: .5px;
  padding-left: 12px;
  margin-bottom: var(--gap);
  color: var(--color-section-title, var(--text));
  border-left: 4px solid var(--accent);
}

.product-card {
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
  padding: var(--gap) 0;
  border-bottom: 1px solid var(--border);
}

.product-card:last-of-type { border-bottom: none; }

.product-thumb {
  width: 90px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.product-thumb img {
  width: 100%;
  height: auto;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--gap-sm);
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.product-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.tag-veggie  { background: var(--tag-veggie); color: #7fff7f; }
.tag-sintagc { background: var(--tag-sintagg); color: #7fd4ff; }

.qty-controls {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background .15s;
}

.qty-btn:hover { background: var(--accent); border-color: var(--accent); }

.qty-display {
  font-size: 15px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.maps-banner {
  padding: var(--gap);
  border-top: 1px solid var(--border);
}

.maps-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--gap-sm);
}

.maps-frame {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.maps-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--gap-sm);
  font-size: 13px;
  color: var(--text-muted);
}

.rating-row .stars { color: #f4c542; font-size: 15px; }

.social-cta {
  padding: var(--gap);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: var(--gap-sm);
  padding: var(--gap-sm) var(--gap) var(--gap);
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  flex: 1;
  justify-content: center;
}

.social-link svg { width: 16px; height: 16px; fill: currentColor; }

.social-ig { background: #833ab4; color: #fff; }
.social-fb { background: #1877f2; color: #fff; }
.social-wa { background: #25d366; color: #fff; }

.site-footer {
  padding: var(--gap);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.site-footer a { color: var(--accent); }

.btn-whatsapp {
  width: 100%;
  background: #25d366;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--gap);
  transition: background .2s;
}

.btn-whatsapp svg { width: 20px; height: 20px; fill: #fff; }
.btn-whatsapp:hover { background: #1aad52; }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.7);
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--bg-drawer);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.modal-img img { width: 100%; max-height: 180px; object-fit: cover; }

.modal-body { padding: var(--gap); }

.modal-title {
  font-family: var(--font-title);
  font-size: 26px;
  margin-bottom: var(--gap-sm);
}

.modal-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--gap);
}

.btn-modal-close {
  width: 100%;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.cart-drawer {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.cart-drawer.open { pointer-events: auto; visibility: visible; }

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}

.cart-panel {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: var(--bg-drawer);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap);
  border-bottom: 1px solid var(--border);
}

.cart-header h2 { font-size: 18px; font-weight: 700; }

.btn-cart-close { font-size: 20px; color: var(--text-muted); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--gap-sm) var(--gap);
}

.cart-empty { color: var(--text-muted); font-size: 14px; text-align: center; padding: var(--gap) 0; }

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  padding: var(--gap-sm) 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-left { flex: 1; display: flex; flex-direction: column; gap: 4px; }

.cart-item-name { font-size: 14px; font-weight: 500; }

.cart-item-variant {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  font-size: 12px;
  cursor: pointer;
}

.cart-item-price { font-size: 14px; font-weight: 700; color: var(--accent); white-space: nowrap; }

.btn-item-remove { font-size: 16px; color: var(--text-muted); padding: 2px 4px; }
.btn-item-remove:hover { color: var(--accent); }

.payment-section {
  padding: var(--gap);
  border-top: 1px solid var(--border);
}

.cart-footer {
  padding: var(--gap);
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--gap-sm);
}

.cart-total span:last-child { color: var(--accent); font-size: 20px; }



