/* ═══════════════════════════════════════════════════════════
   HUERTO SUR — hoja de estilos
   Mobile-first. Paleta cálida (crema, espresso, cobre) que acompaña
   el logo negro del diamante; titulares editoriales (Fraunces) y
   rótulos condensados (Barlow Condensed / Big Shoulders Stencil) que
   hacen eco del wordmark del logo. Compartida por index.html y menu.html.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Paleta */
  --bone:     #FBF8F3;   /* fondo principal */
  --cream:    #F2EBE1;   /* fondo alterno */
  --sand:     #E3D6C4;   /* bordes / superficies */
  --ink:      #1F1A17;   /* texto principal (≈ negro del logo) */
  --espresso: #2A201B;   /* secciones oscuras */
  --graphite: #3D342D;
  --muted:    #6F6359;   /* texto secundario (AA sobre bone) */
  --clay:     #A9653F;   /* acento cobre (titulares grandes, rellenos) */
  --clay-ink: #8A4F2C;   /* acento cobre para texto chico (AA) */
  --latte:    #D9B99B;   /* acento sobre fondos oscuros */
  --olive:    #6E7A5A;

  /* Tipografía */
  --serif:   "Fraunces", Georgia, "Times New Roman", serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --cond:    "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --stencil: "Big Shoulders Stencil Display", "Barlow Condensed", "Arial Narrow", sans-serif;

  /* Ritmo */
  --wrap:      1240px;
  --gutter:    clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 11vw, 9rem);
  --radius:    14px;

  /* Movimiento */
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-io:   cubic-bezier(.65, 0, .35, 1);

  --shadow-md: 0 10px 30px rgba(31, 26, 23, .10);
  --shadow-lg: 0 30px 70px rgba(31, 26, 23, .20);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.02em;
}
p  { margin: 0 0 1rem; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { touch-action: manipulation; }

::selection { background: var(--clay); color: var(--bone); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100%; z-index: 1000;
  background: var(--ink); color: var(--bone);
  padding: .75rem 1.25rem; text-decoration: none; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* Sprite SVG del logo: oculto, se usa con <use> */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── Layout ──────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

/* Páginas sin hero (menu.html): la primera sección necesita despeje
   propio para no quedar debajo del header fijo. */
.menu-page { padding-top: 8rem; }

/* Compensa el header fijo al navegar con anclas */
[id] { scroll-margin-top: 5rem; }
#inicio { scroll-margin-top: 0; }

.section-head { max-width: 48ch; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.section-title {
  font-size: clamp(2.4rem, 7.5vw, 4.75rem);
  margin-bottom: 1.25rem;
}
.section-title em { font-style: italic; color: var(--clay); }

.section-lead { color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.15rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--cond);
  font-size: .9rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--clay-ink);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: .55rem; height: .55rem; flex: none;
  background: currentColor;
  clip-path: polygon(50% 100%, 0 30%, 18% 0, 82% 0, 100% 30%); /* diamante */
}
.eyebrow.light { color: var(--latte); }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem;
  padding: .85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--cond);
  font-size: 1rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s var(--ease-out), border-color .3s, transform .35s var(--ease-out), box-shadow .3s;
}
/* Relleno que sube desde abajo al pasar el mouse */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill, var(--clay));
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn-dark  { background: var(--ink); color: var(--bone); }
.btn-light { background: var(--bone); color: var(--ink); --btn-fill: var(--latte); }
.btn-light:hover { color: var(--ink); }
.btn-outline-light { border-color: rgba(251, 248, 243, .55); color: var(--bone); --btn-fill: var(--bone); }
.btn-outline-light:hover { color: var(--ink); border-color: var(--bone); }
.btn-outline { border-color: var(--ink); color: var(--ink); --btn-fill: var(--ink); }
.btn-outline:hover { color: var(--bone); }
.btn-email { background: var(--ink); color: var(--bone); }
.ico-email { width: 1.05em; height: 1.05em; }
.btn-block { width: 100%; }
.btn-lg { min-height: 3.6rem; padding: 1.1rem 2.4rem; font-size: 1.1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none;
  font-family: var(--cond); font-weight: 600; font-size: 1rem;
  letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: .25rem;
  transition: gap .3s var(--ease-out), color .2s;
}
.link-arrow svg { width: 1.1em; height: 1.1em; }
.link-arrow:hover { gap: .85rem; color: var(--clay-ink); }

/* ── Intro (preloader con el logo) ───────────────────────── */
/* Solo existe con html.has-intro (puesto por el script inline del <head>).
   La cortina sube sola con una animación CSS: no depende de script.js. */
