/* ==========================================================================
   Asador Brasas del Sur — "fuego y carne con oficio"
   Mobile-first · 360 px → ultraancho
   ========================================================================== */

:root {
  --coal: #0E0C0B;
  --graphite: #1A1613;
  --graphite-2: #14110F;
  --ivory: #F2EADF;
  --ivory-70: rgba(242, 234, 223, .72);
  --ivory-55: rgba(242, 234, 223, .58);
  --line: rgba(242, 234, 223, .15);
  --copper: #C2703D;
  --copper-soft: #D08A5C;
  --ember: #E2562A;
  --warm-grey: #A89C8F;

  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1520px;
  --section-y: clamp(96px, 16vw, 220px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--coal);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: clamp(15px, .3vw + 14px, 17px);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--copper); color: var(--coal); }

:focus-visible { outline: 1px solid var(--copper); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ivory); color: var(--coal); padding: 10px 16px; font-size: 13px; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: 1fr; gap: 48px; }

/* ---------- Tipografía ---------- */
.display { font-family: var(--f-display); font-weight: 300; letter-spacing: -.015em; line-height: .98; }
.display em, em { font-style: italic; font-weight: 300; }
.display em { color: var(--copper-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 28px;
  font-family: var(--f-body); font-size: 11px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--ivory-70);
}
.eyebrow__n { color: var(--copper); font-variant-numeric: tabular-nums; }
.eyebrow__n::after { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--line); margin-left: 14px; vertical-align: middle; }

.section__title { font-size: clamp(48px, 9vw, 132px); }
.section { position: relative; padding-block: var(--section-y); }
.section__head { position: relative; margin-bottom: clamp(56px, 8vw, 112px); }
.section__head .hairline { margin-top: clamp(32px, 4vw, 56px); }

.hairline { display: block; height: 1px; background: var(--line); transform-origin: left center; }

/* Tonos de fondo por sección (transición suave vía JS en body) */
.tone-1 { background: var(--coal); }
.tone-2 { background: var(--graphite); }

/* Split lines */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-inner { display: block; will-change: transform; }

/* ---------- Grano + viñeta ---------- */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 90;
  width: 200%; height: 200%;
  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='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .95  0 0 0 0 .9  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .055;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Progreso ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 1px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--copper); transform: scaleX(0); transform-origin: left; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor .cursor {
    display: grid; place-items: center;
    position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
    width: 36px; height: 36px; margin: -18px 0 0 -18px;
    border: 1px solid rgba(242, 234, 223, .5); border-radius: 50%;
    transition: width .5s var(--ease-out), height .5s var(--ease-out), margin .5s var(--ease-out), background-color .4s, border-color .4s, opacity .3s;
    mix-blend-mode: normal;
  }
  html.has-cursor .cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--copper); }
  html.has-cursor .cursor.is-view { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--ivory); border-color: var(--ivory); }
  html.has-cursor .cursor.is-hidden { opacity: 0; }
  .cursor__label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--coal); opacity: 0; transition: opacity .3s; }
  .cursor.is-view .cursor__label { opacity: 1; }
}

