/* =============================================================
   KABRERA — Barcelona
   Archetype: Magazine multi-page (paper, Bodoni, one red accent)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --paper:     #f3eee4;
  --paper-2:   #e9e1d2;
  --paper-3:   #ded4c2;
  --ink:       #1c1712;
  --ink-2:     #3b332b;
  --ink-mute:  #6f655a;
  --accent:    #b3321c;   /* pimentón / sello rojo */
  --accent-2:  #8f2514;
  --line:      rgba(28, 23, 18, 0.16);
  --line-2:    rgba(28, 23, 18, 0.32);

  --night:     #17130f;
  --night-2:   #221c17;
  --night-3:   #2d2620;
  --washi:     #efe7d8;
  --washi-mute:#a89c8b;
  --night-line:rgba(239, 231, 216, 0.16);

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --serif:   "Spectral", Georgia, "Times New Roman", serif;
  --sans:    "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --nav-h: 64px;
  --demo-h: 30px;   /* franja "Proyecto de demostración" */

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--demo-h) + 24px);
}
body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  font-feature-settings: "kern", "liga", "onum";
  padding-top: var(--demo-h);
}

/* Franja de demostración (fija, encima de todo) */
.demo-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--demo-h);
  display: flex; align-items: center; justify-content: center; padding: 0 12px;
  background: var(--accent); color: #fff;
  font-family: var(--sans); font-size: 12px; letter-spacing: .02em; line-height: 1.2;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo-bar > span { overflow: hidden; text-overflow: ellipsis; }
.demo-bar b { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.demo-long { display: none; }
@media (min-width: 720px) { .demo-long { display: inline; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Paper grain — very subtle, fixed */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .3  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, footer { position: relative; } /* no z-index: the masthead must be able to rise above the nav */

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 14px;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.rule { border: 0; border-top: 1px solid var(--line-2); }
.rule-double { border: 0; border-top: 3px double var(--ink); }

.kicker {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.meta {
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em; color: var(--ink-mute);
}
.link-u {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
  padding-bottom: 2px;
}
.link-u:hover, .link-u:focus-visible { background-size: 100% 1px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .04em;
}
.link-arrow span { transition: transform .4s var(--ease-out); }
.link-arrow:hover span { transform: translateX(5px); }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.5em;
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--ink); color: var(--ink);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease-out), border-color .45s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .45s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--paper); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent::before { background: var(--ink); }
.btn-accent:hover { border-color: var(--ink); }
.btn-small { min-height: 38px; padding: 0 1.1em; font-size: 12px; }
.btn-light { border-color: var(--washi); color: var(--washi); }
.btn-light::before { background: var(--washi); }
.btn-light:hover, .btn-light:focus-visible { color: var(--night); }

/* =============================================================
   5. Navigation
   ============================================================= */
.nav {
  position: fixed; inset: var(--demo-h) 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(243, 238, 228, 0.9);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
@supports (backdrop-filter: blur(10px)) {
  .nav { background: rgba(243, 238, 228, 0.78); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); }
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner {
  height: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
}
.nav-links { grid-column: 1; grid-row: 1; display: none; gap: 1.8rem; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-logo {
  grid-column: 2;
  display: inline-block; justify-self: center; white-space: nowrap;
  font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  line-height: .8; padding-left: .06em; font-variation-settings: "opsz" 30;
}
.nav-right { grid-column: 3; display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.nav-status { display: none; align-items: center; gap: .5em; font-family: var(--sans); font-size: 12.5px; color: var(--ink-mute); }
.nav-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-mute); }
.nav-status.is-open .dot { background: #3f7d4a; box-shadow: 0 0 0 3px rgba(63,125,74,.18); }
.nav-right .btn { display: none; }
.nav-burger {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; margin-right: -10px;
}
.nav-burger span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease-out), opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
.nav-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
}
.nav-logo, .nav-right { grid-row: 1; }
.nav-mobile-cta { grid-column: 1; grid-row: 1; justify-self: start; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* Home: the nav logo waits for the masthead to dock */
.js .page-home .nav:not(.is-docked) .nav-logo { opacity: 0; }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 49;
  background: var(--paper);
  padding: calc(var(--nav-h) + var(--demo-h) + 4vh) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s .7s;
}
.menu-open [data-masthead] { visibility: hidden !important; }
.menu-open .page-home .nav .nav-logo { opacity: 1; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-out), visibility 0s 0s; }
.menu ol { counter-reset: m; }
.menu li { counter-increment: m; border-top: 1px solid var(--line); }
.menu li:last-child { border-bottom: 1px solid var(--line); }
.menu li a {
  display: flex; align-items: baseline; gap: 1rem; padding: .9rem 0;
  font-family: var(--display); font-size: clamp(2.2rem, 11vw, 3.4rem); line-height: 1;
}
.menu li a::before { content: "0" counter(m); font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.menu-foot { font-family: var(--sans); font-size: 14px; color: var(--ink-mute); display: grid; gap: .3rem; }
.menu-foot strong { color: var(--ink); font-weight: 600; }

/* =============================================================
   6. Sections — HOME
   ============================================================= */
.cover { padding-top: calc(var(--nav-h) + 20px); padding-bottom: clamp(48px, 8vw, 110px); }
.cover-line {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .55rem 0; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink);
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.cover-line span:nth-child(2) { display: none; }
.masthead {
  position: relative; z-index: 60;
  margin: clamp(10px, 2vw, 22px) 0 clamp(10px, 1.6vw, 18px);
  transform-origin: 0 0;
  will-change: transform;
}
.masthead-word {
  display: block; width: max-content; margin-inline: auto;
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: 16.4vw; line-height: .8; letter-spacing: 0.06em;
  font-variation-settings: "opsz" 30;
  white-space: nowrap;
  padding-left: 0.06em; /* balance letter-spacing tail */
}
.masthead-word .ch { display: inline-block; }
.js .masthead-word .ch { transform: translateY(40%); opacity: 0; transition: transform 1.2s var(--ease-out), opacity .9s var(--ease-out); transition-delay: calc(var(--i) * 70ms + 120ms); }
.js .is-loaded .masthead-word .ch { transform: none; opacity: 1; }

.cover-grid { display: grid; gap: 28px; border-top: 1px solid var(--ink); padding-top: 22px; }
.cover-lede { display: flex; flex-direction: column; gap: 22px; }
.cover-title { font-size: clamp(2.4rem, 7.2vw, 4.6rem); font-weight: 400; line-height: .98; max-width: 12ch; }
.cover-title em { color: var(--accent); }
.cover-sub { font-size: 1.12rem; color: var(--ink-2); max-width: 36ch; font-style: italic; font-weight: 300; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.cover-figure { position: relative; }
.cover-figure .frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); }
.cover-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.08); }
.cover-figure figcaption { margin-top: 10px; }
.js .cover-figure .frame { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-out) .35s; }
.js .is-loaded .cover-figure .frame { clip-path: inset(0 0 0 0); }
.cover-figure img { transition: transform 2.4s var(--ease-out) .35s; }
.js .is-loaded .cover-figure img { transform: scale(1.02); }

