/* ==========================================================================
   Mi Finca — Restaurante Campestre
   Concepto: "La puerta de la finca" — el arco de la casa del isologo
   ========================================================================== */

:root {
  /* Paleta de marca */
  --almendra: #f5f2ed;
  --olivo: #296252;
  --salvia: #4c8f7c;
  --menta: #a7ddcd;
  --ahumado: #75421e;
  --mostaza: #deb71e;

  /* Derivados */
  --olivo-900: #173b31;
  --olivo-950: #0f2a23;
  --ink: #1b2420;
  --ink-soft: #46524c;
  --line: rgba(27, 36, 32, .14);
  --line-light: rgba(245, 242, 237, .18);
  --wa: #25d366;

  /* Tipografía */
  --f-display: "Young Serif", Georgia, serif;
  --f-body: "Bricolage Grotesque", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, monospace;

  --fs-hero: clamp(2.7rem, min(6.6vw, 12.5vh), 8.4rem);
  --fs-h2: clamp(2.2rem, 4.6vw, 4.6rem);
  --fs-h3: clamp(1.6rem, 2.4vw, 2.3rem);
  --fs-lede: clamp(1.1rem, 1.35vw, 1.3rem);

  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1440px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::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; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--almendra);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--mostaza); color: var(--ink); }
:focus-visible { outline: 2px solid var(--mostaza); outline-offset: 4px; border-radius: 4px; }

/* Grano analógico sobre todo el sitio */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 9000;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  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(-1%, 3%); }
  80%  { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 9999; background: var(--mostaza); padding: .6rem 1rem; border-radius: 99px; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--olivo);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; flex: none;
  border-radius: 14px 14px 0 0; /* arco */
  background: currentColor;
}
.eyebrow--light { color: var(--menta); }

