/* =====================================================================
   Dulce Chilena · site-v2 · Route C "Antojo Tico" (warm playful, celebration-forward)
   Foundation tokens copied from knowledge/design-system/tokens.css (:root),
   then the expression route layered on top. Self-contained concept.
   ===================================================================== */

/* ---------- Foundation tokens (from tokens.css) ---------- */
:root {
  /* brand ramp */
  --brand-50: #f1eeed;
  --brand-100: #e2ddda;
  --brand-200: #c5bbb6;
  --brand-300: #a19188;
  --brand-400: #755f51;
  --brand-500: #4a2c1a;
  --brand-600: #402616;
  --brand-700: #352013;
  --brand-800: #29190f;
  --brand-900: #1e120a;
  /* accent ramp (manjar / toffee) */
  --accent-50: #f4f0ec;
  --accent-100: #e9e1d9;
  --accent-200: #d2c2b3;
  --accent-300: #b69c83;
  --accent-400: #956f49;
  --accent-500: #734110;
  --accent-600: #63380e;
  --accent-700: #532f0c;
  --accent-800: #402409;
  --accent-900: #2e1a06;

  --color-bg: #fbf6ee;
  --color-muted: #6e5e49;
  --color-brand: #4a2c1a;
  --color-accent: #734110;
  --color-ink: #2b2118;
  --color-on-brand: #ffffff;
  --color-on-accent: #ffffff;

  /* fluid type scale */
  --step-6: clamp(2.4rem, 1.664rem + 3.27vw, 4.2rem);
  --step-5: clamp(2rem, 1.509rem + 2.18vw, 3.2rem);
  --step-4: clamp(1.7rem, 1.414rem + 1.27vw, 2.4rem);
  --step-3: clamp(1.4rem, 1.236rem + 0.73vw, 1.8rem);
  --step-2: clamp(1.2rem, 1.098rem + 0.45vw, 1.45rem);
  --step-1: clamp(1.1rem, 1.059rem + 0.18vw, 1.2rem);
  --step-0: clamp(1rem, 0.98rem + 0.09vw, 1.05rem);
  --step--1: clamp(0.875rem, 0.865rem + 0.05vw, 0.9rem);
  --step--2: clamp(0.78rem, 0.772rem + 0.04vw, 0.8rem);
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --measure: 66ch;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --radius-0: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.16);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 140ms;
  --dur-base: 260ms;
  --dur-slow: 520ms;

  /* ---------- Route C additions ---------- */
  --rasp: #c4384a; /* bright raspberry — decorative, fills, large accents */
  --rasp-deep: #a8293b; /* deeper raspberry — interactive fills + small text (AA on cream) */
  --rasp-lt: #f3c9cd; /* light pink — small accents on the dark proof ground (AA) */
  --toffee: #b06a1f; /* warm caramel accent for large display */
  --blush: #f7e8e3; /* soft rosy cream tint for the encargos band */
  --cream-2: #f3ead9; /* slightly deeper cream for alternating bands */
  --line: #e6dccb; /* soft neutral border */
  --dark: #1e120a; /* near-black chocolate ground (proof) */
  --font-display: "Yeseva One", Georgia, "Times New Roman", serif;
  --font-body:
    "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --header-h: 74px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
  }
}

