/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, iframe { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--color-ink); color: var(--color-on-dark);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius);
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

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

.kicker {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin: 0 0 var(--sp-4);
}
.kicker--light { color: var(--color-gold); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--step-0); line-height: 1;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-lg);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn--lg { padding: var(--sp-4) var(--sp-8); font-size: var(--step-1); }
.btn--wa { background: var(--color-wa); color: #fff; }
.btn--wa:hover { background: var(--color-wa-2); transform: translateY(-2px); box-shadow: 0 8px 22px -10px oklch(50% 0.16 150 / .7); }
.btn--wa:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--color-ink); border-color: var(--color-rule); }
.btn--ghost:hover { border-color: var(--color-ink); background: oklch(19% 0.018 45 / .04); transform: translateY(-2px); }
.hero .btn--ghost { color: var(--color-on-dark); border-color: oklch(95% 0.015 75 / .5); }
.hero .btn--ghost:hover { border-color: var(--color-on-dark); background: oklch(95% 0.015 75 / .1); }
.wa-ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: 0 0 auto; }

/* ===== Masthead nav (N6) ===== */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: oklch(96% 0.018 72 / .82);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--color-rule);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.masthead.is-scrolled { box-shadow: 0 4px 20px -16px oklch(19% 0.018 45 / .6); }
.masthead__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: var(--sp-3) var(--sp-6);
  display: flex; align-items: center; gap: var(--sp-6);
}
.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.wordmark__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--step-1); color: var(--color-ink); letter-spacing: -0.01em;
}
.wordmark__sub {
  font-family: var(--font-mono); font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--color-accent); margin-top: 3px;
}
.masthead__nav { margin-left: auto; display: flex; gap: var(--sp-6); }
.masthead__nav a {
  text-decoration: none; color: var(--color-muted);
  font-weight: 500; font-size: var(--step-0);
  position: relative; padding: var(--sp-1) 0;
  transition: color .18s var(--ease);
}
.masthead__nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1.5px; background: var(--color-accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.masthead__nav a:hover { color: var(--color-ink); }
.masthead__nav a:hover::after { transform: scaleX(1); }
.masthead__cta { padding: var(--sp-2) var(--sp-4); font-size: var(--step--1); }

/* ===== Hero (H6 photographic) ===== */
.hero {
  position: relative; min-height: min(92svh, 760px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--sp-16) var(--sp-6) var(--sp-20);
  overflow: clip; isolation: isolate;
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, oklch(14% 0.02 40 / .92) 0%, oklch(14% 0.02 40 / .55) 38%, oklch(14% 0.02 40 / .15) 72%, oklch(14% 0.02 40 / .35) 100%);
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; width: 100%; color: var(--color-on-dark); }
.hero__eyebrow {
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--color-gold); margin: 0 0 var(--sp-4);
}
.hero__title {
  font-size: var(--display); font-weight: 600;
  max-width: 16ch; text-shadow: 0 2px 30px oklch(14% 0.02 40 / .5);
}
.hero__lede {
  font-size: var(--step-1); max-width: 46ch; margin: var(--sp-6) 0 var(--sp-8);
  color: oklch(95% 0.015 75 / .92);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.hero__scroll {
  position: absolute; bottom: var(--sp-6); left: 50%; transform: translateX(-50%);
  width: 26px; height: 40px; border: 1.5px solid oklch(95% 0.015 75 / .5);
  border-radius: 14px; z-index: 1;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 7px;
  background: var(--color-gold); border-radius: 2px; transform: translateX(-50%);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,12px)} 100%{opacity:0} }

/* ===== Valor ===== */
.valor { padding: var(--sp-32) var(--sp-6); background: var(--color-paper); }
.valor__inner { max-width: var(--maxw-narrow); margin: 0 auto; text-align: center; }
.valor__title { font-size: var(--step-3); margin-bottom: var(--sp-6); }
.valor__body { font-size: var(--step-1); color: var(--color-muted); margin: 0 auto var(--sp-12); max-width: 50ch; }
.valor__marks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); text-align: left; max-width: 34rem; margin: 0 auto; }
.valor__marks li {
  display: flex; align-items: baseline; gap: var(--sp-4);
  padding: var(--sp-4) 0; border-top: 1px solid var(--color-rule);
  font-size: var(--step-1); font-family: var(--font-display); font-weight: 500;
}
.valor__marks li:last-child { border-bottom: 1px solid var(--color-rule); }
.valor__mark-n { font-family: var(--font-mono); font-size: var(--step--1); color: var(--color-accent); flex: 0 0 auto; }

/* ===== Menu ===== */
.menu { padding: var(--sp-24) var(--sp-6) var(--sp-32); background: var(--color-paper-2); }
.menu__head { max-width: var(--maxw); margin: 0 auto var(--sp-16); }
.menu__title { font-size: var(--step-3); margin-bottom: var(--sp-4); }
.menu__note { color: var(--color-muted); max-width: 48ch; margin: 0; font-size: var(--step-0); }
.menu__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8);
}
.dish {
  background: var(--color-paper); border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg); overflow: clip;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.dish:hover { transform: translateY(-5px); box-shadow: 0 22px 45px -28px oklch(19% 0.018 45 / .55); border-color: var(--color-neutral); }
