/* ═══════════════════════════════════════════════════════════════
   CACAO & COFFEE — Specialty Coffee & Brunch · Torrejón de Ardoz
   Sistema: blancos cálidos · crema · beige · café · oliva suave
   Tipografía: Lato — 400 para texto, 700 para títulos y encabezados
   ═══════════════════════════════════════════════════════════════ */

:root {
  --leche: #FBF8F2;
  --crema: #F5EEE3;
  --beige: #E6D9C5;
  --latte: #C9AE8C;
  --cafe: #6B4A32;
  --espresso: #2B1E16;
  --oliva: #83815F;
  --oliva-suave: #A6A488;

  --font-display: "Lato", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;

  --r-s: 14px;
  --r-m: 22px;
  --r-l: 32px;

  --shadow-soft: 0 18px 50px -22px rgba(75, 52, 35, .16);
  --shadow-lift: 0 30px 70px -28px rgba(75, 52, 35, .24);

  --ease-out: cubic-bezier(.22, .61, .21, 1);
  --dur: .9s;

  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --container: 1240px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--espresso);
  background: var(--leche);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video, canvas, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--cafe);
  outline-offset: 3px;
  border-radius: 4px;
}

.is-hidden { display: none !important; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { position: relative; padding-block: clamp(5rem, 11vw, 9.5rem); }

/* ── Grano cinematográfico ────────────────────────────────────── */
.grain {
  position: fixed;
  inset: -60px;
  z-index: 200;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.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-shift 1.1s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-18px, 12px); }
  50% { transform: translate(14px, -16px); }
  75% { transform: translate(-10px, -8px); }
  100% { transform: translate(0, 0); }
}

/* ── Tipografía compartida ────────────────────────────────────── */
.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--oliva);
  margin-bottom: 1.1rem;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: 1.4rem;
}
.h2 em {
  font-style: italic;
  font-weight: 700;
  color: var(--cafe);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--espresso);
  margin-bottom: 1rem;
}

.body-copy {
  color: rgba(43, 30, 22, .74);
  margin-bottom: 1.75rem;
}
.body-copy em { color: var(--cafe); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-intro { color: rgba(43, 30, 22, .68); }

/* ── Botones ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out),
              background-color .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-solid {
  background: var(--espresso);
  color: var(--leche);
  box-shadow: var(--shadow-soft);
}
.btn-solid:hover { background: var(--cafe); box-shadow: var(--shadow-lift); }

.btn-ghost {
  color: var(--leche);
  border: 1.5px solid rgba(251, 248, 242, .65);
  backdrop-filter: blur(6px);
  background: rgba(251, 248, 242, .12);
}
.btn-ghost:hover { background: rgba(251, 248, 242, .28); border-color: var(--leche); }

.btn-outline {
  color: var(--espresso);
  border: 1.5px solid var(--beige);
  background: transparent;
}
.btn-outline:hover { border-color: var(--cafe); color: var(--cafe); background: rgba(107, 74, 50, .04); }

/* CTA destacado: relleno verde oliva oscuro, más grande y con flecha */
.btn-cta {
  background: #6C6A48;
  color: var(--leche);
  padding: 1.1rem 2.3rem;
  font-size: 1.02rem;
  box-shadow: 0 18px 36px -16px rgba(108, 106, 72, .75);
}
.btn-cta::after {
  content: "→";
  font-weight: 400;
  transition: transform .4s var(--ease-out);
}
.btn-cta:hover { background: var(--cafe); box-shadow: 0 22px 40px -16px rgba(107, 74, 50, .6); }
.btn-cta:hover::after { transform: translateX(5px); }

/* ── Navbar ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background-color .5s, box-shadow .5s, backdrop-filter .5s;
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.1rem var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1.6rem, 3vw, 2.8rem);
  transition: padding .5s var(--ease-out);
}
/* Enlaces pegados al nombre: Inicio · Carta | NOMBRE | Galería · Contacto */
.nav-links-left { grid-area: 1 / 1; justify-self: end; }
.nav-logo { grid-area: 1 / 2; }
/* Galería · Contacto pegados al nombre (en móvil, solo la hamburguesa a la derecha) */
.nav-right {
  grid-area: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav.scrolled {
  background: rgba(251, 248, 242, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(107, 74, 50, .1);
}
.nav.scrolled .nav-inner { padding-block: .7rem; }

/* Sobre el vídeo el nav es claro; al hacer scroll pasa a espresso */
.nav { color: var(--leche); }
.nav.scrolled { color: var(--espresso); }

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: .01em;
  justify-self: center;
  white-space: nowrap;
}
.nav-logo em { font-style: italic; font-weight: 700; }

/* Enlaces en mayúsculas, ligeros y espaciados; la página activa lleva una barra debajo */
.nav-links { display: flex; gap: clamp(1.3rem, 2.3vw, 2.1rem); white-space: nowrap; }
.nav-links a {
  position: relative;
  font-size: .84rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-block: .35rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -.45rem;
  height: 2px;
  background: currentColor;
  transition: right .4s var(--ease-out);
}
.nav-links a:hover::after { right: 0; }

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  position: relative;
  flex: none;
}
.nav-burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.nav-burger span:nth-child(1) { top: 16px; }
.nav-burger span:nth-child(2) { top: 24px; }
body.menu-open .nav-burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ── Menú móvil ───────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--crema);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease-out), visibility 0s .5s;
}
body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s var(--ease-out);
}
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 400;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), color .3s;
  transition-delay: 0s;
}
.mobile-menu nav a:hover { color: var(--cafe); }
body.menu-open .mobile-menu nav a {
  opacity: 1;
  transform: none;
  transition-delay: calc(.12s + var(--i) * 70ms);
}
.mobile-menu-foot {
  position: absolute;
  bottom: 2rem;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--oliva);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { height: 340vh; position: relative; }
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-media { position: absolute; inset: 0; }
.hero-media video,
.hero-media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(43, 30, 22, .5) 0%, rgba(43, 30, 22, .12) 34%, rgba(43, 30, 22, 0) 55%),
    linear-gradient(to bottom, rgba(43, 30, 22, .3) 0%, rgba(43, 30, 22, 0) 26%),
    radial-gradient(120% 90% at 50% 100%, rgba(43, 30, 22, .18), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--leche);
  padding-inline: var(--pad-x);
  will-change: transform, opacity;
}
.hero-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 1.6rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 12.5vw, 10rem);
  line-height: .96;
  letter-spacing: -.015em;
  margin-bottom: 1.8rem;
  text-shadow: 0 4px 40px rgba(43, 30, 22, .25);
}
.hero-line { display: block; }
.hero-amp {
  font-size: .42em;
  line-height: 1.1;
}
.hero-amp em { font-style: italic; font-weight: 700; color: var(--beige); }
.hero-sub {
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .92;
  margin-bottom: 2.4rem;
}
.hero-sub i { font-style: normal; color: var(--latte); margin-inline: .35rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scrollhint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--leche);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  opacity: .8;
}
.hero-scrollhint span {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero-scrollhint svg { width: 20px; height: 32px; }
.hint-dot { animation: hint 2.2s var(--ease-out) infinite; }
@keyframes hint {
  0%, 20% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(11px); opacity: .2; }
  61%, 100% { transform: translateY(0); opacity: 0; }
}

