/* El Trompo Sagrado — Menú a la Carta */

:root {
  --bg-0: #0a0604;
  --bg-1: #140a06;
  --bg-2: #1f120a;
  --ink: #f6e8c8;
  --ink-soft: #d9c69b;
  --ink-mute: #9a8665;
  --gold: #f5b333;
  --ember: #ff7a18;
  --red: #c4202a;
  --red-deep: #8a0d18;
  --rule: rgba(245, 179, 51, 0.22);
  --rule-soft: rgba(245, 179, 51, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: "Cormorant Garamond", "Cormorant", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}



body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% 110%, rgba(196, 32, 42, 0.32), transparent 60%),
    radial-gradient(900px 400px at 50% 0%, rgba(245, 179, 51, 0.05), transparent 70%),
    linear-gradient(180deg, #0a0604 0%, #150906 50%, #0a0604 100%);
}

/* ========= Background fire layers ========= */
.stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-bottom {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -20%;
  height: 70%;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 122, 24, 0.45) 0%, rgba(196, 32, 42, 0.32) 25%, transparent 60%);
  filter: blur(20px);
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.85; transform: translateY(0) scale(1); }
  50% { opacity: 1; transform: translateY(-10px) scale(1.03); }
}

/* Procedural fire — canvas-driven for a smoother, more alive look */
.fire-canvas {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 50vh;
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.55) 100%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNDAiIGhlaWdodD0iMjQwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC45IiBudW1PY3RhdmVzPSIyIi8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPSIwIDAgMCAwIDEgMCAwIDAgMCAwLjg1IDAgMCAwIDAgMC42IDAgMCAwIDAuNCAwIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIi8+PC9zdmc+");
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(2.6px);
}

/* ========= Page chrome ========= */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 40px 120px;
}

@media (max-width: 720px) {
  .shell { padding: 32px 20px 80px; }
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 36px;
}

.logo {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(255, 90, 24, 0.45));
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.eyebrow {
  margin-top: 14px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ember);
  vertical-align: middle;
  margin: 0 14px 3px;
  box-shadow: 0 0 12px var(--ember);
}