.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--olivo-900);
  text-wrap: balance;
}
.h2--light { color: var(--almendra); }
.h2 em, .hero__title em { font-style: normal; color: var(--mostaza); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--mostaza); --fg: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .9rem 1.6rem;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  transition: color .5s var(--ease), transform .4s var(--ease);
}
.btn::before { /* relleno que sube en arco */
  content: ""; position: absolute; z-index: -1;
  left: -10%; right: -10%; top: 100%; height: 240%;
  border-radius: 50% 50% 0 0;
  background: var(--hover, var(--ink));
  transition: top .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { top: -40%; }
.btn:hover, .btn:focus-visible { color: var(--hover-fg, var(--almendra)); }
.btn--mostaza { --bg: var(--mostaza); --fg: var(--ink); --hover: var(--almendra); --hover-fg: var(--olivo-900); }
.btn--olivo { --bg: var(--olivo); --fg: var(--almendra); --hover: var(--mostaza); --hover-fg: var(--ink); }
.btn--whatsapp { --bg: var(--wa); --fg: #062b16; --hover: var(--almendra); --hover-fg: var(--olivo-900); }
.btn--ghost { --bg: transparent; --fg: var(--almendra); --hover: var(--almendra); --hover-fg: var(--olivo-900); box-shadow: inset 0 0 0 1px var(--line-light); }
.btn--sm { min-height: 44px; padding: .65rem 1.15rem; font-size: .92rem; }
.btn--lg { min-height: 64px; padding: 1.1rem 2.2rem; font-size: 1.1rem; }
.btn .ico { width: 20px; height: 20px; flex: none; }

.link-arrow {
  display: inline-flex; gap: .5rem; align-items: center;
  font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
  padding-block: .25rem;
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translateY(3px); }

/* ---------- Image placeholders ----------
   Cada <figure class="media"> muestra un placeholder hasta que su <img> carga.
   Para reemplazar: deja el archivo con el mismo nombre en assets/img/.            */
.media {
  --ph: var(--salvia);
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--ph) 70%, white 30%) 0%, transparent 60%),
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255,255,255,.06) 14px 15px),
    var(--ph);
}
.media::after {
  content: "Foto · " attr(data-ph);
  position: absolute; left: 1rem; bottom: 1rem; z-index: 1;
  max-width: calc(100% - 2rem);
  padding: .4rem .7rem; border-radius: 99px;
  background: rgba(15, 42, 35, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--almendra);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
.media img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  opacity: 0; transition: opacity .8s var(--ease);
}
.media picture { display: block; width: 100%; height: 100%; }
.media.is-loaded img { opacity: 1; }
.media.is-loaded::after { display: none; }
.media--round { border-radius: 50%; aspect-ratio: 1; }
.media--round::after { left: 50%; bottom: 50%; transform: translate(-50%, 50%); }
.media--arch { border-radius: 999px 999px 22px 22px; width: 100%; height: 100%; }
.media--arch img { transform: scale(1.18); will-change: transform; }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  pointer-events: none;
}
.loader__arch {
  position: absolute; inset: 0;
  background: var(--almendra);
  border-radius: 0;
}
.loader__logo { position: relative; width: clamp(110px, 14vw, 170px); opacity: 0; transform: scale(.85); }
html:not(.js) .loader, .reduced .loader { display: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 500;
  height: var(--header-h);
  display: flex; align-items: center; gap: 2rem;
  padding-inline: var(--gutter);
  color: var(--almendra);
  transition: transform .6s var(--ease), color .4s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: transparent;
  transition: background .4s var(--ease), backdrop-filter .4s;
}
.nav.is-scrolled::before { background: rgba(23, 59, 49, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.nav.is-light { color: var(--olivo-900); }
.nav.is-light.is-scrolled::before { background: rgba(245, 242, 237, .8); }
.nav.is-hidden { transform: translateY(-100%); }

.nav__brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.nav__brand img { width: 52px; height: 52px; background: var(--almendra); border-radius: 50%; padding: 2px; }
.nav__wordmark { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -.01em; }

.nav__links { display: flex; gap: 2rem; margin-left: auto; }
.nav__links a {
  position: relative; text-decoration: none; font-size: .95rem; font-weight: 500;
  padding-block: .3rem;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { min-height: 46px; padding: .7rem 1.4rem; }

.nav__toggle { display: none; width: 48px; height: 48px; margin-left: auto; border: 0; background: transparent; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.nav__toggle span:first-child { top: 19px; }
.nav__toggle span:last-child { top: 28px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 400;
  background: var(--olivo-900); color: var(--almendra);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 1.5rem;
  clip-path: inset(0 0 100% 0 round 0 0 50% 50%);
  transition: clip-path .8s var(--ease-in-out);
}
.menu.is-open { clip-path: inset(0 0 0 0 round 0); }
.menu nav { display: flex; flex-direction: column; gap: .3rem; }
.menu nav a { font-family: var(--f-display); font-size: clamp(1.9rem, min(10vw, 6.2vh), 3.4rem); text-decoration: none; line-height: 1.15; }
.menu__foot { display: grid; gap: .7rem; padding-bottom: env(safe-area-inset-bottom); }
.menu__foot .mono { color: var(--menta); }
.menu__social { display: flex; justify-content: center; gap: 2rem; padding-top: .4rem; }
.menu__social a { min-height: 44px; display: inline-flex; align-items: center; color: var(--menta); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-light); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; background: var(--olivo-950); color: var(--almendra); }
.hero__pin { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }

.hero__stage {
  position: absolute; inset: 0;
  /* el clip-path se controla desde JS (arco → pantalla completa) */
  clip-path: inset(var(--t, 13%) var(--r, 6%) var(--b, 7%) var(--l, 55%) round var(--rad, 20vw) var(--rad, 20vw) 0 0);
  will-change: clip-path;
}
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { transform: scale(1.12); transition: transform 7s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__slide::after { left: calc(55% + 1.4rem); bottom: calc(6% + 1.4rem); }
@media (max-width: 960px) { .hero__slide::after { left: auto; right: var(--gutter); top: calc(var(--header-h) + 3rem); bottom: auto; } }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15,42,35,.45) 0%, transparent 30%, transparent 55%, rgba(15,42,35,.75) 100%);
  opacity: var(--shade, .35);
}

.hero__copy {
  position: absolute; z-index: 2;
  left: var(--gutter); bottom: clamp(3rem, 9vh, 7rem);
  width: min(47vw, 820px);
  will-change: transform, opacity;
}
.hero__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: var(--fs-hero);
  line-height: .94; letter-spacing: -.035em;
  margin-bottom: 1.6rem;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: block; }