/* ---------- reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-normal);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
/* hostile-content guard: long unbreakable tokens must never blow the layout wide */
h1,
h2,
h3,
h4,
.hero-title,
.section-title,
.band-title,
.dish-name,
.nav-desktop a,
.drawer nav a,
.band-meta,
.rave p,
.rave cite,
label,
input,
textarea {
  overflow-wrap: anywhere;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: var(--color-brand);
}
::selection {
  background: var(--rasp);
  color: #fff;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--color-brand);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--rasp-deep);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- icons ---------- */
.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
}
.ico-rasp {
  color: var(--rasp-deep);
}
.swirl {
  width: 1.9em;
  height: 2.1em;
  color: var(--rasp);
  flex: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  padding: 0.8rem 1.3rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.btn:active {
  transform: translateY(1px);
}
.btn-wa {
  background: var(--rasp-deep);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-wa:hover {
  background: #92202f;
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn-outline:hover {
  background: var(--color-brand);
  color: #fff;
}
.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---------- eyebrows / headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rasp-deep);
  margin-bottom: var(--space-sm);
}
.eyebrow-rasp {
  color: var(--rasp-deep);
}
.eyebrow-rasp .swirl {
  color: var(--rasp);
}
.eyebrow-cream {
  color: var(--rasp-lt);
}
.eyebrow-cream .swirl {
  color: var(--rasp);
}

.section-title {
  font-size: var(--step-5);
  letter-spacing: -0.011em;
}
.section-head {
  max-width: 40ch;
  margin-bottom: var(--space-xl);
}
.section-head.center {
  max-width: 30ch;
  margin-inline: auto;
  text-align: center;
}
.section-intro {
  color: var(--color-muted);
  margin-top: var(--space-sm);
  font-size: var(--step-1);
}
.lead {
  font-size: var(--step-2);
  color: var(--color-ink);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 238, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out);
}
.site-header.is-stuck {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
  background: rgba(251, 246, 238, 0.94);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.brand-logo {
  width: auto;
  height: 62px;
  mix-blend-mode: multiply;
}
.nav-desktop {
  display: flex;
  gap: var(--space-lg);
  margin-left: auto;
}
.nav-desktop a {
  text-decoration: none;
  font-weight: 700;
  color: var(--color-brand);
  font-size: var(--step-0);
  padding: 0.35rem 0;
  position: relative;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--rasp);
  transition: right var(--dur-base) var(--ease-out);
}
.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after {
  right: 0;
}
.header-cta {
  margin-left: 0;
  padding: 0.6rem 1.05rem;
}
.burger {
  display: none;
}

/* ---------- drawer ---------- */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(84vw, 340px);
  z-index: 150;
  background: var(--color-bg);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease-out);
  padding: calc(var(--header-h) + var(--space-md)) var(--space-lg)
    var(--space-lg);
  overflow-y: auto;
}
.drawer.is-open {
  transform: none;
}
.drawer nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.drawer nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--color-brand);
  font-size: var(--step-2);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.drawer .drawer-cta {
  margin-top: var(--space-md);
  border-bottom: none;
  justify-content: center;
  color: #fff;
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(30, 18, 10, 0.48);
  border: 0;
}
body.no-scroll {
  overflow: hidden;
}

/* ---------- hero (split editorial: type left, tilted photo print right) ---------- */
/* The print treatment (white border + slight tilt + a blank print peeking
   behind) is the same physical-photo language as the historia pile below. */
.hero {
  padding: var(--space-xl) 0 var(--space-2xl);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-copy {
  max-width: 38rem;
}
.hero-title {
  font-size: var(--step-6);
  margin: var(--space-xs) 0 var(--space-md);
  letter-spacing: -0.018em;
}
.hero-title span {
  display: block;
  overflow: hidden;
}
.hero-sub {
  font-size: var(--step-2);
  color: var(--color-ink);
  max-width: 30ch;
}
.hero-print {
  position: relative;
  margin: 0;
  padding: clamp(10px, 1.3vw, 16px);
  padding-bottom: 0;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.4deg);
}
.hero-print::before {
  content: "";
  position: absolute;
  inset: 5% -3.5% -2.5% 3%;
  background: var(--cream-2);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transform: rotate(-2.4deg);
  z-index: -1;
}
.hero-print img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
}
.hero-print figcaption {
  padding: 0.55rem 0.2rem 0.65rem;
  text-align: center;
  font-weight: 800;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand);
}
/* ---------- historia / "Cada antojo tiene sus capas" (photo-print pile) ---------- */
/* MESA: a fanned pile of real photo prints + an editorial index of the house
   classics. The DEFAULT state below is the complete static composition (first
   print on top, whole index visible), which is what no-JS, ?shot=1 and
   reduced-motion visitors get. main.js adds .is-live (transitions + gentle
   auto-shuffle) only when motion is allowed, and reorders the pile by setting
   the same --px/--py/--pr/--pz custom props inline.
   Revert: restore from .backups/site-v2-pre-build/. */
