/* Menú público: azul marino profundo para leer cómodo con poca luz */
:root {
  --bg: var(--navy-900);
  --bg-raised: var(--navy-800);
  --text: var(--ivory);
  --muted: color-mix(in srgb, var(--ivory) 62%, transparent);
  --line: color-mix(in srgb, var(--ivory) 14%, transparent);
  --accent: var(--gold);
  --topbar-h: 56px;
  --nav-h: 54px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + var(--nav-h) + 8px); }
body { background: var(--bg); color: var(--text); }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
  background: color-mix(in srgb, var(--navy-950) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; opacity: 0; transition: opacity .3s var(--ease); }
body.scrolled .topbar__brand { opacity: 1; }
.topbar__mark svg { width: 22px; height: 26px; }
.topbar__name { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; letter-spacing: .04em; }

.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang button {
  min-width: 40px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-size: .82rem; letter-spacing: .08em;
}
.lang button[aria-pressed="true"] { background: var(--ivory); color: var(--navy-900); }
.lang button[lang="ar"] { font-family: 'Amiri', serif; font-size: 1.05rem; letter-spacing: 0; }

/* ---------- Portada ---------- */
.hero {
  min-height: calc(78svh - var(--topbar-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 48px 24px 56px;
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--navy-500) 35%, transparent), transparent 70%),
    var(--bg);
  position: relative;
}
.hero::after {
  content: ''; position: absolute; inset-inline: 24px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .5;
}
.hero__mark { color: var(--ivory); animation: rise .9s var(--ease) both; }
.hero__mark svg { width: 84px; height: 98px; }
.hero__title {
  margin: 22px 0 6px; font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(3rem, 14vw, 5.5rem); line-height: .95; letter-spacing: .02em;
  animation: rise .9s .08s var(--ease) both;
}
.hero__tagline { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--gold-soft); animation: rise .9s .16s var(--ease) both; }
:lang(ar) .hero__tagline { font-style: normal; }
.hero__place { margin: 6px 0 0; font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); animation: rise .9s .22s var(--ease) both; }
:lang(ar) .hero__place { letter-spacing: 0; font-size: .95rem; }
.hero__cta {
  margin-top: 36px; padding: 14px 30px; border: 1px solid var(--accent); border-radius: 999px;
  color: var(--text); text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem;
  animation: rise .9s .3s var(--ease) both; transition: background .2s, color .2s;
}
.hero__cta:hover { background: var(--accent); color: var(--navy-950); }
:lang(ar) .hero__cta { letter-spacing: 0; font-size: 1rem; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Navegación de categorías ---------- */
.catnav {
  position: sticky; top: var(--topbar-h); z-index: 15; height: var(--nav-h);
  background: color-mix(in srgb, var(--navy-950) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.catnav__track {
  display: flex; gap: 6px; height: 100%; align-items: center; overflow-x: auto; scrollbar-width: none;
  padding-inline: 16px; scroll-padding-inline: 16px; scroll-snap-type: x proximity;
  max-width: 1200px; margin: 0 auto;
}
.catnav__track::-webkit-scrollbar { display: none; }
.catnav a {
  flex: none; scroll-snap-align: start; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  color: var(--muted); text-decoration: none; font-size: .9rem; border: 1px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.catnav a.is-daily { color: var(--gold-soft); }
.catnav a[aria-current="true"] { color: var(--navy-950); background: var(--ivory); }

/* ---------- Secciones ---------- */
.menu { max-width: 1200px; margin: 0 auto; padding: 8px 16px 40px; }
.menu__status { text-align: center; color: var(--muted); padding: 64px 0; }

.section { padding-top: 40px; }
.section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.section__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1.1; }
.section__rule { flex: 1; height: 1px; background: var(--line); }

/* Sugerencias del día: tarjetas grandes en carrusel */
.daily { padding-top: 32px; }
.daily__kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px;
  color: var(--accent); font-size: .76rem; letter-spacing: .24em; text-transform: uppercase;
}
:lang(ar) .daily__kicker { letter-spacing: 0; font-size: .95rem; }
.daily__kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px color-mix(in srgb, var(--terracotta) 25%, transparent); }
.daily__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 380px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: -16px; padding: 4px 16px 8px; scroll-padding-inline: 16px;
}
.daily__track::-webkit-scrollbar { display: none; }
.daily-card {
  scroll-snap-align: start; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-raised); border: 0; padding: 0; text-align: start; color: var(--ivory);
}
.daily-card .ph, .daily-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.daily-card__body {
  position: absolute; inset-inline: 0; bottom: 0; padding: 72px 18px 18px;
  background: linear-gradient(transparent, color-mix(in srgb, var(--navy-950) 92%, transparent) 55%);
}
.daily-card__badge {
  position: absolute; top: 14px; inset-inline-start: 14px; padding: 5px 11px; border-radius: 999px;
  background: var(--ivory); color: var(--navy-900); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}