.hero__title .hero__title-sub {
  margin-top: .35em; padding-bottom: .12em;
  font-family: var(--f-display); font-weight: 400;
  font-size: max(.31em, 1.35rem); line-height: 1.15; letter-spacing: -.015em;
  color: var(--almendra);
}
.hero__title .hero__title-sub > span { text-wrap: balance; max-width: 22ch; }
.hero__sub { max-width: 34rem; font-size: var(--fs-lede); line-height: 1.5; color: rgba(245,242,237,.82); margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }

.hero__ticker {
  position: absolute; z-index: 2;
  right: 6%; top: calc(var(--header-h) + 14px);
  width: 39%;
  display: flex; align-items: center; gap: 1rem;
  color: rgba(245,242,237,.6);
}
.hero__ticker-label { white-space: nowrap; color: var(--mostaza); }
.hero__ticker-list { position: relative; height: 1.2em; flex: 1; overflow: hidden; }
.hero__ticker-list li { position: absolute; inset: 0; transform: translateY(110%); transition: transform .8s var(--ease); }
.hero__ticker-list li.is-active { transform: translateY(0); color: var(--almendra); }
.hero__ticker-list li.was-active { transform: translateY(-110%); }
.hero__ticker-bar { width: 80px; height: 2px; background: var(--line-light); overflow: hidden; }
.hero__ticker-bar span { display: block; height: 100%; width: 100%; background: var(--mostaza); transform-origin: left; transform: scaleX(0); }

.hero__caption {
  position: absolute; z-index: 2; inset: auto 0 clamp(2rem, 6vh, 4rem);
  display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center;
  opacity: 0; pointer-events: none;
}
.hero__caption-big { font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 5.2rem); max-width: 18ch; text-wrap: balance; line-height: 1; letter-spacing: -.03em; }
.hero__caption .mono { color: var(--menta); }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  position: relative; z-index: 3;
  background: var(--mostaza); color: var(--ink);
  overflow: hidden; padding-block: 1.05rem;
}
.marquee__track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--f-display); font-size: clamp(1.25rem, 2vw, 1.8rem); white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--ahumado); font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   STATEMENT
   ========================================================================== */
.statement { padding-block: clamp(6rem, 14vw, 13rem) clamp(4rem, 9vw, 8rem); }
.statement__text {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4.2vw, 4.3rem);
  line-height: 1.12; letter-spacing: -.025em;
  color: var(--olivo-900);
  max-width: 30ch;
  text-wrap: pretty;
}
.statement__text .w { opacity: .14; }
.statement__meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin-top: clamp(3rem, 7vw, 6rem); padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.statement__meta div { display: grid; gap: .45rem; }
.statement__meta .mono { color: var(--salvia); }
.statement__meta strong { font-weight: 500; font-size: 1.05rem; line-height: 1.4; }

/* ==========================================================================
   EXPERIENCIA
   ========================================================================== */
.exp { padding-bottom: clamp(5rem, 10vw, 10rem); }
.exp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 8rem); align-items: start; }

.exp__visual { position: sticky; top: calc(var(--header-h) + 3vh); height: calc(100vh - var(--header-h) - 8vh); display: grid; place-items: center; }
.exp__arch {
  position: relative; width: min(100%, 520px); height: 100%; max-height: 720px;
  border-radius: 999px 999px 18px 18px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(23,59,49,.5);
}
.exp__img { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-in-out); }
.exp__img.is-active { clip-path: inset(0 0 0 0); z-index: 1; }
.exp__img.is-active img { animation: slowzoom 8s var(--ease) both; }
@keyframes slowzoom { from { transform: scale(1.15); } to { transform: scale(1); } }

.exp__stamp { position: absolute; right: -2rem; bottom: 6%; width: 150px; aspect-ratio: 1; z-index: 3; }
.exp__stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.exp__stamp text { font-family: var(--f-mono); font-size: 13.5px; letter-spacing: 2.6px; text-transform: uppercase; fill: var(--olivo-900); }
.exp__stamp img { position: absolute; inset: 27%; width: 46%; border-radius: 50%; background: var(--almendra); }
.exp__stamp::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mostaza); z-index: -1; }
@keyframes spin { to { transform: rotate(360deg); } }