.mesa {
  padding: var(--space-2xl) 0;
  background: var(--accent-100);
}
.mesa-head {
  max-width: 46rem;
}
.mesa-head .lead {
  margin-top: var(--space-sm);
  max-width: 46ch;
}
.mesa-grid {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.mesa-pile {
  position: relative;
  aspect-ratio: 5 / 4;
}
.print {
  position: absolute;
  inset: 3.5%;
  display: flex;
  flex-direction: column;
  padding: clamp(8px, 1.2vw, 13px);
  padding-bottom: 0;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transform: translate(var(--px), var(--py)) rotate(var(--pr));
  z-index: var(--pz);
}
.print img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
}
.print figcaption {
  flex: none;
  padding: 0.55rem 0.2rem 0.65rem;
  text-align: center;
  font-weight: 800;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* fanned resting slots, top of the pile first (mirrored in main.js SLOTS) */
.print:nth-child(1) {
  --px: 0%;
  --py: 0%;
  --pr: 0deg;
  --pz: 6;
}
.print:nth-child(2) {
  --px: 4%;
  --py: -2.5%;
  --pr: 3.2deg;
  --pz: 5;
}
.print:nth-child(3) {
  --px: -4.5%;
  --py: 2.5%;
  --pr: -2.6deg;
  --pz: 4;
}
.print:nth-child(4) {
  --px: 2.5%;
  --py: 4%;
  --pr: 1.8deg;
  --pz: 3;
}
.print:nth-child(5) {
  --px: -2.5%;
  --py: -4%;
  --pr: -3.4deg;
  --pz: 2;
}
.antojos {
  list-style: none;
  margin: 0;
  padding: 0;
}
.antojo {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--accent-300);
  padding: 0.85rem 0.15rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.antojos li:first-child .antojo {
  border-top: 1px solid var(--accent-300);
}
.antojo-name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.15;
  color: var(--color-brand);
}
.antojo-capas {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--step-0);
  color: var(--color-muted);
  max-width: 46ch;
}
.antojo:hover .antojo-name,
.antojo:focus-visible .antojo-name,
.antojo[aria-current="true"] .antojo-name {
  color: var(--color-accent);
}
.antojo[aria-current="true"] {
  padding-left: 0.95rem;
  box-shadow: inset 3px 0 0 var(--rasp);
}
.mesa-tag {
  margin-top: var(--space-lg);
  font-size: var(--step-1);
  color: var(--color-accent);
  font-weight: 700;
  max-width: 40ch;
}
.mesa-index .link-arrow {
  margin-top: var(--space-sm);
}
/* motion (allowed only): springy shuffle + index slide */
.mesa.is-live .print {
  transition: transform 0.62s cubic-bezier(0.3, 1.35, 0.45, 1);
  will-change: transform;
}
.mesa.is-live .antojo {
  transition:
    padding-left 0.25s ease,
    box-shadow 0.25s ease;
}
.mesa.is-live .antojo-name {
  transition: color 0.2s ease;
}
/* ---------- carta / tabs ---------- */
.carta {
  padding: var(--space-2xl) 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* ATMOS: per-vibe custom props (defaults match the "enteras" tab) */
  --v-bg: var(--cream-2);
  --v-price: var(--color-accent);
  --v-leader: var(--accent-300);
  --v-underline: var(--rasp);
  --atmos-photo-op: 0.5; /* active corner-photo opacity (dampened on mobile) */
  background-color: var(--v-bg);
  transition: background-color var(--dur-slow) var(--ease-out);
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--line);
}
.tab {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--step-0);
  color: var(--color-muted);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.7rem 1rem 0.9rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.tab::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: -2px;
  height: 3px;
  background: var(--v-underline); /* ATMOS: per-vibe accent */
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition:
    transform var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out);
}
.tab:hover {
  color: var(--color-brand);
}
.tab.is-active {
  color: var(--rasp-deep);
}
.tab.is-active::after {
  transform: scaleX(1);
}

