/* El Rebenque · sitio de una página · nuevositio 2026 */

@font-face { font-family: "Zodiak"; src: url("../fonts/zodiak-100.woff2") format("woff2"); font-weight: 100; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("../fonts/zodiak-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #14110e;
  --surface: #201b16;
  --ink: #eceae6;
  --muted: #b5ab9b;
  --accent: #f2b366;          /* la luz de las lamparitas del alero */
  --accent-ink: #14110e;
  --paper: #e3e2de;
  --paper-ink: #1a1612;
  --paper-muted: #574d41;
  --field: #2a2119;

  --display: "Zodiak", "Times New Roman", serif;
  --text: "Hanken Grotesk", system-ui, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.2vw, 4.25rem);

  --m: clamp(16px, 2.6vw, 40px);  /* margen exterior único */
  --gap: clamp(120px, 14vw, 220px);
  --ease: cubic-bezier(.2,.7,.1,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
main, .pie { overflow-x: clip; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h2 { font-family: var(--display); font-weight: 300; font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.01em; }

.marco { padding-inline: var(--m); max-width: 1520px; margin-inline: auto; }
.saltar { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; }
.saltar:focus { top: 12px; }

/* botones: rectos, un solo relleno */
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; font-size: var(--step-small); font-weight: 500; text-decoration: none; transition: transform .25s var(--ease), background-color .25s var(--ease); }
.boton:active { transform: scale(.97); }
.boton-acento { background: var(--accent); color: var(--accent-ink); }
.boton-acento:hover { background: #f7c788; }
.boton-claro { background: var(--paper); color: var(--paper-ink); }
.boton-claro:hover { background: #fff7ea; }

/* ---------- barra ---------- */
.barra { position: fixed; inset: 0 0 auto; z-index: 20; transition: background-color .35s var(--ease), transform .45s var(--ease); }
.barra.solida { background: var(--bg); }
.barra-in { display: flex; align-items: center; gap: 28px; height: 68px; padding-inline: var(--m); }
.marca { font-family: var(--display); font-weight: 300; font-size: 1.5rem; text-decoration: none; letter-spacing: -0.01em; margin-right: auto; }
.nav { display: flex; gap: 26px; font-size: var(--step-small); }
.nav a { text-decoration: underline transparent; padding: 12px 0; transition: text-decoration-color .3s var(--ease), color .3s; }
.nav a:hover, .nav a:focus-visible { text-decoration-color: currentColor; }
.idiomas { display: flex; gap: 2px; font-size: var(--step-small); }
.idiomas button { min-width: 40px; min-height: 44px; color: var(--muted); transition: color .2s; }
.idiomas button:hover { color: var(--ink); }
.idiomas button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.menu-btn { display: none; min-height: 44px; font-size: var(--step-small); }

/* ---------- portada ---------- */
.portada { position: relative; height: 200svh; }
.portada-escena { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.portada-media, .portada-media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.portada-media video { object-fit: cover; }
.v-antes { object-position: 50% 32%; }
.v-ahora { object-position: 50% 62%; opacity: 0; }
.atardecer { background: #0b0907; opacity: 0; }
.velo { /* taste-skill-ignore: scrim neutro bajo el texto */ background: linear-gradient(to top, rgba(10,8,6,.82) 0%, rgba(10,8,6,.5) 30%, rgba(10,8,6,0) 52%), linear-gradient(to bottom, rgba(10,8,6,.55), rgba(10,8,6,0) 120px); }

.portada-texto { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto auto; column-gap: 32px; padding: 0 var(--m) clamp(16px, 2.4vw, 34px); }
.portada-arriba { grid-column: 1; grid-row: 2; max-width: 34rem; }
.estado { display: grid; font-family: var(--display); font-weight: 300; font-size: var(--step-lead); line-height: 1.2; margin-bottom: 12px; }
.estado > span { grid-area: 1 / 1; }
.estado-ahora { opacity: 0; }
.bajada { font-size: max(18px, var(--step-body)); line-height: 1.45; max-width: 32rem; color: var(--ink); }
.portada-accion { grid-column: 2; grid-row: 2; align-self: end; }
.nombre { grid-column: 1 / -1; grid-row: 3; font-family: var(--display); font-weight: 100; text-transform: uppercase; font-size: 12.6vw; line-height: .86; letter-spacing: -0.02em; white-space: nowrap; margin-top: clamp(12px, 2vw, 28px); }
.nombre-linea { display: inline-block; }

/* ---------- hoy en el fogón ---------- */
.hoy { padding-block: var(--gap); }
.hoy-grilla { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.hoy-foto { grid-column: 1 / 6; position: sticky; top: 12vh; align-self: start; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.hoy-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease), transform 1.2s var(--ease); transform: scale(1.04); }
.hoy-foto img.activa { opacity: 1; transform: scale(1); }
.hoy-texto { grid-column: 7 / 13; padding-top: 2vh; }
.hoy-fecha { margin-top: 20px; font-size: var(--step-lead); font-family: var(--display); font-weight: 300; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.hoy-fecha [data-fecha]::first-letter { text-transform: uppercase; }
.ejemplo { font-family: var(--text); font-size: var(--step-small); background: var(--accent); color: var(--accent-ink); padding: 2px 10px; font-weight: 500; }
.hoy-intro { margin-top: 16px; max-width: 34rem; color: var(--muted); }
.pizarra { margin-top: 48px; }
.pizarra li { padding-block: 6px; }
.pizarra button { width: 100%; min-height: 58px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; text-align: left; }
.plato { font-family: var(--display); font-weight: 300; font-size: var(--step-lead); line-height: 1.15; color: var(--muted); transition: color .3s var(--ease), transform .4s var(--ease); }
.como { font-size: var(--step-small); color: var(--muted); white-space: nowrap; }
.pizarra li.activa .plato { color: var(--ink); transform: translateX(10px); }
.pizarra li.activa .como { color: var(--accent); }
.pizarra button:hover .plato { color: var(--ink); }
.desc { font-size: var(--step-small); color: var(--ink); max-width: 34ch; padding: 0 0 10px 10px; }
.js .pizarra li:not(.activa) .desc { display: none; }

/* ---------- a fuego de leña ---------- */
.fuego { position: relative; height: 280svh; }
.fuego-escena { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #0b0907; }
.fuego-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.fuego-velo { position: absolute; inset: 0; background: rgba(10,8,6,.66); }
.fuego-texto { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 1520px; }
.fuego-texto h2 { margin-bottom: 28px; }
.pasos { display: grid; gap: 6px; }
.pasos li { font-family: var(--display); font-weight: 300; font-size: var(--step-lead); line-height: 1.25; color: var(--muted); transition: color .4s var(--ease), transform .5s var(--ease); }
.pasos li.activo { color: var(--ink); transform: translateX(14px); }
.fuego-nota { margin-top: 32px; max-width: 30rem; font-size: var(--step-small); color: var(--ink); }
.fuego-fotos { position: absolute; right: var(--m); top: 50%; width: min(30vw, 420px); aspect-ratio: 4 / 5; transform: translateY(-50%); }
.fuego-fotos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: translateY(24px) scale(1.03); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.fuego-fotos img.activa { opacity: 1; transform: none; }

/* ---------- amasado acá (video de las manos) ---------- */
.amasado { padding-block: var(--gap); }
.amasado-grilla { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.amasado-texto { grid-column: 1 / 6; }
.amasado-lead { margin-top: 24px; max-width: 30rem; font-size: var(--step-lead); line-height: 1.4; color: var(--muted); }
.amasado-fotos { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amasado-fotos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.amasado-video { grid-column: 7 / 13; }
.amasado-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }

/* ---------- de nuestra cocina (fotos de los platos) ---------- */
.platos { background: var(--surface); padding-block: var(--gap); }
.platos-cabeza { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.platos-cabeza h2 { grid-column: 1 / 7; }
.platos-lead { grid-column: 8 / 13; font-size: var(--step-lead); line-height: 1.4; color: var(--muted); }
.platos-grilla { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plato-foto { position: relative; overflow: hidden; }
.plato-foto:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.plato-foto img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.plato-foto:hover img { transform: scale(1.05); }
.plato-foto figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; font-size: var(--step-small); line-height: 1.35; background: linear-gradient(transparent, rgba(20,17,14,.82)); }

/* ---------- de la quinta ---------- */
.quinta { overflow: clip; background: var(--paper); color: var(--paper-ink); padding-block: var(--gap); }
.quinta h2 { max-width: 14ch; }
.quinta-lead { margin-top: 24px; max-width: 40rem; font-size: var(--step-lead); line-height: 1.4; }
.quinta-mosaico { margin-top: 72px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: start; }
.quinta-foto { grid-column: 1 / 9; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.quinta-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.quinta-papel { position: absolute; top: 0; right: 0; width: 320px; padding: 20px; background: var(--paper); font-size: var(--step-small); line-height: 1.5; }
.quinta-campo { grid-column: 9 / 13; background: var(--field); color: var(--ink); padding: clamp(24px, 2.6vw, 40px); min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.productos li { font-family: var(--display); font-weight: 300; font-size: var(--step-lead); line-height: 1.22; }
.productos-nota { font-size: var(--step-small); color: var(--muted); }

/* ---------- historia ---------- */
.historia { padding-block: var(--gap); }
.historia-grilla { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.historia-video { grid-column: 1 / 6; position: sticky; top: 90px; }
.historia-video video { width: auto; height: min(80svh, 780px); max-width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #000; }
.historia-video figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.historia-texto { grid-column: 7 / 13; }
.historia-texto p { max-width: 36rem; margin-top: 20px; }
.historia-lead { font-family: var(--display); font-weight: 300; font-size: var(--step-lead); line-height: 1.3; margin-top: 28px !important; }
.antes-ahora { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; margin-top: 56px; align-items: end; }
.antes-ahora img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 35%; }
.antes-ahora figure:last-child img { aspect-ratio: 4 / 5; object-position: 50% 40%; }
.antes-ahora figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }

/* ---------- visitanos ---------- */
.visita { position: relative; overflow: clip; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; padding: 0 var(--m) var(--gap); max-width: 1520px; margin-inline: auto; }
.visita-foto { grid-column: 1 / 9; grid-row: 1; width: 100%; height: min(86svh, 760px); object-fit: cover; object-position: 50% 60%; }
.visita-marco { grid-column: 9 / 13; grid-row: 1; padding: 0; position: relative; z-index: 1; }
.ficha { width: 100%; background: var(--paper); color: var(--paper-ink); padding: 32px; }
.ficha h2 { font-size: var(--step-head); }
.croquis { width: 100%; height: auto; margin-top: 22px; }
.datos { margin-top: 22px; display: grid; gap: 14px; font-size: var(--step-small); }
.datos div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
.datos dt { color: var(--paper-muted); }
.confirmar { display: inline-block; margin-left: 4px; padding: 0 8px; background: var(--paper-ink); color: var(--paper); }
.ficha-acciones { margin-top: 26px; display: grid; gap: 8px; }
.ficha .boton-claro { background: #ddd3c1; }
.ficha .boton-claro:hover { background: #d2c6b1; }

/* ---------- pie ---------- */
.pie { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; background: var(--surface); }
.pie-foto { position: relative; overflow: hidden; }
.pie-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 55%; }
.pie-texto { padding: 80px var(--m) 32px clamp(32px, 6vw, 96px); display: flex; flex-direction: column; }
.pie-marca { font-family: var(--display); font-weight: 300; font-size: 1.5rem; }
.pie-menu { margin-top: 48px; display: grid; gap: 14px; justify-items: start; }
.pie-menu a { font-family: var(--display); font-weight: 300; font-size: var(--step-lead); line-height: 1.2; text-decoration: none; transition: transform .35s var(--ease), color .35s var(--ease); }
.pie-menu:hover a { color: var(--muted); }
.pie-menu a:hover, .pie-menu a:focus-visible { color: var(--ink); transform: translateX(12px); }
.pie-datos { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: var(--step-small); }
.pie-legal { margin-top: auto; padding-top: 48px; font-size: var(--step-small); color: var(--muted); }
.firma { margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; font-size: var(--step-small); color: var(--muted); text-decoration: none; transition: color .3s var(--ease); }
.firma:hover { color: var(--ink); }
.firma img { height: 30px; width: auto; }

/* ---------- tableta y celular ---------- */
@media (max-width: 1000px) {
  .amasado-texto, .amasado-video { grid-column: 1 / -1; }
  .amasado-video { margin-top: 32px; order: -1; }
  .platos-cabeza h2, .platos-lead { grid-column: 1 / -1; }
  .platos-lead { margin-top: 20px; }
  .platos-grilla { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 40px; }
  .plato-foto:nth-child(7n + 1) { grid-column: span 2; grid-row: auto; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); padding: 8px var(--m) 20px; font-size: var(--step-body); }
  .nav.abierta { display: flex; }
  .nav a { padding: 12px 0; }
  .menu-btn { display: inline-block; }
  .barra-in { gap: 12px; }

  .hoy-grilla { display: block; }
  .hoy-foto { position: relative; top: 0; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 40px; }
  .hoy-texto { padding-top: 0; }

  .quinta-mosaico { display: block; }
  .quinta-foto { aspect-ratio: 4 / 3; }
  .quinta-papel { position: static; width: auto; padding: 16px 0 24px; background: none; }
  .quinta-foto { overflow: visible; }
  .quinta-foto img { aspect-ratio: 4 / 3; height: auto; }
  .quinta-campo { margin-top: 8px; }

  .historia-grilla { display: block; }
  .historia-video { position: static; max-width: 420px; margin-bottom: 48px; }

  .visita { display: block; padding: 0 0 64px; }
  .visita-foto { height: 70svh; }
  .visita-marco { margin: -80px var(--m) 0; max-width: 560px; }
  .pie { grid-template-columns: 1fr; min-height: 0; }
  .pie-foto { height: 50vh; height: 50svh; }
  .pie-texto { padding: 48px var(--m) 32px; }
}

@media (max-width: 640px) {
  .portada { height: 180svh; }
  .portada-texto { grid-template-columns: 1fr; padding-bottom: 20px; }
  .portada-accion { grid-column: 1; grid-row: 4; justify-self: start; margin-top: 18px; width: 100%; }
  .portada-arriba { grid-row: 2; }
  .nombre { grid-row: 3; font-size: 16.4vw; line-height: .9; white-space: normal; }
  .nombre-linea { display: block; }
  .v-antes { object-position: 50% 30%; }
  .v-ahora { object-position: 52% 60%; }
  .velo { /* taste-skill-ignore: scrim neutro bajo el texto */ background: linear-gradient(to top, rgba(10,8,6,.86) 0%, rgba(10,8,6,.55) 42%, rgba(10,8,6,0) 64%), linear-gradient(to bottom, rgba(10,8,6,.6), rgba(10,8,6,0) 110px); }

  .fuego { height: 300svh; }
  .fuego-texto { justify-content: flex-end; padding-bottom: 36px; }
  .fuego-texto h2 { margin-bottom: 18px; }
  .pasos li { font-size: 1.125rem; }
  .pasos li.activo { transform: translateX(8px); }
  .fuego-nota { margin-top: 18px; }
  .fuego-fotos { top: 84px; right: 16px; width: 44vw; transform: none; aspect-ratio: 4 / 5; }

  .ficha { width: 100%; padding: 24px; }
  .ficha .boton { min-height: 56px; }

  .pie-datos { grid-template-columns: 1fr; }
  .barra-in { gap: 6px; }
  .marca { font-size: 1.3rem; }
  .idiomas button { min-width: 36px; }
}

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .portada { height: 100svh; }
  .v-antes, .atardecer { display: none; }
  .v-ahora { opacity: 1; }
  .estado-antes { opacity: 0; }
  .estado-ahora { opacity: 1; }
  .fuego { height: auto; }
  .fuego-escena { position: relative; height: auto; min-height: 100svh; padding-block: 120px; }
  .pasos li { color: var(--ink); transform: none !important; }
}

/* sin GSAP (CDN caído): la portada queda encendida */
.estatico .portada { height: 100svh; }
.estatico .v-ahora { opacity: 1; }
.estatico .estado-antes { opacity: 0; }
.estatico .estado-ahora { opacity: 1; }