.exp__chapters .h2 { margin-bottom: clamp(3rem, 8vh, 6rem); max-width: 14ch; }
.chapter { padding-block: clamp(3rem, 14vh, 9rem); border-top: 1px solid var(--line); }
.chapter:last-child { padding-bottom: 0; }
.chapter__img { display: none; aspect-ratio: 4/5; border-radius: 999px 999px 14px 14px; margin-bottom: 2rem; }
.chapter__tag { display: block; color: var(--ahumado); margin-bottom: 1rem; }
.chapter__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -.02em; color: var(--olivo-900); margin-bottom: 1.1rem; }
.chapter p { max-width: 34rem; color: var(--ink-soft); font-size: var(--fs-lede); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.chips li { padding: .45rem .9rem; border-radius: 99px; border: 1px solid var(--line); font-size: .88rem; background: rgba(255,255,255,.45); }

/* ==========================================================================
   PLATOS ESTRELLA (scroll horizontal)
   ========================================================================== */
.dishes { position: relative; background: var(--olivo); color: var(--almendra); overflow: hidden; }
.dishes::before { /* halo cálido de brasa */
  content: ""; position: absolute; width: 80vw; aspect-ratio: 1; left: 50%; top: 50%;
  transform: translate(-50%, -30%);
  background: radial-gradient(closest-side, rgba(222,183,30,.18), transparent 70%);
  pointer-events: none;
}
.dishes__pin { position: relative; height: 100vh; height: 100svh; display: flex; align-items: center; }
.dishes__track { display: flex; align-items: center; height: 100%; padding: calc(var(--header-h) + 3.4rem) var(--gutter) 3.6rem; gap: clamp(2.5rem, 4.5vw, 5.5rem); will-change: transform; }

.dish.dish--intro { flex: none; display: block; width: min(38vw, 560px); }
.dish.dish--outro { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; width: min(34vw, 460px); }

.dishes__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.4rem, min(4.4vw, 8.5vh), 4.9rem); line-height: .98; letter-spacing: -.03em; margin-bottom: 1.6rem; text-wrap: balance; }
.dishes__lede { font-size: var(--fs-lede); color: rgba(245,242,237,.78); max-width: 26rem; }
.dishes__hint { display: inline-flex; gap: .6rem; margin-top: 3rem; color: var(--mostaza); }
.dishes__hint span { animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
@keyframes dayIn { from { opacity: 0; transform: translateX(24px); } }

/* Días: en escritorio sus hijos se integran al carril horizontal */
.day, .day__cards { display: contents; }
.day__head { flex: none; width: min(30vw, 420px); padding-left: clamp(1rem, 3vw, 3rem); border-left: 1px solid var(--line-light); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.day__head .mono { color: var(--mostaza); margin-bottom: 1rem; }
.day__title { font-family: var(--f-display); font-size: clamp(3rem, min(5.6vw, 11vh), 6.6rem); line-height: .92; letter-spacing: -.04em; margin-bottom: 1.4rem; }
.day__lede { color: rgba(245,242,237,.75); font-size: var(--fs-lede); max-width: 22rem; }

.dish { flex: none; display: flex; flex-direction: column; gap: 1.2rem; width: min(29vh, 320px); }
.day__cards .dish:nth-child(even) { translate: 0 -3vh; }
.dish__plate { position: relative; width: 100%; aspect-ratio: 3 / 4; }
.dish__plate::before { /* contorno del arco */
  content: ""; position: absolute; inset: -12px;
  border-radius: 999px 999px 28px 28px;
  border: 1px dashed rgba(167, 221, 205, .4);
  pointer-events: none;
}
.dish__plate .media { position: absolute; inset: 0; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); }
.dish__kind { display: inline-block; color: var(--mostaza); margin-bottom: .9rem; padding: .3rem .7rem; border: 1px solid rgba(222,183,30,.5); border-radius: 99px; font-size: .68rem; }
.dish__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2.1vw, 2.3rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: .7rem; }
.dish__body p { color: rgba(245,242,237,.78); font-size: .98rem; line-height: 1.5; }
.dishes__note {
  max-width: 22rem; padding: .9rem 1.1rem; border-radius: 16px;
  background: rgba(15, 42, 35, .35); box-shadow: inset 0 0 0 1px var(--line-light);
  color: rgba(245, 242, 237, .85); font-size: .95rem; line-height: 1.5;
}
.dishes__outro-text { font-family: var(--f-display); font-size: clamp(2.4rem, 4.6vw, 4.8rem); line-height: 1; letter-spacing: -.03em; }

