/* ==========================================================
   El Internacional — Menú por pestañas
   Identidad tomada de @el_internacional_ut: fondo negro, naranja,
   letras condensadas y barras morado/magenta del logo.
   ========================================================== */
:root {
  --bg: #0c0a0d;
  --surface: #17141a;
  --surface-2: #211c25;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f7f3ee;
  --muted: #b3a9b8;
  --orange: #ff9f1c;
  --yellow: #ffd23f;
  --purple: #7c2ae8;
  --magenta: #e0158a;
  --ink: #1a1206;
  --bar: linear-gradient(90deg, var(--purple), var(--magenta));
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --gutter: 16px;
  --wrap: 1080px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Luz cálida de fondo, como en las fotos del Instagram */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 38% at 50% -4%, rgba(255, 159, 28, .2), transparent 70%),
    radial-gradient(50% 40% at 100% 10%, rgba(124, 42, 232, .16), transparent 70%),
    radial-gradient(50% 40% at 0% 30%, rgba(224, 21, 138, .1), transparent 70%);
}

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Encabezado ---------- */
.top {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px var(--gutter) 22px;
  text-align: center;
}

.top__bar { display: flex; justify-content: flex-end; }

.lang {
  min-width: 48px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lang:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }

.top__logo {
  display: block;
  width: min(200px, 54vw);
  height: auto;
  margin: -10px auto 6px;
  filter: drop-shadow(0 10px 36px rgba(255, 159, 28, .25));
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.top__title {
  margin: .12em 0 0;
  font: 400 clamp(3rem, 15vw, 5.2rem)/.95 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.top__title span { color: var(--orange); }

.slogan {
  margin: 6px 0 14px;
  font-weight: 600;
  font-size: 1.02rem;
}
.slogan b { color: var(--yellow); font-weight: 700; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  font-size: .88rem;
  color: var(--muted);
}
.status strong { color: var(--text); font-weight: 600; }
.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7d7593;
}
.status.is-open .status__dot {
  background: #3ee08f;
  box-shadow: 0 0 0 0 rgba(62, 224, 143, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(62, 224, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 224, 143, 0); }
}

/* ---------- Búsqueda ---------- */
.search {
  position: relative;
  max-width: 520px;
  margin: 20px auto 0;
}
.search input {
  width: 100%;
  height: 52px;
  padding: 0 52px 0 50px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  font: 500 16px var(--font);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: #8d8392; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus {
  border-color: rgba(255, 159, 28, .7);
  box-shadow: 0 0 0 4px rgba(255, 159, 28, .16);
}
.search__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search__clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}
.search__clear svg { width: 16px; height: 16px; }

/* ---------- Barra de pestañas (fija) ---------- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 10, 13, .82);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
/* Barra morado/magenta, como el pie de los afiches */
.toolbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--bar);
}
.toolbar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 0 4px var(--gutter);
}

.icon-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  cursor: pointer;
  transition: background .2s;
}
.icon-btn:hover { background: var(--surface-2); }

.tabs {
  --fade-l: 0px;
  --fade-r: 28px;
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 4px;
  padding: 6px var(--gutter) 6px 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: center;
  transition: color .25s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab:focus-visible { outline-color: var(--text); outline-offset: -3px; }

.tabs__indicator {
  position: absolute;
  z-index: 0;
  top: 6px;
  left: 0;
  width: 0;
  height: 44px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 2px 10px -4px rgba(255, 159, 28, .9);
  pointer-events: none;
}
.tabs.is-ready .tabs__indicator {
  transition: transform .4s var(--ease), width .4s var(--ease), opacity .2s;
}
.is-searching .tabs__indicator { opacity: 0; }
.is-searching .tab[aria-selected="true"] { color: var(--muted); }

/* ---------- Contenido ---------- */
.menu {
  max-width: var(--wrap);
  min-height: calc(100vh - 66px);
  min-height: calc(100svh - 66px);
  margin: 0 auto;
  padding: 20px var(--gutter) 28px;
  outline: none;
}

.panel { outline: none; }
.panel.is-entering { animation: panel-in .45s var(--ease); }
@keyframes panel-in {
  from { opacity: 0; transform: translateX(var(--dx, 0)) translateY(var(--dy, 8px)); }
}

/* Portada de cada categoría */
.banner {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: clamp(200px, 34vw, 320px);
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(110% 140% at 0% 0%, var(--a1) 0%, transparent 58%),
    radial-gradient(110% 140% at 100% 100%, var(--a2) 0%, transparent 62%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.banner img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s;
}
.banner.is-loaded img { opacity: 1; }
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 10, 13, 0) 22%, rgba(12, 10, 13, .9) 100%);
}

