:root {
  --cream: #F3ECE1;
  --cream-2: #EADFCF;
  --wine: #3B0A16;
  --wine-2: #5C1424;
  --tomato: #D2461E;
  --ink: #23140F;
  --ink-soft: rgba(35, 20, 15, 0.66);
  --on-wine: #F6EEE3;
  --on-wine-soft: rgba(246, 238, 227, 0.72);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--tomato); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 0.98; letter-spacing: -0.02em; margin: 0; font-variation-settings: "opsz" 144; }
em { font-style: italic; font-weight: 300; }
.display { font-size: clamp(44px, 7vw, 104px); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 20px; color: var(--on-wine-soft); }
.eyebrow--wine { color: var(--wine-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 999px; font: 600 14px/1 var(--sans); letter-spacing: 0.02em; border: 0; cursor: pointer; transition: transform 0.5s var(--ease), background 0.4s; }
.btn:hover { transform: translateY(-2px); }
.btn--cream { background: var(--on-wine); color: var(--wine); }
.btn--cream:hover { background: #fff; }
.btn--wine { background: var(--wine); color: var(--on-wine); }
.btn--wine:hover { background: var(--wine-2); }
.link { font-weight: 600; font-size: 14px; color: var(--wine-2); border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color 0.3s; }
.link:hover { color: var(--tomato); }

/* Precarga */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 24px; background: var(--wine); color: var(--on-wine); transition: opacity 1s var(--ease), visibility 1s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__brand { font-family: var(--serif); font-style: italic; font-size: clamp(34px, 5vw, 56px); font-weight: 300; }
.loader__bar { width: 140px; height: 2px; background: rgba(246,238,227,0.2); border-radius: 2px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; background: var(--on-wine); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }

/* Barra */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--gutter); color: var(--on-wine); transition: color 0.5s, background 0.5s; }
.nav.is-light { color: var(--ink); background: rgba(243,236,225,0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav__logo { font-family: var(--serif); font-style: italic; font-size: 24px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.nav__links a:not(.nav__cta):hover { opacity: 0.7; }
.nav__cta { padding: 10px 20px; border: 1px solid currentColor; border-radius: 999px; transition: background 0.3s, color 0.3s; }
.nav__cta:hover { background: var(--on-wine); color: var(--wine); }
.nav.is-light .nav__cta:hover { background: var(--wine); color: var(--on-wine); }

/* Portada con scroll */
.seq { position: relative; height: calc(var(--len) * 1vh); background: var(--wine); }
.seq__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.seq__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.seq__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(40,6,14,0.55), rgba(40,6,14,0) 38%, rgba(40,6,14,0) 62%, rgba(40,6,14,0.5)), linear-gradient(180deg, rgba(40,6,14,0.35), rgba(40,6,14,0) 22%); }
.seq__text { position: absolute; color: var(--on-wine); max-width: min(480px, 80vw); opacity: 0; will-change: opacity, transform; }
.seq__text h1 { font-size: clamp(54px, 7.4vw, 120px); margin-bottom: 34px; }
.seq__text h2 { font-size: clamp(44px, 5.6vw, 88px); }
.seq__text--hero { left: var(--gutter); bottom: clamp(60px, 12vh, 120px); opacity: 1; }
.seq__text--left { left: var(--gutter); top: 50%; translate: 0 -50%; }
.seq__text--right { right: var(--gutter); top: 50%; translate: 0 -50%; text-align: right; }
.seq__text--bottom { left: 0; right: 0; max-width: none; bottom: clamp(50px, 10vh, 100px); text-align: center; }
.seq__note { margin: 22px 0 0 auto; max-width: 300px; color: var(--on-wine-soft); }
.seq__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; color: var(--on-wine-soft); }
.seq__list li::before { content: ""; display: inline-block; width: 18px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; }

/* Carta */
.menu { padding: clamp(110px, 14vw, 180px) var(--gutter); }
.menu__head { max-width: 900px; margin-bottom: clamp(56px, 7vw, 96px); }
.menu__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.menu__grid .dish:nth-child(2) { margin-top: clamp(40px, 6vw, 96px); }
.dish__img { overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 5; margin-bottom: 22px; background: var(--wine); }
.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__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.dish h3 { font-size: clamp(26px, 2.4vw, 34px); }
.dish__price { font-weight: 600; color: var(--wine-2); white-space: nowrap; }
.dish p { color: var(--ink-soft); margin: 10px 0 18px; }

/* Palabras que suben */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; }

/* El lugar */
.place { position: relative; min-height: 110vh; display: grid; align-items: end; overflow: hidden; color: var(--on-wine); background: var(--wine); }
.place__media { position: absolute; inset: 0; overflow: hidden; }
.place__img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; }
.place::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,6,14,0.1) 30%, rgba(40,6,14,0.85)); }
.place__text { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(70px, 10vw, 130px); }
.place .display { margin-bottom: 44px; }
.hours { display: flex; flex-wrap: wrap; gap: 20px 64px; margin: 0; }
.hours dt { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-wine-soft); margin-bottom: 6px; }
.hours dd { margin: 0; font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); }

/* Reserva */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); padding: clamp(110px, 14vw, 180px) var(--gutter); align-items: start; }
.book__intro p:last-child { color: var(--ink-soft); max-width: 420px; margin-top: 28px; }
.book__form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; background: var(--cream-2); padding: clamp(26px, 3vw, 44px); border-radius: 8px; }
.book__form label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.book__form label:first-child { grid-column: 1 / -1; }
.book__form input, .book__form select { font: 500 16px var(--sans); color: var(--ink); background: var(--cream); border: 1px solid rgba(35,20,15,0.16); border-radius: 6px; padding: 13px 14px; min-height: 50px; width: 100%; }
.book__form input:focus, .book__form select:focus { outline: none; border-color: var(--wine-2); }
.book__form .btn { grid-column: 1 / -1; margin-top: 6px; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 30px var(--gutter); background: var(--wine); color: var(--on-wine-soft); font-size: 14px; }
.footer__brand { font-family: var(--serif); font-style: italic; color: var(--on-wine); font-size: 20px; }
.footer a:hover { color: var(--on-wine); }

/* Celular */
@media (max-width: 820px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .menu__grid { grid-template-columns: 1fr; }
  .menu__grid .dish:nth-child(2) { margin-top: 0; }
  .book { grid-template-columns: 1fr; }
  .seq__shade { background: linear-gradient(180deg, rgba(40,6,14,0.45), rgba(40,6,14,0) 30%, rgba(40,6,14,0) 50%, rgba(40,6,14,0.75)); }
  .seq__text--left, .seq__text--right { top: auto; bottom: clamp(50px, 9vh, 90px); translate: none; left: var(--gutter); right: var(--gutter); text-align: left; }
  .seq__note { margin-left: 0; }
}
@media (max-width: 480px) {
  .book__form { grid-template-columns: 1fr; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
.seq.is-static { height: auto; }
.seq.is-static .seq__sticky { position: relative; }
.seq.is-static .seq__text:not(.seq__text--hero) { display: none; }
