/* ============================================================
   ARAU · Grilled Brunch & Specialty Coffee — styles
   Paleta real: crema cálida + terracota + espresso
   Aussie soul, Argentinian heart.
   ============================================================ */

/* ----- Lato self-hosted (subset latin) ----- */
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/lato-400.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/lato-400i.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/lato-700.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 900; font-display: swap; src: url(fonts/lato-900.woff2) format('woff2'); }

:root {
  /* Terracota (marca) — paleta oficial ARAU */
  --terra: #af452e;
  --terra-deep: #8c3724;
  --terra-bright: #d47b3b;  /* naranja oficial (acento) */

  /* Crema / hueso — paleta oficial */
  --cream: #e6dcc2;
  --cream-100: #efe8d7;
  --cream-200: #dccfb2;
  --cream-card: #f3eedf;

  /* Oscuro (texto + fondos) — #333 oficial */
  --espresso: #333333;
  --espresso-800: #3d3b39;
  --espresso-700: #474441;

  /* Acentos cálidos */
  --gold: #d47b3b;        /* naranja oficial */
  --olive: #7c8456;
  --olive-deep: #4f6b2e;  /* estados "ok" */

  /* Texto */
  --ink: #333333;
  --ink-soft: #5e564d;
  --on-dark: #efe7d5;
  --on-dark-soft: #cabb9f;

  /* Sistema */
  --header-h: 70px;
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-display: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--terra); color: #fff; }

/* ----------------------------- Helpers ----------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 8rem); }

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  z-index: 200;
  background: var(--terra);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.ital { font-style: italic; font-weight: 500; }

.inline-link {
  color: var(--terra-deep);
  font-weight: 600;
  border-bottom: 1.5px solid rgba(175, 69, 46, .35);
  transition: border-color .2s var(--ease);
}
.inline-link:hover { border-color: var(--terra); }

/* ----------------------------- Tipografía base ----------------------------- */
.eyebrow,
.section-eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-eyebrow { color: var(--terra-deep); margin-bottom: 1rem; }
.section-eyebrow--cream { color: var(--gold); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.04;
  letter-spacing: -.015em;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  color: var(--ink);
  text-wrap: balance;
}
.section-title--cream { color: var(--cream-100); }
.section-title .ital { color: var(--terra); }
#hist-title { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.section-title--cream .ital { color: var(--gold); }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-weight: 600;
  font-size: .94rem;
  line-height: 1;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--terra {
  background: var(--terra);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(175, 69, 46, .9);
}
.btn--terra:hover {
  background: var(--terra-deep);
  box-shadow: 0 14px 30px -12px rgba(156, 58, 31, .95);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(51, 51, 51, .28);
}
.btn--ghost:hover {
  border-color: var(--terra);
  color: var(--terra-deep);
  background: rgba(175, 69, 46, .06);
}

.btn--lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(243, 233, 214, .9);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(51, 51, 51, .08), 0 10px 30px -24px rgba(51, 51, 51, .5);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); }
.brand__mark { color: var(--terra); display: inline-flex; }
/* Isologo oficial (no encoger dentro de los flex) */
.logo-mark { flex: none; display: block; }
.brand__mark .logo-mark { width: 38px; height: 41px; }
.brand--footer .brand__mark .logo-mark { width: 32px; height: 34px; }
.hero__cue-mark .logo-mark { width: 30px; height: 32px; }
/* Wordmark "ARAU" (letras del logo oficial) — reemplaza el texto ARAU */
.arau-word { display: inline-block; height: .74em; width: 2.95em; max-width: none; vertical-align: -0.04em; }
.brand .arau-word { height: 1.45rem; width: 5.78rem; vertical-align: middle; }
.brand--footer .arau-word { height: 1.25rem; width: 4.98rem; }
.hero__lead .arau-word, p .arau-word { height: .82em; width: 3.27em; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: .14em;
  padding-left: .06em;
}

.nav__list { display: flex; gap: 2rem; list-style: none; padding: 0; }
.nav__list a {
  position: relative;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: .3rem;
  transition: color .2s var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: .8rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(51, 51, 51, .2);
  border-radius: 10px;
  padding: 0 11px;
}
.nav-toggle__bar { height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: min(94vh, 860px);
  /* el header (sticky, transparente) se superpone: la foto llega al borde superior */
  margin-top: calc(-1 * var(--header-h));
  padding-block: clamp(7rem, 16vh, 12rem) clamp(3.5rem, 8vw, 6rem);
  background: var(--espresso);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(51, 51, 51, .38) 0%, rgba(51, 51, 51, .12) 32%, rgba(51, 51, 51, .72) 100%),
    radial-gradient(85% 110% at 0% 70%, rgba(51, 51, 51, .68), transparent 72%);
}
.hero__inner { position: relative; }
.hero__copy { max-width: 44rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--terra-deep);
  margin-bottom: 1.4rem;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 0 0 4px rgba(175, 69, 46, .18);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: clamp(2.6rem, 6.5vw, 4.7rem);
  line-height: 1.0;
  letter-spacing: -.025em;
  color: var(--ink);
  text-wrap: balance;
}
.hero__title-accent { font-style: italic; font-weight: 500; color: var(--terra); }

