/* Quebracho · proyecto conceptual de NORTH Studio Latam
   Editorial, oscuro y cálido: el carbón de fondo, la brasa como único acento.
   Fraunces para los títulos (serif con cuerpo óptico), Instrument Sans para leer. */

@font-face { font-family: Fraunces; src: url(fonts/fraunces-latin-full-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-standard-normal.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --coal: #12100e;
  --coal-2: #1b1815;
  --coal-3: #26211c;
  --bone: #efe7dc;
  --bone-2: #b9aea0;
  --bone-3: #8d8274;
  --paper: #f2ebe1;
  --paper-2: #e6ddd0;
  --ink: #1c1814;
  --ink-2: #5a5047;
  --ember: #e2591f;
  --ember-2: #f07a3a;

  --pad: clamp(18px, 4vw, 64px);
  --sec: clamp(104px, 14vw, 200px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.32, .72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* Lo que lleva el atributo hidden no se muestra ni recibe clics (los menús lo usan al cerrarse) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--coal); color: var(--bone);
  font: 400 1.0625rem/1.6 "Instrument Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, output { font: inherit; color: inherit; }
::selection { background: var(--ember); color: #fff; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.h2 {
  margin: 0; font-family: Fraunces, Georgia, serif; font-weight: 340;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(2.5rem, 1.3rem + 4.2vw, 5.5rem); line-height: .98; letter-spacing: -0.025em;
  text-wrap: balance;
}
em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .5s var(--spring), background-color .3s, color .3s, box-shadow .3s;
}
.btn:active { transform: scale(.97); }
.btn--ember { background: var(--ember); color: #fff; }
.btn--ember:hover { background: var(--ember-2); }
.btn--ghost { color: var(--bone); box-shadow: inset 0 0 0 1px rgba(239, 231, 220, .35); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--bone); }
.btn--block { width: 100%; }

/* ── Barra superior ── */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--pad);
  transition: background-color .5s var(--ease), padding .5s var(--ease), transform .6s var(--spring);
}
.top.is-solid { background: rgba(18, 16, 14, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding-top: 12px; padding-bottom: 12px; }
.top.is-hidden { transform: translateY(-100%); }
.top__brand { font-family: Fraunces, serif; font-size: 1.625rem; font-weight: 400; font-variation-settings: "opsz" 72; letter-spacing: -0.02em; text-decoration: none; }
.top__nav { display: flex; gap: 28px; margin-left: auto; }
.top__nav a { position: relative; text-decoration: none; color: var(--bone-2); font-size: .9375rem; transition: color .3s; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--ember); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.top__nav a:hover, .top__nav a[aria-current] { color: var(--bone); }
.top__nav a:hover::after, .top__nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.top__cta { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.top__burger { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 50%; background: rgba(239, 231, 220, .08); cursor: pointer; }
.top__burger span { position: absolute; left: 14px; right: 14px; top: 50%; height: 1.5px; background: var(--bone); transition: transform .5s var(--spring); }
.top__burger span:first-child { transform: translateY(-4px); }
.top__burger span:last-child { transform: translateY(4px); }
.top__burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.top__burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 15;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 32px;
  padding: 100px 24px 40px; background: var(--coal);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.sheet.is-open { clip-path: inset(0); }
.sheet nav { display: grid; }
.sheet a { font-family: Fraunces, serif; font-weight: 340; font-size: clamp(2.5rem, 11vw, 3.5rem); line-height: 1.15; text-decoration: none; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.sheet.is-open a { opacity: 1; transform: none; }
.sheet.is-open a:nth-child(2) { transition-delay: .06s; }
.sheet.is-open a:nth-child(3) { transition-delay: .12s; }
.sheet.is-open a:nth-child(4) { transition-delay: .18s; color: var(--ember); }
.sheet p { margin: 0; color: var(--bone-3); }

/* ── Portada ── */
.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; display: flex; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 16, 14, .55) 0%, rgba(18, 16, 14, .1) 30%, rgba(18, 16, 14, .35) 62%, rgba(18, 16, 14, .95) 100%); }
.hero__inner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; padding: 120px var(--pad) clamp(28px, 5vw, 64px); }
.hero__kicker { margin: 0 0 18px; color: var(--bone-2); font-size: .9375rem; }
.hero__title {
  margin: 0; font-family: Fraunces, Georgia, serif; font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(3.5rem, 1rem + 10.5vw, 13rem); line-height: .86; letter-spacing: -0.035em;
}
.hero__title em { color: var(--ember-2); }
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.hero__lead { margin: 0; max-width: 44ch; color: rgba(239, 231, 220, .86); font-size: 1.125rem; line-height: 1.55; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fire {
  position: absolute; top: clamp(96px, 12vh, 132px); right: var(--pad);
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px;
  border-radius: 999px; background: rgba(18, 16, 14, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .875rem; color: var(--bone); font-variant-numeric: tabular-nums;
}
.fire__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bone-3); }
.fire.is-lit .fire__dot { background: var(--ember-2); box-shadow: 0 0 0 0 rgba(240, 122, 58, .6); animation: ember 2.4s ease-out infinite; }
@keyframes ember { 0% { box-shadow: 0 0 0 0 rgba(240, 122, 58, .55); } 100% { box-shadow: 0 0 0 12px rgba(240, 122, 58, 0); } }