.preloader { display: none; }
.has-intro { --intro: 1.75s; }
.has-intro .preloader {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  background: var(--espresso); color: var(--bone);
  cursor: pointer;
  animation: curtainUp .9s var(--ease-io) 1.65s forwards;
}
@keyframes curtainUp {
  to { transform: translateY(-101%); visibility: hidden; }
}
.preloader.is-done {
  animation: none !important;
  transform: translateY(-101%); visibility: hidden;
  transition: transform .6s var(--ease-io), visibility 0s .6s;
}
.preloader-logo { width: min(46vw, 230px); height: auto; overflow: visible; fill: currentColor; }
.preloader-logo path, .preloader-logo circle { fill: currentColor; }
.preloader-logo .logo-facets path {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  transform: scale(.4) rotate(-12deg);
  animation: facetIn .6s var(--ease-out) forwards;
}
.preloader-logo .logo-facets path:nth-child(1) { animation-delay: .05s; }
.preloader-logo .logo-facets path:nth-child(2) { animation-delay: .12s; }
.preloader-logo .logo-facets path:nth-child(3) { animation-delay: .19s; }
.preloader-logo .logo-facets path:nth-child(4) { animation-delay: .26s; }
.preloader-logo .logo-facets path:nth-child(5) { animation-delay: .33s; }
.preloader-logo .logo-facets path:nth-child(6) { animation-delay: .40s; }
.preloader-logo .logo-facets path:nth-child(7) { animation-delay: .47s; }
.preloader-logo .logo-facets path:nth-child(8) { animation-delay: .54s; }
.preloader-logo .logo-dot {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: dotIn .5s var(--ease-out) .7s forwards;
}
.preloader-logo .logo-rays path {
  opacity: 0; transform-box: fill-box; transform-origin: bottom center;
  animation: rayIn .45s var(--ease-out) forwards;
}
.preloader-logo .logo-rays path:nth-child(1) { animation-delay: .80s; }
.preloader-logo .logo-rays path:nth-child(2) { animation-delay: .86s; }
.preloader-logo .logo-rays path:nth-child(3) { animation-delay: .92s; }
.preloader-logo .logo-rays path:nth-child(4) { animation-delay: .98s; }
.preloader-logo .logo-rays path:nth-child(5) { animation-delay: 1.04s; }
.preloader-logo .logo-base,
.preloader-logo .logo-word {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: wordIn .6s var(--ease-out) forwards;
}
.preloader-logo .logo-base { animation-delay: .9s; }
.preloader-logo .logo-word { animation-delay: 1.05s; }
@keyframes facetIn { to { opacity: 1; transform: none; } }
@keyframes dotIn   { 0% { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.25); } 100% { opacity: 1; transform: scale(1); } }
@keyframes rayIn   { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: scaleY(1); } }
@keyframes wordIn  { from { opacity: 0; transform: translateY(14px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }

/* ── Header / navegación ─────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .35s, border-color .35s, color .35s, transform .45s var(--ease-out);
  border-bottom: 1px solid transparent;
}
/* Se esconde al bajar y vuelve al subir (script.js) */
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
  transition: padding .35s var(--ease-out);
}

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none;
  margin-right: auto;
  color: inherit;
}
.brand-mark { width: 2.4rem; height: auto; aspect-ratio: 620 / 612; flex: none; transition: transform .5s var(--ease-out); }
.brand-word { width: 7.4rem; height: auto; aspect-ratio: 570 / 82; flex: none; }
.brand-mark svg, .brand-word svg { width: 100%; height: 100%; fill: currentColor; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }

.nav-links { display: none; gap: 2.1rem; }
.nav-links a {
  text-decoration: none;
  font-family: var(--cond); font-size: 1rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  position: relative; padding-block: .35rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: none; min-height: 2.6rem; padding: .6rem 1.2rem; font-size: .9rem; }

/* Estado transparente sobre el hero */
.nav:not(.is-scrolled) { color: var(--bone); }
.nav:not(.is-scrolled) .nav-cta { background: rgba(251, 248, 243, .14); color: var(--bone); border-color: rgba(251, 248, 243, .4); --btn-fill: var(--bone); }
.nav:not(.is-scrolled) .nav-cta:hover { color: var(--ink); }
.nav:not(.is-scrolled) .nav-toggle span { background: var(--bone); }

/* Estado sólido al hacer scroll — fondo opaco, SIN backdrop-filter: un
   elemento fijo con blur sobre páginas muy largas traba el GPU de
   algunos teléfonos y la pantalla queda en negro. */
.nav.is-scrolled {
  background: var(--bone);
  border-bottom-color: var(--sand);
  color: var(--ink);
}
.nav.is-scrolled .nav-inner { padding-block: .7rem; }

/* Páginas sin hero oscuro: el header arranca sólido */
.nav.is-solid { background: var(--bone); color: var(--ink); border-bottom-color: var(--sand); }
.nav.is-solid .nav-toggle span { background: var(--ink); }
.nav.is-solid .nav-cta { background: var(--ink); color: var(--bone); border-color: transparent; --btn-fill: var(--clay); }