/* No-JS: all carta panels visible (stacked). With JS the tabs switch. */
.menu-panel {
  display: block;
}
.js .menu-panel {
  display: none;
}
.js .menu-panel.is-active {
  display: block;
  animation: fadeUp var(--dur-base) var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .js .menu-panel.is-active {
    animation: none;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel-note {
  color: var(--color-muted);
  font-size: var(--step--1);
  margin-bottom: var(--space-lg);
  font-style: italic;
}
.dishes {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}
.dishes.two-col {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm) var(--space-2xl);
}
.dish-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dish.compact {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dish-name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--color-brand);
  min-width: 0;
}
.dish.compact .dish-name {
  font-size: var(--step-0);
}
.dot {
  flex: 1 1 auto;
  border-bottom: 2px dotted var(--v-leader); /* ATMOS: per-vibe leader */
  transform: translateY(-0.28em);
  min-width: 1.5rem;
  transition: border-color var(--dur-base) var(--ease-out);
}
.dish-price {
  font-weight: 800;
  color: var(--v-price); /* ATMOS: per-vibe accent */
  font-size: var(--step-0);
  transition: color var(--dur-base) var(--ease-out);
}
.dish-desc {
  color: var(--color-muted);
  font-size: var(--step--1);
  margin-top: 0.25rem;
  max-width: 60ch;
}

.carta-cta {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
}
.carta-cta-note {
  color: var(--color-muted);
  font-size: var(--step--1);
  max-width: 34ch;
}

/* ===================================================================
   ATMOS — "ambient carta". Each menu tab gives the section its own mood:
   a color wash + a soft real-photo bleed from the top-right corner, all
   cross-faded when the tab changes (driven by [data-vibe] set in main.js).
   REVERTIBLE: delete this whole block, revert the four ATMOS-tagged lines
   in .carta / .tab::after / .dot / .dish-price to their static colors, and
   remove the .carta-atmos markup + the JS "ATMOS" line — or just restore
   from .backups/site-v2-pre-atmos/.
   =================================================================== */