/* ── Intro ── */
.intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 8vw, 140px); align-items: end; padding: var(--sec) var(--pad); max-width: 1500px; margin: 0 auto; }
.intro__text { margin: 0; font-family: Fraunces, serif; font-weight: 340; font-variation-settings: "opsz" 72; font-size: clamp(1.75rem, 1.1rem + 2vw, 3rem); line-height: 1.18; letter-spacing: -0.015em; text-wrap: pretty; }
.intro__facts { display: grid; gap: 28px; margin: 0; }
.intro__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-bottom: 18px; box-shadow: inset 0 -1px 0 rgba(239, 231, 220, .14); }
.intro__facts dt { color: var(--bone-2); }
.intro__facts dd { margin: 0; font-family: Fraunces, serif; font-weight: 300; font-size: clamp(2.5rem, 2rem + 2vw, 4rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }

/* ── Tiempos de fuego (horizontal) ── */
.times { position: relative; }
.times__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 5vh, 56px); padding: 96px 0 48px; overflow: hidden; }
.times__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 0 var(--pad); flex-wrap: wrap; }
.times__head p { margin: 0; max-width: 40ch; color: var(--bone-2); }
.times__track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--pad); width: max-content; will-change: transform; }
.dish { width: clamp(300px, 34vw, 520px); flex: none; }
.dish__time { margin: 0 0 14px; font-family: Fraunces, serif; font-weight: 300; font-size: 1.25rem; color: var(--bone-2); }
.dish__time span { font-size: clamp(3.5rem, 2.6rem + 3vw, 6rem); line-height: .9; color: var(--ember-2); font-variation-settings: "opsz" 144; margin-right: 6px; }
.dish__img { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: var(--coal-2); }
.dish__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.dish:hover .dish__img img { transform: scale(1.05); }
.dish__img .crop-right { object-position: 30% 60%; }
.dish h3 { margin: 22px 0 6px; font-family: Fraunces, serif; font-weight: 400; font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.01em; }
.dish p:last-child { margin: 0; color: var(--bone-2); max-width: 42ch; }
.times__bar { margin: 0 var(--pad); height: 2px; background: rgba(239, 231, 220, .1); border-radius: 2px; overflow: hidden; }
.times__bar span { display: block; height: 100%; width: 100%; background: var(--ember); transform: scaleX(0); transform-origin: left; }