/* ---------- Botones y enlaces ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 30px;
  border: 1px solid var(--copper); border-radius: 1px;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease-out), border-color .5s;
  will-change: transform;
}
.btn__fill {
  position: absolute; inset: 0; z-index: -1;
  background: var(--ivory);
  transform: translateY(101%);
  transition: transform .6s var(--ease-out);
}
.btn--solid { background: var(--copper); color: var(--coal); }
.btn--ghost { color: var(--ivory); border-color: rgba(242,234,223,.38); }
.btn:hover .btn__fill, .btn:focus-visible .btn__fill { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--coal); border-color: var(--ivory); }
.btn__arrow { display: inline-block; transition: transform .6s var(--ease-out); font-family: var(--f-body); letter-spacing: 0; }
.btn:hover .btn__arrow { transform: translateX(6px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 11px; letter-spacing: .2em; }

.link { position: relative; display: inline-block; }
.link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-out);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.link--cta {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
.link--cta::after { bottom: 10px; transform: scaleX(1); transform-origin: left; background: var(--line); }
.link--cta::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--copper);
  transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease-out); z-index: 1;
}
.link--cta:hover::before, .link--cta:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.link__arrow { transition: transform .6s var(--ease-out); }
.link--cta:hover .link__arrow { transform: translate(3px, 2px); }

.tag {
  display: inline-block; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 1px;
  font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--warm-grey);
  line-height: 1.5;
}
.tag--pending { border-color: rgba(194, 112, 61, .5); color: var(--copper-soft); }

/* ---------- Preloader ---------- */
.preloader { display: none; }
html.is-intro .preloader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 180; background: var(--coal);
  animation: preloaderFailsafe .01s 3s forwards; /* por si falla JS */
}
@keyframes preloaderFailsafe { to { opacity: 0; visibility: hidden; } }
.preloader__inner { display: grid; justify-items: center; gap: 22px; }
.preloader__mark { width: 64px; opacity: 0; }
.preloader__name { overflow: hidden; font-family: var(--f-display); font-size: clamp(28px, 4vw, 44px); font-weight: 300; letter-spacing: .02em; font-style: italic; }
.preloader__name span { display: block; transform: translateY(110%); }
.preloader__line { width: 160px; height: 1px; background: var(--copper); transform: scaleX(0); transform-origin: left; }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .6s var(--ease-out), border-color .6s, transform .6s var(--ease-out), backdrop-filter .6s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(14, 12, 11, .62);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: auto; }
.brand__name { font-family: var(--f-display); font-size: 19px; font-weight: 400; letter-spacing: .01em; white-space: nowrap; }
.brand__name em { color: var(--copper-soft); }

.nav { display: none; }
.nav a { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-70); transition: color .3s; }
.nav a:hover { color: var(--ivory); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.lang { display: none; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .16em; color: var(--ivory-55); }
.lang button { padding: 6px 2px; letter-spacing: .16em; transition: color .3s; }
.lang button[aria-pressed="true"] { color: var(--ivory); }
.lang button:hover { color: var(--copper-soft); }
.header .btn--sm { padding: 0 14px; }
@media (max-width: 419px) { .brand__name { display: none; } }

.burger { position: relative; width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.burger__line { display: block; width: 26px; height: 1px; background: var(--ivory); transition: transform .6s var(--ease-out); }
.burger[aria-expanded="true"] .burger__line:first-of-type { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:last-of-type { transform: translateY(-4px) rotate(-45deg); }


/* Menú móvil */
.mmenu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--coal);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) 36px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease-out);
}
.mmenu.is-open { clip-path: inset(0 0 0 0); }
.mmenu[hidden] { display: none; }
.mmenu__nav { display: grid; gap: 6px; }
.mmenu__nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: clamp(38px, 11vw, 64px); font-weight: 300; line-height: 1.05;
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out), color .3s;
}
.mmenu__nav a:hover { color: var(--copper-soft); }
.mmenu.is-open .mmenu__nav a { opacity: 1; transform: none; }
.mmenu.is-open .mmenu__nav a:nth-child(1) { transition-delay: .12s; }
.mmenu.is-open .mmenu__nav a:nth-child(2) { transition-delay: .17s; }
.mmenu.is-open .mmenu__nav a:nth-child(3) { transition-delay: .22s; }
.mmenu.is-open .mmenu__nav a:nth-child(4) { transition-delay: .27s; }
.mmenu.is-open .mmenu__nav a:nth-child(5) { transition-delay: .32s; }
.mmenu.is-open .mmenu__nav a:nth-child(6) { transition-delay: .37s; }
.mmenu__n { font-family: var(--f-body); font-size: 11px; letter-spacing: .2em; color: var(--copper); }
.mmenu__foot { display: grid; gap: 6px; font-size: 13px; color: var(--ivory-70); }
.mmenu__foot a { font-family: var(--f-display); font-size: 28px; color: var(--ivory); }
.mmenu .lang { display: flex; margin-top: 12px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 40px) var(--gutter) clamp(90px, 12vh, 130px);
  overflow: hidden; background: var(--coal);
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img, .hero__video { position: absolute; inset: 0; }
.hero__img { overflow: hidden; }
.hero__img picture { display: block; }
.hero__img picture, .hero__img img, .hero__video { width: 100%; height: 100%; }
.hero__img img, .hero__video { object-fit: cover; object-position: 50% 40%; }
.hero__img img { animation: kenburns 28s var(--ease-io) infinite alternate; transform-origin: 60% 45%; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1%, -1.5%); } }
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero__shade {
  position: absolute; inset: 0; z-index: 3;
  background:
    linear-gradient(180deg, rgba(14,12,11,.7) 0%, rgba(14,12,11,.15) 24%, rgba(14,12,11,.55) 52%, rgba(14,12,11,.92) 78%, var(--coal) 100%),
    radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(14,12,11,.65) 100%);
}