.nav-toggle {
  width: 2.9rem; height: 2.9rem;
  display: grid; place-content: center; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  transition: transform .35s var(--ease-out), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  background: var(--bone);
  border-bottom: 1px solid var(--sand);
  padding: 1rem var(--gutter) 2rem;
  display: grid; gap: .25rem;
  color: var(--ink);
  max-height: calc(100svh - 4.5rem); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  display: flex; align-items: baseline; gap: .75rem;
  text-decoration: none;
  font-family: var(--serif); font-size: 1.75rem; font-weight: 300;
  padding: .55rem 0;
  border-bottom: 1px solid var(--sand);
  opacity: 0; transform: translateY(12px);
  animation: menuItemIn .5s var(--ease-out) forwards;
}
.mobile-menu a:not(.btn) small { font-family: var(--cond); font-size: .8rem; color: var(--clay-ink); letter-spacing: .15em; }
.mobile-menu a:nth-child(1) { animation-delay: .03s; }
.mobile-menu a:nth-child(2) { animation-delay: .07s; }
.mobile-menu a:nth-child(3) { animation-delay: .11s; }
.mobile-menu a:nth-child(4) { animation-delay: .15s; }
.mobile-menu a:nth-child(5) { animation-delay: .19s; }
.mobile-menu a:nth-child(6) { animation-delay: .23s; }
@keyframes menuItemIn { to { opacity: 1; transform: none; } }
.mobile-menu .btn { margin-top: 1.25rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 8rem var(--gutter) clamp(4.5rem, 12vw, 7.5rem);
  color: var(--bone);
  overflow: hidden;
  background: var(--espresso);
}
.hero-img {
  position: absolute; left: 0; right: 0; top: -8%;
  width: 100%; height: 116%;
  object-fit: cover; object-position: center 60%;
  z-index: 0;
  transform: scale(1.08);
  will-change: transform;
}
.js .hero-img { animation: heroZoom 2.4s var(--ease-out) calc(.1s + var(--intro, 0s)) both; }
@keyframes heroZoom { from { transform: scale(1.18); filter: brightness(.6); } to { transform: scale(1.08); filter: none; } }

.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 80% at 15% 100%, rgba(31, 26, 23, .88) 0%, rgba(31, 26, 23, .35) 55%, transparent 80%),
    linear-gradient(to top, rgba(31, 26, 23, .78) 0%, rgba(31, 26, 23, .15) 55%, rgba(31, 26, 23, .45) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin-inline: auto; }

.hero-title {
  font-size: clamp(3rem, 12vw, 7.6rem);
  font-weight: 300;
  line-height: .98;
  margin-bottom: 1.75rem;
}
.hero-title em { font-style: italic; color: var(--latte); }
/* Palabras del título: cada una sube desde una "ranura" (script.js las envuelve) */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.word-inner { display: inline-block; }
.js .hero .word-inner {
  transform: translateY(110%);
  animation: wordUp 1s var(--ease-out) forwards;
  animation-delay: calc(var(--hd, 0s) + var(--intro, 0s));
}
@keyframes wordUp { to { transform: none; } }

.hero-tagline {
  max-width: 44ch;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  color: rgba(251, 248, 243, .88);
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.js .hero-fade {
  opacity: 0; transform: translateY(22px);
  animation: heroFadeUp .9s var(--ease-out) forwards;
  animation-delay: calc(var(--hd, 0s) + var(--intro, 0s));
}
@keyframes heroFadeUp { to { opacity: 1; transform: none; } }

/* Sello circular giratorio */
.hero-badge {
  position: absolute; z-index: 2;
  right: var(--gutter); top: 7.5rem;
  width: clamp(6.5rem, 14vw, 9.5rem); aspect-ratio: 1;
  color: var(--bone);
  display: none;
}
.hero-badge svg { width: 100%; height: 100%; }
.hero-badge .badge-text {
  transform-origin: 50% 50%;
  animation: spin 18s linear infinite;
}
.hero-badge .badge-text text {
  font-family: var(--cond); font-size: 10.5px; font-weight: 600; letter-spacing: 3.1px;
  fill: currentColor; text-transform: uppercase;
}
.hero-badge .badge-mark { fill: var(--latte); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.5rem; z-index: 2;
  transform: translateX(-50%);
  display: none;
  flex-direction: column; align-items: center; gap: .6rem;
  color: rgba(251, 248, 243, .75);
  text-decoration: none;
  font-family: var(--cond); font-size: .75rem; letter-spacing: .25em; text-transform: uppercase;
}
.hero-scroll i {
  position: relative; display: block; width: 1px; height: 2.75rem;
  background: rgba(251, 248, 243, .3); overflow: hidden;
}
.hero-scroll i::after {
  content: ""; position: absolute; inset: 0;
  background: var(--bone);
  transform-origin: top;
  animation: scrollHint 2.2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%   { transform: scaleY(0); }
  45%  { transform: scaleY(1); }
  100% { transform: scaleY(1) translateY(100%); }
}

/* ── Marquesina ──────────────────────────────────────────── */
.marquee {
  background: var(--clay); color: var(--bone);
  overflow: hidden;
  padding-block: 1.15rem;
  border-block: 1px solid rgba(31, 26, 23, .15);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 1.6rem;
  padding-right: 1.6rem;
  font-family: var(--stencil); font-weight: 800;
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.marquee-item svg { width: .7em; height: .7em; fill: currentColor; opacity: .75; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Historia (Nosotros) ─────────────────────────────────── */
.story-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.story-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sand);
}
.story-media img {
  position: absolute; inset: -6% 0;
  width: 100%; height: 112%;
  object-fit: cover;
  will-change: transform;
}
.story-media figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  background: var(--bone); color: var(--ink);
  padding: .45rem .8rem; border-radius: 999px;
  font-family: var(--cond); font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.story-copy p { color: var(--muted); max-width: 54ch; font-size: 1.05rem; }
.story-copy p.lead {
  font-family: var(--serif); font-weight: 300; color: var(--ink);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem); line-height: 1.4;
}

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--sand);
  border: 1px solid var(--sand); border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
}
.stat { background: var(--bone); padding: clamp(1.4rem, 4vw, 2.2rem); }
.stat p { margin: 0; }
.stat-num {
  display: flex; align-items: baseline; gap: .1rem;
  font-family: var(--stencil); font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 4.5rem); line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-num small { font-family: var(--cond); font-weight: 600; font-size: .5em; color: var(--clay); margin-right: .1em; }