.seal {
  position: absolute; z-index: 3; width: clamp(96px, 16vw, 148px); aspect-ratio: 1;
  right: -8px; top: -38px;
  color: var(--accent);
}
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal-ring { animation: spin 32s linear infinite; transform-origin: 50% 50%; }
.seal-core { transform-origin: 50% 50%; }
.js .seal-core { transform: scale(1.6) rotate(-14deg); opacity: 0; transition: transform .7s cubic-bezier(.3,1.6,.5,1) 1.3s, opacity .2s 1.3s; }
.js .is-loaded .seal-core { transform: scale(1) rotate(-8deg); opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.cover-index { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.cover-index a {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease-out), color .3s;
}
.cover-index a:hover { padding-left: 8px; color: var(--accent); }
.cover-index .num { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .08em; }
.cover-index .t { font-family: var(--display); font-size: 1.35rem; line-height: 1.15; }
.cover-index .t em { font-weight: 400; }
.cover-index .arr { font-family: var(--sans); font-size: 14px; }

/* Editorial intro */
.editorial { padding-block: clamp(64px, 10vw, 140px); border-top: 1px solid var(--ink); }
.editorial-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); }
.editorial-head h2 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); font-weight: 400; max-width: 16ch; }
.editorial-head h2 em { color: var(--accent); }
.cols { columns: 1; column-gap: 48px; column-rule: 1px solid var(--line); }
.cols p + p { margin-top: 1em; }
.dropcap::first-letter {
  float: left; font-family: var(--display); font-weight: 500; font-style: normal;
  font-size: 5.1em; line-height: .78; padding: .06em .09em 0 0; color: var(--accent);
  font-variation-settings: "opsz" 96;
}
.signature { margin-top: 1.4em; font-family: var(--sans); font-size: 14px; color: var(--ink-mute); }
.signature strong { color: var(--ink); font-weight: 600; }

