/* Don Vitto — tokens según DESIGN.md */
:root {
  --bg: #0F0D0B;
  --bg-raised: #181512;
  --line: #2E2924;
  --text: #F2EBDD;
  --text-muted: #B3A894;
  --primary: #E2673A;
  --primary-hover: #F07C4F;
  --on-primary: #140F0B;
  --accent: #C9A96E;
  --error: #F0857A;
  --focus: #F2EBDD;

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Instrument Sans", system-ui, sans-serif;
  --f-hand: "Caveat", cursive;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --section: var(--s9);
  --gutter: 48px;
  --max: 1200px;
  --r-sm: 2px; --r-md: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
/* grano muy sutil */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(44px, 7.5vw, 88px); line-height: .98; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin-bottom: var(--s5); }
h3 { font-size: 22px; line-height: 1.3; font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--primary); }
p { margin: 0 0 var(--s4); max-width: 62ch; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 13px; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s4); font-weight: 500; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.hand { font-family: var(--f-hand); font-size: 26px; line-height: 1.2; color: var(--accent); }
.todo { color: var(--accent); font-style: italic; }

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

.skip { position: absolute; left: var(--s4); top: -60px; background: var(--text); color: var(--bg); padding: var(--s2) var(--s4); z-index: 200; }
.skip:focus { top: var(--s4); }

.proposal { background: var(--accent); color: var(--on-primary); text-align: center; font-size: 13px; font-weight: 500; padding: 6px var(--s4); }

/* Botones y enlaces */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font: 600 14px/1 var(--f-body); letter-spacing: .02em;
  padding: 14px 24px; border-radius: var(--r-sm); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { border-color: var(--text); color: var(--text); background: transparent; }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn--sm { padding: 10px 18px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.link { text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link:hover { color: var(--primary-hover); }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(15,13,11,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font: 600 24px/1 var(--f-display); text-decoration: none; display: flex; flex-direction: column; gap: 4px; margin: 0; }
.logo span { font: 500 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.nav__links { display: flex; align-items: center; gap: var(--s6); }
.nav__links a:not(.btn) { text-decoration: none; font-size: 15px; color: var(--text-muted); }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); font: 500 14px var(--f-body); padding: 8px 14px; border-radius: var(--r-sm); cursor: pointer; }

/* Marco de foto con placeholder cálido */
.photo { position: relative; overflow: hidden; background:
  radial-gradient(120% 90% at 30% 70%, #5a2a14 0%, #2a1609 40%, #120d09 80%); }
.photo::after { content: attr(data-label); position: absolute; left: var(--s4); bottom: var(--s4); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(242,235,221,.55); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: end; }
.hero__media { position: absolute; inset: 0 0 0 38%; }
.hero__media::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, var(--bg) 0%, rgba(15,13,11,.6) 30%, rgba(15,13,11,0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(15,13,11,0) 35%); }
.hero__media::after { z-index: 3; left: auto; right: var(--s5); }
.hero__content { position: relative; z-index: 4; width: 100%; padding-top: var(--s9); padding-bottom: var(--s9); }
.hero h1 { margin-bottom: var(--s5); max-width: 12ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero__note { margin-top: var(--s6); transform: rotate(-2deg); }

/* Historia */
.story { padding: var(--section) 0; }
.story__grid { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s8); align-items: center; }
.story__photo { aspect-ratio: 4 / 5; border-radius: var(--r-md); }
.story__sign { margin-top: var(--s5); transform: rotate(-1.5deg); }
.story__text p:not(.eyebrow):not(.hand) { color: var(--text-muted); }

/* Carta */
.menu { padding: var(--section) 0; background: var(--bg-raised); border-block: 1px solid var(--line); }
.menu__head { display: flex; justify-content: space-between; align-items: end; gap: var(--s5); flex-wrap: wrap; }
.menu__todo { font-size: 13px; color: var(--accent); border: 1px dashed var(--accent); padding: 6px 12px; border-radius: var(--r-sm); margin: 0 0 var(--s5); }
.tabs { display: flex; gap: var(--s2); border-bottom: 1px solid var(--line); margin-bottom: var(--s7); overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-muted); font: 500 16px var(--f-body); padding: var(--s3) var(--s4); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--primary); }
.dishes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s8); }
.dish__row { display: flex; align-items: baseline; gap: var(--s3); }
.dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-5px); min-width: 24px; }
.price { font-family: var(--f-display); color: var(--primary); font-size: 20px; white-space: nowrap; }
.dishes p { color: var(--text-muted); margin: var(--s1) 0 0; font-size: 15px; }
.menu__warn { margin-top: calc(-1 * var(--s5)); margin-bottom: var(--s5); }

/* Destacada */
.feature { display: grid; grid-template-columns: 7fr 5fr; min-height: 560px; }
.feature__media { min-height: 400px; }
.feature__text { padding: var(--s9) var(--gutter); align-self: center; }
.feature__text p:not(.eyebrow) { color: var(--text-muted); }

/* Catering */
.catering { padding: var(--section) 0; border-top: 1px solid var(--line); }
.catering__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: start; }
.catering p { color: var(--text-muted); }