.hero__content { position: relative; z-index: 5; max-width: 1100px; }
.hero__eyebrow { margin-bottom: 22px; color: var(--ivory); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px var(--ember); animation: breathe 2.8s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.hero__title { font-size: clamp(54px, min(17vw, 13svh), 230px); line-height: .9; letter-spacing: -.03em; margin-bottom: 26px; }
.hero__title em { color: var(--copper-soft); }
.hero__lead { max-width: 34ch; font-size: clamp(15px, 1.1vw + 10px, 19px); color: var(--ivory-70); margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.hero__ctas .btn { width: 100%; }

.hero__meta {
  position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: 26px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--ivory-55);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll i { position: relative; display: block; width: 1px; height: 36px; background: var(--line); overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--copper); animation: scrollcue 2.4s var(--ease-io) infinite; }
@keyframes scrollcue { to { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--coal); padding: 22px 0; }
.marquee__track { display: flex; width: max-content; align-items: center; gap: clamp(22px, 3vw, 44px); animation: marquee 48s linear infinite; }
.marquee__track span { font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 46px); font-weight: 300; font-style: italic; color: var(--ivory-70); white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--copper); font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifiesto ---------- */
.manifesto__aside .hairline { width: 100%; max-width: 240px; }
.manifesto__text { font-size: clamp(32px, 5.4vw, 84px); line-height: 1.06; letter-spacing: -.02em; max-width: 19ch; }
.manifesto__foot { display: flex; align-items: center; gap: 20px; margin-top: clamp(40px, 6vw, 80px); max-width: 520px; color: var(--ivory-70); }
.manifesto__foot p { margin: 0; font-size: 14px; }
.manifesto__mark { width: 44px; flex: none; opacity: .85; }

/* ---------- Producto ---------- */
.feature { display: grid; gap: clamp(72px, 12vw, 160px); }
.feature__item { display: grid; gap: 28px; align-items: end; }
.feature__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--graphite-2); }
.feature__media picture, .feature__media img { width: 100%; height: 100%; }
.feature__media img { object-fit: cover; transform: scale(1.12); }
.feature__text { max-width: 420px; }
.feature__n { display: block; font-family: var(--f-display); font-size: 15px; font-style: italic; color: var(--copper); margin-bottom: 16px; }
.feature__n::after { content: ''; display: inline-block; vertical-align: middle; width: 40px; height: 1px; background: var(--copper); margin-left: 14px; opacity: .6; }
.feature__title { font-size: clamp(38px, 5vw, 72px); margin-bottom: 18px; }
.feature__text p { color: var(--ivory-70); margin: 0; }