.stat-label {
  display: block; margin-top: .6rem;
  font-family: var(--cond); font-size: .95rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}

/* ── Pilares (sección oscura) ────────────────────────────── */
.dark { background: var(--espresso); color: var(--bone); }
.dark .section-lead { color: rgba(251, 248, 243, .72); }
.dark .section-title em { color: var(--latte); }

.pillars-grid { display: grid; gap: 1.25rem; perspective: 1200px; }
.pillar {
  position: relative;
  border-radius: var(--radius);
  background: #33271F;
  border: 1px solid rgba(251, 248, 243, .08);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out), border-color .4s;
  --mx: 50%; --my: 50%;
}
/* Brillo que sigue al puntero */
.pillar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(217, 185, 155, .16), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.pillar:hover::after { opacity: 1; }
.pillar:hover { border-color: rgba(217, 185, 155, .35); }
.pillar-media { aspect-ratio: 16 / 11; overflow: hidden; }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.pillar:hover .pillar-media img { transform: scale(1.06); }
.pillar-body { padding: clamp(1.5rem, 3.5vw, 2rem); }
.pillar-num {
  display: block;
  font-family: var(--stencil); font-weight: 800; font-size: 3rem; line-height: 1;
  color: var(--latte); opacity: .9;
  margin-bottom: .9rem;
}
.pillar h3 { font-size: clamp(1.5rem, 3.4vw, 1.9rem); margin-bottom: .75rem; }
.pillar p { color: rgba(251, 248, 243, .72); margin: 0; }
.pillars-closing {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  max-width: 30ch;
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem); line-height: 1.25;
  color: var(--latte);
}

/* ── Nuestro café ────────────────────────────────────────── */
.coffee { background: var(--cream); overflow: clip; }
.coffee-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.coffee-media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--sand);
}
.coffee-media img { width: 100%; height: 100%; object-fit: cover; }
.coffee-media .tag {
  position: absolute; right: 1rem; top: 1rem;
  display: grid; place-items: center; text-align: center;
  width: 7rem; aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--bone);
  font-family: var(--cond); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2;
  padding: .75rem;
}
.coffee-media .tag strong { display: block; font-family: var(--cond); font-weight: 600; font-size: 2.2rem; letter-spacing: 0; line-height: 1; color: var(--latte); }

.steps { position: relative; display: grid; gap: 2.25rem; padding-left: 3.25rem; margin-top: 1rem; }
/* Línea que se va llenando con el scroll (--progress lo pone script.js) */
.steps::before, .steps::after {
  content: ""; position: absolute; left: 1.05rem; top: .5rem; bottom: .5rem; width: 2px;
  background: var(--sand);
}
.steps::after {
  background: var(--clay);
  transform-origin: top; transform: scaleY(var(--progress, 0));
}
.step { position: relative; }
.step-num {
  position: absolute; left: -3.25rem; top: 0; z-index: 1;
  display: grid; place-items: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--sand);
  font-family: var(--cond); font-weight: 600; font-size: .95rem; color: var(--muted);
  transition: background-color .4s, border-color .4s, color .4s, transform .4s var(--ease-out);
}
.step.is-active .step-num { background: var(--clay); border-color: var(--clay); color: var(--bone); transform: scale(1.1); }
.step h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-bottom: .5rem; }
.step p { color: var(--muted); margin: 0; max-width: 46ch; }

.coffee-quote {
  margin: clamp(3.5rem, 8vw, 6rem) 0 0;
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  border-top: 1px solid var(--sand);
}
.coffee-quote p {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.6rem, 4.4vw, 3rem); line-height: 1.2; letter-spacing: -.015em;
  max-width: 28ch; margin-bottom: 1.25rem;
}
.coffee-quote cite {
  font-style: normal;
  font-family: var(--cond); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--clay-ink);
}