/* Selector de día */
.dishes__days {
  position: absolute; z-index: 3; left: var(--gutter); top: calc(var(--header-h) + 8px);
  display: inline-flex; padding: 4px; border-radius: 99px;
  background: rgba(15, 42, 35, .45); box-shadow: inset 0 0 0 1px var(--line-light);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.dishes__day {
  position: relative; z-index: 1; border: 0; background: transparent; color: var(--almendra);
  min-height: 40px; padding: .5rem 1.2rem; border-radius: 99px;
  font-family: var(--f-body); font-weight: 600; font-size: .92rem;
  transition: color .4s var(--ease);
}
.dishes__day.is-active { color: var(--ink); }
.dishes__day-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 99px; background: var(--mostaza); transition: transform .55s var(--ease), width .55s var(--ease); }
.dishes__dots { display: none; }

.dishes__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(1.5rem, 5vh, 3rem); height: 2px; background: var(--line-light); }
.dishes__progress span { display: block; height: 100%; background: var(--mostaza); transform-origin: left; transform: scaleX(0); }

/* ==========================================================================
   DESPENSA (productos para llevar) — tono kraft, como la bolsa del chocolate
   ========================================================================== */
.pantry { --kraft: #e8dcc8; background: var(--kraft); padding-block: clamp(5.5rem, 11vw, 10rem); }
.eyebrow--brown { color: var(--ahumado); }
.pantry__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.pantry__head .h2 { max-width: 12ch; }
.pantry__lede { font-size: var(--fs-lede); color: var(--ink-soft); max-width: 30rem; }
.pantry__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.pantry__img {
  aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; margin-bottom: 1.6rem;
  box-shadow: 0 40px 70px -40px rgba(117, 66, 30, .55);
}
.pantry__img img { transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.pantry__item:hover .pantry__img img { transform: scale(1.05); }
.pantry__weight {
  position: absolute; z-index: 2; right: 1rem; bottom: 1rem;
  width: 64px; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; background: var(--mostaza); color: var(--ink);
  font-family: var(--f-display); font-size: 1.05rem; line-height: 1;
  box-shadow: 0 10px 20px -8px rgba(23, 59, 49, .5);
  transform: rotate(-8deg);
}
.pantry__tag { display: block; color: var(--ahumado); margin-bottom: .7rem; }
.pantry__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 1.9vw, 2rem); line-height: 1.05; letter-spacing: -.02em; color: var(--olivo-900); margin-bottom: .6rem; }
.pantry__item p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 26rem; }
.pantry__ask { color: var(--olivo); font-weight: 600; font-size: .95rem; min-height: 44px; }

/* ==========================================================================
   EVENTOS
   ========================================================================== */
.events { padding-block: clamp(6rem, 12vw, 12rem); }
.events__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(3rem, 7vw, 8rem); align-items: center; }
.events__copy .h2 { max-width: 13ch; margin-bottom: 1.5rem; }
.events__rotator { font-size: clamp(1.2rem, 1.8vw, 1.6rem); color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .45em; align-items: baseline; }
.rotator { position: relative; display: inline-grid; color: var(--ahumado); font-family: var(--f-display); }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.6em); transition: opacity .5s var(--ease), transform .7s var(--ease); white-space: nowrap; }
.rotator > span.is-active { opacity: 1; transform: none; }
.rotator > span.was-active { opacity: 0; transform: translateY(-.6em); transition-duration: .25s; }

.events__capacity { display: flex; align-items: flex-end; gap: 1.4rem; margin-block: clamp(2.5rem, 5vw, 4rem); padding-block: 1.6rem; border-block: 1px solid var(--line); }
.events__num { white-space: nowrap; font-family: var(--f-display); font-size: clamp(4rem, 7.2vw, 8rem); line-height: .82; letter-spacing: -.05em; color: var(--olivo); font-variant-numeric: tabular-nums; }
.events__num-label { font-size: 1rem; color: var(--ink-soft); padding-bottom: .4rem; }

.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.2rem; margin-bottom: 2.8rem; }
.benefits li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); line-height: 1.5; }
.benefits li::before { content: ""; position: absolute; left: 0; top: .42em; width: 11px; height: 11px; border-radius: 11px 11px 0 0; background: var(--mostaza); }
.benefits strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: .2rem; }