/* Tarjeta tipográfica (plato sin foto) */
.feature__type {
  display: grid; place-content: center; text-align: center; gap: 12px;
  background:
    radial-gradient(80% 60% at 50% 110%, rgba(194, 112, 61, .28), transparent 70%),
    repeating-linear-gradient(115deg, rgba(242,234,223,.025) 0 1px, transparent 1px 9px),
    var(--graphite-2);
  border: 1px solid var(--line);
}
.feature__type::before { content: ''; position: absolute; inset: 14px; border: 1px solid var(--line); pointer-events: none; }
.feature__type-word { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(44px, 10vw, 96px); line-height: 1; color: var(--ivory); padding-inline: 20px; }
.feature__type-sub { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--copper-soft); }

/* ---------- Carta ---------- */
.section__head--split .menu__index { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; }
.menu__index a { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-55); padding: 6px 0; transition: color .3s; }
.menu__index a:hover { color: var(--copper-soft); }

.menu__grid { display: grid; grid-template-columns: 1fr; gap: clamp(64px, 8vw, 110px) clamp(48px, 6vw, 110px); }
.menu-cat { break-inside: avoid; scroll-margin-top: calc(var(--header-h) + 24px); }
.menu-cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--copper); margin-bottom: 8px; }
.menu-cat__title { font-family: var(--f-display); font-size: clamp(34px, 4vw, 52px); font-weight: 300; line-height: 1; }
.menu-cat__sub { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--warm-grey); white-space: nowrap; }
.menu-cat__n { font-family: var(--f-display); font-style: italic; color: var(--copper); font-size: 16px; }
.menu-group__title { margin: 28px 0 4px; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--copper-soft); }
.menu-group + .menu-group:not(:has(.menu-group__title)) { margin-top: 24px; }

.dish {
  position: relative; padding: 18px 0 16px; border-bottom: 1px solid var(--line);
  transition: transform .6s var(--ease-out);
}
.dish::before {
  content: ''; position: absolute; left: -16px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%;
  background: var(--ember); opacity: 0; transform: scale(0); transition: opacity .4s, transform .5s var(--ease-out);
}
.dish__name { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-display); font-size: clamp(21px, 1.4vw + 14px, 27px); font-weight: 400; line-height: 1.2; color: var(--ivory); transition: color .4s; }
.dish__half { flex: none; font-family: var(--f-body); font-size: 11px; color: var(--copper-soft); letter-spacing: .05em; border: 1px solid rgba(194,112,61,.45); padding: 0 6px; line-height: 1.6; transform: translateY(-3px); }
.dish__note { margin: 4px 0 0; font-size: 14px; color: var(--warm-grey); line-height: 1.5; }
@media (hover: hover) {
  .dish:hover { transform: translateX(8px); }
  .dish:hover .dish__name { color: var(--copper-soft); }
  .dish:hover::before { opacity: 1; transform: scale(1); }
}
.menu__note { margin-top: clamp(56px, 7vw, 96px); display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; color: var(--warm-grey); }
.menu__note span:first-child { color: var(--ivory-70); }

