/* =====================================================================
   CAFÉ DE AUTOR — Estilos
   1. Tokens   2. Base   3. Utilidades   4. Botones y enlaces
   5. Cabecera y menú móvil   6. Hero   7. Secciones
   8. Carta   9. Galería   10. Visítanos   11. Pie   12. Movimiento
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Paleta */
  --espresso: #1b1512;      /* lienzo oscuro principal */
  --espresso-2: #241c18;    /* superficie oscura elevada */
  --tostado: #3a2c24;       /* líneas sobre oscuro */
  --cafe: #6b4a36;
  --crema: #f6f0e6;         /* lienzo claro */
  --arena: #e8dcc8;         /* superficies claras secundarias */
  --arena-linea: #d9c9b0;
  --terracota: #a94f33;     /* acción principal */
  --terracota-hover: #8f412a;
  --laton: #c9a468;         /* acento refinado, solo sobre oscuro */
  --tinta: #231a16;         /* texto sobre claro */
  --tinta-suave: #66564b;   /* texto secundario sobre claro */
  --crema-suave: #bfb2a3;   /* texto secundario sobre oscuro */

  /* Tipografía */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-caption: 0.8125rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
  --fs-display: clamp(3.1rem, 1.6rem + 6.6vw, 7.4rem);

  /* Espaciado y forma */
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --max: 1240px;
  --radius: 2px;
  --header-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; cursor: pointer; }

em { font-style: italic; }

:focus-visible {
  outline: 2px solid var(--laton);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.section-light :focus-visible,
.site-footer :focus-visible { outline-color: var(--terracota); }

::selection { background: var(--laton); color: var(--espresso); }

/* ---------- 3. Utilidades ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  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: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--crema);
  color: var(--tinta);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracota);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  flex: none;
}
.section-dark .eyebrow,
.hero .eyebrow { color: var(--laton); }

.section-title {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 350;
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 120;
  max-width: 17ch;
  text-wrap: balance;
}
.section-title em,
.hero-title em,
.manifesto-text em,
.cta-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--terracota);
}
.section-dark .section-title em,
.cta-title em { color: var(--laton); }

.section-lead {
  font-size: var(--fs-lead);
  color: var(--tinta-suave);
  max-width: 46ch;
}
.section-dark .section-lead { color: var(--crema-suave); }

/* Datos pendientes de confirmar */
.pendiente {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--tinta-suave);
  border: 1px dashed currentColor;
  border-radius: var(--radius);
  padding: 0.1rem 0.5rem;
}
.section-dark .pendiente,
.site-footer .pendiente,
.hero .pendiente { color: var(--crema-suave); }