.carta-atmos {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.carta > .wrap {
  position: relative;
  z-index: 1;
}
.atmos-glow,
.atmos-photo {
  position: absolute;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
  will-change: opacity;
}
.atmos-glow {
  inset: 0;
}
.atmos-photo {
  top: 0;
  right: 0;
  width: min(54%, 640px);
  height: min(70%, 460px);
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(1.04);
  -webkit-mask-image: radial-gradient(
    135% 130% at 100% 0%,
    #000 20%,
    transparent 66%
  );
  mask-image: radial-gradient(135% 130% at 100% 0%, #000 20%, transparent 66%);
}
/* the active vibe's two layers fade in */
.carta[data-vibe="enteras"] .atmos-glow[data-for="enteras"],
.carta[data-vibe="porciones"] .atmos-glow[data-for="porciones"],
.carta[data-vibe="frios"] .atmos-glow[data-for="frios"],
.carta[data-vibe="sin"] .atmos-glow[data-for="sin"] {
  opacity: 1;
}
.carta[data-vibe="enteras"] .atmos-photo[data-for="enteras"],
.carta[data-vibe="porciones"] .atmos-photo[data-for="porciones"],
.carta[data-vibe="frios"] .atmos-photo[data-for="frios"],
.carta[data-vibe="sin"] .atmos-photo[data-for="sin"] {
  opacity: var(--atmos-photo-op);
}

/* per-vibe color glows */
.atmos-glow[data-for="enteras"] {
  background:
    radial-gradient(
      120% 90% at 90% 0%,
      rgba(176, 106, 31, 0.16),
      transparent 60%
    ),
    radial-gradient(
      90% 70% at 0% 100%,
      rgba(196, 56, 74, 0.05),
      transparent 55%
    );
}
.atmos-glow[data-for="porciones"] {
  background:
    radial-gradient(
      120% 90% at 90% 0%,
      rgba(196, 56, 74, 0.15),
      transparent 60%
    ),
    radial-gradient(
      90% 70% at 0% 100%,
      rgba(196, 56, 74, 0.06),
      transparent 55%
    );
}
.atmos-glow[data-for="frios"] {
  background:
    radial-gradient(
      120% 90% at 90% 0%,
      rgba(120, 92, 132, 0.17),
      transparent 60%
    ),
    radial-gradient(
      90% 70% at 0% 100%,
      rgba(80, 96, 120, 0.08),
      transparent 55%
    );
}
.atmos-glow[data-for="sin"] {
  background:
    radial-gradient(
      120% 90% at 90% 0%,
      rgba(128, 140, 96, 0.16),
      transparent 60%
    ),
    radial-gradient(
      90% 70% at 0% 100%,
      rgba(176, 106, 31, 0.05),
      transparent 55%
    );
}

/* per-vibe corner photos (decorative; webp, 3 levels up from this file) */
.atmos-photo[data-for="enteras"] {
  background-image: url(../img/whole-cakes-960.webp);
}
.atmos-photo[data-for="porciones"] {
  background-image: url(../img/range-slices-960.webp);
}
.atmos-photo[data-for="frios"] {
  background-image: url(../img/product-puerto-varas-960.webp);
}
.atmos-photo[data-for="sin"] {
  background-image: url(../img/hero-milhojas-frambuesa-960.webp);
}

/* per-vibe base wash + accent recolor (consumed by the .carta rules) */
.carta[data-vibe="enteras"] {
  --v-bg: var(--cream-2);
  --v-price: var(--color-accent);
  --v-leader: var(--accent-300);
  --v-underline: var(--rasp);
}
.carta[data-vibe="porciones"] {
  --v-bg: #f7ece7;
  --v-price: var(--rasp-deep);
  --v-leader: #e2b6b8;
  --v-underline: var(--rasp);
}
.carta[data-vibe="frios"] {
  --v-bg: #edeaee;
  --v-price: #7a4a7d;
  --v-leader: #c3b3c8;
  --v-underline: #8a5a8c;
}
.carta[data-vibe="sin"] {
  --v-bg: #f4f2e6;
  --v-price: #5f6f36;
  --v-leader: #c2c7a3;
  --v-underline: #7a8a4a;
}

/* On narrow screens the section head is full-width, so keep the corner photo
   smaller and softer to stay clear of the heading + intro copy. */
@media (max-width: 720px) {
  .carta {
    --atmos-photo-op: 0.34;
  }
  .atmos-photo {
    height: min(46%, 320px);
    filter: blur(3px) saturate(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmos-glow,
  .atmos-photo {
    transition: none;
  }
}

/* ---------- range / bands ---------- */
.range {
  padding: var(--space-2xl) 0 var(--space-xl);
}
.range .section-head.center {
  max-width: 46rem;
  margin-bottom: var(--space-2xl);
}
.band {
  padding: var(--space-lg) 0;
}
.band-alt {
  background: var(--cream-2);
}
.band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.band-alt .band-media {
  order: 2;
}
.band-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.band-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.band-title {
  font-size: var(--step-4);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}
.band-copy p {
  color: var(--color-ink);
}
.band-meta {
  margin-top: var(--space-md);
  color: var(--color-accent);
  font-weight: 700;
  font-size: var(--step--1);
}

.range-more {
  list-style: none;
  padding: 0;
  margin-top: var(--space-2xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.range-more li {
  padding-top: var(--space-md);
  border-top: 3px solid var(--rasp);
}
.range-more h4 {
  font-size: var(--step-2);
  margin-bottom: var(--space-2xs);
}
.range-more p {
  color: var(--color-muted);
  font-size: var(--step--1);
}

/* ---------- encargos (celebration) ---------- */
.encargos {
  padding: var(--space-2xl) 0;
  background: var(--blush);
}
.encargos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.encargos-copy .lead {
  margin-bottom: var(--space-lg);
}
.encargos-list {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-xl);
  display: grid;
  gap: var(--space-sm);
}
.encargos-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--step-1);
  color: var(--color-ink);
}
.encargos-list .ico {
  margin-top: 0.18em;
}
.encargos-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.encargos-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- proof (marquee, dark) ---------- */
.proof {
  padding: var(--space-2xl) 0;
  background: var(--dark);
  color: var(--brand-50);
  overflow: hidden;
}
.proof .section-title {
  color: #fff;
}
.proof-head {
  text-align: center;
  max-width: 40ch;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}
.stats {
  list-style: none;
  padding: 0;
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg) var(--space-2xl);
}
.stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.stats strong {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: var(--step-5);
  color: #fff;
  line-height: 1;
}
.stat-star {
  width: 0.62em;
  height: 0.62em;
  fill: var(--rasp);
  margin-left: 0.12em;
  align-self: center;
  flex: none;
}
.stats span {
  font-size: var(--step--1);
  color: var(--accent-200);
  max-width: 16ch;
}

/* Base = a native horizontal scroller (scrollbar hidden) so every rave stays
   reachable with JS off or motion frozen. The JS marquee adds .is-drift and
   drives the strip with transforms, so it re-clips and handles horizontal
   touch itself (pan-y leaves vertical page scrolling to the browser). */
.marquee {
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--space-2xs) 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}
.marquee::-webkit-scrollbar {
  display: none;
}
.marquee.is-drift {
  overflow: hidden;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.marquee-track {
  display: flex;
  gap: var(--space-md);
  width: max-content;
  will-change: transform;
}
.rave {
  flex: 0 0 auto;
  width: min(78vw, 360px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(196, 56, 74, 0.35);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-md) var(--space-sm);
}
.rave p {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: #fff;
  line-height: 1.32;
}
.rave cite {
  display: flex;
  align-items: center;
  gap: 0.3em;
  margin-top: var(--space-sm);
  font-style: normal;
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--rasp-lt);
}
.rave cite::before {
  content: "";
  width: 0.9em;
  height: 0.9em;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2l2.7 5.9 6.4.6-4.8 4.3 1.4 6.3L12 16.9 6.3 19.3l1.4-6.3L2.9 8.7l6.4-.6z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2l2.7 5.9 6.4.6-4.8 4.3 1.4 6.3L12 16.9 6.3 19.3l1.4-6.3L2.9 8.7l6.4-.6z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* ============================================================
   CAKE-SLICE RAVES · experimental review styling (2026-07-01)
   Reshapes every moving review into a slice of layered torta
   chilena: a merengue frosting crest on top, the cross-section
   "Contá las capas" strata at the cut base, and three cycling
   flavors (manjar cream / toffee / frambuesa) — each with its own
   crest silhouette (scallops / piped peaks / smooth drip) and a
   hand-plated tilt, so the shapes change down the row.

   >>> FULLY REVERSIBLE: delete this whole block (down to the next
   "visit / form" comment) to restore the plain rounded-card raves
   defined just above. No HTML or JS was changed. <<<
   ============================================================ */
.rave {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 3px 3px var(--radius-md) var(--radius-md);
  padding: calc(var(--space-md) + 22px) var(--space-md)
    calc(var(--space-sm) + 15px);
}
/* frosting crest — piped merengue along the top edge of the slice */
.rave::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 24px;
  z-index: 1;
}
/* cut base — the hojarasca / manjar / frambuesa layers of the slice */
.rave::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 15px;
  z-index: 1;
  opacity: 0.92;
  background: linear-gradient(
    to bottom,
    rgba(247, 232, 227, 0.9) 0 3px,
    rgba(58, 34, 18, 0.55) 3px 6px,
    rgba(247, 232, 227, 0.9) 6px 8px,
    var(--rasp) 8px 10px,
    rgba(247, 232, 227, 0.9) 10px 15px
  );
}
/* keep the quote + name legible above the two decorative bands */
.rave p,
.rave cite {
  position: relative;
  z-index: 2;
}