.events__collage { position: relative; height: clamp(520px, 62vw, 820px); }
.events__img { position: absolute; border-radius: 999px 999px 16px 16px; box-shadow: 0 40px 80px -40px rgba(23,59,49,.45); }
.events__img--a { left: 0; top: 0; width: 64%; height: 76%; }
.events__img--b { right: 0; bottom: 0; width: 52%; height: 58%; border: 8px solid var(--almendra); }
.events__sticker {
  position: absolute; left: 6%; bottom: 6%; z-index: 2;
  width: 136px; aspect-ratio: 1; display: grid; place-items: center; text-align: center;
  border-radius: 50%; background: var(--ahumado); color: var(--almendra);
  font-family: var(--f-display); font-size: 1.1rem; line-height: 1.1;
  transform: rotate(-10deg);
}

/* ==========================================================================
   UBICACIÓN
   ========================================================================== */
.where { background: var(--olivo-900); color: var(--almendra); padding-block: clamp(6rem, 12vw, 11rem); }
.where__head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.where__head .h2 { max-width: 16ch; }
.where__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 6vw, 7rem); align-items: start; }

.route { position: relative; padding-left: 3.4rem; }
.route__line { position: absolute; left: 0; top: .6rem; bottom: 3rem; width: 40px; height: calc(100% - 3.6rem); overflow: visible; }
.route__line path { fill: none; stroke: var(--mostaza); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 0); vector-effect: non-scaling-stroke; }
.route__steps { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.route__steps li { position: relative; }
.route__dot { position: absolute; left: calc(-3.4rem + 13px); top: .2rem; width: 14px; height: 14px; border-radius: 50%; background: var(--olivo-900); border: 2px solid var(--mostaza); }
.route__dot--home { width: 44px; height: 44px; left: calc(-3.4rem - 2px); top: -.4rem; background: var(--almendra); border: 0; padding: 3px; }
.route__steps .mono { color: var(--mostaza); }
.route__steps h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.15; margin: .45rem 0 .5rem; }
.route__steps p { color: rgba(245,242,237,.72); max-width: 30rem; }

.map__frame { position: relative; aspect-ratio: 4/3.4; border-radius: 999px 999px 18px 18px; overflow: hidden; background: var(--olivo); }
.map__frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.9) contrast(1.05) sepia(.25) hue-rotate(60deg); transition: filter .8s var(--ease); }
.map__frame:hover iframe { filter: none; }
.map__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; }
.map__bar > .mono { color: var(--menta); }
.map__btns { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding-block: clamp(6rem, 11vw, 10rem); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 6vw, 7rem); }
.faq__aside { margin-top: 1.6rem; color: var(--ink-soft); }
.faq__aside a { color: var(--olivo); font-weight: 600; white-space: nowrap; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.7rem;
  font-family: var(--f-display); font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.2; color: var(--olivo-900);
  transition: color .3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--salvia); }
.qa__icon { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); transition: background .4s var(--ease), border-color .4s; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__icon { background: var(--mostaza); border-color: var(--mostaza); }
.qa[open] .qa__icon::after { transform: translate(-50%, -50%) rotate(0); }
.qa__body { overflow: hidden; }
.qa__body p { padding-bottom: 1.8rem; max-width: 40rem; color: var(--ink-soft); font-size: var(--fs-lede); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { position: relative; background: var(--olivo-950); color: var(--almendra); padding-top: clamp(5rem, 10vw, 9rem); overflow: hidden; }
.foot__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line-light); }
.foot__cta-text { font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 5rem); line-height: 1; letter-spacing: -.03em; max-width: 14ch; }
.foot__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem; }
.foot__cols .mono { display: block; color: var(--mostaza); margin-bottom: .8rem; }
.foot__cols p { color: rgba(245,242,237,.75); line-height: 1.7; }
.foot__cols a { text-decoration: none; border-bottom: 1px solid var(--line-light); transition: border-color .3s, color .3s; }
.foot__cols a:hover { color: var(--mostaza); border-color: var(--mostaza); }
.foot__brand img { width: 96px; height: 96px; border-radius: 50%; background: var(--almendra); padding: 3px; margin-bottom: 1.2rem; }
.foot__brand p { max-width: 22rem; }

