:root {
  --bg: #0e1410;
  --stone: #1b211c;
  --line: rgba(242, 235, 221, 0.12);
  --rice: #f2ebdd;
  --muted: rgba(242, 235, 221, 0.68);
  --brass: #c8a46a;
  --lacquer: #a3402e;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --pad: clamp(16px, 5vw, 72px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--rice); font: 300 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--rice); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* Barra superior */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 16px var(--pad); transition: background 0.4s, border-color 0.4s; border-bottom: 1px solid transparent; }
.bar.is-solid { background: rgba(14, 20, 16, 0.88); backdrop-filter: blur(10px); border-color: var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 18px/1 var(--serif); letter-spacing: 0.32em; }
.seal { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--lacquer); color: var(--rice); font: 500 15px/1 var(--serif); letter-spacing: 0; border-radius: 2px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 13px; letter-spacing: 0.08em; color: var(--muted); transition: color 0.3s; }
.nav a:hover { color: var(--rice); }
.burger { display: none; }

/* Botones y enlaces */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px; background: var(--brass); color: var(--bg); border: 1px solid var(--brass); font: 500 13px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 0.3s, color 0.3s; }
.btn:hover { background: transparent; color: var(--brass); }
.btn--ghost { background: transparent; color: var(--rice); border-color: rgba(242, 235, 221, 0.4); }
.btn--ghost:hover { border-color: var(--rice); color: var(--rice); }
.btn--small { min-height: 38px; padding: 0 18px; font-size: 12px; }
.link { display: inline-block; margin-top: 14px; color: var(--brass); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Tipografía */
.kicker { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(46px, 8vw, 112px); }
h2 { font-size: clamp(32px, 4.4vw, 58px); }
h1 em, h2 em { font-style: normal; color: var(--brass); }
h3 { font: 500 20px/1.3 var(--serif); }
.lead { max-width: 34ch; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); margin-top: 22px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Recorrido inmersivo */
.journey { position: relative; height: 1250vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.stage__poster, .stage__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.stage__film { opacity: 0; transition: opacity 0.6s; }
.stage__film.is-ready { opacity: 1; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(8, 10, 8, 0.6), rgba(8, 10, 8, 0) 45%), linear-gradient(to right, rgba(8, 10, 8, 0.35), rgba(8, 10, 8, 0) 45%); }
.say { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(64px, 12vh, 120px); max-width: 640px; opacity: 0; pointer-events: none; text-shadow: 0 1px 24px rgba(0, 0, 0, 0.45); }
.say--hero, .say--end { pointer-events: none; }
.say--end .hero__cta, .say--end .btn { pointer-events: auto; }
.say--center { left: 0; right: 0; bottom: auto; top: 50%; transform: translateY(-50%); max-width: none; text-align: center; }
.brand-big { display: inline-flex; align-items: center; gap: 22px; font: 400 clamp(64px, 12vw, 168px)/1 var(--serif); letter-spacing: 0.24em; }
.brand-big span { display: inline-grid; place-items: center; width: 0.62em; height: 0.62em; background: var(--lacquer); font-size: 0.42em; letter-spacing: 0; border-radius: 3px; }
.say--center .kicker { margin-top: 18px; }
.hint { margin-top: 30px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 3; background: rgba(242, 235, 221, 0.12); }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--brass); }

/* Secciones */
.section { padding: clamp(80px, 12vw, 160px) var(--pad); border-top: 1px solid var(--line); }
.section__head { margin-bottom: clamp(36px, 5vw, 64px); }