/* ---------- 4. Botones y enlaces ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-bd: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color var(--dur) ease, color var(--dur) ease,
              border-color var(--dur) ease, transform 120ms ease;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { --btn-bg: var(--terracota); --btn-fg: #fff; --btn-bd: var(--terracota); }
.btn-ghost-light { --btn-fg: var(--crema); --btn-bd: rgba(246, 240, 230, 0.45); }
.btn-ghost-dark { --btn-fg: var(--tinta); --btn-bd: rgba(35, 26, 22, 0.35); }
.btn-sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.78rem; }

@media (hover: hover) {
  .btn-primary:hover { --btn-bg: var(--terracota-hover); --btn-bd: var(--terracota-hover); }
  .btn-ghost-light:hover { --btn-bg: var(--crema); --btn-fg: var(--espresso); --btn-bd: var(--crema); }
  .btn-ghost-dark:hover { --btn-bg: var(--tinta); --btn-fg: var(--crema); --btn-bd: var(--tinta); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--terracota);
  padding-block: 0.5rem;
}
.link-arrow::after {
  content: "→";
  font-size: 1.05rem;
  letter-spacing: 0;
  transition: transform var(--dur) var(--ease-out);
}
.link-arrow-light { color: var(--laton); }
@media (hover: hover) {
  .link-arrow:hover::after { transform: translateX(5px); }
  .link-arrow:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
}

/* ---------- 5. Cabecera y menú móvil ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--crema);
  transition: background-color 300ms ease, border-color 300ms ease, transform 300ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(27, 21, 18, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--tostado);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 30px; height: 30px; color: var(--laton); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.005em;
}
.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crema-suave);
  margin-top: 0.2rem;
}

.main-nav ul { display: flex; gap: clamp(1.25rem, 2vw, 2rem); }
.main-nav a { white-space: nowrap; }
.main-nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.5rem;
  color: var(--crema);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.15rem;
  height: 1px;
  background: var(--laton);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-out);
}
.main-nav a:hover::after,
.main-nav a[aria-current="true"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  margin-right: -10px;
  background: none;
  border: 0;
  position: relative;
  z-index: 60;
}
.menu-toggle-bars,
.menu-toggle-bars::before {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: currentColor;
  transition: transform 300ms var(--ease-out), top 300ms var(--ease-out);
}
.menu-toggle-bars { top: 20px; }
.menu-toggle-bars::before { content: ""; left: 0; right: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { top: 23.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { top: 0; transform: rotate(-90deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--espresso);
  color: var(--crema);
  padding: calc(var(--header-h) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 260ms ease;
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu li { border-bottom: 1px solid var(--tostado); }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  font-weight: 350;
  text-decoration: none;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 500ms var(--ease-out), opacity 500ms ease, color var(--dur) ease;
}
.mobile-menu nav a span {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--laton);
}
.mobile-menu.is-open nav a { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: 40ms; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: 80ms; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: 120ms; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: 160ms; }
.mobile-menu nav a:active { color: var(--laton); }
.mobile-menu-foot { display: grid; gap: 1rem; margin-top: 2.5rem; }
.mobile-menu-foot .btn { width: 100%; }
.mobile-menu-hours { font-size: 0.9rem; color: var(--crema-suave); text-align: center; }

@media (max-width: 1099px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  :root { --header-h: 66px; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--espresso);
  color: var(--crema);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% center;
  animation: hero-zoom 2.4s var(--ease-out) both;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 21, 18, 0.6) 0%, rgba(27, 21, 18, 0.5) 30%, rgba(27, 21, 18, 0.88) 62%, var(--espresso) 100%);
}
.hero-inner {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(5rem, 4rem + 4vw, 7rem);
}
.hero-copy { max-width: 40rem; }
.hero-eyebrow { animation: rise 900ms var(--ease-out) 150ms both; }
.hero-title {
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-weight: 330;
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero-line { display: block; animation: sign-on 1400ms var(--ease-out) both; }
.hero-title em { display: inline-block; animation: flicker 1600ms linear 1300ms both; }
.hero-line:nth-child(1) { animation-delay: 250ms; }
.hero-line:nth-child(2) { animation-delay: 380ms; padding-left: 0.6em; }
.hero-title em { color: var(--laton); }
.hero-tagline {
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.7rem);
  font-weight: 300;
  color: var(--crema);
  animation: rise 1000ms var(--ease-out) 520ms both;
}
.hero-lead {
  margin-top: 0.9rem;
  max-width: 34rem;
  font-size: var(--fs-lead);
  color: var(--crema-suave);
  animation: rise 1000ms var(--ease-out) 620ms both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
  animation: rise 1000ms var(--ease-out) 720ms both;
}
.hero-status {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--crema-suave);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  animation: rise 1000ms var(--ease-out) 820ms both;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--crema-suave);
  flex: none;
}
.status-dot.is-open { background: #8fb28a; box-shadow: 0 0 0 4px rgba(143, 178, 138, 0.18); }

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  width: 44px; height: 64px;
  display: grid;
  place-items: center;
}
.hero-scroll span {
  width: 1px; height: 100%;
  background: linear-gradient(var(--laton), transparent);
  transform-origin: top;
  animation: scroll-hint 2.4s ease-in-out infinite;
}

@media (min-width: 960px) {
  .hero { align-items: center; }
  .hero-media { left: 44%; }
  .hero-media::after {
    background: linear-gradient(90deg, var(--espresso) 0%, rgba(27, 21, 18, 0.55) 22%, rgba(27, 21, 18, 0.05) 60%);
  }
  .hero-inner { padding-bottom: 5rem; }
}

@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- 7. Secciones ---------- */
.section { padding-block: var(--section-y); }
.section-light { background: var(--crema); color: var(--tinta); }
.section-dark { background: var(--espresso); color: var(--crema); }