/* Entrada del hero al cargar */
[data-load] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
body.is-loaded [data-load] { opacity: 1; transform: none; }
body.is-loaded [data-load="1"] { transition-delay: .1s; }
body.is-loaded [data-load="2"] { transition-delay: .2s; }
body.is-loaded [data-load="3"] { transition-delay: .3s; }
body.is-loaded [data-load="4"] { transition-delay: .48s; }
body.is-loaded [data-load="5"] { transition-delay: .62s; }
body.is-loaded [data-load="6"] { transition-delay: .9s; }

/* ── Marquesina ───────────────────────────────────────────────── */
.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  background: var(--crema);
  border-block: 1px solid rgba(107, 74, 50, .1);
  padding-block: 1.15rem;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  white-space: nowrap;
  color: var(--espresso);
}
.marquee-track span em { font-style: italic; color: var(--cafe); }
.marquee-track i { font-style: normal; color: var(--latte); font-size: .8rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Palabras fantasma ────────────────────────────────────────── */
.ghost-word {
  position: absolute;
  top: 4rem;
  left: -2rem;
  z-index: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(7rem, 22vw, 19rem);
  line-height: 1;
  color: rgba(107, 74, 50, .055);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.ghost-right { left: auto; right: -3rem; top: auto; bottom: 3rem; }

/* ── Historia ─────────────────────────────────────────────────── */
.historia { background: var(--leche); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.historia-panel {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-lift);
}
.historia-media { position: absolute; inset: 0; }
.historia-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.historia-tint {
  position: absolute;
  inset: 0;
  /* Velo cálido desde abajo: da profundidad al plano y apoya la tarjeta */
  background: linear-gradient(to top, rgba(43, 30, 22, .5) 0%, rgba(43, 30, 22, .12) 42%, rgba(43, 30, 22, 0) 70%);
}
.historia-card {
  position: relative;
  z-index: 2;
  max-width: 470px;
  margin: clamp(1.2rem, 3vw, 2.6rem);
  padding: clamp(1.4rem, 2.6vw, 2.1rem);
  background: rgba(251, 248, 242, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-soft);
}
.historia-card .eyebrow { margin-bottom: .8rem; }
.historia-card .h2 {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  line-height: 1.04;
  margin-bottom: 1rem;
}
.historia-card .lead {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(43, 30, 22, .82);
  margin-bottom: 1.3rem;
}
.historia-meta {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(107, 74, 50, .14);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(43, 30, 22, .62);
}
.historia-meta span { margin-inline: .35rem; color: var(--latte); }

/* Fondos de reserva cuando aún no hay vídeo */
.media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.fallback-historia {
  background:
    radial-gradient(90% 110% at 82% 8%, #FDF9F0 0%, transparent 55%),
    radial-gradient(70% 90% at 15% 90%, #D9C6A8 0%, transparent 60%),
    linear-gradient(150deg, #F3E9d8 0%, #E4D3B8 48%, #CFB694 100%);
}
.fallback-historia::after,
.fallback-emplatado::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(75% 60% at 70% 20%, rgba(255, 252, 244, .5), transparent 70%);
  animation: light-drift 14s ease-in-out infinite alternate;
}
@keyframes light-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.06); }
}
.steam-lines {
  width: min(30%, 190px);
  color: rgba(107, 74, 50, .4);
  overflow: visible;
}
.steam-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: steam-draw 7s var(--ease-out) infinite;
}
.steam-path:nth-child(2) { animation-delay: 1.1s; }
.steam-path:nth-child(3) { animation-delay: 2.2s; }
@keyframes steam-draw {
  0% { stroke-dashoffset: 220; opacity: 0; }
  18% { opacity: .9; }
  55% { stroke-dashoffset: 0; opacity: .9; }
  80%, 100% { stroke-dashoffset: -60; opacity: 0; }
}

