/* ============================================================
   Texas BBQ · Pit House — steakhouse texano, cinematográfico
   Dorado sobre carbón · Bebas Neue + Spectral · sistema propio
   ============================================================ */

:root {
  --coal:   #0E0D0C;
  --coal-2: #16140F;
  --panel:  #1C1813;
  --gold:   #E8A33D;
  --gold-2: #F4C06A;
  --bone:   #ECE4D4;
  --ash:    rgba(236, 228, 212, 0.62);
  --ash-2:  rgba(236, 228, 212, 0.40);
  --line:   rgba(236, 228, 212, 0.14);
  --line-2: rgba(236, 228, 212, 0.26);
  --rappi:   #FF4F18;
  --rappi-2: #FF6A3D;
  --wa:      #25D366;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 72px);
  --display: "Bebas Neue", Impact, sans-serif;
  --body: "Spectral", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--coal);
  color: var(--bone);
  font-family: var(--body);
  font-size: 18px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* grano/viñeta sutil sobre el fondo */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, rgba(232,163,61,0.07), transparent 60%); }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 0.92; font-family: var(--display); letter-spacing: 0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
b { font-weight: 400; }
::selection { background: var(--gold); color: var(--coal); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--gold); color: var(--coal); padding: 12px 18px; font-weight: 600; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ---------- Cursor personalizado (desktop fino) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.js .cursor { display: block; position: fixed; top: 0; left: 0; width: 30px; height: 30px; border: 1.5px solid var(--gold); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 9999; transition: width 0.22s ease, height 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, opacity 0.3s ease; mix-blend-mode: difference; }
  html.js .cursor.is-hover { width: 56px; height: 56px; background: var(--gold); border-color: var(--gold); }
  html.js.has-cursor body, html.js.has-cursor a, html.js.has-cursor button { cursor: none; }
}

/* ---------- Cortina de carga ---------- */
.curtain { display: none; }
html.js .curtain { display: grid; place-items: center; position: fixed; inset: 0; z-index: 10000; background: var(--coal); transition: transform 0.95s cubic-bezier(0.76, 0, 0.24, 1); }
html.js .curtain.up { transform: translateY(-101%); }
.curtain-word { font-family: var(--display); font-size: clamp(2.6rem, 9vw, 6rem); color: var(--bone); letter-spacing: 0.04em; opacity: 0; animation: curtainPulse 1.1s ease forwards; }
.curtain-word b { color: var(--gold); }
@keyframes curtainPulse { 0% { opacity: 0; transform: scale(0.94); } 40% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }

/* ---------- Botones ---------- */
.cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.7em 1.5em 0.55em; background: var(--gold); color: var(--coal); border-radius: 2px; transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.cta:hover { background: var(--gold-2); transform: translateY(-2px); }
.cta-ghost { background: transparent; color: var(--bone); border: 1px solid var(--line-2); }
.cta-ghost:hover { background: var(--bone); color: var(--coal); border-color: var(--bone); }
.cta.rappi { background: var(--rappi); color: #fff; }
.cta.rappi:hover { background: var(--rappi-2); }
/* bigote Rappi (siempre blanco sobre el naranja) */
.stache { width: 1.7em; height: auto; fill: #fff; flex: 0 0 auto; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 90; display: flex; align-items: center; gap: 20px; padding: 18px var(--pad); transition: background-color 0.4s ease, padding 0.3s ease, box-shadow 0.4s ease; }
.nav.scrolled { background: rgba(14, 13, 12, 0.82); backdrop-filter: blur(12px); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line); }
.brand { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.05em; color: var(--bone); }
.brand b { color: var(--gold); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-family: var(--display); font-size: 1.02rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); transition: color 0.2s ease; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0; background: var(--gold); transition: width 0.3s ease; }
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { width: 100%; }
.order { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.07em; text-transform: uppercase; color: #fff; background: var(--rappi); padding: 0.45em 1.1em 0.35em; border-radius: 2px; transition: background-color 0.2s ease, transform 0.2s ease; }
.order:hover { background: var(--rappi-2); transform: translateY(-2px); }
.order .stache { width: 1.55em; }
/* Botón WhatsApp en el front (abre modal con QR en desktop) */
.wa-btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-size: 1rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--bone); background: transparent; border: 1px solid var(--line-2); border-radius: 2px; padding: 0.4em 0.85em 0.32em; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease; }
.wa-btn svg { width: 19px; height: 19px; fill: var(--wa); }
.wa-btn:hover { border-color: var(--wa); color: #fff; }
@media (max-width: 820px) { .nav-links { display: none; } .wa-btn { display: none; } .order { margin-left: auto; } }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad) clamp(60px, 12vh, 130px); overflow: hidden; z-index: 1; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: url("img/banner.webp") center/cover no-repeat; transform: scale(1.06); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,13,12,0.55) 0%, rgba(14,13,12,0.2) 35%, rgba(14,13,12,0.82) 100%), radial-gradient(120% 100% at 50% 100%, rgba(14,13,12,0.7), transparent 70%); }
.hero-content { max-width: 900px; }
.hero-eyebrow, .hero-kicker, .hero-lead { overflow: hidden; }
.hero-eyebrow { font-family: var(--display); letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.92rem; color: var(--gold); margin-bottom: 0.6em; }
.hero-title { font-family: var(--display); font-size: clamp(4.5rem, 19vw, 15rem); line-height: 0.8; color: var(--bone); margin: 0; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-gold span { color: var(--gold); }
.hero-kicker { font-family: var(--display); letter-spacing: 0.16em; text-transform: uppercase; font-size: clamp(1rem, 2.4vw, 1.5rem); color: var(--bone); margin: 0.4em 0 0.6em; }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ash); max-width: 46ch; margin-bottom: 1.6em; }
.hero-lead span, .hero-eyebrow span, .hero-kicker span { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll { position: absolute; right: var(--pad); bottom: clamp(40px, 8vh, 90px); display: flex; align-items: center; gap: 10px; font-family: var(--display); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.8rem; color: var(--ash); }
.hero-scroll i { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 1.8s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { transform: scaleY(0.5); opacity: 0.4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; } }

/* entrada del hero gated por .js, disparada por .ready */
html.js .hero-eyebrow span, html.js .hero-kicker span, html.js .hero-lead span,
html.js .hero-title .line span { transform: translateY(115%); transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
html.js .hero-actions { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s; }
html.js .hero.ready .hero-eyebrow span { transition-delay: 0.05s; }
html.js .hero.ready .hero-title .line:nth-child(1) span { transition-delay: 0.12s; }
html.js .hero.ready .hero-title .line:nth-child(2) span { transition-delay: 0.22s; }
html.js .hero.ready .hero-kicker span { transition-delay: 0.34s; }
html.js .hero.ready .hero-lead span { transition-delay: 0.44s; }
html.js .hero.ready .hero-eyebrow span, html.js .hero.ready .hero-kicker span,
html.js .hero.ready .hero-lead span, html.js .hero.ready .hero-title .line span { transform: none; }
html.js .hero.ready .hero-actions { opacity: 1; transform: none; }

/* ---------- EL FUEGO (scrollytelling) ---------- */
.fuego { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 8vh, 100px) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); }
.fuego-sticky { position: relative; }
.fuego-media { position: sticky; top: 14vh; height: 72vh; border-radius: 4px; overflow: hidden; border: 1px solid var(--line-2); }
.fuego-media .fm { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 0.8s ease, transform 1.2s ease; }
.fuego-media .fm.is-on { opacity: 1; transform: scale(1); }
.fuego-frame { position: absolute; inset: 14px; border: 1px solid rgba(232,163,61,0.5); pointer-events: none; }
.fuego-steps { display: flex; flex-direction: column; }
.fuego-step { min-height: 86vh; display: flex; flex-direction: column; justify-content: center; }
.fstep-num { font-family: var(--display); font-size: 1.4rem; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 0.4em; }
.fuego-step h2 { font-size: clamp(2.6rem, 7vw, 5rem); color: var(--bone); margin-bottom: 0.3em; }
.fuego-step p { color: var(--ash); max-width: 38ch; font-size: 1.1rem; }
.step-img { display: none; }

/* ---------- STATS (conteo) ---------- */
.stats { position: relative; z-index: 1; background: var(--coal-2); border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--maxw); margin: 0 auto; }
.stat { padding: clamp(40px, 7vh, 80px) 18px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-family: var(--display); font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1; color: var(--gold); }
.stat span { display: block; margin-top: 0.5em; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }

/* ---------- LA CARTA (riel horizontal) ---------- */
.carta { position: relative; z-index: 1; padding: clamp(60px, 11vh, 130px) 0; }
.carta-head { max-width: var(--maxw); margin: 0 auto clamp(28px, 5vh, 48px); padding: 0 var(--pad); display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow { font-family: var(--display); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.85rem; color: var(--gold); margin-bottom: 0.5em; }
.carta-head h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); color: var(--bone); }
.carta-hint { font-family: var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash); font-size: 0.9rem; }
.carta-hint i { color: var(--gold); font-style: normal; }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--pad) 26px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }
.rail::-webkit-scrollbar-track { background: var(--line); }
.dish { flex: 0 0 clamp(240px, 30vw, 300px); scroll-snap-align: start; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease; }
.dish:hover { transform: translateY(-6px); border-color: var(--gold); }
.dish-img { aspect-ratio: 1/1; overflow: hidden; background: #0a0908; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.dish:hover .dish-img img { transform: scale(1.06); }
.dish-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 16px 18px 0; }
.dish-row h3 { font-size: 1.5rem; color: var(--bone); }
.dish-price { font-family: var(--display); font-size: 1.2rem; color: var(--gold); }
.dish > p { color: var(--ash); font-size: 0.92rem; padding: 0.4em 18px 20px; margin: 0; }
.dish-feature { display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(160deg, #2a2114, var(--panel)); border-color: rgba(232,163,61,0.4); }
.dish-feature .dish-tag { font-family: var(--display); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78rem; color: var(--coal); background: var(--gold); align-self: flex-start; margin: 18px 0 0 18px; padding: 0.3em 0.8em 0.2em; }
.dish-feature .dish-body { padding: 18px; }
.dish-feature h3 { font-size: 2.2rem; color: var(--bone); margin-bottom: 0.2em; }
.dish-feature p { color: var(--ash); font-size: 0.95rem; margin-bottom: 0.6em; }
.dish-feature .dish-price { font-size: 1.6rem; }
.dish-cta { display: flex; flex-direction: column; justify-content: center; gap: 0.8em; padding: 24px; background: var(--coal-2); border-style: dashed; }
.dish-cta h3 { font-size: 1.8rem; color: var(--bone); }
.dish-cta p { color: var(--ash); font-size: 0.95rem; }
.dish-cta .cta { align-self: flex-start; }
.carta-note { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); color: var(--ash-2); font-size: 0.82rem; }

/* ---------- VISITA ---------- */
.visita { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 11vh, 130px) var(--pad); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: stretch; }
.visita-card { background: var(--coal-2); border: 1px solid var(--line); border-radius: 4px; padding: clamp(28px, 4vw, 44px); }
.visita-card h2 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); color: var(--bone); margin-bottom: 0.5em; }
.visita-addr { color: var(--ash); margin-bottom: 1.2em; }
.horario { margin: 0 0 1.5em; display: grid; gap: 4px; }
.horario > div { display: flex; justify-content: space-between; gap: 16px; padding: 0.5em 0; border-bottom: 1px solid var(--line); }
.horario dt { font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.92rem; color: var(--ash); }
.horario dd { margin: 0; font-family: var(--display); color: var(--bone); letter-spacing: 0.04em; }
.visita-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.2em; }
.visita-map { font-family: var(--display); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.92rem; color: var(--gold); transition: letter-spacing 0.25s ease; }
.visita-map:hover { letter-spacing: 0.16em; }
.visita-map-frame { border-radius: 4px; overflow: hidden; border: 1px solid var(--line-2); min-height: 360px; line-height: 0; }
.visita-map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: grayscale(0.4) invert(0.9) contrast(0.9) hue-rotate(180deg); }

/* ---------- FOOTER ---------- */
.footer { position: relative; z-index: 1; text-align: center; padding: clamp(60px, 10vh, 110px) var(--pad) clamp(90px, 12vh, 120px); border-top: 1px solid var(--line); }
.footer-mark { font-family: var(--display); font-size: clamp(3.5rem, 14vw, 9rem); line-height: 0.9; color: var(--bone); letter-spacing: 0.03em; }
.footer-mark b { color: var(--gold); }
.footer-line { color: var(--ash); margin: 0.6em 0 1.6em; }
.footer-social { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4em; }
.footer-social a { font-family: var(--display); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.95rem; color: var(--ash); transition: color 0.2s ease; }
.footer-social a:hover { color: var(--gold); }
.footer-legal { color: var(--ash-2); font-size: 0.8rem; }