.section-head { margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section-head-center { text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}
.section-head-center .section-title,
.section-head-center .section-lead { margin-inline: auto; }
.section-head-center .section-lead { margin-top: 1.25rem; }
.section-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

/* Manifiesto */
.manifesto {
  background: var(--espresso);
  color: var(--crema);
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  border-top: 1px solid var(--tostado);
}
.manifesto-text {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 24ch;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}
.manifesto-text em { color: var(--laton); }

/* Historia */
.story-grid {
  display: grid;
  gap: clamp(2.5rem, 2rem + 4vw, 6rem);
  align-items: start;
}
.story-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--arena);
  aspect-ratio: 4 / 5;
}
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-copy .section-title { margin-bottom: 2rem; }
.prose { display: grid; gap: 1.1rem; max-width: 36rem; color: var(--tinta-suave); font-size: var(--fs-lead); }
.prose p:first-child { color: var(--tinta); }

.pillars {
  display: grid;
  gap: 0;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-top: 1px solid var(--arena-linea);
}
.pillar {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--arena-linea);
}
.pillar-num {
  grid-row: span 2;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--terracota);
  padding-top: 0.35rem;
}
.pillar h3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}
.pillar p { color: var(--tinta-suave); font-size: 0.975rem; }

@media (max-width: 959px) {
  .story-media { aspect-ratio: 3 / 2; }
}
@media (min-width: 960px) {
  .story-grid { grid-template-columns: 5fr 6fr; }
  .story-media { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Favoritos */
.fav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.fav-card { display: flex; flex-direction: column; }
.fav-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--espresso-2);
  margin-bottom: 1.4rem;
}
.fav-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.fav-tag {
  position: absolute;
  left: 0.85rem; top: 0.85rem;
  background: rgba(27, 21, 18, 0.82);
  color: var(--crema);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
}
.fav-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--tostado);
  margin-bottom: 0.75rem;
}
.fav-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.3;
}
.fav-price {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--laton);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fav-desc { font-size: 0.95rem; color: var(--crema-suave); }

@media (hover: hover) {
  .fav-card:hover .fav-media img { transform: scale(1.045); }
}

@media (max-width: 1023px) {
  .fav-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 20rem);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .fav-grid::-webkit-scrollbar { display: none; }
  .fav-card { scroll-snap-align: start; }
}

/* ---------- 8. Carta ---------- */
.menu-tabs-wrap {
  position: relative;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  border-bottom: 1px solid var(--arena-linea);
}
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
  position: relative;
  flex: none;
  background: none;
  border: 0;
  padding: 1rem 1.1rem;
  min-height: 48px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tinta-suave);
  transition: color var(--dur) ease;
}
.menu-tab::after {
  content: "";
  position: absolute;
  left: 1.1rem; right: 1.1rem; bottom: -1px;
  height: 2px;
  background: var(--terracota);
  transform: scaleX(0);
  transition: transform 350ms var(--ease-out);
}
.menu-tab:hover { color: var(--tinta); }
.menu-tab[aria-selected="true"] { color: var(--tinta); }
.menu-tab[aria-selected="true"]::after { transform: scaleX(1); }
.menu-tab:focus-visible { outline-offset: -4px; }

@media (max-width: 1023px) {
  .menu-tabs { flex-wrap: nowrap; justify-content: flex-start; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .menu-tabs-wrap::after {
    content: "";
    position: absolute;
    right: calc(var(--gutter) * -1); top: 0; bottom: 1px;
    width: 3rem;
    background: linear-gradient(90deg, rgba(246, 240, 230, 0), var(--crema));
    pointer-events: none;
  }
}

.menu-panel { animation: fade-in 450ms var(--ease-out) both; }
.menu-panel[hidden] { display: none; }
.menu-panel-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
  max-width: 40rem;
}
.menu-panel-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  font-weight: 350;
  line-height: 1.3;
}
.menu-panel-intro { color: var(--tinta-suave); }

.menu-list {
  display: grid;
  column-gap: clamp(2rem, 1rem + 4vw, 5rem);
}
@media (min-width: 768px) { .menu-list { grid-template-columns: 1fr 1fr; } }

