:root {
  --green: #1c7a52;
  --green-deep: #155c3e;
  --slate: #3e5b4e;
  --yellow: #f2bd24;
  --orange: #e0691f;
  --ink: #26392f;
  --white: #ffffff;
  --radius: 22px;
  --head: 'Baloo 2', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--green);
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 6px 6px;
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

/* ---------- cabecera ---------- */

.hero {
  padding: 36px 16px 20px;
  text-align: center;
}

[hidden] { display: none !important; }

.logo-img {
  display: block;
  max-width: min(300px, 85%);
  max-height: 180px;
  margin: 0 auto;
  object-fit: contain;
}

.logo {
  display: inline-block;
  position: relative;
  padding: 10px 28px 14px;
  background: var(--slate);
  border-radius: 26px;
  box-shadow: 0 6px 0 rgba(0,0,0,.15);
}

.leaf {
  position: absolute;
  top: -22px;
  left: 50%;
  width: 54px;
  transform: translateX(-50%);
  fill: var(--yellow);
}

.logo h1 {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.tagline {
  margin: 6px 0 0;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- navegación ---------- */

.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  background: rgba(21, 92, 62, .94);
  backdrop-filter: blur(6px);
  scrollbar-width: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.tabs::-webkit-scrollbar { display: none; }

.tabs a {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.tabs a.active {
  background: var(--yellow);
  color: var(--ink);
}

/* ---------- secciones ---------- */

.menu {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 8px;
  display: grid;
  gap: 20px;
}

.loading, .error { text-align: center; opacity: .8; }

.section {
  position: relative;
  padding: 22px 20px 20px;
  border-radius: var(--radius);
}
.section.theme-green  { background: rgba(0,0,0,.08); border: 2px solid rgba(255,255,255,.12); }
.section.theme-dark   { background: var(--slate); }
.section.theme-yellow { background: var(--yellow); color: var(--ink); }
.section.theme-orange { background: var(--orange); }

.section h2 {
  margin: 0;
  padding-right: 84px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}
.section:not(.has-badge) h2 { padding-right: 0; }
.theme-green h2, .theme-dark h2 { color: var(--yellow); }
.theme-yellow h2 { color: var(--slate); }

.subtitle { margin: 6px 0 0; font-weight: 600; }
.has-badge .subtitle { padding-right: 84px; min-height: 2.7em; }
.note {
  display: inline-block;
  margin: 10px 0 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
  font-weight: 700;
  font-size: .88rem;
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  border: 4px solid var(--orange);
  box-shadow: 0 4px 0 rgba(0,0,0,.15);
  text-align: center;
  line-height: 1;
  transform: rotate(-6deg);
}
.badge small { font-size: .62rem; font-weight: 700; letter-spacing: .06em; }
.badge strong { font-family: var(--head); font-size: 1.6rem; }
.badge .bs { font-size: .55rem; font-weight: 700; margin-top: 2px; }

.group-title {
  margin: 18px 0 4px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.theme-yellow .group-title { color: var(--white); text-shadow: 0 1px 0 rgba(0,0,0,.15); }
.theme-green .group-title, .theme-dark .group-title { color: var(--yellow); }

/* lista con precio */
.priced { list-style: none; margin: 12px 0 0; padding: 0; }
.priced li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1.5px solid rgba(255,255,255,.18);
}
.theme-yellow .priced li { border-color: rgba(38,57,47,.2); }
.priced li:last-child { border-bottom: 0; }
.priced .name { flex: 1; font-weight: 700; }
.priced .desc { display: block; font-weight: 400; font-size: .9rem; opacity: .85; }

.price { flex: none; text-align: right; white-space: nowrap; }
.price small { font-size: .62rem; font-weight: 700; margin-right: 3px; letter-spacing: .05em; }
.price strong { font-family: var(--head); font-size: 1.35rem; font-weight: 800; }
.price .bs { display: block; font-size: .72rem; opacity: .8; }

/* lista sin precio */
.plain {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}
.plain li {
  position: relative;
  padding-left: 16px;
  font-weight: 600;
}
.plain li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}
.theme-yellow .plain li::before { background: var(--slate); }
.theme-orange .plain li::before { background: var(--white); }

/* tabla con varias columnas de precio */
.matrix { width: 100%; margin-top: 12px; border-collapse: collapse; }
.matrix th {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: right;
  padding: 0 0 4px 12px;
}
.matrix td {
  padding: 9px 0;
  border-top: 1.5px solid rgba(255,255,255,.18);
}
.theme-yellow .matrix td { border-color: rgba(38,57,47,.2); }
.matrix td:first-child { font-weight: 700; text-transform: uppercase; }
.matrix td.num {
  padding-left: 12px;
  text-align: right;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.25rem;
  white-space: nowrap;
}
.matrix td.num .bs { display: block; font-family: var(--body); font-weight: 600; font-size: .7rem; opacity: .8; }

/* agotado */
.soldout .label { text-decoration: line-through; opacity: .55; }
.tag-out {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--orange);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  vertical-align: middle;
  opacity: 1;
}
.theme-orange .tag-out { background: var(--ink); }

/* ---------- pie ---------- */

.foot {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  text-align: center;
  font-size: .88rem;
  opacity: .9;
}
.foot p { margin: 4px 0; }
.rate { font-weight: 700; }

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