:root {
  --ink: #1b1714;
  --ink-2: #2a241f;
  --cream: #f6f0e7;
  --paper: #fbf8f3;
  --line: #e4d9c9;
  --muted: #7a6d60;
  --ember: #c4703a;
  --ember-2: #d9a066;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 6vw, 2.9rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5em 1em; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.eyebrow {
  font-size: .75rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ember); font-weight: 600; margin-bottom: .8em;
}
.note { color: var(--muted); font-size: .92rem; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.4em; border-radius: 999px;
  text-decoration: none; font-weight: 600; letter-spacing: .02em;
  transition: background .2s, color .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: #ad5f2d; }
.btn-ghost { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ghost-dark { border: 1px solid var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }
.btn-big { min-height: 56px; font-size: 1.1rem; padding: 0 2em; }

/* Navegación */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 20px;
  color: #fff; transition: background .3s, box-shadow .3s;
}
.nav.solid { background: rgba(27,23,20,.94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.brand { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; text-decoration: none; letter-spacing: .02em; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .25s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.nav-links {
  position: fixed; inset: 60px 0 auto 0;
  display: flex; flex-direction: column; padding: 8px 20px 24px;
  background: rgba(27,23,20,.98);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-links.open { transform: none; opacity: 1; visibility: visible; }
.nav-links a { padding: 14px 0; text-decoration: none; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-links .nav-cta { margin-top: 12px; border: 0; color: var(--ember-2); font-weight: 600; }

/* Portada */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,13,.55) 0%, rgba(20,16,13,.15) 35%, rgba(20,16,13,.85) 100%); }
.hero-text { position: relative; padding: 0 20px 56px; max-width: 720px; }
.hero h1 { font-size: clamp(3.4rem, 15vw, 6.5rem); font-weight: 500; margin-bottom: .15em; }
.hero .eyebrow { color: var(--ember-2); }
.lede { font-size: 1.15rem; max-width: 32ch; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.4em; }
.rating { font-size: .9rem; opacity: .85; margin: 0; }
.rating span { color: var(--ember-2); }

/* Nosotros */
.about-grid { display: grid; gap: 40px; }
.about-text p { color: #3d342c; }
.facts { list-style: none; padding: 0; margin: 1.6em 0 0; border-top: 1px solid var(--line); }
.facts li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); position: relative; }
.facts li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ember); }
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Opiniones */
.quotes { background: var(--ink); color: var(--cream); padding: 56px 0; }
.quotes-grid { display: grid; gap: 32px; }
.quotes blockquote { margin: 0; }
.quotes blockquote p { font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.35; margin-bottom: .6em; }
.quotes cite { font-style: normal; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ember-2); }

/* Platos */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.gallery figure { margin: 0; }
.zoom { display: block; width: 100%; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .5s; }
.zoom:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: .88rem; color: var(--muted); padding: 8px 2px 0; }

/* Carta */
.menu { background: var(--cream); }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 28px -20px 0; padding: 0 20px 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 0 0 auto; min-height: 44px; padding: 0 1.2em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: .95rem;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.panel { margin-top: 28px; }
.panel h3 { color: var(--ink-2); }
.panel-intro { color: var(--muted); font-style: italic; }
.dishlist { list-style: none; padding: 0; margin: 0; }
.dishlist li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px dashed #d6c8b4;
}
.dishlist b { white-space: nowrap; font-weight: 600; color: var(--ember); font-variant-numeric: tabular-nums; }
.celiac { margin-top: 24px; font-weight: 600; }
.menu-photos { margin-top: 36px; }
.menu-photos > p { color: var(--muted); font-size: .92rem; }
.menu-thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 420px; }
.menu-thumbs img { aspect-ratio: 2/3; object-fit: cover; width: 100%; }

/* Horario */
.hours-grid { display: grid; gap: 28px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hours-table th { font-weight: 600; padding-right: 16px; }
.hours-table td { text-align: right; color: #3d342c; font-variant-numeric: tabular-nums; }
.hours-table tr.today th, .hours-table tr.today td { color: var(--ember); }
.hours-table tr.today th::after { content: " · hoy"; font-weight: 400; font-size: .85em; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #9a8f84; }
.status.open::before { background: #3f9b5b; }

/* Ubicación */
.location { background: var(--cream); }
.loc-grid { display: grid; gap: 28px; }
address { font-style: normal; font-size: 1.1rem; margin-bottom: 1.4em; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Reservas */
.reserve { background: var(--ink) linear-gradient(160deg, #2a1d14, #1b1714 60%); color: var(--cream); text-align: center; }
.reserve-inner { max-width: 640px; }
.reserve .eyebrow { color: var(--ember-2); }
.reserve p { opacity: .9; }
.reserve .btn { margin: 1em 0 1.6em; }
.social a { color: var(--ember-2); text-decoration: none; }
.social a:hover { text-decoration: underline; }
.social span { margin: 0 .5em; opacity: .5; }

/* Pie */
.footer { background: #13100e; color: #b9ad9f; font-size: .9rem; padding: 56px 0 96px; }
.footer-grid { display: grid; gap: 32px; }
.brand-foot { color: var(--cream); margin-bottom: .4em; }
.footer a { color: var(--cream); }
.legal h2 { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream); margin-bottom: 1em; }
.legal p { font-size: .82rem; line-height: 1.6; }
.copy { text-align: center; font-size: .78rem; margin: 32px 0 0; opacity: .6; }

/* Botón flotante (móvil) */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--ember); color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transform: translateY(120px); transition: transform .3s;
}
.fab.show { transform: none; }

/* Visor */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(10,8,6,.94);
  display: grid; place-items: center; padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; width: auto; max-width: 100%; border-radius: 8px; }
.lb-close { position: absolute; top: 8px; right: 12px; width: 48px; height: 48px; font-size: 2.2rem; color: #fff; line-height: 1; }

/* Tablet y escritorio */
@media (min-width: 760px) {
  .section { padding: 104px 0; }
  .wrap { padding: 0 32px; }
  .about-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; }
  .quotes-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hours-grid, .loc-grid { grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
  .footer-grid { grid-template-columns: 1fr 2fr; }
  .hero-text { padding: 0 32px 80px; }
  .tabs { margin: 28px 0 0; padding: 0; }
  .dishlist { columns: 2; column-gap: 48px; }
  .dishlist li { break-inside: avoid; }
}
@media (min-width: 960px) {
  .nav { padding: 0 32px; height: 68px; }
  .nav-toggle { display: none; }
  .nav-links {
    position: static; flex-direction: row; align-items: center; gap: 28px;
    padding: 0; background: none; transform: none; opacity: 1; visibility: visible;
  }
  .nav-links a { padding: 0; border: 0; font-size: .92rem; letter-spacing: .04em; }
  .nav-links .nav-cta { margin: 0; padding: .55em 1.2em; border: 1px solid var(--ember-2); border-radius: 999px; }
  .hero-text { margin-left: max(0px, calc((100vw - 1120px) / 2)); }
  .fab { display: none; }
  html { scroll-padding-top: 72px; }
}

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