.menu-item {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--arena-linea);
  animation: item-in 600ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 30ms);
  transition: background-color var(--dur) ease;
}
@media (hover: hover) {
  .menu-item:hover .menu-item-name { color: var(--terracota); }
  .menu-item:hover .menu-item-leader { border-bottom-color: var(--terracota); }
}
.menu-item-name, .menu-item-leader { transition: color var(--dur) ease, border-color var(--dur) ease; }
.menu-subhead {
  grid-column: 1 / -1;
  padding-top: 2.25rem;
  padding-bottom: 0.25rem;
  animation: item-in 600ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 30ms);
}
.menu-subhead:first-child { padding-top: 0; }
.menu-subhead h4 {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracota);
}
.menu-item-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.menu-item-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 450;
  line-height: 1.3;
}
.menu-item-leader {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 1px dotted var(--arena-linea);
  transform: translateY(-0.3rem);
}
.menu-item-price {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--tinta);
}
.menu-item-desc {
  margin-top: 0.35rem;
  color: var(--tinta-suave);
  font-size: 0.95rem;
  max-width: 34rem;
}
.menu-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.chip {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius);
  background: var(--arena);
  color: var(--cafe);
}
.chip-outline { background: none; border: 1px solid var(--arena-linea); color: var(--tinta-suave); }

.menu-panel-note {
  margin-top: 1.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--terracota);
  color: var(--tinta-suave);
  font-size: 0.95rem;
  max-width: 44rem;
}

.menu-notes {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--tinta-suave);
  text-align: center;
}

/* ---------- 8b. Tu foto sobre el café ---------- */
.print { border-top: 1px solid var(--arena-linea); }
.print-grid { display: grid; gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: center; }
@media (min-width: 960px) { .print-grid { grid-template-columns: 6fr 5fr; } .print-media { order: 2; } }
.print-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--arena);
}
@media (max-width: 959px) { .print-media { aspect-ratio: 3 / 2; } }
.print-media img { width: 100%; height: 100%; object-fit: cover; }
.print-copy .section-title { margin-bottom: 1.25rem; }
.print-steps {
  margin-block: 2.25rem;
  border-top: 1px solid var(--arena-linea);
  counter-reset: paso;
}
.print-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--arena-linea);
  counter-increment: paso;
}
.print-step::before {
  content: "0" counter(paso);
  grid-row: span 2;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--terracota);
  padding-top: 0.3rem;
}
.print-step h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 450; line-height: 1.3; }
.print-step p { color: var(--tinta-suave); font-size: 0.975rem; }
.print-ideas { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.print-ideas li {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--arena-linea);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--tinta);
  transition: border-color var(--dur) ease, color var(--dur) ease;
}
@media (hover: hover) { .print-ideas li:hover { border-color: var(--terracota); color: var(--terracota); } }
.print-facts { display: grid; gap: 0.75rem; margin: 1.75rem 0 0; }
.print-facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--arena-linea); }
.print-facts dt { font-size: 0.9rem; color: var(--tinta-suave); }
.print-facts dd { margin: 0; font-size: 0.95rem; }
.print-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
@media (max-width: 480px) { .print-actions .btn { flex: 1 1 100%; } }

/* ---------- 9. Galería ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 16vw, 230px);
  grid-auto-flow: dense;
  gap: clamp(0.5rem, 0.3rem + 0.8vw, 1rem);
}
.gallery-item.is-alta { grid-row: span 2; }
.gallery-item.is-ancha { grid-column: span 2; }
.gallery-btn {
  display: block;
  width: 100%; height: 100%;
  padding: 0;
  border: 0;
  background: var(--espresso-2);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out), opacity 400ms ease;
}
@media (hover: hover) {
  .gallery-btn:hover img { transform: scale(1.04); }
  .gallery-grid:hover .gallery-btn img { opacity: 0.7; }
  .gallery-grid:hover .gallery-btn:hover img { opacity: 1; }
}
.gallery-note { margin-top: 1.25rem; }

@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
  .gallery-item.is-ancha { grid-column: span 2; }
}

.lightbox {
  width: min(92vw, 1100px);
  max-height: 88vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(15, 11, 9, 0.9); }
.lightbox[open] { animation: fade-in 300ms ease both; }
.lightbox-figure img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-figure figcaption { margin-top: 0.75rem; color: var(--crema-suave); font-size: 0.9rem; text-align: center; }
.lightbox-close {
  position: absolute;
  top: -3.25rem; right: 0;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid rgba(246, 240, 230, 0.4);
  border-radius: 50%;
  color: var(--crema);
  font-size: 1.6rem;
  line-height: 1;
  transition: background-color var(--dur) ease, color var(--dur) ease;
}
.lightbox-close:hover { background: var(--crema); color: var(--espresso); }

/* ---------- 10. Visítanos ---------- */
.visit-grid {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
}
@media (min-width: 960px) { .visit-grid { grid-template-columns: 5fr 6fr; align-items: stretch; } }

