:root {
  --rojo: #c81e1e;
  --rojo-oscuro: #8f1414;
  --negro: #1a0606;
  --naranja: #f28a2e;
  --amarillo: #f4c542;
  --crema: #fbf3e6;
  --gris: #8a8a8a;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--rojo);
  color: var(--crema);
  padding-bottom: 40px;
}

/* ---------- Header / Portada ---------- */
.hero {
  background: linear-gradient(160deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
  color: var(--crema);
  padding: 18px 16px 22px;
  border-radius: 0 0 24px 24px;
  position: relative;
}

.mesa-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}

.mesa-banner .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amarillo);
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.hero-logo .flame {
  font-size: 34px;
  line-height: 1;
}

.hero-logo h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-tagline {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--crema);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.search-box input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 15px;
  background: transparent;
  color: var(--negro);
}

.search-box .icon { font-size: 16px; opacity: 0.6; }

/* ---------- Category nav ---------- */
.cat-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 16px 4px;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e8ddc9;
  font-size: 13px;
  font-weight: 600;
  color: var(--negro);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}

.cat-chip.active,
.cat-chip:hover {
  background: var(--rojo);
  color: var(--crema);
  border-color: var(--rojo);
}

/* ---------- Promos ---------- */
.promos {
  padding: 16px 16px 4px;
}

.promo-card {
  background: linear-gradient(120deg, var(--amarillo), var(--naranja));
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--negro);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.promo-card .promo-title { font-weight: 800; font-size: 15px; }
.promo-card .promo-desc { font-size: 12.5px; opacity: 0.85; margin-top: 2px; }
.promo-card .promo-price { font-weight: 800; font-size: 17px; white-space: nowrap; }

/* ---------- Menu sections ---------- */
.menu-section {
  padding: 22px 16px 4px;
  scroll-margin-top: 12px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-title .icon { font-size: 20px; }

.dish-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .dish-grid { grid-template-columns: 1fr 1fr; }
}

.dish-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  gap: 12px;
  border: 1px solid #efe6d6;
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}

.dish-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.dish-card.agotado {
  opacity: 0.5;
  cursor: default;
  filter: grayscale(0.6);
}

.dish-photo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--naranja), var(--amarillo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.dish-info { flex: 1; min-width: 0; }

.dish-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.dish-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--negro);
}

.dish-price {
  font-weight: 800;
  font-size: 14px;
  color: var(--rojo);
  white-space: nowrap;
}

.dish-desc {
  font-size: 12.5px;
  color: #6b6156;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badges { display: flex; gap: 6px; margin-top: 6px; }

.badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.badge.picante { background: #fde3df; color: #c8341e; }
.badge.agotado-badge { background: #eee; color: #666; }
.badge.variantes { background: #fdeecd; color: #a5670c; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
}

.modal-overlay.open { display: flex; }

@media (min-width: 560px) {
  .modal-overlay { align-items: center; }
}

.modal {
  background: var(--crema);
  width: 100%;
  max-width: 480px;
  border-radius: 20px 20px 0 0;
  padding: 22px 20px 26px;
  max-height: 88vh;
  overflow-y: auto;
  animation: slideUp .2s ease-out;
}

@media (min-width: 560px) {
  .modal { border-radius: 20px; }
}

@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-photo {
  width: 100%;
  height: 140px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--naranja), var(--amarillo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  margin-bottom: 14px;
}

.modal-close {
  float: right;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 15px;
  cursor: pointer;
}

.modal h2 { font-size: 20px; margin-bottom: 8px; color: var(--negro); }
.modal .modal-desc { font-size: 14px; color: #6b6156; margin-bottom: 14px; line-height: 1.4; }

.variant-list { display: flex; flex-direction: column; gap: 8px; }

.variant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid #efe6d6;
}

.variant-row .label { font-size: 13.5px; font-weight: 600; color: var(--negro); }
.variant-row .price { font-weight: 800; color: var(--rojo); }

.single-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--rojo);
}

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: rgba(251, 243, 230, 0.75);
  font-size: 14px;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  font-size: 12px;
  color: rgba(251, 243, 230, 0.6);
  padding: 26px 16px 0;
}