/* flavor 1 · manjar cream · scalloped crest (upright) */
.rave:nth-child(3n + 1) {
  border-color: rgba(247, 232, 227, 0.42);
}
.rave:nth-child(3n + 1)::before {
  background: var(--blush);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'%3E%3Cpath d='M0 0H40V13Q30 24 20 13Q10 24 0 13Z'/%3E%3C/svg%3E")
    top left / 40px 24px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'%3E%3Cpath d='M0 0H40V13Q30 24 20 13Q10 24 0 13Z'/%3E%3C/svg%3E")
    top left / 40px 24px repeat-x;
}

/* flavor 2 · toffee · piped-peaks crest (tilted right) */
.rave:nth-child(3n + 2) {
  transform: rotate(0.8deg);
  border-color: rgba(176, 106, 31, 0.5);
}
.rave:nth-child(3n + 2)::before {
  background: var(--toffee);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 24'%3E%3Cpath d='M0 0H30V9L22.5 24 15 9 7.5 24 0 9Z'/%3E%3C/svg%3E")
    top left / 30px 24px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 24'%3E%3Cpath d='M0 0H30V9L22.5 24 15 9 7.5 24 0 9Z'/%3E%3C/svg%3E")
    top left / 30px 24px repeat-x;
}

/* flavor 3 · frambuesa · smooth-drip crest (tilted left) */
.rave:nth-child(3n) {
  transform: rotate(-0.8deg);
  border-color: rgba(196, 56, 74, 0.5);
}
.rave:nth-child(3n)::before {
  background: var(--rasp);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 120 24'%3E%3Cpath d='M0 0H120V12C102 24 90 6 72 13 54 20 42 7 24 13 14 16 8 14 0 13Z'/%3E%3C/svg%3E")
    top left / 100% 24px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 120 24'%3E%3Cpath d='M0 0H120V12C102 24 90 6 72 13 54 20 42 7 24 13 14 16 8 14 0 13Z'/%3E%3C/svg%3E")
    top left / 100% 24px no-repeat;
}
/* ============================================================
   END CAKE-SLICE RAVES  (delete to here to revert)
   ============================================================ */