/* ---------- Galería ---------- */
.gallery { position: relative; padding-block: var(--section-y) calc(var(--section-y) * .7); overflow: hidden; }
.gallery__head { position: relative; margin-bottom: clamp(40px, 6vw, 72px); }
.gallery__hint { margin: 18px 0 0; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ivory-55); display: flex; gap: 10px; }
.gallery__viewport {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery__viewport.is-dragging .g__btn { pointer-events: none; }
.gallery__track { display: flex; gap: 14px; padding-inline: var(--gutter); width: max-content; align-items: flex-end; }
.g { flex: none; width: 72vw; scroll-snap-align: center; }
.g--wide { width: 86vw; }
.g__btn { position: relative; display: block; width: 100%; overflow: hidden; background: var(--graphite-2); cursor: inherit; }
.g picture, .g img { width: 100%; height: 100%; }
.g__btn { aspect-ratio: 4 / 5; }
.g--wide .g__btn { aspect-ratio: 3 / 2; }
.g--tall .g__btn { aspect-ratio: 3 / 4; }
.g img { object-fit: cover; transition: transform 1.2s var(--ease-out), filter .8s; filter: saturate(.9) contrast(1.03); }
.g__btn:hover img { transform: scale(1.04); filter: saturate(1) contrast(1.05); }

/* ---------- Grupos ---------- */
.groups { position: relative; min-height: 92svh; display: flex; align-items: center; overflow: hidden; padding-block: var(--section-y); isolation: isolate; }
.groups__media { position: absolute; inset: -10% 0; z-index: -2; }
.groups__media picture, .groups__media img { width: 100%; height: 100%; }
.groups__media img { object-fit: cover; object-position: 75% 50%; filter: saturate(.75) brightness(.7); }
.groups::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,12,11,.97) 0%, rgba(14,12,11,.9) 38%, rgba(14,12,11,.55) 70%, rgba(14,12,11,.3) 100%), linear-gradient(0deg, rgba(14,12,11,.7), transparent 40%); }
.groups__inner { position: relative; }
.groups__title { font-size: clamp(48px, 9vw, 140px); margin-bottom: 30px; }
.groups__text { max-width: 44ch; color: var(--ivory-70); font-size: clamp(16px, .6vw + 13px, 19px); margin-bottom: 40px; }
.groups__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* ---------- Reservas ---------- */
.booking__lead { font-family: var(--f-display); font-style: italic; font-size: clamp(24px, 2.4vw, 34px); color: var(--copper-soft); margin: 26px 0 40px; }
.booking__facts { display: grid; gap: 0; max-width: 460px; }
.booking__facts li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.booking__facts li:first-child { border-top: 1px solid var(--line); }
.booking__facts span { color: var(--warm-grey); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding-top: 2px; }
.booking__facts strong { font-weight: 400; text-align: right; }

.form { display: grid; grid-template-columns: 1fr; gap: 30px 28px; align-content: start; }
.field { position: relative; display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-70); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 10px 0;
  background: transparent; color: var(--ivory);
  border: 0; border-bottom: 1px solid rgba(242,234,223,.32); border-radius: 0;
  font: 400 18px/1.4 var(--f-body);
  transition: border-color .4s;
  -webkit-appearance: none; appearance: none;
  color-scheme: dark;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--copper) 50%), linear-gradient(-45deg, transparent 50%, var(--copper) 50%); background-position: right 6px center, right 0 center; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 24px; }
.field select option { background: var(--graphite); color: var(--ivory); }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--copper); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--copper); }
.field[aria-invalid="true"] input, .field[aria-invalid="true"] select { border-bottom-color: var(--ember); }
.field__hint { font-size: 12px; color: var(--warm-grey); }
.form__error { min-height: 1.4em; margin: -8px 0 0; font-size: 13px; color: var(--ember); }
.form__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.form__actions .btn { flex: 1 1 220px; }

/* ---------- Reseñas ---------- */
.reviews__score { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.reviews__value { font-size: clamp(88px, 14vw, 180px); line-height: .85; color: var(--ivory); }
.reviews__stars { color: var(--copper); letter-spacing: .3em; font-size: 14px; }
.reviews__score p { margin: 6px 0 12px; color: var(--ivory-70); font-size: 14px; }
.reviews__list { display: grid; gap: clamp(48px, 6vw, 72px); }
.quote blockquote { margin: 0 0 22px; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; font-style: italic; }
.quote figcaption { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--copper-soft); }

/* ---------- Horario ---------- */
.status { display: inline-flex; align-items: center; gap: 12px; margin: 30px 0 30px; padding: 8px 16px; border: 1px solid var(--line); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warm-grey); }
.status.is-open .status__dot { background: var(--ember); box-shadow: 0 0 10px var(--ember); animation: breathe 2.4s ease-in-out infinite; }
.hours { margin: 0 0 34px; max-width: 460px; }
.hours div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours dt { color: var(--ivory-70); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours .is-today dt, .hours .is-today dd { color: var(--copper-soft); }
.hours .is-closed dd { color: var(--warm-grey); font-style: italic; font-family: var(--f-display); font-size: 18px; }
.visit__address { font-style: normal; font-family: var(--f-display); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.25; margin-bottom: 30px; }
.visit__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
.visit__map { position: relative; min-height: 380px; overflow: hidden; border: 1px solid var(--line); background: var(--graphite-2); }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.9) sepia(.25) hue-rotate(-10deg) contrast(.88) brightness(.92); }