.dish__media { aspect-ratio: 16 / 10; overflow: clip; }
.dish__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease-out); }
.dish:hover .dish__media img { transform: scale(1.06); }
.dish__body { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.dish__name { font-size: var(--step-2); }
.dish__desc { color: var(--color-muted); margin: 0; flex: 1; }
.dish__tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-accent);
  border: 1px solid var(--color-rule); border-radius: 999px; padding: 3px var(--sp-3);
}

/* ===== Ambiente (full-bleed photo) ===== */
.ambiente {
  position: relative; padding: var(--sp-32) var(--sp-6);
  overflow: clip; isolation: isolate; color: var(--color-on-dark);
}
.ambiente__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.ambiente__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, oklch(14% 0.02 40 / .9) 0%, oklch(14% 0.02 40 / .55) 60%, oklch(14% 0.02 40 / .3) 100%);
}
.ambiente__inner { max-width: var(--maxw); margin: 0 auto; }
.ambiente__title { font-size: var(--step-3); max-width: 18ch; }
.ambiente__body { font-size: var(--step-1); max-width: 44ch; margin-top: var(--sp-6); color: oklch(95% 0.015 75 / .9); }

/* ===== Ubicación ===== */
.ubicacion { padding: var(--sp-32) var(--sp-6); background: var(--color-paper); }
.ubicacion__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--sp-16); align-items: center;
}
.ubicacion__title { font-size: var(--step-3); margin-bottom: var(--sp-8); max-width: 14ch; }
.datos { margin: 0 0 var(--sp-8); }
.datos__row { display: grid; grid-template-columns: 9rem 1fr; gap: var(--sp-4); padding: var(--sp-4) 0; border-top: 1px solid var(--color-rule); }
.datos__row:last-child { border-bottom: 1px solid var(--color-rule); }
.datos dt { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-neutral); }
.datos dd { margin: 0; font-size: var(--step-0); }
.datos a { color: var(--color-accent); text-decoration: none; font-weight: 500; }
.datos a:hover { text-decoration: underline; }
.ubicacion__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.ubicacion__map { border-radius: var(--radius-lg); overflow: clip; border: 1px solid var(--color-rule); box-shadow: 0 18px 40px -30px oklch(19% 0.018 45 / .5); }
.ubicacion__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ===== CTA final ===== */
.cta {
  padding: var(--sp-32) var(--sp-6); text-align: center;
  background: var(--color-ink-deep); color: var(--color-on-dark);
  position: relative; overflow: clip;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 120%, oklch(50% 0.19 28 / .35), transparent 60%);
  z-index: 0;
}
.cta__inner { max-width: var(--maxw-narrow); margin: 0 auto; position: relative; z-index: 1; }
.cta__title { font-size: var(--display); margin-bottom: var(--sp-6); }
.cta__body { font-size: var(--step-1); color: oklch(95% 0.015 75 / .82); margin: 0 auto var(--sp-12); max-width: 42ch; }

/* ===== Footer ===== */
.footer { background: var(--color-ink); color: oklch(95% 0.015 75 / .8); padding: var(--sp-16) var(--sp-6) var(--sp-8); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: var(--sp-8); justify-content: space-between; align-items: flex-start;
}
.footer .wordmark__name { color: var(--color-on-dark); }
.footer__addr { font-style: normal; line-height: 1.7; font-size: var(--step-0); }
.footer__addr a { color: var(--color-gold); text-decoration: none; }
.footer__addr a:hover { text-decoration: underline; }
.footer__nav { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__nav a { text-decoration: none; color: oklch(95% 0.015 75 / .8); }
.footer__nav a:hover { color: var(--color-on-dark); }
.footer__legal {
  max-width: var(--maxw); margin: var(--sp-12) auto 0;
  padding-top: var(--sp-6); border-top: 1px solid oklch(95% 0.015 75 / .12);
  font-family: var(--font-mono); font-size: 0.72rem; color: oklch(95% 0.015 75 / .55);
}

/* ===== Sticky WhatsApp float (móvil) ===== */
.wa-float {
  position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-wa); color: #fff;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -8px oklch(50% 0.16 150 / .8);
  transition: transform .2s var(--ease);
}
.wa-float .wa-ico { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.menu__grid .dish:nth-child(2) { transition-delay: .08s; }
.menu__grid .dish:nth-child(3) { transition-delay: .16s; }
.menu__grid .dish:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__img { animation: none; }
  .hero__scroll span { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .ubicacion__grid { grid-template-columns: 1fr; gap: var(--sp-12); }
  .ubicacion__map { order: -1; }
}
@media (max-width: 720px) {
  .masthead__nav { display: none; }
  .masthead__cta { margin-left: auto; }
  .menu__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .wa-float { display: flex; }
  .hero { min-height: 88svh; padding-bottom: var(--sp-16); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
}
@media (max-width: 420px) {
  .masthead__inner { padding: var(--sp-3) var(--sp-4); gap: var(--sp-3); }
  .valor, .menu, .ambiente, .ubicacion, .cta { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .datos__row { grid-template-columns: 1fr; gap: var(--sp-1); }
  .ubicacion__actions .btn, .cta .btn { width: 100%; justify-content: center; }
}