.foot__word { line-height: .78; padding-top: 1rem; white-space: nowrap; text-align: center; }
.foot__word span {
  display: inline-block;
  font-family: var(--f-display); font-size: 23.5vw; letter-spacing: -.05em;
  color: var(--olivo);
  transform: translateY(18%);
}
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 2rem; font-size: .85rem; color: rgba(245,242,237,.55); position: relative; z-index: 1; }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 600;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 14px 30px -8px rgba(15,42,35,.55);
  transition: transform .4s var(--ease);
}
.fab svg { width: 30px; height: 30px; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s var(--ease) infinite; }
.fab:hover { transform: scale(1.08) rotate(-6deg); }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Barra de acción (solo celular) ---------- */
.actionbar { display: none; }
@media (max-width: 960px) {
  .fab { display: none; }
  .actionbar {
    position: fixed; z-index: 600;
    left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 6px;
    padding: 6px; border-radius: 22px;
    background: rgba(15, 42, 35, .9);
    backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 18px 40px -12px rgba(0,0,0,.5), inset 0 0 0 1px var(--line-light);
    transform: translateY(calc(100% + 30px)); transition: transform .6s var(--ease);
  }
  .actionbar.is-visible { transform: none; }
  .actionbar a {
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 52px; border-radius: 16px; text-decoration: none;
    font-weight: 600; font-size: .9rem; color: var(--almendra);
    transition: transform .2s var(--ease);
  }
  .actionbar svg { width: 20px; height: 20px; flex: none; }
  .actionbar a.actionbar__main { background: var(--wa); color: #062b16; font-size: 1rem; }
  .actionbar a.actionbar__btn { flex-direction: column; gap: .15rem; font-size: .72rem; font-weight: 500; }
  .actionbar a:active { transform: scale(.95); }
  .foot__legal { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }

  /* Rendimiento en celular: grano estático, sin desenfoque de fondo */
  body::after { animation: none; opacity: .05; }
  .extras::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }

}

/* ---------- Extras dialog ---------- */
.extras {
  width: min(1100px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100svh - 4rem);
  padding: 0; border: 0; border-radius: 28px;
  background: var(--almendra); color: var(--ink);
  overflow: auto; overscroll-behavior: contain;
}
.extras::backdrop { background: rgba(15, 42, 35, .7); backdrop-filter: blur(6px); }
.extras[open] { animation: dialogIn .7s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(40px) scale(.97); } }
.extras__inner { padding: clamp(1.5rem, 4vw, 3.5rem); }
.extras__head { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; margin-bottom: 2.5rem; }
.extras__head .h2 { font-size: clamp(1.9rem, 3.4vw, 3.2rem); }
.extras__close { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 1.1rem; transition: background .3s, transform .5s var(--ease); }
.extras__close:hover { background: var(--mostaza); transform: rotate(90deg); }
.extras__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.6rem; }
.extras__grid li { text-align: center; }
.extras__grid .media { width: 82%; margin: 0 auto 1.2rem; transition: transform .7s var(--ease); }
.extras__grid li:hover .media { transform: scale(1.05); }
.extras__grid .media::after { font-size: .6rem; }
.extras__grid h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; color: var(--olivo-900); margin-bottom: .3rem; }
.extras__grid p { color: var(--ink-soft); font-size: .95rem; }

/* ==========================================================================
   Estados iniciales para animaciones (solo con JS activo)
   ========================================================================== */