/* ---------- Barra de acción inferior (solo móvil) ---------- */
.orderbar { display: none; }
@media (max-width: 760px) {
  .orderbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
  .orderbar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; padding: 1em; font-size: 1.05rem; }
  .orderbar-rappi { background: var(--rappi); color: #fff; }
  .orderbar-rappi .stache { width: 1.5em; }
  .orderbar-wa { background: var(--coal-2); color: var(--bone); }
  .footer { padding-bottom: 90px; }
}

/* ---------- Lightbox ---------- */
.lightbox[hidden] { display: none !important; }
.lightbox { position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center; background: rgba(8,7,6,0.95); padding: 24px; opacity: 0; transition: opacity 0.25s ease; }
.lightbox.open { opacity: 1; }
.lightbox img { max-width: min(92vw, 680px); max-height: 86vh; object-fit: contain; border-radius: 4px; border: 1px solid var(--gold); }
.lb-close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: var(--bone); font-size: 2.6rem; line-height: 1; cursor: pointer; }

/* ---------- Modal WhatsApp (QR) ---------- */
.wamodal[hidden] { display: none !important; }
.wamodal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(8, 7, 6, 0.86); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.25s ease; }
.wamodal.open { opacity: 1; }
.wamodal-card { position: relative; background: var(--bone); color: var(--coal); border: 1px solid var(--gold); border-radius: 6px; max-width: 400px; width: 100%; padding: clamp(28px, 5vw, 42px); text-align: center; transform: translateY(14px) scale(0.97); transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.wamodal.open .wamodal-card { transform: none; }
.wamodal-close { position: absolute; top: 8px; right: 16px; background: none; border: none; font-size: 2.2rem; line-height: 1; color: rgba(36,28,23,0.55); cursor: pointer; }
.wamodal-kicker { font-family: var(--display); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.8rem; color: var(--rappi); margin-bottom: 0.4em; }
#wamodal-title { font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.4rem); color: var(--coal); letter-spacing: 0.02em; }
.wamodal-lead { font-size: 0.95rem; color: rgba(36,28,23,0.7); margin: 0.5em 0 1.2em; }
.wamodal-qr { margin: 0 0 1.2em; }
.wamodal-qr img { width: 210px; height: 210px; margin: 0 auto; border: 8px solid #fff; border-radius: 8px; box-shadow: 0 2px 0 rgba(0,0,0,0.06); }
.wamodal-card .cta { background: var(--wa); color: #06340f; }
.wamodal-card .cta:hover { background: #2ee776; }
.wamodal-note { color: rgba(36,28,23,0.6); font-size: 0.82rem; margin-top: 1.1em; }

/* ---------- Reveal (blur + rise), gated por .js ---------- */
html.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.22,1,0.36,1), filter 0.85s ease; will-change: opacity, transform, filter; }
html.js .reveal.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .curtain { display: none; }
  html.js .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none; }
  html.js .hero-eyebrow span, html.js .hero-kicker span, html.js .hero-lead span, html.js .hero-title .line span { transform: none !important; transition: none; }
  html.js .hero-actions { opacity: 1 !important; transform: none !important; }
  .fuego-media .fm { transition: none; }
  .hero-scroll i, .curtain-word { animation: none !important; }
  .cursor { display: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  /* móvil: sin imagen fija; cada paso es una tarjeta compacta con su foto */
  .fuego { grid-template-columns: 1fr; gap: 0; }
  .fuego-sticky { display: none; }
  .fuego-steps { display: block; }
  .fuego-step { min-height: 0; display: block; padding: 0 0 clamp(40px, 7vh, 64px); }
  .step-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; border: 1px solid var(--line-2); margin-bottom: 1.2em; }
  .fstep-num { margin-bottom: 0.2em; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(odd) { border-left: none; }
  .visita { grid-template-columns: 1fr; }
  .visita-map-frame { min-height: 300px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero { padding-bottom: 96px; }
  .hero-scroll { display: none; }
}