/* ---------- visit / form ---------- */
.visit {
  padding: var(--space-2xl) 0;
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.visit-info .section-title {
  margin-bottom: var(--space-md);
}
.visit-block {
  margin-bottom: var(--space-lg);
}
.visit-block h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step-2);
  margin-bottom: var(--space-2xs);
}
.visit-block p {
  color: var(--color-ink);
}
.delivery-lead {
  margin-bottom: 0.85rem;
}
.delivery-apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.delivery-app {
  display: inline-flex;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.14));
  transition:
    transform var(--dur-fast) var(--ease-out),
    filter var(--dur-fast) var(--ease-out);
}
.delivery-app img {
  display: block;
  width: 72px;
  height: 72px;
}
.delivery-app:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.2));
}
.delivery-app:active {
  transform: translateY(0);
}
.delivery-app:focus-visible {
  outline: 3px solid var(--rasp-deep);
  outline-offset: 3px;
  border-radius: var(--radius-lg);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  font-weight: 700;
  color: var(--rasp-deep);
  text-decoration: none;
}
.link-arrow:hover {
  text-decoration: underline;
}
.hours {
  list-style: none;
  padding: 0;
  max-width: 24rem;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.35rem 0;
  border-bottom: 1px dotted var(--line);
}
.hours li span:first-child {
  color: var(--color-ink);
}
.hours li span:last-child {
  font-weight: 700;
  color: var(--color-brand);
}
.hours .closed span:last-child {
  color: var(--color-muted);
  font-weight: 600;
}
.visit-note {
  margin-top: var(--space-sm);
  font-size: var(--step--1);
  color: var(--color-muted);
  font-style: italic;
}
.inline-link {
  color: var(--rasp-deep);
  font-weight: 700;
}

.visit-fig {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-md);
}
.visit-fig img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center bottom;
}
.wa-form {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.wa-form h3 {
  font-size: var(--step-3);
  margin-bottom: var(--space-2xs);
}
.form-intro {
  color: var(--color-muted);
  font-size: var(--step--1);
  margin-bottom: var(--space-md);
}
.field {
  margin-bottom: var(--space-md);
}
.field label {
  display: block;
  font-weight: 700;
  font-size: var(--step--1);
  margin-bottom: 0.35rem;
  color: var(--color-brand);
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-ink);
  background: #fff;
  border: 1px solid var(--accent-300);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem;
  line-height: 1.4;
}
.field textarea {
  resize: vertical;
  min-height: 4.5rem;
}
.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--rasp-deep);
  outline-offset: 1px;
  border-color: var(--rasp-deep);
}
.field .err {
  border-color: var(--rasp-deep);
}
.form-error {
  color: var(--rasp-deep);
  font-size: var(--step--1);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.form-fallback {
  margin-top: var(--space-md);
  font-size: var(--step--1);
  color: var(--color-muted);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--accent-100);
  border-top: 3px solid var(--rasp);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: var(--space-xl);
}
.footer-logo {
  height: 84px;
  width: auto;
  mix-blend-mode: multiply;
  margin-bottom: var(--space-sm);
}
.footer-line {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--color-accent);
  max-width: 22ch;
}
.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--step--1);
  color: var(--color-brand);
  margin-bottom: var(--space-2xs);
}
.footer-nav a,
.footer-contact a {
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 600;
}
.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--rasp-deep);
}
.social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent-300);
  border-radius: var(--radius-md);
  color: var(--color-brand);
  font-size: 1.25rem;
  transition:
    background-color var(--dur-fast),
    color var(--dur-fast);
}
.social a:hover {
  background: var(--rasp-deep);
  color: #fff;
  border-color: var(--rasp-deep);
}
.footer-legal {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--accent-200);
}
.footer-legal p {
  color: var(--color-muted);
  font-size: var(--step--1);
}