/* ── Carta ────────────────────────────────────────────────────── */
.carta { background: var(--leche); padding-block: clamp(.5rem, 1.5vw, 1rem) clamp(2rem, 4vw, 3.5rem); }

.carta-note {
  margin-top: clamp(2.2rem, 4vw, 3rem);
  font-size: .88rem;
  color: rgba(43, 30, 22, .55);
  font-style: italic;
}

/* ── Cabecera "CARTA" ─────────────────────────────────────────── */
.carta-hero {
  background: var(--leche);
  padding: clamp(7.5rem, 15vh, 9.5rem) 0 clamp(1.2rem, 2.5vw, 2rem);
}
.carta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 9.5vw, 7rem);
  line-height: .95;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ── Carta en hojas de papel, como una carta impresa ─────────── */
.menu-sheets { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.menu-sheet {
  position: relative;
  overflow: hidden;
  background: #F4EDE0;
  border: 1px solid rgba(107, 74, 50, .1);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.2rem, 3vw, 2.2rem) clamp(1.2rem, 3.2vw, 2.6rem) 0;
}
.menu-holes { position: relative; height: 3.6rem; }
.menu-holes i {
  position: absolute;
  top: .3rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--espresso);
}
.menu-holes i:nth-child(1) { left: 33%; }
.menu-holes i:nth-child(2) { left: 66%; }
.menu-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: .3rem 1rem;
  border-top: 1.5px solid var(--espresso);
  padding-top: .75rem;
  font-size: .74rem;
  color: var(--espresso);
}
.menu-head::before {
  content: "";
  position: absolute;
  right: 0;
  top: -1.3rem;
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background: var(--latte);
}
.menu-head b { font-weight: 700; }

.menu-body {
  display: grid;
  grid-template-columns: clamp(3.6rem, 8vw, 6.8rem) minmax(0, 1fr);
  gap: clamp(1.2rem, 3.5vw, 3rem);
  padding-top: clamp(2rem, 4vw, 3.2rem);
}
/* Palabra gigante en vertical, letra a letra a lo largo de toda la hoja */
.menu-rail {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  align-items: center;
  color: var(--latte);
  font-weight: 700;
  font-size: clamp(2.8rem, 6.6vw, 5.4rem);
  line-height: 1;
}
.menu-rail span {
  display: grid;
  place-items: center;
  width: 1em;
  height: 1em;
  transform: rotate(-90deg);
}
.menu-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 3rem); align-content: start; min-width: 0; }

.menu-sec-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: .7rem;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 2.1rem);
  line-height: 1;
  color: var(--espresso);
}
.menu-sec-title .gap { flex: 0 0 1.4em; }
/* Título corto (Tés): letras juntas y centradas en vez de repartidas por todo el ancho */
.menu-sec-title.is-junto { justify-content: center; gap: .3em; }
/* La hoja de bebidas va a dos columnas, como la carta impresa */
.menu-main-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.6rem, 4vw, 3.4rem); row-gap: clamp(1.8rem, 3.5vw, 2.6rem); }
.menu-main-cols .menu-sec-title { font-size: clamp(.9rem, 1.55vw, 1.2rem); }
.menu-main-cols .menu-item { padding: .3rem 0; }
.menu-main-cols .menu-name { font-size: 1rem; }
.menu-note { margin-bottom: .8rem; font-size: .8rem; color: rgba(43, 30, 22, .68); }