.visit-info { display: grid; gap: 2.25rem; align-content: start; }
.visit-label {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 0.85rem;
}
.visit-address {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 350;
  line-height: 1.35;
}
.visit-address small {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--tinta-suave);
  margin-top: 0.4rem;
}

.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--arena-linea);
  text-align: left;
  font-weight: 400;
}
.hours td { text-align: right; color: var(--tinta-suave); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--tinta); font-weight: 600; }
.hours tr.is-today th::after {
  content: "Hoy";
  margin-left: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracota);
}
.hours-note { margin-top: 0.75rem; }

.contact-list { display: grid; gap: 0.6rem; }
.contact-list a {
  text-decoration: none;
  border-bottom: 1px solid var(--arena-linea);
  transition: border-color var(--dur) ease, color var(--dur) ease;
}
.contact-list a:hover { border-color: var(--terracota); color: var(--terracota); }
.contact-list .contact-k {
  display: inline-block;
  min-width: 6.5rem;
  color: var(--tinta-suave);
  font-size: 0.9rem;
}

.visit-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 480px) { .visit-actions .btn { flex: 1 1 100%; } }

.visit-map {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--arena);
}
.visit-map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(0.35) sepia(0.15);
}
.map-placeholder {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  background: var(--arena);
  border: 1px solid var(--arena-linea);
}
.map-placeholder svg { width: 44px; height: 44px; color: var(--terracota); margin: 0 auto 1rem; }
.map-placeholder p { max-width: 22rem; color: var(--tinta-suave); }
.map-placeholder strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--tinta); margin-bottom: 0.35rem; }

/* CTA final */
.cta-band {
  background: var(--espresso);
  color: var(--crema);
  padding-block: clamp(4rem, 3rem + 5vw, 7.5rem);
  position: relative;
  overflow: hidden;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 2rem 3rem;
}
.cta-title {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 330;
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 14ch;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 480px) { .cta-actions .btn { flex: 1 1 100%; } }

/* ---------- 11. Pie ---------- */
.site-footer {
  background: #140f0d;
  color: var(--crema);
  padding-top: clamp(3.5rem, 3rem + 3vw, 5.5rem);
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  font-size: 0.95rem;
}
.site-footer :focus-visible { outline-color: var(--laton); }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--tostado);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; } }

.brand-footer { margin-bottom: 1rem; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--crema-suave); font-size: 1.1rem; }
.footer-title {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--laton);
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { text-decoration: none; color: var(--crema-suave); transition: color var(--dur) ease; }
.footer-col a:hover { color: var(--crema); }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; color: var(--crema-suave); font-variant-numeric: tabular-nums; }
.footer-hours li span:first-child { color: var(--crema); }

.social { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--tostado);
  border-radius: 50%;
  color: var(--crema);
  transition: background-color var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}
.social a:hover { background: var(--crema); color: var(--espresso); border-color: var(--crema); }
.social svg { width: 18px; height: 18px; }
.social-empty { color: var(--crema-suave); font-size: 0.9rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--crema-suave);
}
.legal-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; }
.legal-links a { text-decoration: none; color: var(--crema-suave); }
.legal-links a:hover { color: var(--crema); text-decoration: underline; text-underline-offset: 4px; }