/* ── Menú (franja en la home) ────────────────────────────── */
.menu-teaser-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: end; }
.menu-teaser-copy .btn { margin-top: 1rem; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.cat-card {
  position: relative; display: flex; align-items: flex-end;
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  padding: 1rem;
  color: var(--bone); text-decoration: none;
  background: var(--espresso);
  isolation: isolate;
}
.cat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .9s var(--ease-out), filter .5s;
}
.cat-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(31, 26, 23, .82), rgba(31, 26, 23, .05) 60%);
}
.cat-card span {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%;
  font-family: var(--cond); font-weight: 600; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase;
}
.cat-card span svg { width: 1.1em; height: 1.1em; transition: transform .4s var(--ease-out); }
.cat-card:hover img { transform: scale(1.08); filter: saturate(1.1); }
.cat-card:hover span svg { transform: translateX(4px) rotate(-45deg); }

/* ── Galería ─────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
}
.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--sand);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out), filter .5s;
}
.gallery-item:hover img { transform: scale(1.07); filter: brightness(.88); }
.gallery-cta {
  display: grid; place-content: center;
  background: var(--ink); color: var(--bone);
  text-decoration: none;
  transition: background-color .4s;
}
.gallery-cta:hover { background: var(--clay); }
.gallery-cta span {
  display: grid; gap: .6rem; justify-items: center;
  font-family: var(--cond); font-weight: 600; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase;
}
.gallery-cta svg { width: 1.8rem; height: 1.8rem; }

/* ── Locales ─────────────────────────────────────────────── */
.locations-layout { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
.locations-list { display: grid; gap: .65rem; align-content: start; }
.location-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: .25rem 1rem; align-items: center;
  width: 100%; text-align: left;
  background: var(--bone);
  border: 1px solid var(--sand);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  cursor: pointer;
  transition: border-color .3s, background-color .3s, transform .35s var(--ease-out), box-shadow .3s;
}
.location-card:hover { border-color: var(--clay); transform: translateX(4px); }
.location-card.is-active { background: var(--ink); color: var(--bone); border-color: var(--ink); box-shadow: var(--shadow-md); }
.location-index {
  grid-row: span 2;
  font-family: var(--stencil); font-weight: 800; font-size: 1.9rem; line-height: 1;
  color: var(--clay); min-width: 2.1rem;
}
.location-card.is-active .location-index { color: var(--latte); }
.location-comuna {
  font-family: var(--cond); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay-ink);
}
.location-card.is-active .location-comuna { color: var(--latte); }
.location-address { grid-column: 2; font-size: .95rem; line-height: 1.4; }
.location-go {
  grid-row: 1 / span 2; grid-column: 3;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid currentColor;
  text-decoration: none;
  opacity: .7; transition: opacity .2s, background-color .2s;
}
.location-go:hover { opacity: 1; background: var(--clay); border-color: var(--clay); color: var(--bone); }
.location-go svg { width: 1rem; height: 1rem; }

.map-wrap { position: relative; }
.locations-map {
  width: 100%; height: clamp(340px, 70vw, 560px);
  border-radius: var(--radius);
  border: 1px solid var(--sand);
  background: var(--cream);
  overflow: hidden;
  filter: grayscale(.3) sepia(.12) contrast(1.02);
}
.map-caption { margin: .9rem 0 0; font-size: .85rem; color: var(--muted); }

/* Pin con forma de diamante, en cobre */
.map-pin span {
  display: block; width: 100%; height: 100%;
  background: var(--clay);
  clip-path: polygon(50% 100%, 0 32%, 20% 0, 80% 0, 100% 32%);
  filter: drop-shadow(0 2px 3px rgba(31, 26, 23, .35));
  transition: transform .3s var(--ease-out);
  transform-origin: 50% 100%;
}
.map-pin.is-active span { background: var(--ink); transform: scale(1.35); }

.leaflet-popup-content-wrapper { border-radius: 10px; font-family: var(--sans); box-shadow: var(--shadow-md); }
.leaflet-popup-content { margin: .8rem 1rem; font-size: .85rem; line-height: 1.5; color: var(--ink); }
.leaflet-popup-content strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.leaflet-popup-content a { color: var(--clay-ink); }
.leaflet-popup-tip { box-shadow: none; }