/* ---------- Pie ---------- */
.footer { background: var(--graphite-2); padding: clamp(80px, 10vw, 140px) 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__top { display: grid; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.footer__logo { width: 140px; }
.footer__claim { font-size: clamp(44px, 7vw, 110px); }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; padding: clamp(40px, 5vw, 64px) 0; }
.footer__cols .eyebrow { margin-bottom: 14px; font-size: 10px; }
.footer__cols p { margin: 0 0 6px; font-size: 14px; color: var(--ivory-70); }
.social { display: flex; gap: 12px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; transition: border-color .4s, background-color .4s; }
.social a:hover { border-color: var(--copper); }
.social svg { width: 18px; height: 18px; fill: none; stroke: var(--ivory); stroke-width: 1.3; stroke-linecap: round; }
.social svg .fill { fill: var(--ivory); stroke: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ivory-55); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(26, 22, 19, .86); border: 1px solid rgba(194,112,61,.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float svg { width: 22px; height: 22px; fill: none; stroke: var(--ivory); stroke-width: 1.3; stroke-linejoin: round; }
.wa-float svg .fill { fill: var(--copper-soft); stroke: none; }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 92vw; max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(14, 12, 11, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; object-fit: contain; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; font-size: 26px; font-weight: 200; line-height: 1; color: var(--ivory); background: rgba(14,12,11,.6); }
.lightbox__close:hover { border-color: var(--copper); }

/* ---------- Ocultos por configuración ---------- */
html.no-wa .js-wa, html.no-wa .js-wa-wrap, html.no-wa .wa-float { display: none !important; }
html.no-demo .js-demo, html.no-demo .js-sample { display: none !important; }
html.reviews-ok .js-unverified { display: none !important; }

/* ==========================================================================
   ≥ 640
   ========================================================================== */
@media (min-width: 640px) {
  .hero__ctas .btn { width: auto; }
  .lang { display: flex; }
  .mmenu .lang { display: none; }
  .form { grid-template-columns: 1fr 1fr; }
  .field--full, .form__error, .form__actions { grid-column: 1 / -1; }
  .g { width: 46vw; } .g--wide { width: 64vw; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); }
  .reviews__list { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .quote blockquote { font-size: clamp(24px, 2.4vw, 36px); }
}

/* ==========================================================================
   ≥ 900 — escritorio
   ========================================================================== */
@media (min-width: 900px) {
  :root { --header-h: 84px; }
  .grid { grid-template-columns: repeat(12, 1fr); gap: 0 clamp(24px, 2.4vw, 40px); }

  .nav { display: flex; gap: clamp(20px, 2.4vw, 40px); }
  .burger { display: none; }
  .mmenu { display: none !important; }
  .brand__mark { width: 38px; }

  /* Hero editorial: foto a la derecha, brasas en el lado izquierdo */
  .hero { justify-content: center; padding-bottom: clamp(100px, 14vh, 160px); }
  .hero__img { left: auto; width: 58%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 22%, #000 48%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 22%, #000 48%); }
  .hero__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,12,11,.85) 0%, transparent 35%); }
  .hero__shade { background: linear-gradient(180deg, rgba(14,12,11,.6) 0%, transparent 20%, transparent 70%, rgba(14,12,11,.9) 100%); }
  .hero__content { max-width: none; width: 100%; max-width: var(--maxw); margin-inline: auto; }
  .hero__title { font-size: clamp(80px, min(11vw, 18svh), 240px); }
  .hero__lead { margin-left: clamp(4px, 8vw, 160px); }
  .hero__ctas { margin-left: clamp(4px, 8vw, 160px); }

  .manifesto__aside { grid-column: 1 / span 3; padding-top: 18px; }
  .manifesto__body { grid-column: 4 / span 9; }

  .section__head--split { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 40px; }
  .section__head--split .hairline { grid-column: 1 / -1; }
  .section__head--split .menu__index { justify-content: flex-end; max-width: 520px; margin: 0 0 14px; }

  .feature__item { grid-template-columns: repeat(12, 1fr); gap: 0 clamp(24px, 2.4vw, 40px); }
  .feature__item .feature__media { grid-column: 1 / span 7; grid-row: 1; aspect-ratio: 5 / 4; }
  .feature__item .feature__text { grid-column: 9 / span 4; grid-row: 1; align-self: end; padding-bottom: 12px; }
  .feature__item--alt .feature__media { grid-column: 6 / span 5; aspect-ratio: 4 / 5; }
  .feature__item--alt .feature__text { grid-column: 1 / span 4; text-align: left; }
  .feature__item:nth-child(3) .feature__media { grid-column: 2 / span 6; }

  .menu__grid { grid-template-columns: 1fr 1fr; }
  .gallery__hint { display: none; }

  .booking__intro { grid-column: 1 / span 5; }
  .form { grid-column: 7 / span 6; padding-top: 12px; }

  .reviews__head { display: grid; grid-template-columns: 1fr auto; align-items: end; }
  .reviews__head .hairline { grid-column: 1 / -1; }

  .visit__card { grid-column: 1 / span 5; }
  .visit__map { grid-column: 7 / span 6; min-height: 560px; }

  .footer__top { grid-template-columns: auto 1fr; gap: 60px; }
  .footer__claim { text-align: right; }

  .wa-float { display: none; }
}