.menu-list { display: grid; }
.menu-item { padding: .5rem 0; }
.menu-row { display: flex; align-items: baseline; gap: .55rem; min-width: 0; }
.menu-name { font-size: 1.12rem; line-height: 1.25; }
.menu-dots {
  flex: 1;
  min-width: 1rem;
  height: .5rem;
  align-self: center;
  margin-top: .35rem;
  background: radial-gradient(circle, rgba(43, 30, 22, .5) 1px, transparent 1.4px) 0 50% / 9px 6px repeat-x;
}
.menu-price { font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.menu-desc {
  max-width: 52ch;
  margin-top: .15rem;
  font-size: .8rem;
  line-height: 1.45;
  color: rgba(43, 30, 22, .72);
}
.menu-tag {
  flex: none;
  margin-left: .2rem;
  padding: .2rem .5rem;
  background: var(--espresso);
  color: var(--leche);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-3deg);
}

/* Packs de brunch: recuadros con borde, como el bloque de extras de la carta impresa */
.menu-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.menu-box {
  padding: 1rem 1.1rem 1.1rem;
  border: 1.5px solid var(--espresso);
  border-radius: 10px;
}
.menu-box-name { font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.menu-inc {
  display: grid;
  gap: .3rem;
  margin: .65rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .8rem;
  line-height: 1.4;
  color: rgba(43, 30, 22, .75);
}
.menu-inc li { position: relative; padding-left: .9rem; }
.menu-inc li::before { content: "–"; position: absolute; left: 0; }

/* Extras de bebidas y bloque de suplementos, como en la carta impresa */
.menu-extra { margin-top: .8rem; padding-top: .6rem; border-top: 1px dotted rgba(43, 30, 22, .35); }
.menu-extra p { margin-bottom: .2rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.menu-extra .menu-row { padding: .1rem 0; }
.menu-extra-name { font-size: .88rem; line-height: 1.3; }
.menu-extra .menu-price { font-size: .88rem; }
.menu-sec-suple .menu-list {
  padding: .6rem 1.1rem;
  border: 1.5px solid var(--espresso);
  border-radius: 10px;
}
.menu-sec-suple .menu-name { font-size: .88rem; }

.menu-blob {
  justify-self: end;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .35rem;
  width: min(16rem, 78%);
  aspect-ratio: 1.3;
  padding: 1.4rem;
  background: var(--latte);
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
  color: var(--espresso);
  text-align: center;
  transform: rotate(-6deg);
}
.menu-blob b { font-size: .95rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.menu-blob span { max-width: 16ch; font-size: .72rem; font-weight: 700; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; }

.menu-foot {
  display: flex;
  justify-content: space-between;
  padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(.6rem, 1.5vw, 1.1rem);
  color: var(--latte);
  font-weight: 700;
  font-size: clamp(2.6rem, 10.5vw, 8.4rem);
  line-height: .82;
}

@media (max-width: 768px) {
  .menu-body { grid-template-columns: minmax(0, 1fr); }
  .menu-rail { display: none; }
  .menu-boxes { grid-template-columns: minmax(0, 1fr); }
  .menu-main-cols { grid-template-columns: minmax(0, 1fr); }
  .menu-main-cols .menu-sec-title { font-size: clamp(1rem, 4.4vw, 1.3rem); }
  .menu-holes i:nth-child(1) { left: 25%; }
  .menu-holes i:nth-child(2) { left: 65%; }
  .menu-head > span:nth-of-type(2) { display: none; }
}
@media (max-width: 480px) {
  .menu-head { flex-wrap: wrap; }
  .menu-head > span:nth-of-type(3) { display: none; }
  .menu-name { font-size: 1.04rem; }
  .menu-main-cols .menu-sec-title { font-size: clamp(.68rem, 3.5vw, 1rem); }
  /* Filas con etiqueta ("Extra: ..."): la etiqueta baja a su propia línea para no desbordar la hoja */
  .menu-row:has(.menu-tag) { display: grid; grid-template-columns: minmax(0, auto) minmax(1rem, 1fr) auto; }
  .menu-row:has(.menu-tag) .menu-tag { grid-row: 2; grid-column: 1 / -1; justify-self: start; margin: .4rem 0 0; white-space: normal; }
}

/* ── Emplatado ────────────────────────────────────────────────── */
.emplatado { background: var(--leche); overflow: clip; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.emplatado-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.emplatado-media {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lift);
}
.emplatado-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fallback-emplatado {
  background:
    radial-gradient(80% 100% at 20% 0%, #FBF5E9 0%, transparent 55%),
    linear-gradient(135deg, #F0E6D2 0%, #DCC9A9 55%, #C8AE8A 100%);
}
.plate-art {
  width: min(52%, 300px);
  color: var(--cafe);
  animation: plate-float 9s ease-in-out infinite alternate;
}
@keyframes plate-float {
  from { transform: translateY(-8px) rotate(-1.5deg); }
  to { transform: translateY(8px) rotate(1.5deg); }
}

/* ── ¿Por qué elegirnos? ─────────────────────────────────────── */
.porque { background: var(--crema); }
.porque-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.8rem);
}
.card {
  background: var(--leche);
  border: 1px solid rgba(107, 74, 50, .08);
  border-radius: var(--r-m);
  padding: 2rem 1.8rem 1.9rem;
  box-shadow: var(--shadow-soft);
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--crema);
  border: 1px solid rgba(107, 74, 50, .1);
  font-size: 1.55rem;
  margin-bottom: 1.3rem;
  transition: transform .55s var(--ease-out), background-color .4s;
}
.card:hover .card-icon {
  transform: rotate(-8deg) scale(1.08);
  background: var(--beige);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: .55rem;
}
.card p { font-size: .95rem; color: rgba(43, 30, 22, .68); }

/* ── Galería ──────────────────────────────────────────────────── */
.galeria { background: var(--leche); }
/* Cuadrícula de fotos: cuadrados iguales y huecos finos, como una galería de revista */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.gal-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--beige);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}
.gal-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.gal-tile::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 1.1rem .7rem;
  background: linear-gradient(to top, rgba(43, 30, 22, .34), rgba(43, 30, 22, 0) 50%);
  color: var(--leche);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transition: opacity .4s var(--ease-out);
}
.gal-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
}
.gal-tile video.on { opacity: 1; }
.gal-tile:hover img,
.gal-tile:hover video,
.gal-tile:focus-visible img,
.gal-tile:focus-visible video { transform: scale(1.06); }
.gal-tile:hover::after,
.gal-tile:focus-visible::after { opacity: 1; }