/* =====================================================================
   Motion — reveals + Route C signatures (mosaic settle, headline clip,
   marquee). Contract: transform/opacity only, frozen under
   ?shot=1 / reduced-motion, no horizontal overflow.
   ===================================================================== */
/* Hidden states are gated on `.js` so that with JavaScript OFF (no `.js`
   class added), every element renders in its final, visible state. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}
[data-stagger].is-in > * {
  opacity: 1;
  transform: none;
}
[data-stagger].is-in > *:nth-child(1) {
  transition-delay: 40ms;
}
[data-stagger].is-in > *:nth-child(2) {
  transition-delay: 130ms;
}
[data-stagger].is-in > *:nth-child(3) {
  transition-delay: 220ms;
}
[data-stagger].is-in > *:nth-child(4) {
  transition-delay: 310ms;
}

/* hero mosaic tiles settle on load */
/* hero headline clip reveal */
.reveal-lines span > i {
  display: block;
  font-style: normal;
}
.js .reveal-lines span > i {
  transform: translateY(110%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.reveal-lines.is-in span:nth-child(1) > i {
  transition-delay: 90ms;
}
.reveal-lines.is-in span:nth-child(2) > i {
  transition-delay: 200ms;
}
.reveal-lines.is-in span:nth-child(3) > i {
  transition-delay: 310ms;
}
.reveal-lines.is-in span > i {
  transform: none;
}

/* Hard freeze: ?shot=1 and reduced-motion snap everything to the resting
   state with no transition (so screenshots never catch a mid-animation frame). */
.is-frozen [data-reveal],
.is-frozen [data-stagger] > *,
.is-frozen .reveal-lines span > i {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-stagger] > *,
  .reveal-lines span > i {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
  :root {
    --header-h: 66px;
  }
  .brand-logo {
    height: 54px;
  }
  .nav-desktop {
    display: none;
  }
  /* Keep the single WhatsApp CTA reachable above the fold on mobile (icon-only). */
  .header-cta {
    margin-left: auto;
    padding: 0.55rem 0.7rem;
    gap: 0;
  }
  .header-cta .cta-label {
    display: none;
  }
  .burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: var(--space-2xs);
    width: 46px;
    height: 46px;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .burger span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: var(--color-brand);
    border-radius: 2px;
    transition:
      transform var(--dur-fast),
      opacity var(--dur-fast);
  }
  .burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* reset the desktop named-area collage to a simple stack; selectors must match
     the base nth-of-type specificity or the area placement leaks into mobile. */
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .mesa-grid {
    grid-template-columns: 1fr;
  }
  .band-inner,
  .encargos-grid,
  .visit-grid {
    grid-template-columns: 1fr;
  }
  .band-alt .band-media {
    order: 0;
  }
  .encargos-media {
    order: -1;
  }
  .range-more {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: var(--space-lg) 0 var(--space-xl);
  }
  .dishes.two-col {
    grid-template-columns: 1fr;
    gap: var(--space-2xs);
  }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tab {
    white-space: nowrap;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: var(--space-md) var(--space-lg);
  }
}

@media (max-width: 380px) {
  .hero-grid {
    gap: var(--space-2xs);
  }
  .rave {
    width: 82vw;
  }
}