:lang(ar) .daily-card__badge { letter-spacing: 0; font-size: .85rem; }
.daily-card__name { margin: 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; font-weight: 500; }
.daily-card__meta { margin: 6px 0 0; display: flex; gap: 10px; color: var(--muted); font-size: .9rem; }
.daily-card__meta .price { color: var(--gold-soft); }

/* Platillos */
.dishes { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .dishes { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1040px) { .dishes { grid-template-columns: repeat(3, 1fr); } .daily__track { grid-auto-columns: 360px; } }

.dish {
  display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start;
  padding: 10px; border-radius: var(--radius); border: 1px solid var(--line);
  background: color-mix(in srgb, var(--navy-800) 70%, transparent);
  color: inherit; text-align: start; width: 100%;
  transition: border-color .2s, transform .2s var(--ease);
}
.dish:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.dish:active { transform: scale(.99); }
.dish__img { width: 112px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--navy-700); position: relative; }
.dish__img img, .dish__img .ph { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 680px) {
  .dish { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
  .dish__img { width: 100%; aspect-ratio: 4 / 3; border-radius: 0; }
  .dish__text { padding: 4px 16px 18px; }
}
.dish__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dish__name { margin: 2px 0 0; font-family: var(--serif); font-weight: 500; font-size: 1.28rem; line-height: 1.15; }
.dish__price { flex: none; color: var(--gold-soft); font-variant-numeric: tabular-nums; font-size: .98rem; direction: ltr; }
.dish__weight { margin: 3px 0 0; color: var(--muted); font-size: .84rem; letter-spacing: .04em; }
:lang(ar) .dish__weight { letter-spacing: 0; }
.dish__desc {
  margin: 6px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dish__star { color: var(--terracotta); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }

/* Marcador de imagen cuando aún no hay foto */
.ph {
  display: grid; place-items: center; color: color-mix(in srgb, var(--ivory) 22%, transparent);
  background: radial-gradient(circle at 30% 20%, var(--navy-700), var(--navy-800) 70%);
}
.ph svg { width: 34%; max-width: 90px; height: auto; }

/* ---------- Ficha de platillo (hoja inferior) ---------- */
.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 92svh;
  background: var(--bg-raised); color: var(--text); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: auto;
}
.sheet[open] { animation: up .35s var(--ease); }
.sheet::backdrop { background: color-mix(in srgb, var(--navy-950) 70%, transparent); backdrop-filter: blur(3px); }
@media (min-width: 680px) { .sheet { margin: auto; border-radius: var(--radius-lg); } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__img { aspect-ratio: 4 / 3; position: relative; }
.sheet__img img, .sheet__img .ph { width: 100%; height: 100%; object-fit: cover; }
.sheet__close {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: color-mix(in srgb, var(--navy-950) 70%, transparent); color: var(--ivory); font-size: 1.3rem;
}
.sheet__body { padding: 20px 22px calc(28px + env(safe-area-inset-bottom)); }
.sheet__name { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.1; }
.sheet__meta { display: flex; gap: 14px; align-items: baseline; margin-top: 8px; color: var(--muted); }
.sheet__meta .price { color: var(--gold-soft); font-size: 1.2rem; direction: ltr; }
.sheet__desc { margin: 16px 0 0; font-size: 1.02rem; color: color-mix(in srgb, var(--ivory) 85%, transparent); }

/* ---------- Pie ---------- */
.footer {
  margin-top: 24px; padding: 48px 24px calc(48px + env(safe-area-inset-bottom)); text-align: center;
  border-top: 1px solid var(--line); background: var(--navy-950); color: var(--ivory); font-size: .92rem;
}
.footer p { margin: 6px auto; max-width: 520px; }
.footer__mark { color: var(--ivory); opacity: .8; }
.footer__mark svg { width: 36px; height: 42px; margin: 0 auto 14px; }
.footer__prices { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-soft); }
.footer__cards { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 14px 0; }
.footer__cards li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: .78rem; letter-spacing: .08em; color: var(--muted); direction: ltr; }
.footer__muted { color: var(--muted); font-size: .84rem; }