.hero__lead {
  max-width: 46ch;
  margin-top: 1.5rem;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero__lead strong { color: var(--ink); font-weight: 600; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

.hero__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  padding: 0;
  margin-top: 2.8rem;
}
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust-num {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; gap: .1em;
}
.hero__trust-star { color: var(--gold); font-size: .8em; }
.hero__trust-label { font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin-top: .2rem; }
.hero__trust-sep { width: 1px; height: 34px; background: rgba(51, 51, 51, .18); }

/* ----------------------------- Marquee ----------------------------- */
.marquee {
  background: var(--terra);
  color: var(--cream-100);
  overflow: hidden;
  padding-block: .9rem;
}
.marquee__track {
  display: flex; align-items: center; gap: 1.6rem;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  white-space: nowrap;
}
.marquee__sep { color: var(--gold); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ----------------------------- Historia ----------------------------- */
.historia { background: var(--cream); }
.historia__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.historia__frame { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.historia__cap { font-family: var(--font-display); font-style: italic; color: var(--ink-soft); font-size: .95rem; }
.historia__body p { color: var(--ink-soft); margin-bottom: 1.1rem; font-size: 1.06rem; }
.historia__body em { color: var(--terra-deep); font-style: italic; font-weight: 500; }
.historia__sign {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--terra-deep) !important;
  margin-top: 1.4rem;
  font-size: 1.05rem;
}

/* ---- Cierre con el corazón de manos (sello de marca) ---- */
.heart-close {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  text-align: center;
  margin-top: clamp(2.6rem, 5vw, 4.2rem);
}
.heart-close__img {
  width: clamp(140px, 20vw, 210px);
  height: auto;
  display: block;
}
.heart-close__line {
  margin: 0;
  font: 600 .8rem/1.4 var(--font-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terra);
}


.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(51, 51, 51, .14);
}
.stat { display: flex; flex-direction: column; gap: .4rem; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.1rem);
  font-weight: 600; line-height: 1;
  color: var(--terra);
  font-variant-numeric: tabular-nums;
}
.stat__star { color: var(--gold); font-size: .5em; vertical-align: super; }
.stat__label { font-size: .92rem; color: var(--ink-soft); max-width: 18ch; }

/* ----------------------------- Carta ----------------------------- */
.carta { background: var(--cream-200); }
.carta__head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }
.carta__sub { color: var(--ink-soft); margin-top: 1rem; font-size: 1.05rem; }

.dishes {
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.2vw, 1.4rem);
}
.dishes .dish__photo { height: 290px; }
.dish {
  display: flex; flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--cream-card);
  border: 1px solid rgba(51, 51, 51, .08);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.dish:hover {
  transform: translateY(-5px);
  border-color: rgba(175, 69, 46, .4);
  box-shadow: 0 26px 46px -30px rgba(51, 51, 51, .55);
}
.dish__art {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 16px;
  color: var(--terra);
  background: radial-gradient(circle at 35% 30%, rgba(212, 123, 59, .18), rgba(212, 123, 59, .08));
  border: 1px solid rgba(175, 69, 46, .22);
}
.dish__name { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--ink); line-height: 1.15; }
.dish__desc { color: var(--ink-soft); font-size: .97rem; }
.dish__text { display: flex; flex-direction: column; gap: .5rem; }
.dish__tag {
  align-self: flex-start;
  margin-top: .3rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--terra-deep);
  padding: .28rem .7rem;
  border: 1px solid rgba(175, 69, 46, .28);
  border-radius: 100px;
}

.carta__cta { text-align: center; margin-top: clamp(2.5rem, 6vw, 4rem); }
.carta__note { color: var(--ink-soft); font-size: .9rem; margin-top: 1rem; }

/* ----------------------------- Café (oscuro) ----------------------------- */
.cafe { background: var(--espresso); color: var(--on-dark); }
.cafe__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.cafe__art { display: grid; place-items: center; }
.cafe__lead { color: var(--on-dark-soft); margin-top: 1.3rem; font-size: 1.08rem; max-width: 48ch; }
.cafe__lead strong { color: var(--cream-100); font-weight: 600; }
.cafe__chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.cafe__chips li {
  font-size: .85rem; font-weight: 500;
  color: var(--on-dark);
  padding: .45rem .9rem;
  border: 1px solid rgba(244, 234, 217, .2);
  border-radius: 100px;
  background: rgba(244, 234, 217, .04);
}

/* ----------------------------- Eventos ----------------------------- */
.eventos { background: var(--cream); }
.eventos__head { text-align: center; max-width: 620px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }


.loyalty {
  display: flex; align-items: center; gap: 1.2rem;
  margin-top: 2rem;
  padding: clamp(1.4rem, 3vw, 1.8rem) clamp(1.5rem, 4vw, 2.4rem);
  background: linear-gradient(120deg, var(--terra), var(--terra-deep));
  border-radius: var(--radius);
  color: var(--cream-100);
}
.loyalty__badge {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: var(--gold);
  font-size: 1.4rem;
}
.loyalty__text { font-size: 1.02rem; }
.loyalty__text strong { color: #fff; font-weight: 600; }
.loyalty__cta {
  flex: 0 0 auto; margin-left: auto;
  display: inline-flex; align-items: center;
  padding: .7rem 1.35rem;
  background: var(--cream-100); color: var(--terra-deep);
  font-weight: 600; border-radius: 999px; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.loyalty__cta:hover { background: #fff; transform: translateY(-1px); }

/* ----------------------------- Experiencia ----------------------------- */
.experiencia { background: var(--cream-200); }
.experiencia__head { text-align: center; max-width: 620px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }


/* ----------------------------- Visitanos (oscuro) ----------------------------- */
.visitanos { background: var(--espresso); color: var(--on-dark); }
.visitanos__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.info { margin-top: 2.2rem; display: grid; gap: 1.5rem; }
.info__row {
  display: grid; grid-template-columns: 110px 1fr; gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(244, 234, 217, .12);
}
.info__row:last-child { border-bottom: 0; padding-bottom: 0; }
.info__row dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding-top: .2rem; }
.info__row dd { color: var(--on-dark); line-height: 1.7; }
.info__link { color: var(--cream-100); border-bottom: 1px solid rgba(212, 123, 59, .5); transition: color .2s var(--ease), border-color .2s var(--ease); }
.info__link:hover { color: var(--gold); border-color: var(--gold); }

.hours { list-style: none; padding: 0; display: grid; gap: .5rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.hours li > span:first-child { color: var(--on-dark-soft); }
.hours--closed > span:last-child { color: var(--terra-bright); font-style: italic; }

.socials { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.social {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem;
  border: 1px solid rgba(244, 234, 217, .18);
  border-radius: 100px;
  font-size: .88rem; color: var(--on-dark-soft);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.social:hover { color: var(--cream-100); border-color: var(--gold); background: rgba(212, 123, 59, .12); }

.visitanos__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(244, 234, 217, .12);
  filter: saturate(.9) contrast(1.02);
}
.visitanos__map iframe { border: 0; }

/* ----------------------------- Reservar ----------------------------- */
.reservar { background: var(--cream); }
.reservar__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.reservar__lead { color: var(--ink-soft); margin-top: 1.2rem; font-size: 1.06rem; max-width: 42ch; }
.reservar__wa {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1.8rem; font-weight: 600;
  color: var(--terra-deep);
  border-bottom: 1px solid rgba(175, 69, 46, .4);
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.reservar__wa:hover { color: var(--terra); border-color: var(--terra); }
.reservar__wa svg { color: var(--olive); }

.reserva-form {
  background: var(--cream-card);
  border: 1px solid rgba(51, 51, 51, .1);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  display: grid; gap: 1.1rem;
  box-shadow: 0 30px 60px -42px rgba(51, 51, 51, .6);
}
.field { display: grid; gap: .45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .03em; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font: inherit;
  color: var(--ink);
  background: var(--cream-100);
  border: 1px solid rgba(51, 51, 51, .18);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 80px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(116, 96, 79, .65); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terra);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(175, 69, 46, .45);
}
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}
.reserva-form__hint { font-size: .82rem; color: var(--ink-soft); text-align: center; }
.reserva-form__hint.is-error { color: var(--terra-deep); }
.reserva-form__hint.is-ok { color: var(--olive-deep); }

.reserva-embed {
  background: var(--cream-card);
  border: 1px solid rgba(51, 51, 51, .1);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 1.6rem);
  box-shadow: 0 30px 60px -42px rgba(51, 51, 51, .6);
}
.reserva-embed iframe { display: block; width: 100%; border: 0; min-height: 420px; }

/* ----------------------------- Footer ----------------------------- */
.site-footer {
  background: var(--espresso);
  color: var(--on-dark-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 2rem; align-items: start;
}
.brand--footer { color: var(--cream-100); }
.brand--footer .brand__mark { color: var(--gold); }
.brand--footer .brand__word { font-size: 1.4rem; }
.footer__tag { margin-top: .9rem; color: var(--on-dark-soft); font-family: var(--font-display); font-style: italic; font-size: 1.02rem; line-height: 1.5; }
.footer__nav { display: flex; flex-direction: column; gap: .7rem; }
.footer__nav a { color: var(--on-dark-soft); width: fit-content; transition: color .2s var(--ease); }
.footer__nav a:hover { color: var(--gold); }
.footer__contact { display: grid; gap: .5rem; font-size: .95rem; }
.footer__contact a { color: var(--cream-100); }
.footer__contact a:hover { color: var(--gold); }
.footer__social-row a { border-bottom: 1px solid rgba(212, 123, 59, .4); }

.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.8rem;
  border-top: 1px solid rgba(244, 234, 217, .12);
  color: var(--on-dark-soft); font-size: .85rem;
}
.footer__credit { font-family: var(--font-display); font-style: italic; }

/* ----------------------------- Reveal ----------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.dishes .dish:nth-child(2) { transition-delay: .07s; }
.dishes .dish:nth-child(3) { transition-delay: .14s; }
.dishes .dish:nth-child(4) { transition-delay: .2s; }
.dishes .dish:nth-child(5) { transition-delay: .26s; }
.dishes .dish:nth-child(6) { transition-delay: .32s; }
.stats .stat:nth-child(2) { transition-delay: .06s; }
.stats .stat:nth-child(3) { transition-delay: .12s; }
.stats .stat:nth-child(4) { transition-delay: .18s; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open {
    display: block;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(243, 233, 214, .98);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -24px rgba(51, 51, 51, .5);
    padding: 1rem var(--gutter) 1.6rem;
  }
  .nav.is-open .nav__list { flex-direction: column; gap: .3rem; }
  .nav.is-open .nav__list a {
    display: block; padding: .9rem 0; font-size: 1.1rem; color: var(--ink);
    border-bottom: 1px solid rgba(51, 51, 51, .1);
  }
  .nav.is-open .nav__list a::after { display: none; }
  /* El desplegable móvil tiene fondo crema: forzar texto oscuro aunque el header esté en overlay */
  .site-header--overlay:not(.scrolled) .nav.is-open .nav__list a,
  .site-header--overlay:not(.scrolled) .nav.is-open .nav__list a[aria-current="true"] { color: var(--ink); }

  .historia__grid,
  .cafe__grid,
  .visitanos__grid,
  .reservar__inner { grid-template-columns: 1fr; }
  .historia__frame { order: -1; }
  .cafe__art { order: -1; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .dishes { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .header__actions .btn--terra { display: none; }
  .hero__trust-sep { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .dishes { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .loyalty { flex-direction: column; text-align: center; }
  .loyalty__cta { margin-left: 0; }
}

/* ----------------------------- Galería ----------------------------- */
.galeria {
  background: var(--espresso);
  line-height: 0;
  overflow: hidden;
}
.galeria__carousel { position: relative; }
.galeria__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 22px max(9vw, 50vw - 360px);
}
.galeria__track::-webkit-scrollbar { display: none; }
.galeria__item {
  flex: 0 0 auto;
  width: min(720px, 82vw);
  height: clamp(320px, 48vh, 480px);
  scroll-snap-align: center;
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 16px;
  background: var(--espresso-800);
  box-shadow: 0 30px 50px -34px rgba(0, 0, 0, .7);
}
.galeria__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
}
.galeria__item:hover img { transform: scale(1.05); }
.galeria__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(230, 220, 194, .94);
  color: var(--espresso);
  cursor: pointer; line-height: 0;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .65);
  transition: background .15s var(--ease), color .15s var(--ease), opacity .2s var(--ease);
}
.galeria__arrow:hover { background: var(--terra); color: var(--on-dark); }
.galeria__arrow:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.galeria__arrow:disabled { opacity: .3; pointer-events: none; }
.galeria__arrow--prev { left: clamp(10px, 3vw, 34px); }
.galeria__arrow--next { right: clamp(10px, 3vw, 34px); }
.galeria__dots {
  display: flex; justify-content: center; align-items: center; gap: 9px;
  padding: 18px 1rem 30px;
  background: var(--espresso);
}
.galeria__dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  cursor: pointer; line-height: 0;
  background: var(--on-dark-soft); opacity: .45;
  transition: opacity .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.galeria__dot.is-active { background: var(--gold); opacity: 1; transform: scale(1.3); }
.galeria__dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ----------------------------- Dish con foto ----------------------------- */
.dish--photo { padding-top: 0; }
.dish__photo {
  margin: 0 0 1rem;
  height: 180px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  margin-left: calc(-1 * clamp(1.5rem, 2.6vw, 2rem));
  margin-right: calc(-1 * clamp(1.5rem, 2.6vw, 2rem));
  margin-top: calc(-1 * clamp(1.5rem, 2.6vw, 2rem));
}
.dish__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.dish:hover .dish__photo img { transform: scale(1.06); }

/* Tarjeta con banda ilustrada (mismo alto que las de foto) */
.dish--banded { padding-top: 0; }
.dish__artband {
  display: grid;
  place-items: center;
  height: 180px;
  margin: calc(-1 * clamp(1.5rem, 2.6vw, 2rem)) calc(-1 * clamp(1.5rem, 2.6vw, 2rem)) 1rem;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  color: var(--terra);
  background:
    radial-gradient(circle at 30% 25%, rgba(212, 123, 59, .18), transparent 60%),
    linear-gradient(150deg, var(--cream-100), var(--cream-200));
  border-bottom: 1px solid rgba(175, 69, 46, .14);
}
.dish__artband svg { transition: transform .5s var(--ease); }
.dish:hover .dish__artband svg { transform: scale(1.08) rotate(-3deg); }

/* ----------------------------- Café con foto ----------------------------- */
.cafe__photo {
  border-radius: var(--radius);
  overflow: hidden;
  width: min(340px, 90%);
  aspect-ratio: 3 / 4;
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255,255,255,.06);
  margin: 0 auto;
}
.cafe__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ----------------------------- Badge abierto/cerrado ----------------------------- */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .32rem .75rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.open-badge.is-ready { opacity: 1; }
.open-badge--open {
  background: rgba(124, 132, 86, .15);
  color: var(--olive);
  border: 1px solid rgba(124, 132, 86, .3);
}
.open-badge--open::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--olive);
  animation: pulse 2s infinite;
}
.open-badge--closed {
  background: rgba(116, 96, 79, .12);
  color: var(--ink-soft);
  border: 1px solid rgba(116, 96, 79, .2);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ----------------------------- WhatsApp flotante ----------------------------- */
.wa-float {
  position: fixed;
  bottom: 1.6rem; right: 1.6rem;
  z-index: 90;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--terra);
  color: #fff;
  padding: .85rem 1.3rem .85rem 1rem;
  border-radius: 100px;
  font-size: .9rem; font-weight: 600;
  box-shadow: 0 8px 28px -8px rgba(37, 211, 102, .65);
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px -8px rgba(175, 69, 46, .7);
  color: #fff;
}