.banner__ghost {
  position: absolute;
  z-index: -1;
  right: -2%;
  top: 42%;
  transform: translateY(-50%) rotate(-5deg);
  font: 400 clamp(4.6rem, 26vw, 11rem)/.85 var(--font-display);
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .16);
  pointer-events: none;
}
.banner__stars {
  position: absolute;
  top: 16px;
  left: 18px;
  display: flex;
  gap: 5px;
  color: var(--yellow);
}
.banner__stars svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.banner.is-loaded .banner__ghost,
.banner.is-loaded .banner__stars { display: none; }

.banner__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px;
}
.banner__count {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--bar);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.banner h2 {
  margin: 8px 0 2px;
  font: 400 clamp(2.1rem, 9vw, 3.4rem)/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .01em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}
.banner p { margin: 0; color: var(--orange); font-weight: 600; font-size: .95rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }

/* Lista de platos */
.items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color .2s, transform .2s var(--ease);
}
@media (hover: hover) {
  .item:hover { border-color: rgba(255, 159, 28, .35); transform: translateY(-2px); }
}
.item.has-img { padding: 10px 16px 10px 10px; }
.item__img {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface);
}
.item__body { flex: 1; min-width: 0; }
.item__top { display: flex; align-items: flex-end; gap: 10px; }
.item__name { font-weight: 600; font-size: 1.03rem; line-height: 1.3; }
.item__lead {
  flex: 1;
  min-width: 14px;
  margin-bottom: .4em;
  border-bottom: 2px dotted rgba(255, 255, 255, .14);
}
.item__price {
  font: 400 1.22rem/1.1 var(--font-display);
  letter-spacing: .02em;
  color: var(--orange);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.item__desc { margin: 4px 0 0; color: var(--muted); font-size: .87rem; line-height: 1.4; }
.item.is-out { background: transparent; border-style: dashed; }
.item.is-out .item__name { color: var(--muted); }
.item.is-out .item__price { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.item.is-out .item__img { filter: grayscale(.85) brightness(.7); }
.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(224, 21, 138, .45);
  background: rgba(224, 21, 138, .14);
  color: #ffb3dc;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: 2px;
}
mark {
  background: rgba(255, 159, 28, .25);
  color: var(--text);
  border-radius: 4px;
  padding: 0 2px;
}

/* Navegación anterior / siguiente al final de cada categoría */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
}
.pager button {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.pager button:hover { border-color: rgba(255, 159, 28, .4); background: rgba(255, 255, 255, .06); }
.pager .pager__next { margin-left: auto; text-align: right; }
.pager small { color: var(--orange); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pager span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Resultados de búsqueda */
.results__summary { margin: 0 0 16px; color: var(--muted); }
.results__group { margin-bottom: 22px; }
.results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
.results__head h3 { margin: 0; font: 400 1.4rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.results__head span { color: var(--orange); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.empty {
  padding: 36px 20px;
  border-radius: 18px;
  border: 1px dashed var(--line-2);
  text-align: center;
  color: var(--muted);
}

/* ---------- Pie de página ---------- */
.foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px var(--gutter) 24px;
}
.foot__grid {
  display: grid;
  gap: 14px;
}
.foot section {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}
.foot h2 {
  margin: 0 0 12px;
  font: 400 1.35rem/1.1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hours li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; color: var(--muted); }
.hours li span:last-child { margin-left: auto; white-space: nowrap; }
.hours li.is-today { color: var(--text); font-weight: 600; }
.foot__tz { margin: 10px 0 0; color: var(--muted); font-size: .8rem; }
.foot address, .foot__line { font-style: normal; color: var(--muted); margin: 0 0 12px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}
.link svg { width: 17px; height: 17px; }
.link:hover { text-decoration: underline; }
.foot__social { display: flex; justify-content: center; margin-top: 18px; }
.foot__note { margin: 8px 0 0; text-align: center; color: #857b8a; font-size: .8rem; }

/* ---------- Botones de acción (fijos abajo) ---------- */
.cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 18px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(12, 10, 13, 0), rgba(12, 10, 13, .95) 40%);
  pointer-events: none;
}
.btn {
  pointer-events: auto;
  flex: 1;
  max-width: 250px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  flex: 1.4;
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 12px 30px -10px rgba(255, 159, 28, .8);
}
.btn--ghost {
  background: rgba(33, 28, 37, .94);
  color: var(--text);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ---------- Pantallas grandes ---------- */
@media (min-width: 760px) {
  :root { --gutter: 24px; }
  .items { grid-template-columns: 1fr 1fr; gap: 12px; }
  .foot__grid { grid-template-columns: repeat(3, 1fr); }
  .banner { aspect-ratio: 3 / 1; }
  .banner__text { padding: 26px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