/* Visor de fotos: fondo claro, en la línea luminosa de la web */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(251, 248, 242, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: lb-in .3s var(--ease-out);
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
body.lb-open { overflow: hidden; }
.lb-stage {
  display: grid;
  justify-items: center;
  gap: .9rem;
  margin: 0;
  min-width: 0;
}
.lb-stage img,
.lb-stage video {
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  max-height: calc(100dvh - 11rem);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-lift);
  object-fit: contain;
}
.lb-stage img[hidden],
.lb-stage video[hidden] { display: none; }
.lb-stage figcaption {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: center;
  text-align: center;
  font-size: .95rem;
  color: var(--espresso);
}
.lb-count { font-size: .8rem; letter-spacing: .1em; color: rgba(43, 30, 22, .55); white-space: nowrap; }
.lb-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(107, 74, 50, .22);
  background: var(--leche);
  color: var(--espresso);
  transition: background-color .3s, transform .35s var(--ease-out);
}
.lb-btn:hover { background: var(--crema); transform: scale(1.06); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { position: absolute; top: clamp(.8rem, 2vw, 1.4rem); right: clamp(.8rem, 2vw, 1.4rem); z-index: 2; }

@media (max-width: 768px) {
  .gal-grid { gap: 8px; }
  .gal-tile { border-radius: 10px; }
  .gal-tile::after { display: none; }
  .lightbox { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; align-content: center; }
  .lb-stage { grid-row: 1; }
  .lb-prev, .lb-next { position: absolute; bottom: 1.2rem; }
  .lb-prev { left: 1rem; }
  .lb-next { right: 1rem; }
  .lb-stage img { max-height: calc(100dvh - 10rem); }
}
@media (max-width: 560px) {
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.galeria-note {
  margin-top: 2.4rem;
  text-align: center;
  font-size: .95rem;
  color: rgba(43, 30, 22, .6);
}
.galeria-note a {
  color: var(--cafe);
  font-weight: 700;
  border-bottom: 1.5px solid rgba(107, 74, 50, .3);
  transition: border-color .3s;
}
.galeria-note a:hover { border-color: var(--cafe); }

/* ── Visítanos ────────────────────────────────────────────────── */
.visitanos { background: var(--crema); padding-top: clamp(2.5rem, 5vw, 4rem); }
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  margin-bottom: clamp(1.5rem, 3.5vw, 3rem);
}
.visit-info {
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
  background: var(--leche);
  border-radius: var(--r-m);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  box-shadow: var(--shadow-soft);
}
.visit-block h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .7rem;
}
.visit-block p { color: rgba(43, 30, 22, .74); }
.visit-block a { color: var(--cafe); font-weight: 400; }
.visit-block a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hours li {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding-block: .3rem;
  color: rgba(43, 30, 22, .78);
}
.hours li i { flex: 1; border-bottom: 1.5px dotted rgba(107, 74, 50, .3); transform: translateY(-4px); }
.hours li span:last-child { font-weight: 700; color: var(--espresso); }

