/* ===========================================================================
   La Terraza De Lolo — menú digital
   Estética: clara, cálida (restaurante / cafetería). Tarjetas con imagen.
   Tokens en :root para mantener todo consistente.
   =========================================================================== */
:root {
  --bg: #000000; /* crema cálida */
  --surface: #0d0d0d; /* tarjetas */
  --surface-2: #0d0d0d;
  --fg: #fafaf9; /* tinta espresso */
  --muted: #a4a4a4;
  --line: #151514;
  --amber: #b82ed6; /* NEGRO espresso: resalta precios, etiquetas, chips */
  --amber-ink: #ffffff; /* texto sobre el acento */
  --amber-soft: #10100f; /* línea/fondo suave */
  --wa: #25d366; /* verde oficial de WhatsApp */
  --off: #b4a692;

  --radius: 16px;
  --maxw: 1000px;
  --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, Segoe UI, sans-serif;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--amber);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(28px, 7vw, 56px) 16px clamp(20px, 5vw, 36px);
  text-align: center;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-logo {
  width: clamp(200px, 48vw, 300px);
  height: auto;
  margin: 0 auto 6px;
}
.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 10vw, 66px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 6px 0 0;
}
.hero-tagline {
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(16px, 4vw, 20px);
  color: var(--muted);
  margin: 8px 0 0;
}
.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: var(--amber);
  text-decoration: none;
}
.hero-actions.ride {
  margin-top: 12px;
  align-items: center;
}
.btn-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 22px;
  min-width: 100px;
}
.btn-app:hover {
  border-color: var(--fg);
  text-decoration: none;
}
.logo-uber {
  height: 15px;
  width: auto;
  display: block;
}
.logo-didi {
  height: 20px;
  width: auto;
  display: block;
}

/* ---------- Controles (sticky) ---------- */
.controls {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.controls-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--muted);
}
.search:focus-within {
  border-color: var(--amber);
}
.search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--fg);
  font: inherit;
  padding: 12px 0;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: 0 0 auto;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover {
  color: var(--fg);
}
.chip.is-active {
  background: var(--amber);
  color: var(--amber-ink);
  border-color: var(--amber);
}

/* ---------- Menú ---------- */
.menu {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 16px 40px;
}
.cat {
  margin-top: 36px;
}
.cat:first-child {
  margin-top: 8px;
}
.cat-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(14px, 3.5vw, 18px);
  /* text-transform: uppercase; */
  letter-spacing: 0.03em;
  margin: 0 0 16px;
  padding-bottom: 8px;
  /* border-bottom: 1px solid var(--line); */
}

/* Carrusel horizontal por categoría con scroll-snap */
.items {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.items::-webkit-scrollbar {
  height: 6px;
}
.items::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}
.items::-webkit-scrollbar-track {
  background: transparent;
}

.item {
  flex: 0 0 clamp(190px, 64vw, 232px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.item-foto {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  overflow: hidden;
}
.item-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.item-cuerpo {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.item-nombre {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
  min-width: 0;
}
.item-precio {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  white-space: nowrap;
  line-height: 1;
}
.item-desc {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  flex: 1;
}

.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber-ink);
  background: var(--amber);
  border-radius: 6px;
  padding: 3px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.tag-off {
  left: auto;
  right: 10px;
  background: #5a5147;
}

.item-pedir {
  margin-top: auto;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--wa);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
}
.item-pedir:hover {
  border-color: var(--wa);
  text-decoration: none;
  background: #f0faf3;
}

.item.is-agotado .item-foto img {
  filter: grayscale(0.7);
  opacity: 0.7;
}
.item.is-agotado .item-precio {
  text-decoration: line-through;
  color: var(--muted);
}

.sin-resultados {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  grid-column: 1 / -1;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 40px 16px calc(56px + env(safe-area-inset-bottom, 0px));
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.footer h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 10px;
}
.footer p {
  margin: 4px 0;
  font-size: 14px;
}
.muted {
  color: var(--muted);
}
.horario {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.horario li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}
.horario .cerrado {
  color: var(--muted);
}
.credito {
  max-width: var(--maxw);
  margin: 28px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.footer a,
.credito a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.wa-float:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

@media (prefers-reduced-motion: no-preference) {
  .item,
  .chip,
  .item-pedir {
    transition:
      border-color 0.15s ease,
      color 0.15s ease,
      background 0.15s ease;
  }
}