/* Reservas */
.booking { padding: var(--section) 0; background: var(--bg-raised); border-block: 1px solid var(--line); }
.booking__grid { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s8); }
.booking__grid > div p { color: var(--text-muted); }
.booking__alt { margin-top: var(--s5); }
.form { display: grid; gap: var(--s5); }
.field { display: grid; gap: var(--s2); }
.field-row { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: var(--s4); }
label { font-size: 14px; font-weight: 500; }
.opt { color: var(--text-muted); font-weight: 400; }
input, textarea, select {
  font: 400 16px/1.4 var(--f-body); color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; width: 100%;
  color-scheme: dark;
}
input:hover, textarea:hover, select:hover { border-color: #4a423a; }
input:focus, textarea:focus, select:focus { border-color: var(--text); outline: none; box-shadow: 0 0 0 1px var(--text); }
textarea { resize: vertical; }
.form__error { color: var(--error); margin: 0; font-size: 14px; }
.form .btn { justify-self: start; }
.form__actions { display: flex; flex-wrap: wrap; gap: var(--s4); }
.proposal a { color: inherit; font-weight: 600; }
.catering__actions { display: grid; grid-template-columns: 1fr; gap: var(--s3); max-width: 340px; }
.catering__actions .btn { text-align: center; display: flex; align-items: center; justify-content: center; }

/* Visítanos */
.visit { padding: var(--section) 0; }
.visit__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: stretch; }
.visit dl { margin: 0 0 var(--s6); display: grid; gap: var(--s4); }
.visit dl div { display: grid; grid-template-columns: 110px 1fr; gap: var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.visit dt { color: var(--text-muted); font-size: 14px; }
.visit dd { margin: 0; }
.visit__map { min-height: 380px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.visit__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(1) invert(.92) contrast(.9) sepia(.15); }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s6); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s6); }
.footer a { text-decoration: none; color: var(--text-muted); line-height: 2; }
.footer a:hover { color: var(--text); }
.footer__title { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s2); }
.footer__bottom { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: 13px; }

/* Tableta */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .nav__links { gap: var(--s5); }
  .hero__media { inset: 0 0 0 20%; }
  .story__grid, .booking__grid, .visit__grid { gap: var(--s7); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Móvil */
@media (max-width: 760px) {
  :root { --gutter: 20px; --section: var(--s8); }
  .nav__toggle { display: block; }
  .nav__links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s2) var(--gutter) var(--s5); }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: var(--s4) 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text); }
  .nav__links .btn { margin-top: var(--s4); }
  .hero { min-height: auto; display: block; }
  .hero__media { position: relative; inset: auto; height: 46vh; min-height: 280px; }
  .hero__media::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(15,13,11,0) 60%); }
  .hero__media::after { right: auto; left: var(--s4); top: var(--s4); bottom: auto; }
  .hero__content { padding-top: 0; padding-bottom: var(--s8); margin-top: calc(-1 * var(--s7)); }
  .story__grid, .catering__inner, .booking__grid, .visit__grid, .feature { grid-template-columns: 1fr; }
  .story__grid { gap: var(--s6); }
  .story__photo { aspect-ratio: 4 / 3; }
  .dishes { grid-template-columns: 1fr; gap: var(--s5); }
  .feature__media { min-height: 300px; }
  .feature__text { padding: var(--s8) var(--gutter); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .field:first-child { grid-column: 1 / -1; }
  .visit dl div { grid-template-columns: 90px 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .form .btn { justify-self: stretch; }
  .form__actions { flex-direction: column; }
  .form__actions .btn { width: 100%; }
  .catering__actions { grid-template-columns: 1fr; }
}

/* Página de venta */
.field-row--two { grid-template-columns: 1fr 1fr; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__legal { font-size: 13px; color: var(--text-muted); margin: 0; }
.form__ok { color: var(--accent); margin: 0; font-size: 15px; }
.booking { scroll-margin-top: 68px; }
.sale-hero { padding: var(--section) 0 var(--s8); }
.sale-hero h1 { margin-bottom: var(--s5); }
.sale-hero .hand { margin-top: var(--s5); }
.sale-extra { padding: var(--section) 0; }
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6); max-width: 820px; }
.offers li { padding-bottom: var(--s6); border-bottom: 1px solid var(--line); }
.offers li:last-child { border-bottom: 0; padding-bottom: 0; }
.offers p { color: var(--text-muted); margin: var(--s2) 0 var(--s3); font-size: 16px; }
.offers li > p:last-child { margin-bottom: 0; }
.offers strong { color: var(--text); font-weight: 600; }
.offers .price small { font: 400 14px var(--f-body); color: var(--text-muted); }
.offers__featured { border: 1px solid var(--accent) !important; border-radius: var(--r-md); padding: var(--s5) !important; }
.sale-cta { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s8); align-items: center; }
.sale-cta > div:first-child p { color: var(--text-muted); }
.sale-cta__note { margin: var(--s5) 0 0; font-size: 14px; color: var(--text-muted); }
.footer__bottom a { text-decoration: underline; }
@media (max-width: 760px) {
  .nav__links--static { position: static !important; display: flex !important; flex-direction: row !important; padding: 0 !important; background: none !important; border: 0 !important; gap: var(--s4); }
  .nav__links--static a:not(.btn) { padding: 0 !important; border: 0 !important; font-size: 15px !important; }
  .nav__links--static .btn { margin-top: 0 !important; }
  .sale-cta { grid-template-columns: 1fr; gap: var(--s6); }
  .offers .dish__row { flex-wrap: wrap; }
  .field-row--two { grid-template-columns: 1fr; }
  .field-row--two .field:first-child { grid-column: auto; }
}