/* Galería horizontal con pin (escritorio, puntero fino) */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  html.has-pin .gallery { padding: 0; }
  html.has-pin .gallery__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); }
  html.has-pin .gallery__viewport { overflow: visible; cursor: none; scroll-snap-type: none; }
  html.has-pin .gallery__track { gap: clamp(20px, 2vw, 36px); padding-right: 12vw; }
  html.has-pin .g { width: 24vw; }
  html.has-pin .g--wide { width: 46vw; }
  html.has-pin .g--tall { width: 28vw; }
  html.has-pin .g__btn { aspect-ratio: auto; height: 54vh; }
  html.has-pin .g:nth-child(even) { transform: translateY(-4vh); }
}

@media (min-width: 1200px) {
  .menu__grid { grid-template-columns: repeat(3, 1fr); }
  .menu-cat--wide { grid-column: span 1; }
}
@media (min-width: 1800px) {
  :root { --maxw: 1680px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { animation: none; }
  .hero__img img { animation: none; transform: none; }
  .marquee__track { animation: none; }
  .feature__media img { transform: none; }
}

/* ---------- Estados controlados por JS ---------- */
/* Contenido del hero oculto hasta que arranca la animación (con red de seguridad) */
html.js:not(.ready) .hero__content > *,
html.js:not(.ready) .hero__meta { opacity: 0; animation: failsafeShow .01s 2.6s forwards; }
@keyframes failsafeShow { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html.js:not(.ready) .hero__content > *, html.js:not(.ready) .hero__meta { opacity: 1; animation: none; }
}
/* Transición de tono: el fondo lo pinta el body */
html.tone-js .tone-1, html.tone-js .tone-2, html.tone-js .marquee { background: transparent; }
/* Cursor propio */
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label, html.has-cursor .g__btn { cursor: none; }
html.has-cursor input, html.has-cursor textarea { cursor: text; }
html.has-cursor select { cursor: pointer; }
html.lite .hero__img img { animation: none; }

/* Carta en columnas tipo editorial */
.menu__grid { display: block; columns: 1; column-gap: clamp(48px, 6vw, 110px); }
.menu-cat { display: inline-block; width: 100%; margin-bottom: clamp(64px, 8vw, 110px); padding-left: 0; }
@media (min-width: 900px) { .menu__grid { columns: 2; } }
@media (min-width: 1280px) { .menu__grid { columns: 3; } }