/* ── Contacto ────────────────────────────────────────────── */
.contact { background: var(--espresso); color: var(--bone); text-align: center; overflow: hidden; }
.contact-inner { position: relative; display: grid; justify-items: center; gap: 1rem; }
.contact .eyebrow { justify-content: center; }
.contact-title {
  font-size: clamp(2.6rem, 9vw, 6.2rem);
  margin-bottom: .5rem;
}
.contact-title em { font-style: italic; color: var(--latte); }
.contact-mail {
  display: inline-block;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.35rem, 4.5vw, 2.6rem);
  color: var(--bone); text-decoration: none;
  background: linear-gradient(var(--latte), var(--latte)) left bottom / 0 2px no-repeat;
  transition: background-size .6s var(--ease-out), color .3s;
  padding-bottom: .2rem;
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
}
.contact-mail:hover { background-size: 100% 2px; color: var(--latte); }
.contact .btn-light { margin-bottom: 1.5rem; }
.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.social-row a {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.75rem; padding: .5rem 1rem;
  border: 1px solid rgba(251, 248, 243, .2); border-radius: 999px;
  text-decoration: none; font-size: .9rem; color: rgba(251, 248, 243, .82);
  transition: color .2s, border-color .2s, background-color .2s;
}
.social-row a:hover { color: var(--ink); background: var(--latte); border-color: var(--latte); }
.social-row svg { width: 1.15rem; height: 1.15rem; }
.contact-bg-logo {
  position: absolute; left: 50%; top: 50%;
  width: min(80vw, 640px); transform: translate(-50%, -50%);
  color: rgba(251, 248, 243, .035); pointer-events: none; z-index: 0;
}
.contact-bg-logo svg { width: 100%; height: auto; fill: currentColor; }
.contact-inner > *:not(.contact-bg-logo) { position: relative; z-index: 1; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--ink); color: var(--bone);
  /* abajo deja espacio para los botones flotantes (volver arriba / chat) */
  padding-block: clamp(3rem, 8vw, 5rem) 5.5rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand .brand { margin-bottom: 1.25rem; }
.footer-brand .brand-mark { width: 3.2rem; }
.footer-brand .brand-word { width: 9rem; }
.footer-brand p { color: rgba(251, 248, 243, .62); font-size: .92rem; max-width: 36ch; }
.footer-col h3 {
  font-family: var(--cond); font-size: .9rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--latte);
  margin-bottom: 1rem;
}
.footer-col li { font-size: .9rem; color: rgba(251, 248, 243, .8); padding-block: .3rem; }
.footer-col a { text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--latte); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(251, 248, 243, .12);
  display: grid; gap: .4rem;
  font-size: .8rem; color: rgba(251, 248, 243, .5);
}
.footer-bottom p { margin: 0; }

/* ── Botón volver arriba (anillo = progreso de lectura) ──── */
.to-top {
  position: fixed; left: clamp(1rem, 4vw, 2rem); bottom: clamp(1rem, 4vw, 2rem); z-index: 140;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bone); color: var(--ink);
  border: 0; cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease-out);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke-width: 2.5; }
.to-top .ring .track { stroke: var(--sand); }
.to-top .ring .bar { stroke: var(--clay); stroke-dasharray: 138.2; stroke-dashoffset: calc(138.2 * (1 - var(--p, 0))); }
.to-top .arrow { width: 1.1rem; height: 1.1rem; }

/* Barra de progreso de lectura */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--clay), var(--latte));
  transform: scaleX(0); transform-origin: left;
  z-index: 200;
  will-change: transform;
}

/* ── Menú completo (menu.html) ───────────────────────────── */
.menu-back-link { text-decoration: none; }
.menu-back-link:hover { text-decoration: underline; }

/* Pestañas pegajosas: fondo sólido, sin backdrop-filter (ver nota del header) */
.menu-tabs {
  position: sticky; top: 4.4rem; z-index: 20;
  display: flex; gap: .5rem;
  overflow-x: auto; scrollbar-width: none;
  background: var(--bone);
  border-bottom: 1px solid var(--sand);
  padding-block: .8rem;
  margin-bottom: 2.5rem;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
  flex: none;
  min-height: 2.5rem; display: inline-flex; align-items: center;
  padding: .45rem 1rem;
  border: 1px solid var(--sand); border-radius: 999px;
  font-family: var(--cond); font-size: .95rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  white-space: nowrap;
  transition: color .25s, background-color .25s, border-color .25s;
}
.menu-tab:hover { color: var(--ink); border-color: var(--ink); }
.menu-tab.is-active { color: var(--bone); background: var(--ink); border-color: var(--ink); }

.menu-panels { display: grid; gap: clamp(3rem, 6vw, 4.5rem); }
.menu-category { scroll-margin-top: calc(4.4rem + 4.5rem); }
.menu-category-head {
  display: flex; align-items: center; gap: 1.1rem;
  margin-bottom: 1.5rem;
}
.menu-category-photo {
  flex: none;
  width: 5rem; height: 5rem;
  border-radius: 50%;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: var(--cream);
  box-shadow: 0 0 0 4px var(--bone), 0 0 0 5px var(--sand);
}
.menu-category-head h3 {
  font-family: var(--stencil); font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-transform: uppercase; letter-spacing: .02em;
  margin-bottom: .2rem;
}
.menu-category-head p { color: var(--muted); font-size: .9rem; margin: 0; }

