/* Avenida 50 — paleta sacada del local: mural negro con el logo en dorado
   mostaza, ladrillo blanco, sofás de cuero marrón y mesas de madera. */
:root {
  --ink: #1d1c1a;          /* negro del mural */
  --ink-2: #2a2825;
  --gold: #e0b53e;         /* mostaza / dorado del logo */
  --gold-2: #c99a22;
  --cream: #f7f2e7;        /* blanco roto del ladrillo */
  --paper: #fffdf8;
  --leather: #7b4a2d;      /* sofás */
  --wood: #c99a5b;         /* mesas */
  --muted: #6d6458;
  --line: #e6dcc7;
  --radius: 14px;
  --bottom-space: calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 8rem; }
body {
  margin: 0;
  font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: max(1rem, env(safe-area-inset-left, 0px)); }
.script { font-family: "Yellowtail", "Brush Script MT", cursive; font-weight: 400; }

/* ---- Barra superior ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(29, 28, 26, .94);
  backdrop-filter: blur(8px);
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 2px solid var(--gold);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { font-family: "Yellowtail", cursive; font-size: 1.9rem; color: var(--gold); text-decoration: none; line-height: 1; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a { color: var(--cream); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--gold); }
.nav-cta { background: var(--gold); color: var(--ink) !important; padding: .45rem .85rem; border-radius: 999px; white-space: nowrap; }
.nav-cta:hover { background: var(--cream); }
@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
  .brand { font-size: 1.6rem; }
}

/* ---- Hero ---- */
.hero { position: relative; color: var(--cream); overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,28,26,.92) 0%, rgba(29,28,26,.75) 45%, rgba(29,28,26,.35) 100%); }
.hero-inner { position: relative; padding-block: clamp(4rem, 12vw, 9rem); max-width: 1180px; }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700; color: var(--gold); margin: 0 0 .5rem; }
.hero h1 { margin: 0; display: flex; flex-direction: column; gap: .25rem; }
.hero h1 .script { font-size: clamp(3.5rem, 13vw, 7.5rem); color: var(--gold); line-height: .95; text-shadow: 3px 3px 0 var(--ink); }
.hero-title { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: .03em; line-height: 1.05; max-width: 16ch; }
.lead { font-size: clamp(1rem, 2.2vw, 1.15rem); max-width: 46ch; margin: 1.25rem 0 0; color: #ece4d2; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--cream); }
.btn-ghost { border-color: var(--cream); color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--gold); }
.btn-dark:hover { background: var(--ink-2); }
.btn-dark-ghost { border-color: var(--ink); color: var(--ink); }
.btn-dark-ghost:hover { background: var(--ink); color: var(--gold); }

/* ---- Reparto ---- */
.delivery { background: var(--gold); }
.delivery-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.75rem; }
.delivery h2 { margin: 0; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 2rem; letter-spacing: .03em; }
.delivery p { margin: .15rem 0 0; font-weight: 600; }
.delivery .actions { margin: 0; }

/* ---- Secciones ---- */
section.menu, section.place, section.contact { padding-block: clamp(3rem, 8vw, 5rem); }
.section-title { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: clamp(2.4rem, 7vw, 3.5rem); letter-spacing: .03em; margin: 0; line-height: 1; }
.section-title::after { content: ""; display: block; width: 64px; height: 5px; background: var(--gold); border-radius: 3px; margin-top: .6rem; }
.section-lead { color: var(--muted); margin: 1rem 0 0; max-width: 60ch; }

/* ---- Carta ---- */
.menu-tabs {
  position: sticky; top: calc(62px + env(safe-area-inset-top, 0px)); z-index: 10;
  display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
  margin: 1.75rem -1rem 0; padding: .75rem 1rem;
  background: var(--cream);
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs a { flex: none; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.menu-tabs a:hover, .menu-tabs a.active { background: var(--ink); color: var(--gold); }

.menu-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1rem; }
@media (min-width: 860px) { .menu-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.menu-section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem; }
.menu-section:first-child { border-top: 6px solid var(--gold); }
@media (min-width: 860px) { .menu-section:first-child { grid-row: span 2; } }
.menu-section h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 .75rem; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 1.9rem; letter-spacing: .04em; color: var(--leather); }
.menu-tm { font-family: "Inter", sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.menu-section ul { list-style: none; margin: 0; padding: 0; }
.dish { padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.dish:last-child { border-bottom: 0; }
.dish-head { display: flex; align-items: baseline; gap: .5rem; }
.dish-name { font-weight: 700; }
.dish-star .dish-name::after { content: "★"; color: var(--gold-2); margin-left: .35rem; font-size: .85em; }
.dish-dots { flex: 1; border-bottom: 2px dotted #d6c9ae; transform: translateY(-4px); min-width: 1rem; }
.dish-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish-desc { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.menu-note { margin: .75rem 0 0; font-size: .88rem; color: var(--muted); font-style: italic; }
.menu-notes { list-style: none; padding: 0; margin: 1.5rem 0 0; color: var(--muted); font-size: .9rem; }
.menu-notes li::before { content: "* "; color: var(--gold-2); font-weight: 700; }

/* ---- El local ---- */
.place { background: var(--ink); color: var(--cream); }
.place .section-lead { color: #cfc5b1; }
.gallery { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-top: 2rem; }
@media (min-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; } .gallery figure:first-child { grid-row: span 2; } }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); }
.gallery figure:first-child { aspect-ratio: auto; min-height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }

/* ---- Contacto ---- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; margin-top: 2rem; }
.contact-card { display: flex; flex-direction: column; gap: .25rem; padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius); text-decoration: none; }
a.contact-card:hover { border-color: var(--ink); border-left-color: var(--gold); }
.contact-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.contact-value { font-size: 1.15rem; font-weight: 700; }

/* ---- Pie ---- */
.footer { background: var(--ink); color: #cfc5b1; padding-top: 2rem; padding-bottom: var(--bottom-space); border-top: 2px solid var(--gold); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; font-size: .9rem; }
.footer-brand { font-size: 2rem; color: var(--gold); }
.footer a { color: #cfc5b1; }
.version { font-size: .8rem; opacity: .6; font-variant-numeric: tabular-nums; }

/* ---- Aviso de actualización ---- */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: var(--bottom-space); z-index: 50; background: var(--ink); color: var(--gold); padding: .75rem 1.25rem; border-radius: 999px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.3); }

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

/* ---- Novedades de la carta ---- */
.badge-new { display: inline-block; vertical-align: middle; margin-left: .5rem; padding: .15rem .55rem; border-radius: 999px; background: var(--ink); color: var(--gold); font-family: "Inter", sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transform: translateY(-3px); }
.menu-section-new { border: 2px solid var(--gold); }
.menu-tabs a.tab-new::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: .4rem; border-radius: 50%; background: var(--gold-2); vertical-align: middle; }
.hero-open { display: inline-block; margin: 1rem 0 0; padding: .35rem .8rem; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-weight: 600; font-size: .9rem; }