/* Barra rápida móvil */
.quickbar { display: none; }
@media (max-width: 767px) {
  .quickbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    background: rgba(27, 21, 18, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--tostado);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(110%);
    transition: transform 400ms var(--ease-out);
  }
  .quickbar.is-visible { transform: none; }
  .quickbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 60px;
    color: var(--crema);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    user-select: none;
    -webkit-user-select: none;
  }
  .quickbar a + a { border-left: 1px solid var(--tostado); }
  .quickbar a:active { background: var(--espresso-2); }
  .quickbar svg { width: 20px; height: 20px; color: var(--laton); }
  .quickbar-primary { background: var(--terracota); }
  .quickbar-primary svg { color: #fff !important; }
  .site-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

.to-top {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  z-index: 40;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--espresso);
  color: var(--crema);
  border: 1px solid var(--tostado);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 300ms ease, transform 300ms var(--ease-out), visibility 300ms, background-color var(--dur) ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--terracota); border-color: var(--terracota); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 767px) { .to-top { display: none; } }

/* ---------- 11b. Cinta de categorías ---------- */
.ticker {
  background: var(--espresso);
  color: var(--crema);
  border-top: 1px solid var(--tostado);
  border-bottom: 1px solid var(--tostado);
  overflow: hidden;
  padding-block: 1.1rem;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 80s linear infinite;
}
.ticker-group { display: flex; }
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) ease;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-inline: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.ticker a:hover, .ticker a:focus-visible { color: var(--laton); }
.ticker a:focus-visible { outline-offset: -4px; }
.ticker a::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--laton);
  margin-left: 1.5rem;
}

/* ---------- 12. Movimiento ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Fotos: se descubren de abajo arriba, como una persiana, con un ligero zoom */
.reveal-media { opacity: 1; transform: none; }
.fav-card.reveal .fav-media,
.gallery-item.reveal .gallery-btn {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1200ms var(--ease-out) var(--reveal-delay, 0ms);
}
/* En figuras que se observan a sí mismas, la persiana va en la imagen
   (un elemento recortado entero no dispara el IntersectionObserver). */
.reveal-media img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1200ms var(--ease-out), transform 1600ms var(--ease-out) !important;
}
.reveal-media.is-in img { clip-path: inset(0 0 0 0); }
.reveal-media img,
.fav-card.reveal .fav-media img,
.gallery-item.reveal .gallery-btn img { transform: scale(1.14); transition: transform 1600ms var(--ease-out) var(--reveal-delay, 0ms), opacity 400ms ease; }
.fav-card.reveal.is-in .fav-media,
.gallery-item.reveal.is-in .gallery-btn { clip-path: inset(0 0 0 0); }
.reveal-media.is-in img,
.fav-card.reveal.is-in .fav-media img,
.gallery-item.reveal.is-in .gallery-btn img { transform: scale(1); }
@media (hover: hover) {
  .fav-card.reveal.is-in:hover .fav-media img,
  .gallery-item.reveal.is-in .gallery-btn:hover img { transform: scale(1.045); transition-delay: 0ms; }
}

/* La rayita de las etiquetas se dibuja al aparecer */
.eyebrow.reveal::before { transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease-out) 200ms; }
.eyebrow.reveal.is-in::before { transform: scaleX(1); }

/* Cabecera que se aparta al bajar y vuelve al subir */
.site-header.is-hidden { transform: translateY(-100%); }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes sign-on {
  from { opacity: 0; letter-spacing: 0.14em; filter: blur(8px); }
  60% { filter: blur(0); }
  to { opacity: 1; letter-spacing: -0.025em; filter: blur(0); }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  8% { opacity: 0.35; } 12% { opacity: 1; } 18% { opacity: 0.5; } 22% { opacity: 1; } 40% { opacity: 0.8; } 44% { opacity: 1; }
}
@keyframes item-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.08); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
@keyframes scroll-hint {
  0% { transform: scaleY(0); opacity: 0; }
  30% { opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-media img, .fav-card.reveal .fav-media, .gallery-item.reveal .gallery-btn { clip-path: none; }
  .reveal-media img, .fav-card.reveal .fav-media img, .gallery-item.reveal .gallery-btn img { transform: none; }
  .ticker-track { animation: none; width: auto; }
  .ticker-group { flex-wrap: wrap; justify-content: center; }
  .ticker-group[aria-hidden] { display: none; }
}
