/* =====================================================================
   EL CAPRICHO DE MARLEN — STYLES
   Layout: a guided journey. Each category is a stop with its own
   landscape banner; dishes sit in arch-topped windows like a printed carta.
   ===================================================================== */
:root {
  --burgundy: #800020;
  --burgundy-2: #5E0018;
  --ivory: #FFF8ED;
  --paper: #F6ECDC;
  --gold: #C6A667;
  --gold-2: #A88A4C;
  --olive: #65734C;
  --espresso: #29211D;
  --espresso-2: #1E1815;
  --ink: #29211D;
  --muted: #6E5E52;
  --line: #E4D3B4;
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --bar-h: 64px;
  --cat-h: 52px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + var(--cat-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--espresso); }
body.modal-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--burgundy); color: var(--ivory); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

.wrap {
  width: 100%; max-width: 1240px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.eyebrow { margin: 0 0 .5rem; font: 700 .72rem/1.2 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--burgundy); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
.lede { max-width: 38em; color: var(--muted); font-size: 1.06rem; margin: .8rem 0 0; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  color: var(--ivory);
  background: linear-gradient(180deg, rgba(30, 22, 26, .72), rgba(30, 22, 26, 0));
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.topbar.is-scrolled, .topbar:has(.drawer.is-open) { background: rgba(41, 33, 29, .96); box-shadow: 0 1px 0 rgba(198, 166, 103, .35); }
@supports (backdrop-filter: blur(8px)) { .topbar.is-scrolled { background: rgba(41, 33, 29, .86); backdrop-filter: blur(10px); } }
.topbar__in {
  height: var(--bar-h); display: flex; align-items: center; gap: 16px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  max-width: 1400px; margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand .rose { width: 30px; height: 30px; flex: none; }
.brand__name { font: 600 1.3rem/1 var(--display); letter-spacing: .03em; white-space: nowrap; }
.brand__name em { font-style: italic; font-weight: 500; color: var(--gold); }
.rose__bloom { fill: var(--burgundy); stroke: var(--gold); stroke-width: 1.2; }
.rose__line { fill: none; stroke: #F0C9C9; stroke-width: 1.3; stroke-linecap: round; }
.rose__stem { fill: var(--olive); stroke: var(--olive); stroke-width: 1.6; stroke-linecap: round; }
.nav { display: none; gap: 28px; }
.nav a, .drawer a { text-decoration: none; font: 700 .76rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; }
.nav a { padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.nav a:hover { color: var(--gold); border-color: var(--gold); }
.lang { display: flex; border: 1px solid rgba(198, 166, 103, .6); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; cursor: pointer; font: 700 .72rem/1 var(--body); letter-spacing: .12em; padding: 8px 10px; border-radius: 999px; min-width: 40px; }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--espresso); }
.burger { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-content: center; gap: 5px; }
.burger span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.drawer {
  display: grid; overflow: hidden; max-height: 0; transition: max-height .45s var(--ease);
  background: rgba(41, 33, 29, .98);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.drawer.is-open { max-height: 260px; }
.drawer a { padding: 18px 0; border-top: 1px solid rgba(198, 166, 103, .25); }
@media (min-width: 860px) {
  .nav { display: flex; }
  .burger, .drawer { display: none; }
  .brand__name { font-size: 1.45rem; }
}
@media (max-width: 380px) { .brand__name { font-size: 1.02rem; } .brand .rose { width: 26px; height: 26px; } }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(600px, 92svh, 940px);
  display: grid; place-items: center; text-align: center;
  background: var(--espresso); color: var(--ivory);
  padding: calc(var(--bar-h) + 40px) max(16px, env(safe-area-inset-right, 0px)) 72px max(16px, env(safe-area-inset-left, 0px));
}
.hero__scene {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  background: radial-gradient(ellipse 70% 80% at 50% 45%, #5A3326 0%, #3A2620 45%, var(--espresso) 100%);
  animation: heroIn 2.6s var(--ease) both;
}
.hero__img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 30% 50%; animation: heroDrift 28s ease-in-out 2.6s infinite alternate; }
.hero__img--r { display: none; }
@media (min-width: 900px) {
  .hero__img { width: 47%; -webkit-mask-image: linear-gradient(90deg, #000 52%, transparent 100%); mask-image: linear-gradient(90deg, #000 52%, transparent 100%); }
  .hero__img--r { display: block; left: auto; right: 0; transform-origin: 70% 50%; animation-direction: alternate-reverse; -webkit-mask-image: linear-gradient(270deg, #000 52%, transparent 100%); mask-image: linear-gradient(270deg, #000 52%, transparent 100%); }
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(30, 20, 18, .42), rgba(30, 20, 18, .42)),
    linear-gradient(90deg, rgba(30, 20, 18, .5), rgba(30, 20, 18, 0) 26%, rgba(30, 20, 18, 0) 74%, rgba(30, 20, 18, .5)),
    radial-gradient(ellipse 60% 50% at 50% 48%, rgba(30, 20, 18, .55), rgba(30, 20, 18, 0) 70%),
    linear-gradient(180deg, rgba(30, 22, 26, .55) 0%, rgba(30, 22, 26, 0) 22%, rgba(30, 22, 26, 0) 62%, rgba(41, 33, 29, .9) 100%);
}
.hero__content { max-width: 920px; display: grid; justify-items: center; gap: 14px; }
.hero__kicker { margin: 0; display: flex; align-items: center; gap: 14px; font: 700 .74rem/1 var(--body); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); animation: fadeUp 1.2s var(--ease) .5s both; }
.hero__kicker::before, .hero__kicker::after { content: ""; width: 42px; height: 1px; background: currentColor; opacity: .7; }
.hero__rose { width: 54px; height: 54px; animation: bloom 1.6s var(--ease) .7s both; }
.hero__title {
  font-size: clamp(2.7rem, 9vw, 6.8rem); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; line-height: .95;
  text-shadow: 0 2px 30px rgba(20, 12, 10, .55);
}
.hero__title .w { display: inline-block; animation: reveal 1.4s var(--ease) both; }
.hero__title .w:nth-child(1) { animation-delay: .9s; }
.hero__title .w:nth-child(2) { animation-delay: 1.05s; }
.hero__title .w:nth-child(3) { animation-delay: 1.2s; }
.hero__title .w:nth-child(4) { animation-delay: 1.35s; }
.hero__title .w--de { font-style: italic; text-transform: none; font-weight: 500; color: var(--gold); letter-spacing: .02em; }
.hero__tag { margin: 4px 0 0; font: italic 500 clamp(1.4rem, 3.4vw, 2.1rem)/1.2 var(--display); color: #F3DDB0; animation: fadeUp 1.2s var(--ease) 1.7s both; }
.hero__line { margin: 0; max-width: 30em; font-size: clamp(1rem, 2vw, 1.12rem); letter-spacing: .02em; color: rgba(255, 248, 237, .88); animation: fadeUp 1.2s var(--ease) 1.9s both; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; animation: fadeUp 1.2s var(--ease) 2.1s both; }

.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; text-decoration: none; cursor: pointer;
  font: 700 .78rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid var(--gold); border-radius: 0;
  transition: transform .35s var(--ease), background .35s, color .35s, box-shadow .35s;
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 240, 210, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.btn--primary { background: var(--burgundy); color: var(--ivory); }
.btn--primary:hover { background: var(--burgundy-2); }
.btn--ghost { background: rgba(255, 248, 237, .06); color: var(--ivory); border-color: rgba(255, 248, 237, .7); }
.btn--ghost:hover { background: var(--ivory); color: var(--espresso); }

@keyframes heroIn { from { opacity: 0; transform: scale(1.12); filter: brightness(.5) saturate(.8); } to { opacity: 1; transform: scale(1); filter: none; } }
@keyframes heroDrift { from { transform: scale(1.03); } to { transform: scale(1.12) translate(-1%, -1%); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .82; } 50% { opacity: .95; } 70% { opacity: .86; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(.35em); filter: blur(8px); letter-spacing: .3em; } to { opacity: 1; transform: none; filter: none; } }
@keyframes bloom { from { opacity: 0; transform: scale(.6) rotate(-20deg); } to { opacity: 1; transform: none; } }

/* azulejo band */
.tiles {
  height: 30px;
  background: var(--ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 40 40'%3E%3Cpath d='M20 5l4 11 11 4-11 4-4 11-4-11-11-4 11-4z' fill='none' stroke='%23C6A667' stroke-width='1.4'/%3E%3Ccircle cx='20' cy='20' r='3.4' fill='%23800020'/%3E%3Cpath d='M0 0h7L0 7zM40 0h-7l7 7zM0 40h7l-7-7zM40 40h-7l7-7z' fill='%2365734C'/%3E%3C/svg%3E") repeat-x center / 30px 30px;
  border-block: 1px solid var(--gold);
}

/* ---------- menu header & tools ---------- */
.menu { padding-block: 64px 24px; }
.menu__head { display: grid; gap: 28px; align-items: end; }
@media (min-width: 1000px) { .menu__head { grid-template-columns: 1.05fr 1fr; gap: 48px; } }
.tools { display: grid; gap: 14px; min-width: 0; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: var(--muted); }
.search input {
  width: 100%; height: 54px; padding: 0 16px 0 48px;
  border: 1px solid var(--line); border-radius: 0; background: #FFFDF8;
  font: 400 1rem var(--body); color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
}
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198, 166, 103, .25); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  font: 700 .74rem/1 var(--body); letter-spacing: .08em; color: var(--muted);
  transition: background .25s, color .25s, border-color .25s;
}
.filters button:hover { border-color: var(--gold); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--ivory); }
.filters .toggle { border-style: dashed; }
.filters .toggle[aria-pressed="true"] { background: var(--burgundy); border-color: var(--burgundy); border-style: solid; }
.count { margin: 0; font: italic 500 1.05rem var(--display); color: var(--muted); }

/* ---------- category bar ---------- */
.catbar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--bar-h)); z-index: 40;
  margin-top: 36px; background: rgba(255, 248, 237, .96); border-block: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) { .catbar { background: rgba(255, 248, 237, .86); backdrop-filter: blur(10px); } }
.catbar ul {
  list-style: none; margin: 0 auto; max-width: 1240px; height: var(--cat-h);
  display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.catbar ul::-webkit-scrollbar { display: none; }
.catbar li { flex: none; }
.catbar a {
  display: block; padding: 10px 12px; text-decoration: none; white-space: nowrap;
  font: 600 1.08rem/1 var(--display); color: var(--muted);
  border-bottom: 2px solid transparent; transition: color .25s, border-color .25s;
}
.catbar a:hover { color: var(--ink); }
.catbar a.is-active { color: var(--burgundy); border-color: var(--gold); }

/* ---------- category ---------- */
.cat { padding-top: 56px; }
.cat__banner { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--espresso); }
.cat__banner::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(198, 166, 103, .55); pointer-events: none; z-index: 2; }
.cat__scene { position: relative; order: -1; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; background: #3A2620; }
.cat__scene img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease); }
.cat:hover .cat__scene img { transform: scale(1.04); }
.cat__scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(41, 33, 29, 0) 60%, var(--espresso)); }
.cat__label { position: relative; padding: 4px 26px 30px; color: var(--ivory); }
@media (min-width: 800px) {
  .cat__banner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); height: clamp(300px, 30vw, 390px); }
  .cat__scene { order: 0; aspect-ratio: auto; height: 100%; }
  .cat__scene::after { background: linear-gradient(270deg, var(--espresso) 0%, rgba(41, 33, 29, 0) 34%); }
  .cat__label { display: flex; flex-direction: column; justify-content: center; padding: 40px 44px 40px 30px; }
  .cat:nth-child(even) .cat__banner { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .cat:nth-child(even) .cat__label { order: -1; padding: 40px 30px 40px 44px; }
  .cat:nth-child(even) .cat__scene::after { background: linear-gradient(90deg, var(--espresso) 0%, rgba(41, 33, 29, 0) 34%); }
}
.cat__stop { margin: 0 0 6px; font: 700 .7rem/1 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.cat__label h3 { font-size: clamp(2.1rem, 5.4vw, 3.8rem); }
.cat__place { margin: 6px 0 0; font: italic 500 1.12rem/1.3 var(--display); color: #F3DDB0; }
.cat__intro { max-width: 46em; margin: 22px 0 26px; font: 500 1.28rem/1.45 var(--display); color: var(--ink); }

.grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; } }
@media (min-width: 1180px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } .grid--4 .dish__name { font-size: 1.35rem; } }