.map-wrap {
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(107, 74, 50, .1);
}
.map-wrap iframe {
  width: 100%;
  height: clamp(300px, 42vw, 430px);
  border: 0;
  filter: saturate(.82) sepia(.08);
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  background: var(--leche);
  border-top: 1px solid rgba(107, 74, 50, .1);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.2rem;
  text-align: center;
}
.footer-word {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  margin-bottom: .8rem;
}
.footer-word em { font-style: italic; font-weight: 700; color: var(--latte); }
.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--cafe);
  margin-bottom: 2.2rem;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.footer-nav a {
  font-size: .92rem;
  font-weight: 400;
  color: rgba(43, 30, 22, .7);
  transition: color .3s;
}
.footer-nav a:hover { color: var(--cafe); }
.footer-small { font-size: .82rem; color: rgba(43, 30, 22, .5); }

/* ── Reveals ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ── Parallax ─────────────────────────────────────────────────── */
[data-parallax] { will-change: transform; }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1024px) {
  .porque-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emplatado-grid { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
}

/* Con enlaces + nombre + CTA, el menú hamburguesa entra antes que el resto del móvil */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-right { justify-content: flex-end; }
  .nav-burger { display: block; }
}

@media (max-width: 768px) {
  .hero { height: 260vh; }
  .historia-panel { min-height: 88vh; align-items: flex-end; }
  .historia-card { margin: .8rem; padding: 1.25rem; }
  .historia-card .h2 { font-size: clamp(2.1rem, 9vw, 2.6rem); margin-bottom: .8rem; }
  .historia-card .lead { font-size: .95rem; margin-bottom: 1.1rem; }
  .historia-meta { font-size: .66rem; letter-spacing: .08em; }
  .ghost-word { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .porque-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .marquee-track { gap: 1.6rem; }
}

/* ═══════════════════ MULTIPÁGINA ═══════════════════ */

/* Transición suave entre páginas */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .25s; }
::view-transition-new(root) { animation-duration: .35s; }
main { animation: page-in .6s var(--ease-out) both; }
@keyframes page-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Nav sobre fondo claro en las subpáginas */
body.subpage .nav { color: var(--espresso); }

/* Página activa en la navegación: misma tinta, barra fija debajo */
.nav-links a[aria-current="page"]::after { right: 0; }
.mobile-menu nav a[aria-current="page"] { color: var(--cafe); font-style: italic; }

/* ── Cabecera de subpágina ────────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: clip;
  background: var(--leche);
  padding: clamp(8rem, 16vh, 11rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.page-hero .ghost-word { top: 2rem; left: auto; right: -2rem; }
.page-hero .container { position: relative; z-index: 1; max-width: var(--container); }
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin-bottom: 1.2rem;
  max-width: 16ch;
}
.page-title em { font-style: italic; font-weight: 700; color: var(--cafe); }
.page-intro {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(43, 30, 22, .68);
  max-width: 52ch;
}

/* ── El equipo ────────────────────────────────────────────────── */
.equipo { background: var(--leche); overflow: clip; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.equipo-photo {
  position: relative;
  margin: 0 0 clamp(2rem, 4.5vw, 3.5rem);
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
/* Encuadre más panorámico: las caras arriba son las protagonistas y el letrero central queda casi fuera */
.equipo-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.2 / 1;
  object-fit: cover;
  object-position: 50% 80%;
}
.equipo-photo figcaption {
  position: absolute;
  left: 1.4rem;
  bottom: 1.2rem;
  background: rgba(251, 248, 242, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: .55rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--espresso);
}
.equipo-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.equipo-duo {
  position: relative;
  padding: 0 clamp(1.5rem, 4vw, 3rem) clamp(2.2rem, 5vw, 3.5rem) 0;
}
.equipo-duo img {
  border-radius: var(--r-m);
  box-shadow: var(--shadow-lift);
  height: auto;
}
.equipo-duo .duo-a { width: 78%; }
.equipo-duo .duo-b {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 10 / 11;
  object-fit: cover;
  object-position: 50% 0;
  transform: rotate(2.5deg);
  border: 6px solid var(--leche);
}
.equipo-copy h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: .9rem;
}
.equipo-valores { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.6rem; }
.equipo-valores li {
  display: flex;
  flex-direction: column;
  padding-left: 1.1rem;
  border-left: 2px solid var(--beige);
}
.equipo-valores strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cafe);
}
.equipo-valores span { font-size: .92rem; color: rgba(43, 30, 22, .62); }