.address {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* Tabs */
.tabs-wrap {
  display: flex;
  justify-content: center;
  margin: 40px 0 8px;
  padding: 4px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
/* When content overflows centered flex parent, left edge gets clipped.
   Push to flex-start so scroll reaches first pill. */
@supports (scroll-snap-type: x) {
  .tabs-wrap { scroll-snap-type: x proximity; }
}
.tabs-wrap > * { scroll-snap-align: center; }
.tabs-wrap::-webkit-scrollbar { display: none; }

.tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  position: relative;
  width: fit-content;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px;
  background: rgba(20, 10, 6, 0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 50px rgba(196, 32, 42, 0.18), inset 0 1px 0 rgba(245, 179, 51, 0.1);
}

.tab {
  position: relative;
  z-index: 2;
  padding: 14px 32px;
  font-family: "Bebas Neue", "Anton", "Oswald", sans-serif;
  letter-spacing: 0.18em;
  font-size: 18px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab[aria-selected="true"] {
  color: #1a0a06;
}

.tab-pill {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 100px;
  height: calc(100% - 12px);
  border-radius: 999px;
  background: linear-gradient(180deg, #f7c34a 0%, #e08015 50%, #b8131c 100%);
  box-shadow:
    0 6px 20px rgba(255, 122, 24, 0.55),
    inset 0 1px 0 rgba(255, 220, 160, 0.6),
    inset 0 -2px 4px rgba(80, 10, 5, 0.5);
  transition: left 0.45s cubic-bezier(0.6, 0.1, 0.2, 1),
              top 0.45s cubic-bezier(0.6, 0.1, 0.2, 1),
              width 0.45s cubic-bezier(0.6, 0.1, 0.2, 1),
              height 0.45s cubic-bezier(0.6, 0.1, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

/* Mobile: grid 2×2 — pills adjust to width without shrinking text too much */
@media (max-width: 640px) {
  .tabs-wrap {
    padding: 4px 12px;
    overflow-x: visible;
  }
  .tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 6px;
    width: 100%;
    max-width: 480px;
    border-radius: 28px;
  }
  .tab {
    padding: 11px 8px;
    font-size: 14px;
    letter-spacing: 0.08em;
    width: 100%;
    text-align: center;
  }
  /* 4th pill alone on row 2 — span full row for balance */
  .tab:nth-child(4):last-child {
    grid-column: 1 / -1;
  }
}

.section-sub {
  text-align: center;
  font-style: italic;
  color: var(--ink-mute);
  margin-top: 10px;
  font-size: 17px;
  letter-spacing: 0.04em;
}

/* Menu surface — two-column print layout */
.menu {
  margin-top: 48px;
  position: relative;
  column-count: 2;
  column-gap: 72px;
  column-rule: 1px solid var(--rule-soft);
  animation: fadeUp 0.6s ease both;
}

.menu > .section {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 56px;
  display: block;
}

@media (max-width: 820px) {
  .menu {
    column-count: 1;
    column-gap: 0;
  }
  .menu > .section { margin-bottom: 48px; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section */
.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.section-head .glyph {
  width: 14px;
  height: 18px;
  flex: 0 0 auto;
  fill: var(--ember);
  filter: drop-shadow(0 0 6px var(--ember));
}

.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--rule) 0%, transparent 100%);
}

.section-title {
  font-family: "Bebas Neue", "Anton", "Oswald", sans-serif;
  font-size: clamp(28px, 2.4vw, 36px);
  letter-spacing: 0.14em;
  color: var(--ink);
  margin: 0;
  text-shadow: 0 2px 0 rgba(0,0,0,0.4), 0 0 30px rgba(255, 122, 24, 0.18);
}

.section-title .accent {
  color: var(--ember);
  font-style: normal;
}

.section-sublabel {
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  margin: -2px 0 18px;
}

/* Items */
.items {
  display: grid;
  gap: 20px;
}

.items.compact {
  /* compact lists stay single-column inside a section column */
  gap: 4px 0;
}

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule-soft);
}

.items.compact .item {
  padding: 10px 0;
}

.item:last-child { border-bottom: 0; }

.item-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0.005em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.items.compact .item-name { font-size: 19px; }

.dot-leader {
  flex: 1;
  align-self: flex-end;
  margin: 0 8px 6px;
  border-bottom: 1px dotted rgba(245, 179, 51, 0.25);
  min-width: 10px;
}

.item-price {
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--gold);
  white-space: nowrap;
}

.item-price::before {
  content: "$";
  opacity: 0.75;
  margin-right: 2px;
  font-size: 0.8em;
}

.item-desc {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.45;
  font-style: italic;
  max-width: 78ch;
}

.item-extra {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.85;
}

.tag {
  display: inline-block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(245, 179, 51, 0.12);
  color: var(--gold);
  border: 1px solid rgba(245, 179, 51, 0.32);
  vertical-align: middle;
  text-transform: uppercase;
}

.tag.flame {
  background: linear-gradient(135deg, #b8131c, #e08015);
  color: #1a0a06;
  border: 0;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 122, 24, 0.4);
}

.tag.spicy {
  background: rgba(196, 32, 42, 0.18);
  color: #ff8a65;
  border: 1px solid rgba(255, 122, 65, 0.35);
}

.featured {
  position: relative;
  background: linear-gradient(180deg, rgba(245, 179, 51, 0.06), rgba(196, 32, 42, 0.04));
  padding: 18px 18px;
  border: 1px solid rgba(245, 179, 51, 0.18);
  border-radius: 6px;
}

.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 6px;
  background: linear-gradient(135deg, transparent 60%, rgba(245, 179, 51, 0.08) 100%);
}

/* Footer */
.foot {
  margin-top: 80px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.foot .sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--ember);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 10px 3px;
  box-shadow: 0 0 8px var(--ember);
}

/* Spark icon — simple flame glyph */
.spark {
  width: 14px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 2px;
}

/* Scroll hint */
.divider-flame {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px;
  opacity: 0.7;
}

.divider-flame svg {
  width: 28px;
  height: 28px;
  fill: var(--ember);
  filter: drop-shadow(0 0 10px var(--ember));
  animation: dividerPulse 2s ease-in-out infinite;
}

@keyframes dividerPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}