/* display:block (no grid): "columns" solo funciona en contenedores de bloque */
.menu-rows { display: block; }
/* Si el header se esconde al bajar, las pestañas suben a ocupar su lugar */
.menu-tabs { transition: top .45s var(--ease-out); }
.nav.is-hidden ~ main .menu-tabs { top: 0; }
.menu-row {
  display: flex; align-items: baseline; gap: .6rem;
  padding: .65rem .25rem;
  border-bottom: 1px solid rgba(227, 214, 196, .7);
  break-inside: avoid;
  transition: background-color .2s;
}
.menu-row:hover { background: var(--cream); }
.menu-row:last-child { border-bottom: 0; }
.menu-row-name { color: var(--ink); }
.menu-row-fill {
  flex: 1; min-width: 1rem;
  border-bottom: 1px dotted var(--sand);
  margin-bottom: .35em;
}
.menu-row-price {
  flex: none;
  font-family: var(--serif); color: var(--clay-ink);
  font-variant-numeric: tabular-nums;
}

.menu-cta {
  margin-top: 1rem; text-align: center;
  display: grid; gap: 1rem; justify-items: center;
}
.menu-cta p { color: var(--muted); margin: 0; }

/* ── Asistente IA (widget flotante) ──────────────────────── */
.chat {
  position: fixed; right: clamp(1rem, 4vw, 2rem); bottom: clamp(1rem, 4vw, 2rem);
  z-index: 150;
  display: flex; flex-direction: column; align-items: flex-end; gap: .75rem;
}
.chat-launcher {
  order: 2; position: relative;
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 3rem;
  padding: .8rem 1.25rem;
  background: var(--ink); color: var(--bone);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: var(--shadow-md);
  font-family: var(--cond); font-size: .95rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .2s, transform .3s var(--ease-out);
}
.chat-launcher:hover { background: var(--clay); transform: translateY(-2px); }
.chat-launcher svg { width: 1.25rem; height: 1.25rem; }
.chat-launcher .ico-close { display: none; }
@media (max-width: 30em) {
  .chat-launcher { padding: .8rem; width: 3rem; justify-content: center; }
  .chat-launcher-label { display: none; }
}
.chat-launcher[aria-expanded="true"] .ico-open  { display: none; }
.chat-launcher[aria-expanded="true"] .ico-close { display: block; }
.chat-launcher[aria-expanded="true"] .chat-launcher-label { display: none; }
.chat-launcher::before {
  content: ""; position: absolute; inset: -6px;
  border-radius: 999px; border: 1.5px solid var(--clay);
  opacity: 0; pointer-events: none;
  animation: chatPulse 2.6s ease-out 3.5s 3;
}
.chat-launcher[aria-expanded="true"]::before { display: none; }
@keyframes chatPulse {
  0%   { transform: scale(.92); opacity: .55; }
  70%  { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}

.chat-panel {
  order: 1;
  width: min(23rem, calc(100vw - 2rem));
  height: min(30rem, calc(100svh - 8rem));
  display: flex; flex-direction: column;
  background: var(--bone);
  border: 1px solid var(--sand);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-origin: bottom right;
  animation: chatIn .3s var(--ease-out);
}
.chat-panel[hidden] { display: none; }
@keyframes chatIn {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.chat-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1rem;
  background: var(--ink); color: var(--bone);
}
.chat-header strong { display: block; font-size: .9rem; font-weight: 500; }
.chat-header span { font-size: .72rem; color: rgba(251, 248, 243, .6); }
.chat-close {
  background: none; border: 0; cursor: pointer; color: inherit;
  width: 2.75rem; height: 2.75rem; flex: none;
  display: grid; place-content: center;
  border-radius: 8px;
}
.chat-close:hover { background: rgba(251, 248, 243, .12); }
.chat-close svg { width: 1.1rem; height: 1.1rem; }
.chat-log {
  flex: 1; overflow-y: auto;
  padding: 1rem;
  display: flex; flex-direction: column; gap: .7rem;
  font-size: .875rem;
  scrollbar-width: thin;
}
.msg {
  max-width: 88%;
  padding: .65rem .85rem;
  border-radius: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  animation: msgIn .3s var(--ease-out);
}
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg-bot   { background: var(--cream); border-bottom-left-radius: 3px; align-self: flex-start; }
.msg-user  { background: var(--ink); color: var(--bone); border-bottom-right-radius: 3px; align-self: flex-end; }
.msg-error { background: rgba(169, 101, 63, .12); color: var(--graphite); align-self: flex-start; }
.msg a, a.msg { color: var(--clay-ink); }
.msg-typing {
  display: flex; gap: .25rem; align-self: flex-start;
  padding: .8rem .85rem; background: var(--cream); border-radius: 12px;
}
.msg-typing i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--muted);
  animation: dot 1.2s infinite ease-in-out;
}
.msg-typing i:nth-child(2) { animation-delay: .15s; }
.msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .75rem; }
.chat-chips button {
  min-height: 2rem;
  padding: .35rem .75rem;
  background: transparent; color: var(--muted);
  border: 1px solid var(--sand); border-radius: 999px;
  font-size: .78rem; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chat-chips button:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.chat-form { display: flex; gap: .5rem; align-items: center; padding: .7rem; border-top: 1px solid var(--sand); }
.chat-form input {
  flex: 1; min-width: 0;
  min-height: 2.75rem;
  padding: .6rem .9rem;
  background: var(--cream);
  border: 1px solid transparent; border-radius: 999px;
  font-size: 1rem;
}
.chat-form input:focus { border-color: var(--sand); outline: none; background: #fff; }
.chat-form button {
  width: 2.75rem; height: 2.75rem; flex: none;
  display: grid; place-content: center;
  background: var(--ink); color: var(--bone);
  border: 0; border-radius: 50%; cursor: pointer;
  transition: background-color .2s;
}
.chat-form button:hover { background: var(--clay); }
.chat-form button:disabled { opacity: .45; cursor: not-allowed; }
.chat-form svg { width: 1.05rem; height: 1.05rem; }
.chat-foot { padding: .6rem 1rem .8rem; border-top: 1px solid var(--sand); text-align: center; }
.chat-foot a { font-size: .78rem; color: var(--muted); text-decoration: none; }
.chat-foot a:hover { color: var(--ink); text-decoration: underline; }

/* ── Animaciones de entrada al hacer scroll ──────────────── */
.js .reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal-left  { transform: translateX(-40px); }
.js .reveal-right { transform: translateX(40px); }
.js .reveal-scale { transform: scale(.94); }

/* Imágenes que se descubren con una cortina */
.js .reveal-clip { clip-path: inset(0 0 100% 0); opacity: 1; transform: none; }
.reveal-clip.is-visible { clip-path: inset(0); transition: clip-path 1.2s var(--ease-io); transition-delay: var(--d, 0s); }

/* Títulos de sección: palabras que suben (script.js las envuelve) */
.js .split-words .word-inner { transform: translateY(105%); }
.split-words.is-visible .word-inner {
  transform: none;
  transition: transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* ═══════════════════════ BREAKPOINTS ═══════════════════════ */

@media (min-width: 40em) {
  .stats          { grid-template-columns: repeat(4, 1fr); }
  .menu-rows      { columns: 2; column-gap: 2.5rem; }
  .gallery-grid   { grid-template-columns: repeat(3, 1fr); }
  .footer-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom  { grid-template-columns: 1fr auto; align-items: baseline; }
  .hero-scroll    { display: flex; }
  .hero-badge     { display: block; }
  .cat-grid       { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 62em) {
  .nav-links, .nav-cta { display: inline-flex; }
  .nav-toggle  { display: none; }
  .mobile-menu { display: none !important; }

  .story-grid  { grid-template-columns: 1fr 1.05fr; }
  .pillars-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .pillar:nth-child(2) { margin-top: 3rem; }
  .coffee-grid { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .coffee-media { position: sticky; top: 6rem; }
  .menu-teaser-grid { grid-template-columns: .85fr 1.15fr; }
  .locations-layout { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .map-wrap { position: sticky; top: 6rem; }
  .footer-grid  { grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 3rem; }
}

/* Interacciones solo para mouse (en táctil no aportan y gastan batería) */
@media (hover: hover) and (pointer: fine) {
  .magnetic { will-change: transform; }
}

/* ── Accesibilidad: movimiento reducido ──────────────────── */
/* Se mantienen los fundidos (opacidad), que no provocan mareo, y se
   quitan los desplazamientos, giros, parallax y movimiento continuo. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-left, .js .reveal-right, .js .reveal-scale { transform: none; }
  .js .reveal-clip { clip-path: none; opacity: 0; }
  .reveal-clip.is-visible { opacity: 1; transition: opacity .9s ease; }
  .js .split-words .word-inner, .js .hero .word-inner { transform: none; opacity: 0; }
  .split-words.is-visible .word-inner { opacity: 1; transition: opacity .7s ease; transition-delay: calc(var(--i, 0) * 50ms); }
  .js .hero .word-inner { animation-name: fadeIn; }
  .js .hero-fade { transform: none; animation-name: fadeIn; }
  .js .hero-img { animation-name: fadeIn; transform: scale(1.08); }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; transform: none; } }

  .preloader-logo .logo-facets path, .preloader-logo .logo-dot,
  .preloader-logo .logo-rays path, .preloader-logo .logo-base, .preloader-logo .logo-word { animation-name: fadeIn; transform: none; }
  .has-intro .preloader { animation-name: curtainFade; }
  @keyframes curtainFade { to { opacity: 0; visibility: hidden; } }

  .marquee-track, .hero-badge .badge-text, .hero-scroll i::after { animation: none !important; }
  .chat-launcher::before { display: none; }
  .btn:active, .location-card:hover { transform: none; }
}

/* ── Impresión ───────────────────────────────────────────── */
@media print {
  .nav, .chat, .hero-scroll, .map-wrap, .to-top, .preloader, .marquee { display: none !important; }
  body { background: #fff; }
  .hero { min-height: auto; color: var(--ink); background: none; }
  .hero-img, .hero-scrim { display: none; }
}