/* ── Menú de pasos (claro) ── */
.menu { padding: 10px; }
.menu__inner { background: var(--paper); color: var(--ink); border-radius: 28px; padding: clamp(64px, 9vw, 128px) var(--pad); }
.menu__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; max-width: 1360px; margin: 0 auto clamp(40px, 6vw, 72px); }
.menu__head p { margin: 0; max-width: 40ch; color: var(--ink-2); }
.menu__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; max-width: 1360px; margin: 0 auto; }
.course { margin: 0 0 40px; padding: 0; border: 0; }
.course legend { display: flex; justify-content: space-between; width: 100%; margin-bottom: 10px; padding: 0; font-family: Fraunces, serif; font-size: 1.5rem; font-weight: 400; }
.course legend small { font-family: "Instrument Sans", sans-serif; font-size: .875rem; color: var(--ink-2); align-self: center; }
.opt { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 18px; align-items: baseline; padding: 16px 18px; margin: 0 -18px; border-radius: 16px; cursor: pointer; transition: background-color .3s var(--ease); }
.opt:hover { background: var(--paper-2); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__mark { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-2); align-self: center; transition: box-shadow .3s var(--spring); }
.opt input:checked ~ .opt__mark { box-shadow: inset 0 0 0 6px var(--ember); }
.opt input:focus-visible ~ .opt__mark { outline: 2px solid var(--ember); outline-offset: 3px; }
.opt__name { font-weight: 600; }
.opt__price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt__note { grid-column: 2 / 4; color: var(--ink-2); font-size: .9375rem; }
.opt__time { color: var(--ember); font-weight: 600; }
.opt:has(input:checked) { background: #fff; }

.ticket { position: sticky; top: 100px; }
.ticket__paper {
  position: relative; padding: 32px 28px 28px; background: #fffdf9; color: var(--ink);
  border-radius: 6px 6px 18px 18px;
  box-shadow: 0 30px 60px -30px rgba(28, 24, 20, .35), 0 2px 6px rgba(28, 24, 20, .06);
  -webkit-mask: radial-gradient(circle 7px at 50% 0, #0000 98%, #000) 0 0 / 22px 100% repeat-x;
          mask: radial-gradient(circle 7px at 50% 0, #0000 98%, #000) 0 0 / 22px 100% repeat-x;
}
.ticket__head { display: flex; justify-content: space-between; margin: 6px 0 20px; padding-bottom: 16px; font-weight: 600; letter-spacing: .04em; box-shadow: inset 0 -1px 0 rgba(28, 24, 20, .12); }
.ticket__head span:last-child { color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.ticket__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; min-height: 120px; }
.ticket__list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; animation: tin .5s var(--ease) both; }
.ticket__list small { grid-column: 1 / -1; color: var(--ink-2); font-size: .8125rem; }
.ticket__list .empty { color: var(--ink-2); }
@keyframes tin { from { opacity: 0; transform: translateY(6px); } }
.ticket__pair { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; padding: 14px 0; box-shadow: inset 0 1px 0 rgba(28, 24, 20, .12); cursor: pointer; }
.ticket__pair input { accent-color: var(--ember); width: 18px; height: 18px; margin-top: 3px; }
.ticket__sum { display: grid; gap: 10px; margin: 6px 0 22px; padding-top: 16px; box-shadow: inset 0 1px 0 rgba(28, 24, 20, .12); }
.ticket__sum p { display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
.ticket__sum span { color: var(--ink-2); }
.ticket__sum strong { font-family: Fraunces, serif; font-weight: 400; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.ticket__sum p:last-child strong { font-size: 2.25rem; color: var(--ember); }

/* ── La casa ── */
.house { padding: var(--sec) var(--pad) 0; max-width: 1500px; margin: 0 auto; }
.house__wide { margin: 0; height: clamp(320px, 62vh, 720px); border-radius: 24px; overflow: hidden; }
.house__wide img, .house__hands img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }
.house__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 7vw, 96px); align-items: start; }
.house__text { display: grid; gap: 18px; color: var(--bone-2); font-size: 1.125rem; }
.house__text p { margin: 0; max-width: 46ch; }
.house__hands { margin: 0; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; }
.house__info { margin: 0; display: grid; gap: 22px; align-self: end; }
.house__info dt { color: var(--bone-3); font-size: .875rem; }
.house__info dd { margin: 4px 0 0; font-size: 1.125rem; }

/* ── Reservas ── */
.book { padding: var(--sec) var(--pad); }
.book__inner { max-width: 1100px; margin: 0 auto; }
.book header { margin-bottom: 44px; }
.book__menu { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--coal-2); color: var(--bone-2); max-width: 60ch; }
.book__menu b { color: var(--bone); font-weight: 600; }
.book__form { display: grid; gap: 28px; }
.chips-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.chips-field legend { padding: 0; margin-bottom: 12px; color: var(--bone-2); font-size: .9375rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain; }
.chip {
  flex: none; display: grid; justify-items: center; gap: 2px; min-width: 76px; padding: 12px 16px;
  border: 0; border-radius: 16px; cursor: pointer; background: var(--coal-2); color: var(--bone);
  box-shadow: inset 0 0 0 1px rgba(239, 231, 220, .08);
  transition: background-color .3s, box-shadow .3s, transform .4s var(--spring);
}
.chip small { color: var(--bone-3); font-size: .8125rem; }
.chip:hover { box-shadow: inset 0 0 0 1px rgba(239, 231, 220, .3); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--ember); box-shadow: none; }
.chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .8); }
.chip:disabled { opacity: .35; cursor: not-allowed; }
.book__row { display: grid; grid-template-columns: auto 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 2px; padding: 12px 18px 10px; border-radius: 16px; background: var(--coal-2); box-shadow: inset 0 0 0 1px rgba(239, 231, 220, .08); transition: box-shadow .3s; }
.field:focus-within { box-shadow: inset 0 0 0 1.5px var(--ember); }
.field span { color: var(--bone-3); font-size: .8125rem; }
.field input { border: 0; background: transparent; outline: none; height: 28px; padding: 0; font-size: 1.0625rem; }
.field.is-invalid { box-shadow: inset 0 0 0 1.5px #ff7b6b; }
.field--people { grid-template-columns: auto auto; align-items: center; gap: 16px; padding: 8px 8px 8px 18px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--coal-3); cursor: pointer; font-size: 1.25rem; transition: transform .3s var(--spring); }
.stepper button:active { transform: scale(.9); }
.stepper output { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.book__end { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 12px; }
.book__summary { margin: 0; font-family: Fraunces, serif; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 340; }
.book__done { margin: 0; padding: 14px 18px; border-radius: 14px; background: rgba(226, 89, 31, .14); color: var(--ember-2); font-weight: 600; }

/* ── Pie ── */
.foot { padding: 0 var(--pad) 32px; overflow: hidden; }
.foot__word { margin: 0; font-family: Fraunces, serif; font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(4rem, 19vw, 22rem); line-height: .9; letter-spacing: -0.05em; color: var(--coal-3); white-space: nowrap; text-align: center; }
.foot__row { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-top: 24px; box-shadow: inset 0 1px 0 rgba(239, 231, 220, .1); color: var(--bone-3); font-size: .875rem; }
.foot__row p { margin: 0; }

.concept {
  position: fixed; left: 16px; bottom: 16px; z-index: 12;
  padding: 9px 15px; border-radius: 999px; background: var(--bone); color: var(--coal);
  font-size: .8125rem; font-weight: 600; text-decoration: none;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.concept span { color: var(--ink-2); font-weight: 400; }
.concept.is-on { opacity: 1; transform: none; pointer-events: auto; }

.js .reveal { opacity: 0; transform: translateY(36px); }

/* ── Tablet y celular ── */
@media (max-width: 899px) {
  .top__nav, .top__cta { display: none; }
  .top__burger { display: block; }
  .fire { top: auto; bottom: auto; position: relative; right: auto; align-self: flex-start; margin-top: 24px; }
  .hero__inner { padding-top: 110px; }
  .intro, .menu__grid, .house__grid { grid-template-columns: 1fr; }
  .times__pin { min-height: 0; padding: 0; overflow: visible; }
  .times__track { width: auto; flex-direction: column; gap: 48px; }
  .dish { width: 100%; }
  .times__bar { display: none; }
  .ticket { position: static; }
  .book__row { grid-template-columns: 1fr; }
  .field--people { justify-content: space-between; }
}
@media (max-width: 599px) {
  .hero__actions .btn { flex: 1; }
  .concept span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