/* Pull quote */
.pull {
  position: relative; margin: clamp(40px, 6vw, 80px) auto; max-width: 900px; text-align: center;
  padding: 32px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.pull::before {
  content: "«"; position: absolute; left: 50%; top: 0; transform: translate(-50%, -52%);
  background: var(--paper); padding: 0 .3em;
  font-family: var(--display); font-size: 56px; line-height: 1; color: var(--accent);
}
.pull p { font-family: var(--display); font-style: italic; font-size: clamp(1.7rem, 4vw, 2.9rem); line-height: 1.12; }
.pull cite { display: block; margin-top: 18px; font-style: normal; }

/* Season — three article cards */
.season { padding-block: clamp(56px, 8vw, 120px); border-top: 1px solid var(--ink); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 400; }
.section-head h2 em { color: var(--accent); }
.cards { display: grid; gap: 40px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card .img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-3); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; filter: saturate(.92) contrast(1.02); }
.card:hover img { transform: scale(1.05); filter: saturate(1.08) contrast(1.04); }
.card .num-badge {
  position: absolute; left: 12px; top: 12px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .12em;
  background: var(--paper); padding: 5px 8px;
}
.card h3 { font-size: 1.7rem; font-weight: 500; line-height: 1.08; }
.card p { font-size: 1rem; color: var(--ink-2); }
.card .price { font-family: var(--sans); font-size: 14px; font-weight: 600; }
.card .price b { color: var(--accent); }

/* Salón band (dark) */
.band {
  position: relative; background: var(--night); color: var(--washi);
  padding-block: clamp(64px, 10vw, 150px);
  overflow: clip;
}
.band ::selection { background: var(--washi); color: var(--night); }
.band-grid { display: grid; gap: 40px; align-items: center; }
.band .kicker { color: #e2765f; }
.band h2 { font-size: clamp(2.8rem, 8vw, 6.4rem); font-weight: 400; line-height: .92; }
.band h2 em { color: #e2765f; }
.band p { color: rgba(239,231,216,.8); max-width: 42ch; }
.band-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); margin: 28px 0; }
.band-facts div { padding: 16px 0; }
.band-facts div + div { border-left: 1px solid var(--night-line); padding-left: 16px; }
.band-facts b { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 400; line-height: 1; }
.band-facts span { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--washi-mute); }
.band-media { position: relative; }
.band-media .frame { overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.band-media .frame img { width: 100%; height: 118%; object-fit: cover; position: absolute; top: -9%; left: 0; filter: saturate(.85); }
.band-media .strip { position: absolute; left: -12%; bottom: -8%; width: 70%; aspect-ratio: 1023 / 392; overflow: hidden; border: 6px solid var(--night); display: none; }
.band-media .strip img { width: 100%; height: 100%; object-fit: cover; }

/* Visit strip */
.visit { padding-block: clamp(56px, 8vw, 110px); }
.visit-grid { display: grid; border-top: 3px double var(--ink); }
.visit-grid > div { padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.visit h3 { font-size: 1.9rem; font-weight: 400; margin: 10px 0 12px; }
.visit p, .visit li { font-size: 1rem; color: var(--ink-2); }
.visit li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-bottom: 1px dotted var(--line-2); }
.visit li span:last-child { font-family: var(--sans); font-size: 14px; font-variant-numeric: tabular-nums; }
.visit li.is-today { color: var(--accent); }
.visit li.is-today span:first-child::after { content: " · hoy"; font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* =============================================================
   7. Page header (interior pages)
   ============================================================= */
.page-head { padding-top: calc(var(--nav-h) + clamp(36px, 6vw, 80px)); padding-bottom: clamp(32px, 5vw, 64px); }
.page-head .cover-line { margin-bottom: clamp(28px, 4vw, 48px); }
.page-title { font-size: clamp(3rem, 11vw, 8.6rem); font-weight: 400; line-height: .9; letter-spacing: -0.02em; }
.page-title em { color: var(--accent); }
.page-deck { margin-top: 30px; font-size: clamp(1.1rem, 2vw, 1.35rem); font-style: italic; font-weight: 300; max-width: 46ch; color: var(--ink-2); }

/* =============================================================
   8. CARTA
   ============================================================= */
.carta { padding-bottom: clamp(64px, 10vw, 140px); }
.carta-layout { display: grid; gap: 32px; border-top: 1px solid var(--ink); }
.carta-index {
  position: sticky; top: calc(var(--nav-h) + var(--demo-h)); z-index: 20;
  margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter);
  background: var(--paper); border-bottom: 1px solid var(--line);
  display: flex; gap: 8px; overflow-x: auto; overflow-y: visible; scrollbar-width: none;
}
.carta-index::-webkit-scrollbar { display: none; }
.carta-index a {
  flex: none; font-family: var(--sans); font-size: 13px; font-weight: 500; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  transition: background .3s, color .3s, border-color .3s;
}
.carta-index a.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.carta-index .n { display: none; }

.carta-section { padding-top: 28px; }
.carta-section + .carta-section { margin-top: clamp(40px, 6vw, 72px); }
.carta-section-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 3px double var(--ink); }
.carta-section-head .n { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.carta-section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 400; }
.carta-section-head h2 em { color: var(--accent); }
.carta-section-note { margin-top: 12px; font-style: italic; color: var(--ink-mute); font-size: 1rem; }
.carta-inline-img { margin-top: 18px; aspect-ratio: 16 / 10; overflow: hidden; }
.carta-inline-img img { width: 100%; height: 100%; object-fit: cover; }