/* ── Horario: el día en barras sobre un eje de horas ──────────── */
.horario { background: var(--leche); padding-block: clamp(1rem, 2vw, 1.5rem) clamp(3rem, 6vw, 5.5rem); }
.horario-panel {
  display: grid;
  grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  background: var(--crema);
  border: 1px solid rgba(107, 74, 50, .1);
  border-radius: var(--r-l);
  padding: clamp(1.6rem, 4vw, 3.4rem);
  box-shadow: var(--shadow-soft);
}
.horario-copy .h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 1.2rem; }
.horario-estado {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 700;
  color: var(--espresso);
}
.horario-estado::before {
  content: "";
  flex: none;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--latte);
}
.horario-estado.is-abierto::before {
  background: var(--oliva);
  box-shadow: 0 0 0 4px rgba(131, 129, 95, .22);
}

.horario-chart { --lab: 12.4rem; --gap: 1.1rem; }
.horario-plot { position: relative; }
.horario-lineas {
  position: absolute;
  top: -.5rem;
  bottom: -.5rem;
  left: calc(var(--lab) + var(--gap));
  right: 0;
  border-right: 1px solid rgba(107, 74, 50, .16);
  background: repeating-linear-gradient(to right, rgba(107, 74, 50, .16) 0 1px, transparent 1px calc(100% / 6));
}
.horario-filas { position: relative; display: grid; gap: .9rem; }
.horario-fila {
  display: grid;
  grid-template-columns: var(--lab) minmax(0, 1fr);
  column-gap: var(--gap);
  align-items: center;
}
.horario-dia {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cafe);
}
.horario-fila.is-today .horario-dia::after {
  content: "Hoy";
  margin-left: .55rem;
  padding: .12rem .5rem;
  border-radius: 999px;
  background: #6c6a4c;
  color: var(--leche);
  font-size: .62rem;
  letter-spacing: .1em;
  vertical-align: .08em;
}
.horario-pista {
  position: relative;
  display: block;
  height: 3.1rem;
  border-radius: 999px;
  background: rgba(107, 74, 50, .08);
}
.horario-barra {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc((var(--abre) - var(--eje-ini)) / var(--span) * 100%);
  width: calc((var(--cierra) - var(--abre)) / var(--span) * 100%);
  display: flex;
  align-items: center;
  padding-inline: 1.3rem;
  border-radius: 999px;
  background: var(--cafe);
  color: var(--leche);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0 round 999px);
  transition: clip-path 1.1s var(--ease-out) calc(var(--i, 0) * 140ms + .25s);
}
.horario-barra::after {
  content: "";
  position: absolute;
  right: .95rem;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--latte);
}
.horario-panel.in .horario-barra { clip-path: inset(0 0 0 0 round 999px); }
.horario-fila.is-today .horario-barra { background: var(--espresso); }
.horario-ahora {
  position: absolute;
  z-index: 2;
  top: -.45rem;
  bottom: -.45rem;
  left: calc(var(--now) * 100%);
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--latte);
}
.horario-ahora::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--latte);
}
.horario-eje {
  display: flex;
  justify-content: space-between;
  margin: .9rem 0 0 calc(var(--lab) + var(--gap));
  font-size: .72rem;
  letter-spacing: .06em;
  color: rgba(43, 30, 22, .58);
}

/* ── Banner CTA ───────────────────────────────────────────────── */
.cta-banner-wrap { background: var(--leche); padding-block: 0 clamp(5rem, 10vw, 8rem); }
.cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--crema);
  border: 1px solid rgba(107, 74, 50, .1);
  border-radius: var(--r-l);
  padding: clamp(3rem, 6.5vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  box-shadow: var(--shadow-soft);
}
.cta-banner .h2 { margin-inline: auto; max-width: 22ch; }
.cta-banner .body-copy { margin-inline: auto; max-width: 44ch; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-steam {
  position: absolute;
  top: 1.2rem;
  right: 2rem;
  width: 74px;
  color: var(--cafe);
  opacity: .5;
}

/* ── Contacto: banner con foto del local ──────────────────────── */
.contacto-banner {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(220px, 27vw, 380px);
  margin-top: 4.75rem;
  overflow: hidden;
  background: var(--beige);
}
.contacto-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
}
.contacto-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 30, 22, .3), rgba(43, 30, 22, .06));
}
.contacto-banner-title {
  position: relative;
  z-index: 1;
  padding: .6rem clamp(1.6rem, 4vw, 3rem);
  border-radius: var(--r-m);
  background: rgba(43, 30, 22, .38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--leche);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .02em;
}