@media (max-width: 640px) {
  .galeria__arrow { width: 42px; height: 42px; }
  .galeria__track { gap: 10px; }
}

@media (max-width: 540px) {
  .wa-float { padding: .85rem; border-radius: 50%; width: 54px; height: 54px; justify-content: center; }
  .wa-float__label { display: none; }
}

/* ============================================================
   REBUILD v2 — photo-first hero, header overlay, events,
   lightbox, sticky CTA, scroll-spy, polish
   ============================================================ */

/* ---- Hero copy over photo (cream) ---- */
.hero .eyebrow { color: var(--on-dark); }
.hero .eyebrow__dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(212, 123, 59, .28); }
.hero__title { color: var(--on-dark); text-shadow: 0 2px 34px rgba(51, 51, 51, .45); }
.hero__title-accent { color: var(--gold); }
/* Palabra cinética AR x AU (cambia sola) — reserva el ancho mayor, 0 CLS */
.hero__title-accent.swap { display: inline-grid; vertical-align: top; }
.swap__w { grid-area: 1 / 1; opacity: 0; transform: translateY(.16em); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.swap__w.is-on { opacity: 1; transform: none; }

/* Reseñas — tarjetas de opiniones reales (sección Brunch lovers) */
.reviews-grid { list-style: none; margin: 0 auto clamp(2rem, 5vw, 3rem); padding: 0; display: grid; gap: clamp(1rem, 2.4vw, 1.5rem); grid-template-columns: repeat(3, 1fr); }
.review-card { display: flex; flex-direction: column; gap: .75rem; text-align: left; background: var(--cream-card); border: 1px solid var(--cream); border-radius: var(--radius-sm); padding: clamp(1.15rem, 2.4vw, 1.6rem); box-shadow: 0 8px 24px rgba(90, 55, 36, .07); }
.review-card__stars { color: var(--gold); font-size: 1.02rem; letter-spacing: .08em; line-height: 1; }
.review-card__text { color: var(--ink); font-size: 1rem; line-height: 1.55; quotes: "\201C" "\201D"; }
.review-card__text::before { content: open-quote; }
.review-card__text::after { content: close-quote; }
.review-card__author { margin-top: auto; display: flex; flex-direction: column; gap: .1rem; font-weight: 700; color: var(--terra-deep); font-size: .95rem; }
.review-card__source { font-weight: 400; color: var(--ink-soft); font-size: .82rem; }
@media (max-width: 820px) { .reviews-grid { grid-template-columns: 1fr; max-width: 34rem; } }

/* ----- Consentimiento de cookies ----- */
.cookie-banner {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translate(-50%, 160%);
  z-index: 200; width: min(680px, calc(100vw - 2rem));
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem;
  background: var(--cream-card); color: var(--ink);
  border: 1px solid var(--cream-200); border-radius: var(--radius-sm);
  box-shadow: 0 14px 42px rgba(51, 34, 24, .22);
  padding: 1rem 1.15rem; transition: transform .5s var(--ease);
}
.cookie-banner.is-in { transform: translate(-50%, 0); }
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { flex: 1 1 15rem; margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.cookie-btn { font: inherit; font-weight: 700; font-size: .88rem; line-height: 1; border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; border: 1.5px solid transparent; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.cookie-btn--primary { background: var(--terra); color: #fff; }
.cookie-btn--primary:hover { background: var(--terra-deep); }
.cookie-btn--ghost { background: transparent; color: var(--terra-deep); border-color: var(--cream-200); }
.cookie-btn--ghost:hover { border-color: var(--terra); color: var(--terra); }
.cookie-link { font: inherit; font-size: .82rem; background: none; border: 0; padding: .2rem .1rem; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.cookie-link:hover { color: var(--terra); }

.cookie-policy { max-width: 34rem; width: calc(100vw - 2rem); border: none; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.2rem); background: var(--cream-card); color: var(--ink); box-shadow: 0 30px 80px rgba(51, 34, 24, .35); }
.cookie-policy::backdrop { background: rgba(51, 34, 24, .5); }
.cookie-policy__close { position: absolute; top: .7rem; right: .7rem; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: var(--ink-soft); cursor: pointer; }
.cookie-policy__close:hover { background: var(--cream-100); color: var(--terra); }
.cookie-policy__title { font-family: var(--font-display); color: var(--terra-deep); font-size: 1.5rem; margin: 0 0 .8rem; }
.cookie-policy__body { font-size: .92rem; line-height: 1.6; color: var(--ink-soft); display: grid; gap: .7rem; }
.cookie-policy__body strong { color: var(--ink); }
.cookie-policy__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }

.map-embed { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 320px; cursor: pointer; text-align: center; color: var(--terra-deep); background: var(--cream-100); border: 1.5px dashed var(--cream-200); border-radius: var(--radius-sm); padding: 2rem 1.5rem; transition: background .2s var(--ease), border-color .2s var(--ease); }
.map-embed:hover { background: var(--cream); border-color: var(--terra); }
.map-embed__pin { color: var(--terra); }
.map-embed__label { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.map-embed__hint { font-size: .82rem; color: var(--ink-soft); max-width: 22rem; }

.footer__legal { margin-top: .35rem; }
.footer__cookies { font: inherit; font-size: .82rem; background: none; border: 0; padding: 0; color: inherit; opacity: .82; text-decoration: underline; cursor: pointer; }
.footer__cookies:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }
@media (max-width: 560px) { .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; } .cookie-banner__actions { justify-content: center; } }

/* Reseñas — resumen de rating (sección Brunch lovers) */
.reviews-summary { text-align: center; max-width: 40rem; margin: 0 auto; display: grid; gap: .55rem; justify-items: center; }
.reviews-summary__score { font-family: var(--font-display); font-size: clamp(2.8rem, 7vw, 4rem); line-height: 1; color: var(--terra-deep); font-weight: 600; margin: 0; display: flex; align-items: baseline; gap: .4rem; }
.reviews-summary__stars { color: #e0a52e; font-size: .5em; letter-spacing: .04em; }
.reviews-summary__text { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 .5rem; max-width: 30rem; }

.hero__lead { color: rgba(244, 234, 217, .94); max-width: 44ch; }
.hero__lead strong { color: #fff; }
.hero__trust-num { color: var(--on-dark); }
.hero__trust-label { color: rgba(244, 234, 217, .9); }
.hero__trust-sep { background: rgba(244, 234, 217, .32); }
.hero .open-badge--open {
  background: rgba(51, 51, 51, .72);
  color: #d8eaa8;
  border-color: rgba(216, 234, 168, .5);
  backdrop-filter: blur(6px);
}
.hero .open-badge--open::before { background: #b6d36e; }
.hero .open-badge--closed {
  background: rgba(51, 51, 51, .35);
  color: var(--on-dark);
  border-color: rgba(244, 234, 217, .35);
  backdrop-filter: blur(4px);
}

.btn--on-photo {
  color: var(--on-dark);
  border-color: rgba(244, 234, 217, .6);
  background: rgba(51, 51, 51, .2);
  backdrop-filter: blur(4px);
}
.btn--on-photo:hover {
  color: #fff;
  border-color: var(--cream-100);
  background: rgba(51, 51, 51, .38);
}

/* ---- Hero scroll cue (demoted mascot) ---- */
.hero__cue {
  position: absolute;
  left: 50%; bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  color: var(--on-dark);
}
.hero__cue-mark {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(51, 51, 51, .32);
  border: 1px solid rgba(244, 234, 217, .4);
  backdrop-filter: blur(4px);
  color: var(--on-dark);
}
.hero__cue-chevron {
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .85;
  animation: cuebob 1.8s var(--ease) infinite;
}
@keyframes cuebob { 0%,100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(4px) rotate(45deg); } }

/* ---- Header overlay over the photo hero ---- */
.site-header--overlay:not(.scrolled) { background: transparent; box-shadow: none; }
.site-header--overlay:not(.scrolled) .brand,
.site-header--overlay:not(.scrolled) .brand__mark { color: var(--on-dark); }
.site-header--overlay:not(.scrolled) .nav__list a { color: rgba(244, 234, 217, .92); }
.site-header--overlay:not(.scrolled) .nav__list a:hover { color: #fff; }
.site-header--overlay:not(.scrolled) .nav-toggle { border-color: rgba(244, 234, 217, .5); }
.site-header--overlay:not(.scrolled) .nav-toggle__bar { background: var(--on-dark); }

/* ---- Teaser dish cards as links ---- */
.dish--link { text-decoration: none; color: inherit; cursor: pointer; }
.dish--link .dish__name { display: inline-flex; align-items: baseline; gap: .35rem; }
.dish--link .dish__name::after {
  content: "→";
  font-family: var(--font-body);
  color: var(--terra);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
@media (hover: hover) {
  .dish--link:hover .dish__name::after { opacity: 1; transform: none; }
}

/* ---- Historia: real photo ---- */
.historia__photo {
  display: block; width: 100%;
  padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-200);
  box-shadow: 0 42px 70px -40px rgba(156, 58, 31, .55);
}
.historia__photo img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
@media (hover: hover) { .historia__photo:hover img { transform: scale(1.04); } }

/* ---- Galería: overline + tappable buttons ---- */
.galeria__overline {
  margin: 0;
  text-align: center;
  font: 600 .8rem/1.4 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--espresso);
  padding: 1.7rem 1rem .3rem;
}
.galeria__item { border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.thumb:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---- Eventos: feature + grid ---- */
.event__kicker {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 600 .8rem/1 var(--font-body);
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--terra);
}
.event__chip {
  display: inline-block; margin-top: .8rem;
  font-size: .8rem; font-weight: 600;
  color: var(--terra-deep);
  background: rgba(175, 69, 46, .1);
  border: 1px solid rgba(175, 69, 46, .24);
  padding: .32rem .85rem; border-radius: 100px;
}
.event__actions { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; margin-top: 1.6rem; }

.event-feature {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: center;
}
.event-feature__media { display: flex; flex-direction: column; gap: .7rem; }
.event-feature__photo,
.event-card__photo {
  position: relative;
  display: block; width: 100%;
  padding: 0; border: 0; cursor: pointer;
  overflow: hidden;
  background: var(--cream-200);
  border-radius: var(--radius);
}
.event-feature__photo { aspect-ratio: 4 / 3; }
.event-feature__photo img,
.event-card__photo img,
.event-strip__thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
.event-feature__play {
  position: absolute; right: .8rem; bottom: .8rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  color: var(--on-dark);
  background: rgba(51, 51, 51, .58);
  backdrop-filter: blur(4px);
  padding: .35rem .75rem; border-radius: 100px;
  pointer-events: none;
}
.event-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.event-strip__thumb {
  border: 0; padding: 0; cursor: pointer;
  aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 12px; background: var(--cream-200);
}
.event-feature__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.05; color: var(--ink); margin-top: .7rem; }
.event-feature__title .ital { color: var(--terra); }
.event-feature__desc { color: var(--ink-soft); margin-top: 1rem; font-size: 1.06rem; max-width: 42ch; }

.events-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.8rem; }
.event-card {
  display: flex; flex-direction: column;
  background: var(--cream-card);
  border: 1px solid rgba(51, 51, 51, .08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.event-card__photo { aspect-ratio: 3 / 2; border-radius: 0; }
.event-card__body { padding: clamp(1.3rem, 2.6vw, 1.9rem); }
.event-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.42rem; color: var(--ink); margin-top: .4rem; line-height: 1.15; }
.event-card__desc { color: var(--ink-soft); margin-top: .55rem; font-size: .97rem; }
@media (hover: hover) {
  .event-card:hover { transform: translateY(-5px); box-shadow: 0 26px 46px -30px rgba(51, 51, 51, .5); }
  .event-feature__photo:hover img,
  .event-card__photo:hover img,
  .event-strip__thumb:hover img { transform: scale(1.05); }
}

/* ---- Lightbox ---- */
.lightbox {
  width: 100vw; max-width: 100vw;
  height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  color: var(--on-dark);
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(51, 51, 51, .93); backdrop-filter: blur(3px); }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: clamp(1rem, 4vw, 3rem); max-width: 92vw; }
.lightbox__img {
  max-width: 100%; max-height: 80vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: var(--espresso-800);
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .85);
}
.lightbox__cap { color: var(--on-dark-soft); font-family: var(--font-display); font-style: italic; text-align: center; max-width: 56ch; font-size: 1rem; line-height: 1.4; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(244, 234, 217, .28);
  border-radius: 50%;
  background: rgba(51, 51, 51, .5);
  color: var(--on-dark);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(51, 51, 51, .78); border-color: var(--gold); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__count { position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); font-size: .85rem; letter-spacing: .08em; color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.lightbox__close:focus-visible, .lightbox__nav:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---- Botón pequeño (inscripción en tarjetas) ---- */
.btn--sm { padding: .5rem 1rem; font-size: .84rem; }

/* ---- Diálogo de inscripción a eventos ---- */
.inscripcion {
  width: min(92vw, 460px);
  max-height: 92dvh;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(51, 51, 51, .1);
  border-radius: var(--radius);
  background: var(--cream-card);
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(51, 51, 51, .75);
  overflow: visible;
}
.inscripcion::backdrop { background: rgba(51, 51, 51, .7); backdrop-filter: blur(3px); }
.inscripcion__form {
  display: grid; gap: 1.1rem;
  padding: clamp(1.5rem, 5vw, 2.2rem);
  overflow-y: auto;
  max-height: 92dvh;
}
.inscripcion__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 1.6rem);
  line-height: 1.2; margin: 0;
  color: var(--ink);
}
.inscripcion__title #insc-evento-label { font-style: italic; color: var(--terra-deep); }
.inscripcion__close {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(51, 51, 51, .18);
  border-radius: 50%;
  background: var(--cream-100);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.inscripcion__close:hover { border-color: var(--terra); color: var(--terra-deep); background: rgba(175, 69, 46, .06); }
.inscripcion__close:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.inscripcion__hint { font-size: .82rem; color: var(--ink-soft); text-align: center; min-height: 1.1em; }
.inscripcion__hint.is-error { color: var(--terra-deep); }
.inscripcion__hint.is-ok { color: var(--olive-deep); }

/* ---- Sticky mobile CTA bar ---- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: none;
  gap: .7rem; align-items: center;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(243, 233, 214, .96);
  backdrop-filter: blur(12px) saturate(1.2);
  border-top: 1px solid rgba(51, 51, 51, .12);
  transform: translateY(120%);
  transition: transform .3s var(--ease);
}
.cta-bar.is-visible { transform: none; }
.cta-bar__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 50px; border-radius: 100px; font-weight: 600; text-decoration: none;
}
.cta-bar__btn--primary { flex: 1; background: var(--terra); color: #fff; box-shadow: 0 10px 24px -12px rgba(175, 69, 46, .9); }
.cta-bar__btn--primary:active { transform: translateY(1px); }
.cta-bar__btn--wa { width: 50px; flex: 0 0 auto; background: #25D366; color: #fff; }

/* ---- Scroll-spy active nav underline ---- */
.nav__list a[aria-current="true"] { color: var(--ink); }
.nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.site-header--overlay:not(.scrolled) .nav__list a[aria-current="true"] { color: #fff; }

/* ---- Scroll progress bar ---- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--terra); z-index: 101; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress { animation: progressGrow linear; animation-timeline: scroll(root); }
  }
}
@keyframes progressGrow { to { transform: scaleX(1); } }

/* ---- Anchor offset + reveal stagger + marquee + form polish ---- */
section[id], [id].section { scroll-margin-top: 5rem; }
.js .reveal { transition-delay: calc(var(--rvl-i, 0) * 70ms); }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }
.field input:user-invalid, .field textarea:user-invalid {
  border-color: var(--terra-deep);
  box-shadow: 0 0 0 3px rgba(175, 69, 46, .15);
}

/* ---- Mapa con carga diferida (privacidad / cookies) ---- */
.map-embed {
  display: block; width: 100%;
  border: 0; cursor: pointer;
  color: var(--gold);
  background:
    radial-gradient(80% 90% at 18% 8%, rgba(212, 123, 59, .45), transparent 60%),
    linear-gradient(160deg, var(--espresso-800), var(--espresso));
  transition: filter .25s var(--ease);
}
.map-embed:hover { filter: brightness(1.08); }
.map-embed:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.map-embed__inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .45rem; min-height: 460px; padding: 2rem; text-align: center;
}
.map-embed__title { font-family: var(--font-display); font-size: 1.5rem; color: var(--cream-100); margin-top: .3rem; }
.map-embed__sub { color: var(--on-dark); font-size: .98rem; }
.map-embed__note { color: var(--on-dark-soft); font-size: .8rem; margin-top: .4rem; }
.map-embed__alt { margin-top: .9rem; text-align: center; font-size: .92rem; }
.visitanos__map iframe { display: block; width: 100%; height: 460px; }