.dish { padding: 18px 0; border-bottom: 1px solid var(--line); }
.dish-row { display: flex; align-items: baseline; gap: 10px; }
.dish-name { font-family: var(--display); font-size: 1.32rem; font-weight: 500; line-height: 1.2; }
.dish-name .tag {
  display: inline-block; vertical-align: 3px; margin-left: 6px;
  font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid currentColor; padding: 2px 6px; border-radius: 99px;
}
.dish-dots { flex: 1; min-width: 20px; border-bottom: 1px dotted var(--ink-mute); transform: translateY(-5px); }
.dish-price { font-family: var(--sans); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish-price small { font-weight: 400; color: var(--ink-mute); font-size: 12px; }
.dish-desc { margin-top: 4px; font-size: 1rem; color: var(--ink-2); max-width: 58ch; }
.dish:hover .dish-name { color: var(--accent); }
.dish-name { transition: color .3s; }

.carta-aside { display: none; }
.carta-foot { margin-top: 48px; padding: 22px; border: 1px solid var(--line-2); display: grid; gap: 8px; font-size: .98rem; color: var(--ink-2); }
.carta-foot strong { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }

/* =============================================================
   9. SALÓN (dark page)
   ============================================================= */
.page-salon { background: var(--night); color: var(--washi); }
.page-salon body, body.page-salon { background: var(--night); color: var(--washi); }
body.page-salon::before { mix-blend-mode: screen; opacity: .18; }
body.page-salon ::selection { background: var(--washi); color: var(--night); }
body.page-salon .nav { background: rgba(23, 19, 15, 0.86); }
@supports (backdrop-filter: blur(10px)) { body.page-salon .nav { background: rgba(23, 19, 15, 0.72); } }
body.page-salon .nav.is-scrolled { border-bottom-color: var(--night-line); }
body.page-salon .nav-burger span { background: var(--washi); }
body.page-salon .nav-status { color: var(--washi-mute); }
body.page-salon .btn { border-color: var(--washi); color: var(--washi); }
body.page-salon .btn::before { background: var(--washi); }
body.page-salon .btn:hover, body.page-salon .btn:focus-visible { color: var(--night); }
body.page-salon .btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
body.page-salon .menu { background: var(--night); }
body.page-salon .menu li { border-color: var(--night-line); }
body.page-salon .cover-line { border-color: var(--washi); }
body.page-salon .kicker, body.page-salon .page-title em, body.page-salon .nav-links a[aria-current="page"], body.page-salon .menu li a::before { color: #e2765f; }
body.page-salon .page-deck { color: rgba(239,231,216,.78); }
body.page-salon .meta { color: var(--washi-mute); }
body.page-salon .footer { background: var(--night-2); color: var(--washi); border-top-color: var(--night-line); }
body.page-salon .footer .meta, body.page-salon .footer-bottom { color: var(--washi-mute); border-color: var(--night-line); }
body.page-salon .footer-word { color: var(--washi); }

.salon-hero-img { position: relative; overflow: hidden; aspect-ratio: 1023 / 392; margin-top: clamp(24px, 4vw, 48px); }
.salon-hero-img img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; filter: saturate(.9) contrast(1.05); }

.salon-intro { display: grid; gap: 32px; padding-block: clamp(56px, 8vw, 120px); border-bottom: 1px solid var(--night-line); }
.salon-intro .lead { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.18; font-weight: 400; }
.salon-intro .lead em { color: #e2765f; }
.salon-intro p { color: rgba(239,231,216,.8); }
.salon-intro p + p { margin-top: 1em; }
.salon-intro .dropcap::first-letter { color: #e2765f; }

.price-card { border: 1px solid var(--night-line); padding: 26px; display: grid; gap: 18px; align-self: start; background: var(--night-2); }
.price-card .big { font-family: var(--display); font-size: 4.2rem; line-height: .9; font-weight: 400; }
.price-card .big small { font-size: 1.1rem; font-family: var(--sans); color: var(--washi-mute); margin-left: 6px; }
.price-card ul { display: grid; gap: 0; border-top: 1px solid var(--night-line); }
.price-card li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--night-line); font-size: .98rem; }
.price-card li span:last-child { font-family: var(--sans); font-size: 14px; font-weight: 600; white-space: nowrap; }

.courses { padding-block: clamp(56px, 8vw, 120px); }
.courses-head { margin-bottom: clamp(32px, 5vw, 64px); display: grid; gap: 14px; }
.courses-head h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 400; }
.courses-head h2 em { color: #e2765f; }
.course-list { position: relative; }
.course-line { position: absolute; left: 21px; top: 8px; bottom: 8px; width: 1px; background: var(--night-line); }
.course-line i { position: absolute; inset: 0; background: #e2765f; transform: scaleY(0); transform-origin: 50% 0; }
.course {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--night-line);
}
.course-num {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--night); border: 1px solid var(--night-line);
  font-family: var(--display); font-size: 1rem; font-style: italic;
  transition: background .5s, border-color .5s, color .5s;
}
.course.is-lit .course-num { border-color: #e2765f; color: #e2765f; }
.course h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; }
.course h3 small { display: block; margin-bottom: 6px; font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--washi-mute); }
.course p { margin-top: 6px; color: rgba(239,231,216,.78); font-size: 1rem; max-width: 52ch; }
.course .thumb { margin-top: 14px; width: 100%; max-width: 380px; aspect-ratio: 16 / 10; overflow: hidden; }
.course .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.course:hover .thumb img { transform: scale(1.05); }

