/* ============================================================
   garito · carta — rediseño
   Paleta cálida "papel", acento latón, claro/oscuro automático.
   ============================================================ */

:root {
  --bg:        #f6f1e8;
  --surface:   #fffdf8;
  --ink:       #201c16;
  --muted:     #847c6e;
  --hairline:  #d9d0bf;
  --accent:    #a06a2c;
  --accent-soft: rgba(160, 106, 44, 0.10);
  --header-bg: rgba(246, 241, 232, 0.82);

  --maxw: 720px;
  --radius: 14px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #15120f;
    --surface:   #1d1915;
    --ink:       #efe8da;
    --muted:     #9a9180;
    --hairline:  #352f27;
    --accent:    #cda063;
    --accent-soft: rgba(205, 160, 99, 0.14);
    --header-bg: rgba(21, 18, 15, 0.82);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Cabecera ---------- */
.site-header {
  text-align: center;
  padding: 2.5rem 1.25rem 1.25rem;
}

.site-header__logo {
  width: auto;
  height: auto;
  max-height: 88px;
  max-width: 78%;
}

.site-header__label {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  .site-header__logo { filter: brightness(0) invert(1); }
}

/* ---------- Navegación de categorías (sticky) ---------- */
.catnav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.catnav::-webkit-scrollbar { display: none; }

.catnav__link {
  flex: 0 0 auto;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.catnav__link:hover { color: var(--ink); }
.catnav__link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Carta ---------- */
.menu {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.menu__notice {
  text-align: center;
  color: var(--muted);
  padding: 3rem 0;
}

.category {
  scroll-margin-top: 4.5rem; /* deja hueco bajo la nav fija al saltar */
}
.category + .category { margin-top: 2.75rem; }

.category__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.category__title::after {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  margin-top: 0.6rem;
  background: var(--accent);
  border-radius: 2px;
}

.category__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Producto (con línea de puntos) ---------- */
.item {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
}
.item:last-child { border-bottom: none; }

.item__row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.item__name {
  font-weight: 500;
  color: var(--ink);
}

.item__lead {
  flex: 1 1 auto;
  align-self: stretch;
  margin-bottom: 0.32rem;
  border-bottom: 1px dotted var(--hairline);
  min-width: 1rem;
}

.item__price {
  flex: 0 0 auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--accent);
}

.item__desc {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- Pie ---------- */
.site-footer {
  text-align: center;
  padding: 1.75rem 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
}
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