/* ---- Responsive (rebuild) ---- */
@media (max-width: 900px) {
  .hero { min-height: min(88vh, 720px); align-items: flex-end; }
  .hero__bg { object-position: center 28%; }
  .event-feature { grid-template-columns: 1fr; }
  .event-feature__body { order: -1; }
  .wa-float { display: none; }
  .cta-bar { display: flex; }
}
@media (max-width: 640px) {
  .events-grid { grid-template-columns: 1fr; }
  .event-strip { grid-template-columns: repeat(3, 1fr); }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__prev { left: .5rem; } .lightbox__next { right: .5rem; }
}

/* ---- Platos agotados (carta editable desde el panel) ---- */
.menu-soldout {
  display: inline-block;
  font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(51, 51, 51, .09);
  border-radius: 100px; padding: .12rem .55rem;
  vertical-align: middle; margin-left: .35rem;
}
.menu-item--agotado .menu-item__desc { opacity: .62; }
.menu-item--agotado .menu-item__name,
.menu-item--agotado .menu-item__price { color: var(--ink-soft); }
.menu-item--agotado .menu-item__price { text-decoration: line-through; }
.menu-coffee li.is-agotado, .menu-drinks li.is-agotado { opacity: .62; }
.menu-coffee li.is-agotado .menu-coffee__price,
.menu-drinks li.is-agotado .menu-drinks__price { text-decoration: line-through; }