/* Carta */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-bottom: 36px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px 18px; background: transparent; color: var(--muted); border: 1px solid var(--line); font: 400 14px/1 var(--sans); cursor: pointer; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.tab span { font-family: var(--serif); font-size: 13px; color: var(--brass); opacity: 0.8; }
.tab[aria-selected="true"] { color: var(--bg); background: var(--rice); border-color: var(--rice); }
.tab[aria-selected="true"] span { color: var(--lacquer); }
.carta__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); outline: none; }
.carta__cat { position: sticky; top: 100px; align-self: start; }
.carta__kanji { font: 400 clamp(64px, 9vw, 120px)/1 var(--serif); color: rgba(200, 164, 106, 0.22); }
.carta__cat h3 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 8px; }
.carta__cat p { color: var(--muted); margin-top: 10px; max-width: 34ch; }
.platos { list-style: none; }
.plato { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.plato__n { font: 500 19px/1.3 var(--serif); }
.plato__d { grid-column: 1; color: var(--muted); font-size: 14.5px; }
.plato__p { grid-row: 1; grid-column: 2; font: 500 17px/1.3 var(--sans); color: var(--brass); white-space: nowrap; font-variant-numeric: tabular-nums; }
.firma { display: inline-block; margin-left: 10px; padding: 3px 7px 2px; border: 1px solid var(--lacquer); color: #e08a74; font: 500 9.5px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; vertical-align: middle; }
.carta__nota { margin-top: 28px; font-size: 13px; color: var(--muted); }
.carta__leyenda { margin-top: 8px; font-size: 13px; color: var(--muted); }
.carta__leyenda .firma { margin: 0 6px 0 0; }

/* Historia */
.historia { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); }
.historia__text p:not(.kicker) { color: var(--muted); max-width: 52ch; margin-top: 18px; }
.historia__text h2 { margin-bottom: 8px; }
.pilares { list-style: none; display: grid; gap: 28px; align-content: center; }
.pilares li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.pilar__k { grid-row: span 2; font: 400 44px/1 var(--serif); color: var(--brass); }
.pilares p { color: var(--muted); font-size: 15px; }

/* Experiencias */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.card h3 { margin-top: 20px; }
.card p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.card__media { aspect-ratio: 4 / 5; background: var(--stone); }
.card__media--1 { background: radial-gradient(80% 60% at 50% 70%, rgba(200, 120, 60, 0.35), transparent 70%), var(--stone); }
.card__media--2 { background: radial-gradient(80% 70% at 50% 30%, rgba(60, 110, 80, 0.45), transparent 70%), var(--stone); }
.card__media--3 { background: radial-gradient(80% 60% at 50% 60%, rgba(200, 164, 106, 0.25), transparent 70%), var(--stone); }

/* Galería (huecos hasta tener las fotos) */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 22vw, 300px); gap: clamp(8px, 1.4vw, 16px); }
.ph { position: relative; background: linear-gradient(160deg, #1d2620, #131a15); overflow: hidden; }
.ph--tall { grid-row: span 2; }
.ph--wide { grid-column: span 2; }
.ph figcaption { position: absolute; left: 16px; bottom: 14px; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }

/* Reservas */
.reservar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.reservar__intro p:not(.kicker) { color: var(--muted); margin-top: 18px; max-width: 46ch; }
.aviso { font-size: 13px; border-left: 2px solid var(--lacquer); padding-left: 12px; }
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label, .form legend { display: grid; gap: 8px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.opt { text-transform: none; letter-spacing: 0; }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--stone); color: var(--rice); border: 1px solid var(--line); border-radius: 0; font: 400 16px/1.3 var(--sans); color-scheme: dark; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brass); }
.form [aria-invalid="true"] { border-color: #e08a74; }
fieldset { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
fieldset legend { width: 100%; margin-bottom: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); color: var(--rice); font: 400 14px/1 var(--sans); letter-spacing: 0.02em; text-transform: none; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip input:checked + span { background: var(--rice); color: var(--bg); border-color: var(--rice); }
.chip input:focus-visible + span { outline: 1px solid var(--brass); outline-offset: 2px; }
.form__error { min-height: 1.2em; color: #e08a74; font-size: 14px; }
.ok { border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.ok h3 { font-size: 28px; }
.ok p:not(.kicker) { color: var(--muted); margin: 12px 0 20px; }

/* Visítanos y pie */
.visitanos { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.visitanos p { color: var(--muted); margin-top: 14px; }
.visitanos h3 { margin-bottom: 10px; }
.horarios { display: grid; gap: 10px; }
.horarios dt { font-size: 14px; }
.horarios dd { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 40px var(--pad); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot__logo { display: flex; align-items: center; gap: 10px; font: 500 16px/1 var(--serif); letter-spacing: 0.32em; color: var(--rice); }

/* Aparición suave al entrar en pantalla */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

/* Móvil */
@media (max-width: 860px) {
  .bar { gap: 12px; }
  .nav { position: fixed; inset: 64px 0 auto; flex-direction: column; gap: 0; padding: 8px var(--pad) 20px; background: rgba(14, 20, 16, 0.97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .bar .btn--small { margin-left: auto; }
  .burger { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
  .burger span { display: block; width: 22px; height: 1px; background: var(--rice); transition: transform 0.25s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .carta__panel, .historia, .reservar, .visitanos { grid-template-columns: 1fr; }
  .carta__cat { position: static; }
  .cards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .ph--wide { grid-column: span 2; }
  .form__row { grid-template-columns: 1fr; }
  .brand-big { gap: 14px; }
}