/* ---------- dish card ---------- */
.dish {
  display: flex; flex-direction: column; min-width: 0;
  background: #FFFDF8; border: 1px solid var(--line); padding: 14px 14px 18px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.dish:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(60, 30, 20, .35); border-color: var(--gold); }
.dish__media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--paper);
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
}
.dish__media::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(255, 248, 237, .75); border-radius: inherit; pointer-events: none; }
.dish__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
#cat-meat .dish__media { aspect-ratio: 2 / 1; border-radius: 50% 50% 0 0 / 46% 46% 0 0; }
.dish--text { border-top: 3px solid var(--gold); padding-top: 4px; }
.dish--text .dish__body { padding-top: 14px; }
.dish:hover .dish__media img { transform: scale(1.05); }
.dish__zoom {
  position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(41, 33, 29, .7); color: var(--ivory);
  opacity: .85; transition: opacity .3s, background .3s;
}
.dish:hover .dish__zoom { opacity: 1; background: var(--burgundy); }
.dish__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 4px 0; flex: 1; }
.dish__head { display: flex; align-items: baseline; gap: 10px; }
.dish__name { font-size: 1.5rem; line-height: 1.1; min-width: 0; }
.dish__leader { flex: 1; min-width: 16px; border-bottom: 1px dotted var(--gold-2); transform: translateY(-4px); }
.price { flex: none; font: 600 1.5rem/1 var(--display); color: var(--burgundy); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.price small { font: 700 .62rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.price--pending { font: italic 500 1.02rem/1.1 var(--display); color: var(--muted); }
.dag { font-size: .6em; color: var(--gold-2); margin-left: 1px; }
.dish__note { margin: -2px 0 0; font: 700 .7rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
.dish__desc { margin: 0; color: var(--muted); font-size: .97rem; }
.dish__foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.link-btn { border: 0; background: none; padding: 6px 0; cursor: pointer; font: 700 .74rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy); }
.link-btn span { display: inline-block; transition: transform .3s var(--ease); }
.link-btn:hover span { transform: translateX(4px); }
.region-chip {
  border: 1px solid var(--line); background: var(--paper); cursor: pointer; border-radius: 999px;
  padding: 6px 12px; font: italic 600 .98rem/1 var(--display); color: var(--olive);
}
.region-chip::before { content: "◆ "; font-style: normal; font-size: .62rem; color: var(--gold-2); vertical-align: .14em; }
.region-chip:hover { border-color: var(--olive); }

.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.size { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border: 1px solid var(--line); background: var(--ivory); }
.size__n { font: 600 1.6rem/1 var(--display); color: var(--ink); }
.size__l { font: 700 .62rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.size__p { font: 600 1.2rem/1 var(--display); color: var(--burgundy); font-variant-numeric: tabular-nums; margin-top: 4px; }

/* Mix & Match + add-ons */
.combo, .addons { margin: 0 0 26px; padding: 22px; border: 1px solid var(--gold); background: linear-gradient(135deg, #FFF3DE, #FFFDF8); position: relative; }
.combo::before, .addons::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--line); pointer-events: none; }
.combo__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.combo h4, .addons h4 { font-size: 1.9rem; }
.combo__help { margin: 8px 0 14px; color: var(--muted); }
.combo__picks { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.pick {
  border: 1px solid var(--line); background: #FFFDF8; cursor: pointer; border-radius: 999px;
  min-height: 42px; padding: 0 16px; font: 600 1.06rem/1 var(--display); transition: background .25s, color .25s, border-color .25s, opacity .25s;
}
.pick:hover:not(:disabled) { border-color: var(--burgundy); }
.pick[aria-pressed="true"] { background: var(--burgundy); border-color: var(--burgundy); color: var(--ivory); }
.pick[aria-pressed="true"]::before { content: "✓ "; }
.pick:disabled { opacity: .4; cursor: not-allowed; }
.combo__status { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; position: relative; }
.combo__count { font: italic 500 1.1rem var(--display); color: var(--muted); }
.combo.is-full .combo__count { color: var(--olive); font-weight: 600; }
.addons { margin: 30px 0 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .addons { grid-template-columns: auto 1fr; align-items: center; gap: 32px; } }
.addons ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; position: relative; }
.addons li { display: flex; gap: 10px; align-items: baseline; font: 600 1.25rem var(--display); }
.addons b { color: var(--burgundy); font-variant-numeric: tabular-nums; }

.empty { padding: 60px 0; text-align: center; display: grid; justify-items: center; gap: 16px; }
.empty p { margin: 0; font: italic 500 1.5rem var(--display); color: var(--muted); }

/* ---------- journey / map ---------- */
.journey { margin-top: 72px; padding-block: 72px; background: var(--espresso); color: var(--ivory); position: relative; overflow: hidden; }
.journey .eyebrow { color: var(--gold); }
.journey .lede { color: rgba(255, 248, 237, .75); }
.journey__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .journey__grid { grid-template-columns: 1.15fr .85fr; align-items: start; gap: 56px; } }
.journey__map, .journey__panel { min-width: 0; }
.map { margin-top: 26px; max-width: 640px; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map__sea { fill: transparent; }
.map__land { fill: #3A2F29; stroke: var(--gold); stroke-width: 1.4; stroke-linejoin: round; }
.map__tile { pointer-events: none; }
.map__isl { fill: #3A2F29; stroke: var(--gold); stroke-width: 1.2; }
.map__sealabel { font: italic 500 15px var(--display); fill: rgba(198, 166, 103, .7); letter-spacing: .08em; }
.pin { cursor: pointer; outline: none; }
.pin__dot { fill: var(--burgundy); stroke: var(--gold); stroke-width: 2; transition: r .3s; }
.pin__pulse { fill: rgba(198, 166, 103, .25); transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.pin__label { font: 600 13px var(--body); letter-spacing: .06em; fill: var(--ivory); paint-order: stroke; stroke: var(--espresso); stroke-width: 4px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.pin:hover .pin__label, .pin:focus-visible .pin__label, .pin.is-active .pin__label { opacity: 1; }
.pin.is-active .pin__dot { fill: var(--gold); stroke: var(--ivory); }
.pin:focus-visible .pin__dot { stroke: var(--ivory); stroke-width: 3; }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.region-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.region-list button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; cursor: pointer;
  border: 1px solid rgba(198, 166, 103, .45); border-radius: 999px; background: transparent;
  font: 600 1.05rem/1 var(--display); color: var(--ivory); transition: background .25s, color .25s;
}
.region-list button span { font: 700 .66rem/1 var(--body); color: var(--gold); }
.region-list button[aria-pressed="true"] { background: var(--gold); color: var(--espresso); }
.region-list button[aria-pressed="true"] span { color: var(--burgundy); }
.journey__panel { padding: 28px; border: 1px solid rgba(198, 166, 103, .45); background: rgba(255, 248, 237, .04); }
@media (min-width: 960px) { .journey__panel { position: sticky; top: calc(var(--bar-h) + 24px); margin-top: 120px; } }
.journey__panel h3 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 18px; }
.region-dishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.region-dishes button {
  width: 100%; display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 14px; text-align: left;
  padding: 8px 14px 8px 8px; border: 1px solid rgba(198, 166, 103, .3); background: rgba(255, 248, 237, .03);
  cursor: pointer; color: var(--ivory); transition: background .25s, border-color .25s;
}
.region-dishes button:hover { background: rgba(255, 248, 237, .08); border-color: var(--gold); }
.rd__art { display: block; width: 76px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 50% 50% 0 0 / 34% 34% 0 0; }
.rd__art img { width: 100%; height: 100%; object-fit: cover; }
.rd__art--none { background: linear-gradient(135deg, var(--burgundy), #3A2620); }
.rd__txt { display: grid; gap: 2px; min-width: 0; }
.rd__txt b { font: 600 1.2rem/1.1 var(--display); }
.rd__txt small { font: 700 .66rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ---------- footer ---------- */
.footer { background: var(--espresso-2); color: rgba(255, 248, 237, .86); }
.footer .tiles { background-color: var(--espresso-2); }
.footer__grid { display: grid; gap: 40px; padding-block: 64px 40px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.footer .eyebrow { color: var(--gold); }
.footer h2 { color: var(--ivory); }
.footer .lede { color: rgba(255, 248, 237, .72); }
.rose--big { width: 56px; height: 56px; margin-bottom: 16px; }
.footer__notes h3 { font-size: 1.7rem; color: var(--gold); margin-bottom: 10px; }
.footer__notes p { margin: 0 0 12px; max-width: 40em; font-size: .95rem; }
.contact p { margin: 8px 0 0; }
.sel { user-select: all; }
.footer__base {
  margin: 0; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: .8rem; letter-spacing: .08em;
  border-top: 1px solid rgba(198, 166, 103, .2); color: rgba(255, 248, 237, .55);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed; z-index: 45;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--gold); cursor: pointer;
  background: var(--burgundy); color: var(--ivory); display: grid; place-items: center;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease), background .3s;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.to-top svg { width: 22px; height: 22px; fill: currentColor; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--burgundy-2); }

/* ---------- modal ---------- */
.modal {
  width: min(980px, calc(100% - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 1px solid var(--gold);
  background: var(--ivory); color: var(--ink); overflow: auto;
}
.modal::backdrop { background: rgba(20, 14, 12, .72); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .45s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); cursor: pointer;
  background: rgba(255, 248, 237, .92); display: grid; place-items: center;
}
.modal__close svg { width: 20px; height: 20px; fill: var(--ink); }
.modal__body { display: grid; }
@media (min-width: 820px) { .modal__body { grid-template-columns: 1.05fr 1fr; } .modal__body--text { grid-template-columns: minmax(0, 1fr); max-width: 640px; } .modal__body--text .modal__text { padding: 48px 40px 40px; } }
.modal__media { padding: 16px; min-width: 0; }
.modal__media > img { width: 100%; height: auto; border-radius: 50% 50% 0 0 / 34% 34% 0 0; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.gallery__btn { display: grid; gap: 6px; padding: 4px; border: 1px solid var(--line); background: #FFFDF8; cursor: pointer; text-align: center; transition: border-color .25s, box-shadow .25s; }
.gallery__btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__btn span { font: 600 1.02rem/1.1 var(--display); padding-bottom: 4px; }
.gallery__btn:hover { border-color: var(--gold); }
.gallery__btn[aria-pressed="true"] { border-color: var(--burgundy); box-shadow: 0 0 0 1px var(--burgundy); }
.gallery__btn[aria-pressed="true"] span { color: var(--burgundy); }
.modal__credit { margin: 10px 0 0; font: italic 500 .95rem var(--display); color: var(--muted); text-align: center; }
.modal__text { padding: 8px 24px 30px; min-width: 0; display: grid; gap: 12px; align-content: start; }
@media (min-width: 820px) { .modal__text { padding: 40px 36px 36px 12px; } }
.modal__text h3 { font-size: clamp(2.2rem, 4.4vw, 3.1rem); }
.modal__price .price { font-size: 1.9rem; }
.modal__desc { margin: 0; color: var(--muted); }
.modal__meta { display: flex; gap: 28px; margin: 4px 0 0; padding: 12px 0; border-block: 1px solid var(--line); }
.modal__meta dt { font: 700 .66rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.modal__meta dd { margin: 6px 0 0; font: 600 1.2rem/1.1 var(--display); color: var(--olive); }
.modal__story { margin: 0; font: 500 1.24rem/1.5 var(--display); }
.modal__fact { margin: 0; padding: 14px 16px; background: var(--paper); border-left: 3px solid var(--gold); font-size: .95rem; }
.modal__fact span { display: block; font: 700 .66rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 6px; }

/* ---------- scroll reveal ---------- */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.pre { opacity: 0; transform: translateY(26px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal.pre { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
  .brand__name { white-space: normal; font-size: 1.12rem; line-height: .95; max-width: 7.2em; }
  .topbar__in { gap: 10px; }
}

/* ---------- Menú del Día (lunch special) ---------- */
#cat-lunch .cat__banner { box-shadow: 0 0 0 1px var(--gold), 0 0 0 5px var(--ivory), 0 0 0 6px var(--burgundy); }
.hours-chip {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin: 16px 0 0;
  padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(198, 166, 103, .7);
  background: rgba(255, 248, 237, .08); color: #F3DDB0; font: 700 .76rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase;
}
.hours-chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
.hours-chip.is-open { background: var(--olive); border-color: #8E9C6E; color: var(--ivory); }
.hours-chip.is-open .hours-chip__dot { background: #D8F0B0; box-shadow: 0 0 0 0 rgba(216, 240, 176, .7); animation: livePulse 2s ease-out infinite; }
@keyframes livePulse { to { box-shadow: 0 0 0 8px rgba(216, 240, 176, 0); } }
.lunch-combo { background: linear-gradient(135deg, var(--burgundy), var(--burgundy-2)); border-color: var(--gold); color: var(--ivory); overflow: hidden; }
.lunch-combo::before { border-color: rgba(198, 166, 103, .45); }
.lunch-combo .eyebrow { color: var(--gold); }
.lunch-combo__txt { position: relative; display: grid; gap: 6px; }
.lunch-combo__price { margin: 0; font: 600 clamp(2.6rem, 6vw, 3.6rem)/1 var(--display); color: var(--ivory); font-variant-numeric: lining-nums; }
.lunch-combo__desc { margin: 0; max-width: 30em; color: rgba(255, 248, 237, .88); font-size: 1rem; }
.lunch-combo__img { position: relative; width: 100%; max-width: 100%; aspect-ratio: 545 / 174; object-fit: cover; border: 1px solid rgba(198, 166, 103, .6); }
@media (min-width: 720px) { .lunch-combo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }

/* allergens + category notices */
.allergens { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 10px 0 0; }
.allergens__label { font: 700 .66rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.allergen { font: 400 .74rem/1.2 var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.cat__notice { max-width: 46em; margin: -10px 0 26px; padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--paper); font: 400 .95rem/1.5 var(--body); color: var(--ink); border-radius: 0 6px 6px 0; }