/* ── Contacto ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.8rem);
  margin-bottom: clamp(1.5rem, 3.5vw, 3rem);
}
.contact-card {
  background: var(--leche);
  border: 1px solid rgba(107, 74, 50, .08);
  border-radius: var(--r-m);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-soft);
}
.contact-hint {
  margin-top: .8rem;
  font-size: .9rem;
  color: rgba(43, 30, 22, .58);
}
.contact-hint a { color: var(--cafe); font-weight: 700; }

/* ── Responsive multipágina ───────────────────────────────────── */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
  .equipo-grid { grid-template-columns: 1fr; }
  .horario-panel { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-hero .ghost-word { display: none; }
  .cta-steam { display: none; }
  .equipo-duo { padding-right: 0; }
  .equipo-photo img { aspect-ratio: 1.6 / 1; }
}

@media (max-width: 640px) {
  /* Etiqueta del día encima de su barra */
  .horario-chart { --lab: 0rem; --gap: 0rem; }
  .horario-fila { grid-template-columns: minmax(0, 1fr); row-gap: .45rem; }
  .horario-filas { gap: 1.15rem; }
  .horario-lineas { top: 1.2rem; }
}

/* ── Movimiento reducido ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain,
  .marquee-track,
  .hint-dot,
  .steam-path,
  .plate-art,
  .fallback-historia::after,
  .fallback-emplatado::after { animation: none !important; }
  .reveal, [data-load] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  main { animation: none; }
  .horario-barra { clip-path: none !important; transition: none !important; }
  .hero { height: auto; min-height: 100vh; }
  .gal-tile img, .card, .btn, .lb-btn { transition: none; }
  .lightbox { animation: none; }
}

/* ── Opiniones: reseñas de Google en cristal sobre un marquee ─── */
.opiniones {
  --opi-gap: 1.25rem;
  position: relative;
  overflow: hidden;
  background: var(--leche);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.opiniones::before,
.opiniones::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.opiniones::before {
  width: min(46vw, 560px); aspect-ratio: 1;
  left: -8%; bottom: -12%;
  background: rgba(201, 174, 140, .5);
}
.opiniones::after {
  width: min(40vw, 480px); aspect-ratio: 1;
  right: -6%; bottom: 4%;
  background: rgba(131, 129, 95, .32);
}
.opiniones > .container,
.opi-marquee { position: relative; z-index: 1; }
.opi-defs { position: absolute; }
.opi-head { margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.opi-head .h2 { margin-bottom: 1.1rem; }

.opi-rating {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem 1.1rem .5rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(107, 74, 50, .12);
  color: var(--espresso);
  transition: background .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.opi-rating:hover { background: #fff; box-shadow: var(--shadow-soft); }
.opi-rating strong { font-size: 1.15rem; font-weight: 700; color: var(--cafe); }
.opi-count { font-size: .88rem; color: rgba(43, 30, 22, .66); }

.opi-stars { display: inline-flex; gap: .15rem; }
.opi-stars svg { width: 1rem; height: 1rem; fill: #E2A93B; }

.opi-marquee {
  display: flex;
  overflow: hidden;
  padding-block: 1rem 1.6rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.opi-set {
  display: flex;
  flex: none;
  gap: var(--opi-gap);
  padding-right: var(--opi-gap);
  animation: opi-marquee 75s linear infinite;
}
.opi-marquee:hover .opi-set,
.opi-marquee:focus-within .opi-set { animation-play-state: paused; }
@keyframes opi-marquee { to { transform: translateX(-100%); } }

.opi-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: none;
  width: 21rem;
  margin: 0;
  padding: 1.6rem;
  border-radius: var(--r-m);
  background: linear-gradient(145deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .3));
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
          backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: url(#opi-glass);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, .95),
    inset -1px -1px 1px rgba(107, 74, 50, .12),
    inset 0 0 22px rgba(255, 255, 255, .4),
    var(--shadow-soft);
}
.opi-who { display: flex; align-items: center; gap: .8rem; }
.opi-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--cafe);
  color: var(--leche);
  font-weight: 700;
  font-size: 1rem;
}
.opi-card:nth-child(2n) .opi-avatar { background: var(--oliva); }
.opi-card:nth-child(3n) .opi-avatar { background: var(--latte); color: var(--espresso); }
.opi-who figcaption { display: grid; line-height: 1.3; min-width: 0; }
.opi-who strong { font-weight: 700; font-size: 1rem; color: var(--espresso); }
.opi-who figcaption span { font-size: .78rem; color: rgba(43, 30, 22, .58); }
.opi-card blockquote { margin: 0; flex: 1; }
.opi-card blockquote p {
  font-size: .98rem;
  line-height: 1.6;
  color: rgba(43, 30, 22, .82);
}

@media (max-width: 640px) {
  .opi-card { width: 17.5rem; padding: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .opi-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .opi-set { animation: none !important; }
  .opi-set[aria-hidden="true"] { display: none; }
}