.js .reveal-up { opacity: 0; transform: translateY(28px); }
.js .hero__title .line > span { transform: translateY(105%); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__links { gap: 1.3rem; }
  .benefits { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__brand img { width: 44px; height: 44px; }

  /* Hero móvil: el arco se abre al cargar, el texto va encima */
  .hero__pin { min-height: 600px; }
  .hero__stage { --t: 0%; --r: 0%; --b: 0%; --l: 0%; --rad: 0px; }
  .hero__shade { --shade: 1; background: linear-gradient(180deg, rgba(15,42,35,.6) 0%, rgba(15,42,35,.35) 22%, rgba(15,42,35,.78) 48%, rgba(15,42,35,.95) 100%); }
  .hero__copy { width: auto; right: var(--gutter); bottom: 2.4rem; }
  .hero__ticker { top: calc(var(--header-h) + .8rem); left: var(--gutter); right: var(--gutter); width: auto; }
  .hero__caption { display: none; }

  .statement__meta { grid-template-columns: 1fr; gap: 1.4rem; }

  .exp__grid { grid-template-columns: 1fr; }
  .exp__visual { display: none; }
  .chapter__img { display: block; }
  .chapter { padding-block: 3rem; }

  /* Platos en móvil: pestañas por día + carrusel deslizable */
  .dishes__pin { height: auto; display: flex; flex-direction: column; align-items: stretch; padding-block: 5rem 3.5rem; }
  .dishes__track { display: contents; }
  .dish.dish--intro { order: 1; width: auto; padding-inline: var(--gutter); margin-bottom: 2rem; }
  .dishes__days { order: 2; position: relative; left: auto; top: auto; align-self: flex-start; margin: 0 var(--gutter) 1.6rem; }
  .dishes__day { min-height: 44px; padding-inline: 1.4rem; font-size: 1rem; }
  .day { order: 3; display: none; }
  .day.is-active { display: block; animation: dayIn .6s var(--ease); }
  .day__head { width: auto; border: 0; padding: 0 var(--gutter); margin-bottom: 1.2rem; display: block; }
  .day__head .mono { display: block; margin-bottom: .5rem; font-size: .7rem; }
  .day__title { font-size: clamp(2rem, 9vw, 2.6rem); margin-bottom: .5rem; }
  .day__lede { font-size: 1rem; }
  .day__cards {
    display: flex; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    padding: 14px var(--gutter) 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .day__cards::-webkit-scrollbar { display: none; }
  .day__cards { align-items: flex-start; }
  .day__cards .dish, .day__cards .dish:nth-child(even) { width: min(76vw, 340px); scroll-snap-align: start; translate: none; gap: 1.1rem; }
  .day__cards::after { content: ""; flex: none; width: 1px; }
  .dish__plate { aspect-ratio: 4 / 5; }
  .dish__plate::before { inset: -8px; }
  .dish__name { font-size: 1.6rem; }
  .dishes__dots { order: 4; display: flex; gap: 6px; padding: 1.4rem var(--gutter) 0; }
  .dishes__dots span { width: 6px; height: 6px; border-radius: 6px; background: var(--line-light); transition: width .4s var(--ease), background .4s; }
  .dishes__dots span.is-active { width: 22px; background: var(--mostaza); }
  .dish.dish--outro { order: 5; width: auto; padding: 3rem var(--gutter) 0; gap: 1.2rem; }
  .dishes__outro-text { font-size: 2rem; }
  .dishes__hint, .dishes__progress { display: none; }

  /* Despensa en móvil: carrusel deslizable */
  .pantry__head { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
  .pantry .wrap { padding-inline: 0; }
  .pantry__head { padding-inline: var(--gutter); }
  .pantry__grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) 8px;
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .pantry__grid::-webkit-scrollbar { display: none; }
  .pantry__grid::after { content: ""; flex: none; width: 1px; }
  .pantry__item, .pantry__item:nth-child(even) { flex: none; width: min(74vw, 320px); scroll-snap-align: start; translate: none; }

  .events__grid { grid-template-columns: 1fr; }
  .events__collage { height: 100vw; max-height: 600px; order: -1; }

  .where__grid { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .extras__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero__sub { font-size: 1rem; margin-bottom: 1.6rem; }
  .hero__actions { gap: 1rem; }
  .hero__actions .btn { width: 100%; }
  .events__capacity { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .events__sticker { width: 108px; font-size: .95rem; }
  .foot__cols { grid-template-columns: 1fr; }
  .foot__cta .btn { width: 100%; }
  .map__btns, .map__btns .btn { width: 100%; }
  .extras__grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .extras__grid h3 { font-size: 1.1rem; }
  .fab { width: 56px; height: 56px; }
}

/* ==========================================================================
   Movimiento reducido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  body::after { animation: none; }
  .marquee__track { animation: none; }
  .js .reveal-up { opacity: 1; transform: none; }
  .js .hero__title .line > span { transform: none; }
  .statement__text .w { opacity: 1; }
}

/* Ventana de bebidas como hoja inferior en celular (va al final para ganar la cascada) */
@media (max-width: 960px) {
  .extras { width: 100%; max-width: 100%; max-height: 88svh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .extras[open] { animation: sheetIn .6s var(--ease); }
}
@keyframes sheetIn { from { transform: translateY(100%); } }