/* ----------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .hero__cue-chevron, .scroll-progress { animation: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   v3 — elevación: scrim de header, textura, micro-detalles
   ============================================================ */
/* Scrim propio del header transparente: nav legible sobre cualquier recorte */
.site-header--overlay:not(.scrolled)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 170%;
  background: linear-gradient(180deg, rgba(51, 51, 51, .5), rgba(51, 51, 51, 0));
  pointer-events: none;
  z-index: -1;
}
/* Textura de papel + grano sutil (sensación de carta impresa) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Pausa el marquee también con foco dentro (WCAG 2.2.2) */
.marquee:focus-within .marquee__track { animation-play-state: paused; }

/* ============================================================
   Pedido en la mesa (QR) — carrito + WhatsApp
   ============================================================ */
.order-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
  display: flex; gap: .7rem; align-items: stretch;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(51, 51, 51, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(244, 234, 217, .12);
}
body.has-order-bar { padding-bottom: 88px; }
body.has-order-bar .menu-actionbar,
body.has-order-bar .wa-float { display: none !important; }
.order-bar__call {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid rgba(244, 234, 217, .32); background: transparent; color: var(--on-dark);
  border-radius: 100px; padding: 0 1.1rem; font-weight: 600; font-size: .88rem; white-space: nowrap;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.order-bar__call:hover { border-color: var(--gold); color: #fff; }
.order-bar__cart {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  background: var(--terra); color: #fff; border: none; border-radius: 100px;
  font-weight: 600; font-size: .98rem; min-height: 52px; padding: 0 1rem;
  box-shadow: 0 10px 24px -12px rgba(175, 69, 46, .9);
  transition: background-color .2s var(--ease);
}
.order-bar__cart:hover { background: var(--terra-bright); }
.order-bar__count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  background: rgba(255, 255, 255, .22); border-radius: 100px; font-variant-numeric: tabular-nums; font-size: .85rem;
}
.order-bar__total { font-variant-numeric: tabular-nums; }
.order-bar:not(.has-items) .order-bar__total { opacity: .65; }

.add-btn {
  align-self: center; margin-left: 1rem; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .3rem;
  border: 1px solid rgba(175, 69, 46, .4); background: var(--cream-card); color: var(--terra-deep);
  border-radius: 100px; padding: .34rem .8rem; font-size: .82rem; font-weight: 600; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.add-btn:hover { background: var(--terra); color: #fff; border-color: var(--terra); }
.add-btn.is-added { background: var(--olive-deep); color: #fff; border-color: var(--olive-deep); transform: scale(.95); }
.menu-coffee li, .menu-drinks li { position: relative; flex-wrap: wrap; }
.menu-coffee .add-btn, .menu-drinks .add-btn { margin-left: .7rem; padding: .22rem .6rem; font-size: .76rem; }

.order-dialog { width: min(94vw, 460px); border: 0; padding: 0; border-radius: var(--radius); background: var(--cream); color: var(--ink); box-shadow: 0 40px 90px -28px rgba(51, 51, 51, .7); }
.order-dialog::backdrop { background: rgba(51, 51, 51, .62); backdrop-filter: blur(2px); }
.order-dialog__panel { display: flex; flex-direction: column; max-height: 86vh; }
.order-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid rgba(51, 51, 51, .1); }
.order-dialog__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.order-dialog__mesa { color: var(--terra-deep); font-size: .9rem; font-style: italic; }
.order-dialog__close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(51, 51, 51, .15); background: var(--cream-card); display: grid; place-items: center; flex: 0 0 auto; }
.order-list { list-style: none; margin: 0; padding: .4rem 1.3rem; overflow-y: auto; }
.order-line { display: flex; align-items: center; gap: .8rem; padding: .65rem 0; border-bottom: 1px solid rgba(51, 51, 51, .08); }
.order-line__name { flex: 1; font-weight: 500; min-width: 0; }
.order-line__qty { display: inline-flex; align-items: center; gap: .55rem; }
.order-qty { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(51, 51, 51, .2); background: var(--cream-card); font-size: 1.1rem; line-height: 1; display: grid; place-items: center; }
.order-qty:hover { border-color: var(--terra); color: var(--terra-deep); }
.order-line__qty b { min-width: 1.2ch; text-align: center; font-variant-numeric: tabular-nums; }
.order-line__price { min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.order-empty { padding: 1.6rem 1.3rem; color: var(--ink-soft); text-align: center; font-size: .95rem; }
.order-dialog__foot { padding: 1.1rem 1.3rem calc(1.1rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(51, 51, 51, .1); }
.order-dialog__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .9rem; font-size: 1.05rem; }
.order-dialog__total strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--terra-deep); font-variant-numeric: tabular-nums; }
.order-note { margin-top: .7rem; font-size: .78rem; color: var(--ink-soft); text-align: center; }
@media print { .order-bar, .order-dialog, .add-btn { display: none !important; } }

/* ---- Selector de idioma ---- */
.lang-switch { display: inline-flex; gap: 2px; align-items: center; padding: 3px; border-radius: 100px; border: 1px solid rgba(51, 51, 51, .16); background: rgba(251, 245, 234, .65); }
.lang-switch__opt { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 7px; border-radius: 100px; font-size: .72rem; font-weight: 600; letter-spacing: .03em; color: var(--ink-soft); transition: background-color .2s var(--ease), color .2s var(--ease); }
.lang-switch__opt:hover { color: var(--ink); }
.lang-switch__opt.is-on { background: var(--terra); color: #fff; }
.site-header--overlay:not(.scrolled) .lang-switch { border-color: rgba(244, 234, 217, .3); background: rgba(51, 51, 51, .22); backdrop-filter: blur(4px); }
.site-header--overlay:not(.scrolled) .lang-switch__opt { color: rgba(244, 234, 217, .85); }
.site-header--overlay:not(.scrolled) .lang-switch__opt:hover { color: #fff; }
.site-header--overlay:not(.scrolled) .lang-switch__opt.is-on { background: var(--terra); color: #fff; }
@media print { .lang-switch { display: none !important; } }