.salon-rules { padding-block: clamp(56px, 8vw, 110px); border-top: 1px solid var(--night-line); }
.rules-grid { display: grid; gap: 0; border-top: 3px double var(--washi); }
.rules-grid > div { padding: 22px 0; border-bottom: 1px solid var(--night-line); }
.rules-grid h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 8px; }
.rules-grid p { color: rgba(239,231,216,.78); font-size: 1rem; }
.salon-cta { text-align: center; padding-block: clamp(64px, 10vw, 140px); border-top: 1px solid var(--night-line); }
.salon-cta h2 { font-size: clamp(2.6rem, 8vw, 6rem); font-weight: 400; }
.salon-cta h2 em { color: #e2765f; }
.salon-cta p { margin: 18px auto 28px; max-width: 44ch; color: rgba(239,231,216,.8); }

/* =============================================================
   10. HISTORIA (long-form)
   ============================================================= */
.article { padding-bottom: clamp(64px, 10vw, 140px); }
.article-hero { margin-bottom: clamp(36px, 5vw, 64px); }
.article-hero .frame { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.article-hero img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.caption { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: .92rem; color: var(--ink-mute); }
.caption b { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-right: 6px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.byline strong { color: var(--ink); font-weight: 600; }
.prose { max-width: 68ch; margin-inline: auto; font-size: 1.1rem; line-height: 1.72; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 400; margin: 2em 0 .6em; }
.prose h2 em { color: var(--accent); }
.prose .dropcap::first-letter { font-size: 5.4em; }
.inset { margin: 2.4em 0; }
.inset .frame { overflow: hidden; aspect-ratio: 3 / 2; }
.inset img { width: 100%; height: 100%; object-fit: cover; }
.inset-wide { max-width: 1040px; margin: clamp(40px, 6vw, 80px) auto; }
.inset-pair { display: grid; gap: 16px; max-width: 1040px; margin: clamp(40px, 6vw, 80px) auto; }
.inset-pair .frame { aspect-ratio: 4 / 5; overflow: hidden; }
.inset-pair img { width: 100%; height: 100%; object-fit: cover; }
.timeline { max-width: 1040px; margin: clamp(48px, 7vw, 96px) auto 0; border-top: 3px double var(--ink); }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline .y { font-family: var(--display); font-size: 1.8rem; line-height: 1; color: var(--accent); }
.timeline h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 4px; }
.timeline p { font-size: 1rem; color: var(--ink-2); }

/* =============================================================
   11. RESERVAS
   ============================================================= */
.reserve { padding-bottom: clamp(64px, 10vw, 140px); }
.reserve-grid { display: grid; gap: 48px; border-top: 1px solid var(--ink); padding-top: 32px; }
.form { display: grid; gap: 22px; }
.form[hidden] { display: none; }
.form-row { display: grid; gap: 22px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 0; background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink);
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%231c1712' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--accent); }
.field .err { font-family: var(--sans); font-size: 13px; color: var(--accent); min-height: 1em; }
.field.is-invalid input, .field.is-invalid select { border-bottom-color: var(--accent); }
fieldset.field { border: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); margin-top: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: grid; gap: 2px; padding: 14px 16px; cursor: pointer; text-transform: none; letter-spacing: 0;
  font-family: var(--serif); font-size: 1.05rem; font-weight: 400;
  transition: background .3s, color .3s;
}
.seg label + input + label, .seg input + label ~ label { border-left: 1px solid var(--ink); }
.seg label small { font-family: var(--sans); font-size: 12px; color: var(--ink-mute); transition: color .3s; }
.seg input:checked + label { background: var(--ink); color: var(--paper); }
.seg input:checked + label small { color: rgba(243,238,228,.7); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: .95rem; color: var(--ink-mute); font-style: italic; }
.form .btn { justify-self: start; min-width: 220px; }
.form.is-sending .btn { pointer-events: none; opacity: .6; }

.success { display: none; padding: 32px; border: 1px solid var(--ink); text-align: left; }
.success.is-visible { display: grid; gap: 14px; }
.success svg { width: 64px; height: 64px; color: var(--accent); }
.success svg circle, .success svg path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 1s var(--ease-out) forwards; }
.success svg path { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h2 { font-size: 2.4rem; font-weight: 400; }
.success h2 em { color: var(--accent); }

.info-block { display: grid; gap: 28px; align-content: start; }
.info-block section { border-top: 3px double var(--ink); padding-top: 16px; }
.info-block h2 { font-size: 1.8rem; font-weight: 400; margin: 8px 0 10px; }
.info-block li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dotted var(--line-2); font-size: 1rem; }
.info-block li span:last-child { font-family: var(--sans); font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.info-block li.is-today { color: var(--accent); }
.info-block li.is-today span:first-child::after { content: " · hoy"; font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.info-block address { font-style: normal; font-size: 1.1rem; line-height: 1.5; }
.map { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); border: 1px solid var(--line-2); overflow: hidden; }
.map svg { width: 100%; height: 100%; }
.map .pin { animation: pinPulse 2.4s var(--ease-soft) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pinPulse { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .08; transform: scale(1.8); } }

/* =============================================================
   12. CRÉDITOS
   ============================================================= */
.credits-list { border-top: 3px double var(--ink); }
.credits-list li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.credits-list li strong { font-family: var(--display); font-weight: 500; font-size: 1.15rem; }
.credits-list a { color: var(--accent); }

/* =============================================================
   13. Footer
   ============================================================= */
.footer { position: relative; border-top: 1px solid var(--ink); background: var(--paper-2); padding-top: clamp(48px, 7vw, 96px); }
.footer-word {
  display: block; width: max-content; margin-inline: auto;
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: 16.4vw; line-height: .8; letter-spacing: 0.06em; text-align: center; padding-left: .06em;
  font-variation-settings: "opsz" 30; white-space: nowrap;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.footer-grid { display: grid; gap: 28px; padding-bottom: 36px; }
.footer-grid h2 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.footer-grid p, .footer-grid li { font-size: 1rem; }
.footer-grid li + li { margin-top: 4px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding: 18px 0 28px; border-top: 1px solid var(--line-2);
  font-family: var(--sans); font-size: 13px; color: var(--ink-mute);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   14. Reveal system
   ============================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal="clip"].is-revealed { clip-path: inset(0 0 0 0); }
/* Safety net: if main.js never boots, the inline head script adds .reveal-all at 3.5 s */
.reveal-all [data-reveal], .reveal-all .masthead-word .ch, .reveal-all .cover-figure .frame, .reveal-all .seal-core { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.reveal-all .page-home .nav .nav-logo { opacity: 1 !important; }
/* Defensive (gotcha A.4.5) */
.reveal[data-split] { opacity: 1; transform: none; }

/* Page transitions between documents */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(root) { animation-name: vtOut; }
::view-transition-new(root) { animation-name: vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   15. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .cover-line span:nth-child(2) { display: inline; }
  .cards { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .inset-pair { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  body { font-size: 18.5px; }
  .cols { columns: 2; }
  .band-media .strip { display: block; }
  .visit-grid { grid-template-columns: repeat(3, 1fr); }
  .visit-grid > div { padding: 26px 28px; border-bottom: 0; }
  .visit-grid > div:first-child { padding-left: 0; }
  .visit-grid > div + div { border-left: 1px solid var(--line-2); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .rules-grid { grid-template-columns: repeat(3, 1fr); }
  .rules-grid > div { padding: 24px 24px 24px 0; }
  .rules-grid > div + div { padding-left: 24px; border-left: 1px solid var(--night-line); }
  .course { grid-template-columns: 44px 1fr 1fr; gap: 28px; align-items: start; }
  .course .thumb { margin-top: 0; }
}
@media (min-width: 960px) {
  :root { --nav-h: 72px; }
  .nav-links { display: flex; }
  .nav-right .btn { display: inline-flex; }
  .nav-status { display: inline-flex; }
  .nav-burger, .nav-mobile-cta { display: none; }
  .menu { display: none; }

  .cover-grid { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .cover-lede { padding-top: 6px; }
  .cover-figure .frame { aspect-ratio: 1024 / 640; }
  .seal { right: -14px; top: -58px; }

  .editorial-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
  .cols { columns: 3; }

  .cards { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .cards .card:nth-child(2) { margin-top: 64px; }

  .band-grid { grid-template-columns: 6fr 5fr; gap: 80px; }

  .carta-layout { grid-template-columns: 200px 1fr 320px; gap: 48px; border-top: 0; }
  .carta-index {
    top: calc(var(--nav-h) + var(--demo-h) + 32px); align-self: start;
    margin: 0; padding: 0; background: none; border: 0; border-top: 3px double var(--ink);
    flex-direction: column; gap: 0; overflow: visible;
  }
  .carta-index a { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 11px 0; font-size: 14px; display: flex; gap: 10px; }
  .carta-index a .n { display: inline; color: var(--accent); font-weight: 600; font-size: 11px; letter-spacing: .08em; padding-top: 2px; }
  .carta-index a.is-active { background: none; color: var(--accent); }
  .carta-index a:hover { color: var(--accent); }
  .carta-list { border-top: 3px double var(--ink); padding-top: 0; }
  .carta-section:first-child { padding-top: 16px; }
  .carta-inline-img { display: none; }
  .carta-aside { display: block; position: sticky; top: calc(var(--nav-h) + var(--demo-h) + 32px); align-self: start; }
  .carta-aside .frames { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); }
  .carta-aside .frames img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease-out), transform 1.6s var(--ease-out);
  }
  .carta-aside .frames img.is-active { opacity: 1; transform: scale(1); }
  .carta-aside .caption { min-height: 2.6em; }

  .salon-intro { grid-template-columns: 7fr 4fr; gap: 80px; }
  .course { grid-template-columns: 44px 1.1fr 1fr; gap: 40px; }

  .reserve-grid { grid-template-columns: 7fr 5fr; gap: 80px; }
}
@media (min-width: 1280px) {
  .masthead-word, .footer-word { font-size: min(16.4vw, 232px); }
  .cover-title { font-size: 4.8rem; }
}

/* =============================================================
   16. Reduced motion — only the intrusive bits
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seal-ring { animation: none; }
  .map .pin { animation: none; }
}
