/* =====================================================================
   CASALEGRE — casalegre.css
   Mobile-first. Structured for a future WordPress/ACF theme:
   each BEM block below maps to one ACF flexible-content layout.

   ORDER:
   1. Design tokens        5. Header + nav
   2. Base / reset         6. Sections (hero → contacto)
   3. Utilities            7. Footer
   4. Buttons              8. Sticky CTA + media fallbacks
   ===================================================================== */

/* ============================ 1. TOKENS ============================ */
:root {
  /* Casalegre de noche — the primary, intended palette */
  --bg:          #141F29;
  --bg-panel:    #1D2E3B;
  --bg-panel-2:  #243B4B;
  --text:        #EFE6D8;
  --text-muted:  #AEB9C1;

  --wine:  #9B3B3B;   /* tufted banquettes */
  --rust:  #D96A42;   /* facade + sign glow */
  --brass: #DCB068;   /* bulbs, frames, ceiling patina */
  --sea:   #5C988E;   /* the bay */
  --wood:  #3A2A20;   /* parquet — deep accent / image fallback */

  --border:  rgba(239, 230, 216, 0.14);
  --shadow:  rgba(6, 10, 14, 0.5);
  --scrim:   rgba(12, 19, 26, 0.62);

  --on-accent: #17130D;  /* text on rust / brass fills */

  --wrap: 1140px;
  --header-h: 4.25rem;
  --radius: 4px;
  --radius-pill: 999px;

  --step: clamp(3.25rem, 8vw, 6rem);   /* vertical section rhythm */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    /* Casalegre de día — the limewashed house on the hill */
    --bg:          #F4ECDE;
    --bg-panel:    #ECE0C9;
    --bg-panel-2:  #E3D5BA;
    --text:        #1B2A36;
    --text-muted:  #46586A;

    --wine:  #872C2C;
    --rust:  #A8421B;
    --brass: #785713;
    --sea:   #2A574E;
    --wood:  #614430;

    --border:  rgba(27, 42, 54, 0.18);
    --shadow:  rgba(27, 42, 54, 0.22);
    --scrim:   rgba(20, 28, 22, 0.5);

    --on-accent: #FCF6EA;

    color-scheme: light;
  }
}

/* Manual override wins in both directions */
:root[data-theme="light"] {
  --bg: #F4ECDE;  --bg-panel: #ECE0C9;  --bg-panel-2: #E3D5BA;
  --text: #1B2A36;  --text-muted: #46586A;
  --wine: #872C2C;  --rust: #A8421B;  --brass: #785713;  --sea: #2A574E;  --wood: #614430;
  --border: rgba(27, 42, 54, 0.18);  --shadow: rgba(27, 42, 54, 0.22);  --scrim: rgba(20, 28, 22, 0.5);
  --on-accent: #FCF6EA;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #141F29;  --bg-panel: #1D2E3B;  --bg-panel-2: #243B4B;
  --text: #EFE6D8;  --text-muted: #AEB9C1;
  --wine: #9B3B3B;  --rust: #D96A42;  --brass: #DCB068;  --sea: #5C988E;  --wood: #3A2A20;
  --border: rgba(239, 230, 216, 0.14);  --shadow: rgba(6, 10, 14, 0.5);  --scrim: rgba(12, 19, 26, 0.62);
  --on-accent: #17130D;
  color-scheme: dark;
}

/* ============================ 2. BASE ============================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Karla", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

h1, h2, h3 {
  font-family: "Yeseva One", "Iowan Old Style", Georgia, serif;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; height: auto; }
[hidden] { display: none !important; }

::selection { background: var(--rust); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================ 3. UTILITIES ============================ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 5vw, 3rem);
}

.section { padding-block: var(--step); }
.section--panel      { background: var(--bg-panel); }
.section--panel-alt  { background: var(--bg-panel-2); }

.eyebrow {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brass);
  margin-bottom: 0.6rem;
}

.measure { max-width: 60ch; }

.section-head {
  display: grid;
  gap: 0.7rem;
  max-width: 60ch;
  margin-bottom: clamp(1.75rem, 5vw, 2.75rem);
}
.section-head h2 { font-size: clamp(1.9rem, 5vw, 2.85rem); line-height: 1.1; }
.section-head__intro { color: var(--text-muted); }

.visually-hidden {
  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: fixed;
  top: 0.5rem; left: 0.5rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--rust);
  color: var(--on-accent);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.divider { display: block; width: 100%; height: 44px; color: var(--border); }
.divider path { fill: none; stroke: currentColor; stroke-width: 1.4; }

/* ============================ 4. BUTTONS ============================ */
.btn {
  --btn-accent: var(--rust);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.3rem;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--btn-accent);
  border-radius: var(--radius);
  color: var(--btn-accent);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--btn-accent); color: var(--on-accent); }

.btn--solid {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--on-accent);
}
.btn--solid:hover, .btn--solid:focus-visible {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--on-accent);
}

/* ============================ 5. HEADER + NAV ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}
/* Blur lives on a pseudo-element so the <header> itself carries no
   backdrop-filter — otherwise it would become the containing block for
   the position:fixed nav drawer and clip it to header height. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.wordmark {
  font-family: "Yeseva One", serif;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.wordmark span { color: var(--rust); }
.wordmark--sm { font-size: 1rem; }

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

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.15rem;
}
.lang-switch button {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-switch button[aria-pressed="true"] { background: var(--rust); color: var(--on-accent); }
.lang-switch button:hover:not([aria-pressed="true"]) { color: var(--text); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--brass);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--brass); }
.theme-toggle__icon { width: 1.15rem; height: 1.15rem; }
:root[data-theme="dark"]  .theme-toggle__icon--moon { display: none; }
:root[data-theme="light"] .theme-toggle__icon--sun  { display: none; }
/* system-default (no data-theme) follows prefers-color-scheme */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle__icon--sun  { display: none; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle__icon--moon { display: none; }
}

.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.site-nav__bars { display: block; width: 20px; height: 14px; position: relative; }
.site-nav__bars span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.site-nav__bars span:nth-child(1) { top: 0; }
.site-nav__bars span:nth-child(2) { top: 6px; }
.site-nav__bars span:nth-child(3) { top: 12px; }
.nav-open .site-nav__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .site-nav__bars span:nth-child(2) { opacity: 0; }
.nav-open .site-nav__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Nav: mobile drawer (default) --- */
.site-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(20rem, 82vw);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: calc(var(--header-h) + 1.25rem) clamp(1.15rem, 6vw, 2rem) 2rem;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  box-shadow: -18px 0 46px -24px var(--shadow);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
}
.nav-open .site-nav { transform: translateX(0); }

.site-nav__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.site-nav__close:hover { border-color: var(--rust); color: var(--rust); }
.site-nav__close svg { width: 1.1rem; height: 1.1rem; }

.site-nav__link {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.09em;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.6rem 0;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.is-current { color: var(--text); }
.site-nav__link.is-current { color: var(--rust); }

.site-nav__cta { margin-top: 0.8rem; }

/* Drawer scrim */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.nav-open::after { opacity: 1; pointer-events: auto; }
.nav-open { overflow: hidden; }

/* ============================ 6. HERO ============================ */
.hero {
  /* Hero stays a cinematic night band in BOTH themes — the identity is
     "Casalegre de noche", and the hero photo is a night shot. ALL tokens the
     hero paints with are re-scoped here so day/night theme never touches it. */
  --bg: #101923;
  --bg-panel-2: #22374a;
  --text: #F1E8DA;
  --text-muted: #CBD2D7;
  --brass: #E4BE7E;
  --rust: #E07A50;
  --wine: #B85050;
  --on-accent: #17130D;
  --border: rgba(241, 232, 218, 0.22);
  --scrim: rgba(9, 14, 20, 0.68);

  position: relative;
  isolation: isolate;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(70% 60% at 78% 8%, rgba(228, 190, 126, 0.20), transparent 72%),
    radial-gradient(90% 70% at 12% 108%, rgba(184, 80, 80, 0.16), transparent 70%),
    linear-gradient(200deg, #22374a, #0f1822);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 44%; }
.hero__media.media--missing img { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: kenburns 26s ease-in-out infinite alternate; transform-origin: 60% 40%; }
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

/* Warm, layered scrim — the photo is colour-graded into the house palette
   (wine + rust wash) then darkened for legibility. Works with OR without a
   photo, and stays identical in both site themes (hero tokens are scoped). */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* text-protection: strong only at the bottom, clears by mid-height */
    linear-gradient(to top, #0c141e 2%, rgba(12, 20, 30, 0.78) 22%, rgba(12,20,30,0.32) 46%, transparent 66%),
    /* gentle left-side lift for the headline column */
    linear-gradient(100deg, rgba(9, 14, 20, 0.52) 4%, rgba(9,14,20,0.14) 40%, transparent 66%),
    /* house-palette colour grade — warm brass top-right, wine bottom-left */
    radial-gradient(70% 60% at 84% 8%, color-mix(in srgb, var(--brass) 20%, transparent), transparent 62%),
    radial-gradient(95% 85% at 8% 108%, color-mix(in srgb, var(--wine) 26%, transparent), transparent 64%),
    color-mix(in srgb, var(--bg) 14%, transparent);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 1.3rem;
  /* Match the shared .wrap edge so the hero copy lines up with every other
     section (La casa, Celebraciones…); the readable measure is capped on the
     children instead of by centring a narrow column. */
  max-width: var(--wrap);
  padding-block: clamp(3rem, 12vh, 6rem) clamp(2.5rem, 8vh, 4rem);
}
.hero__inner > * { max-width: 44rem; }
.hero__title {
  font-size: clamp(3rem, 15vw, 6rem);
  line-height: 0.94;
}
.hero__lede {
  font-size: clamp(1.02rem, 3.4vw, 1.22rem);
  color: var(--text);
  max-width: 44ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.3rem;
}
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
  color: var(--brass);
  transition: border-color 0.2s var(--ease);
}
.hero__chip:hover, .hero__chip:focus-visible { border-color: var(--brass); }
.hero__locus {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.hero__locus::before {
  content: "";
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--rust);
}

.hero__inner > * { animation: rise 0.7s var(--ease) both; }
.hero__inner > :nth-child(2) { animation-delay: 0.06s; }
.hero__inner > :nth-child(3) { animation-delay: 0.12s; }
.hero__inner > :nth-child(4) { animation-delay: 0.18s; }
.hero__inner > :nth-child(5) { animation-delay: 0.24s; }
.hero__inner > :nth-child(6) { animation-delay: 0.30s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ============================ 6. HISTORIA ============================ */
.historia__grid { display: grid; gap: clamp(1.75rem, 6vw, 3.5rem); }
.historia__pull {
  font-family: "Yeseva One", serif;
  font-size: clamp(1.45rem, 5vw, 2.3rem);
  line-height: 1.3;
  border-left: 3px solid var(--rust);
  padding-left: 1.1rem;
  margin-bottom: 1.3rem;
}
.historia__copy { display: grid; gap: 1rem; }
.historia__copy p { color: var(--text-muted); }
.historia__copy strong { color: var(--text); }

.historia__media { margin: 0; }
.historia__media .media {
  display: block;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  box-shadow: 0 34px 64px -44px var(--shadow);
}
.historia__media .media img { aspect-ratio: 4 / 5; }
.historia__figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================ 6. CARTA ============================ */
.menu-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.35rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}
.menu-filters::-webkit-scrollbar { display: none; }
.menu-filters__btn {
  flex: 0 0 auto;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.menu-filters__btn:hover { color: var(--text); border-color: var(--brass); }
.menu-filters__btn.is-active,
.menu-filters__btn[aria-pressed="true"] {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--on-accent);
}
.menu-filters__btn--link { color: var(--brass); }

.menu-grid { display: grid; gap: 1.15rem; }

.menu-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.7rem;
  box-shadow: 0 18px 34px -30px var(--shadow);
}
.section--panel .menu-card { background: color-mix(in srgb, var(--bg) 60%, var(--bg-panel)); }
.menu-card__cat {
  display: block;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--rust);
  margin-bottom: 0.25rem;
}
.menu-card__title { font-size: 1.25rem; margin-bottom: 0.95rem; }
.menu-card__list { display: grid; gap: 0.6rem; }
.menu-card__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--border);
  font-size: 0.97rem;
}
.menu-card__item:last-child { border-bottom: none; padding-bottom: 0; }
.menu-card__name { display: inline-flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.menu-card__tag {
  font-family: "Oswald", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
  border: 1px solid var(--rust);
  border-radius: 2px;
  padding: 0.05rem 0.3rem;
}
.menu-card__price {
  font-variant-numeric: tabular-nums;
  color: var(--brass);
  white-space: nowrap;
  font-size: 0.92rem;
}
.menu-note {
  margin-top: 1.7rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.4rem;
}

/* ============================ 6. NEGRONIS ============================ */
/* Image left, all copy + cards right — mirrors the Bar layout. */
.negronis { background: var(--bg); }
.negronis__grid { display: grid; gap: clamp(1.75rem, 5vw, 3rem); }
.negronis__media { margin: 0; }
.negronis__media .media { display: block; aspect-ratio: 4 / 5; }
.negronis__figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}
.negronis__body { display: grid; gap: clamp(1.5rem, 4vw, 2.25rem); align-content: start; }

.negronis__intro { display: grid; gap: 0.7rem; }
.negronis__title { font-size: clamp(1.9rem, 5vw, 2.85rem); line-height: 1.1; }
.negronis__lede { color: var(--text-muted); max-width: 52ch; }

.negroni-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.negroni-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--wine);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.4rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}
.negroni-card__flag { font-size: 1.3rem; line-height: 1; }
.negroni-card__name { font-size: 1.05rem; line-height: 1.15; }
.negroni-card__price {
  font-family: "Oswald", sans-serif;
  color: var(--brass);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}
.negroni-card__desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ============================ 6. BAR ============================ */
.bar { background: var(--sea); color: #F4F2E8; }
.bar .eyebrow { color: color-mix(in srgb, var(--brass) 70%, #fff); }
.bar__grid { display: grid; gap: clamp(1.75rem, 6vw, 3.5rem); }
.bar__title { font-size: clamp(1.9rem, 5vw, 2.85rem); line-height: 1.1; margin-bottom: 1rem; }
.bar__intro { color: rgba(244, 242, 232, 0.82); margin-bottom: 1.6rem; }

.drink-list { display: grid; gap: 0.9rem; }
.drink-list__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(244, 242, 232, 0.24);
}
.drink-list__name { display: flex; flex-direction: column; gap: 0.15rem; }
.drink-list__name > span:first-child { font-family: "Yeseva One", serif; font-size: 1.12rem; }
.drink-list__name small {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: rgba(244, 242, 232, 0.68);
}
.drink-list__price {
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--brass) 70%, #fff);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.bar__media { margin: 0; }
.bar__media .media { display: block; aspect-ratio: 5 / 6; }
.bar__figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: rgba(244, 242, 232, 0.72);
  font-style: italic;
}

/* ============================ 6. EXPERIENCIAS ============================ */
/* Full-bleed photo colour-graded into the palette; text centred on top.
   Tokens are scoped dark so it stays a legible cinematic band in BOTH themes. */
.experiencias {
  --bg: #101923;
  --text: #F1E8DA;
  --text-muted: #D6DAD5;
  --brass: #E4BE7E;
  --rust: #E07A50;
  --wine: #B85050;
  --border: rgba(241, 232, 218, 0.22);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--text);
  text-align: center;
}
.experiencias__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.experiencias__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.experiencias__bg.media--missing img { display: none; }
.experiencias__bg.media--missing { background: linear-gradient(150deg, #16232f, #0f1822); }
.experiencias__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, transparent), color-mix(in srgb, var(--bg) 80%, transparent)),
    radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--wine) 32%, transparent), transparent 70%),
    radial-gradient(60% 60% at 50% 100%, color-mix(in srgb, var(--brass) 14%, transparent), transparent 65%);
}
.experiencias__bg.media--missing::before { position: absolute; inset: 0; }

.experiencias__inner {
  position: relative;
  max-width: var(--wrap);   /* same edge as every other section */
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.experiencias__inner > * { max-width: 46rem; }
.experiencias__title { font-size: clamp(1.8rem, 4.6vw, 2.5rem); line-height: 1.12; }
.experiencias__inner p { color: var(--text-muted); max-width: 52ch; }
.experiencias__inner .btn { justify-self: center; margin-top: 0.5rem; }

/* ============================ 6. EVENTOS ============================ */
.events__grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.event-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  display: grid;
  gap: 0.4rem;
}
.event-card__num {
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--brass);
}
.event-card__title { font-size: 1.12rem; }
.events__tagline { margin-top: clamp(1.75rem, 5vw, 3rem); text-align: center; }
.events__tagline span {
  font-family: "Yeseva One", serif;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  color: var(--rust);
}

/* ============================ 6. CONTACTO ============================ */
.contact__grid { display: grid; gap: clamp(1.75rem, 6vw, 3.5rem); }
.contact__title { font-size: clamp(1.9rem, 5vw, 2.85rem); line-height: 1.1; }
.info-list { display: grid; gap: 1.15rem; margin-top: 1.5rem; }
.info-list__term {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.info-list__desc { margin: 0.2rem 0 0; font-size: 1.05rem; }
.info-list__desc a { text-decoration: none; border-bottom: 1px solid var(--border); }
.info-list__desc a:hover { border-color: var(--rust); color: var(--rust); }

.contact__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.social-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; }
.social-row a {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.95rem;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.social-row a:hover { border-color: var(--rust); color: var(--rust); }

.contact__map { display: grid; align-content: stretch; min-width: 0; }
.contact__mapframe {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 18rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 34px 64px -44px var(--shadow);
}
.contact__mapframe iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================ 7. FOOTER ============================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  background: var(--bg);
}
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.site-footer__row .wordmark { color: var(--text); text-decoration: none; }

/* ============================ 8. STICKY CTA (mobile) ============================ */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 44;
  padding-block: 0.6rem;
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg-panel) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(120%);
  transition: transform 0.32s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sticky-cta__label {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.sticky-cta__btn { flex: 0 0 auto; }

/* ============================ 8. MEDIA — framing + fallbacks ============================ */
/* Every framed photo shares one warm tonal veil so the whole page reads as
   one palette, regardless of the source image. Kept light — elegant, not muddy. */
[data-media] { position: relative; overflow: hidden; border-radius: var(--radius); isolation: isolate; }
[data-media] > img,
[data-media] > picture,
[data-media] > picture > img { display: block; width: 100%; height: 100%; object-fit: cover; }
[data-media]:not(.hero__media):not(.experiencias__bg)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(125% 90% at 88% -6%, color-mix(in srgb, var(--brass) 13%, transparent), transparent 55%),
    linear-gradient(198deg, transparent 46%, color-mix(in srgb, var(--wood) 34%, transparent) 100%);
}

/* Framed photos: crisp warm border + soft elevation */
.historia__media .media,
.bar__media .media,
.negronis__media .media {
  border: 1px solid var(--border);
  box-shadow: 0 34px 64px -44px var(--shadow);
}
.bar__media .media img       { aspect-ratio: 5 / 6; }
.negronis__media .media img  { aspect-ratio: 4 / 5; }

[data-media].media--missing > img { display: none; }
[data-media].media--missing::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(90% 70% at 80% 10%, color-mix(in srgb, var(--brass) 12%, transparent), transparent 60%),
    linear-gradient(150deg, color-mix(in srgb, var(--wood) 82%, #000), var(--wood) 60%, color-mix(in srgb, var(--wood) 60%, var(--bg-panel)));
}
.hero__media.media--missing::before {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  min-height: 0;
}

/* ============================ 9. SCROLL REVEAL ============================ */
/* Elegant, restrained: gentle rise + fade, images also de-blur.
   Scoped to .js so no-JS visitors never get hidden content.
   JS adds .is-inview once; reduced-motion disables the whole effect. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal],
  .js [data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 0.9s var(--ease),
      transform 0.9s var(--ease),
      filter 0.9s var(--ease);
    will-change: opacity, transform;
  }
  .js [data-reveal="media"],
  .js [data-reveal-stagger="media"] > * { filter: blur(10px); }

  .js [data-reveal].is-inview,
  .js [data-reveal-stagger].is-inview > * {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .js [data-reveal-stagger].is-inview > *  { transition-delay: 0s; }
  .js [data-reveal-stagger].is-inview > :nth-child(2)  { transition-delay: 0.07s; }
  .js [data-reveal-stagger].is-inview > :nth-child(3)  { transition-delay: 0.14s; }
  .js [data-reveal-stagger].is-inview > :nth-child(4)  { transition-delay: 0.21s; }
  .js [data-reveal-stagger].is-inview > :nth-child(5)  { transition-delay: 0.28s; }
  .js [data-reveal-stagger].is-inview > :nth-child(6)  { transition-delay: 0.35s; }
  .js [data-reveal-stagger].is-inview > :nth-child(n+7) { transition-delay: 0.42s; }
}

/* ============================ 10. CARTA PAGE (carta.html) ============================ */
/* Home "ver carta completa" button */
.carta-full-cta { margin-top: clamp(1.75rem, 5vw, 2.5rem); }

/* --- Page header --- */
.carta-hero {
  padding-block: clamp(2.5rem, 8vw, 4.5rem) clamp(1.5rem, 4vw, 2.25rem);
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}
.carta-hero__back {
  display: inline-block;
  margin-bottom: 1.1rem;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.74rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.carta-hero__back:hover { color: var(--rust); }
.carta-hero__title { font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.05; }
.carta-hero__intro { margin-top: 0.9rem; color: var(--text-muted); }

/* --- Sticky section nav --- */
.carta-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.carta-nav__inner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 0.6rem;
}
.carta-nav__inner::-webkit-scrollbar { display: none; }
.carta-nav__group {
  flex: 0 0 auto;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
  color: var(--brass);
  padding-right: 0.35rem;
}
.carta-nav__group:not(:first-child) {
  border-left: 1px solid var(--border);
  padding-left: 0.75rem;
  margin-left: 0.4rem;
}
.carta-nav__link {
  flex: 0 0 auto;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.carta-nav__link:hover { color: var(--text); border-color: var(--brass); }
.carta-nav__link.is-current {
  color: var(--on-accent);
  background: var(--rust);
  border-color: var(--rust);
}

/* --- Menu body --- */
.carta-body { padding-block: clamp(2.5rem, 7vw, 4.5rem); }

.carta-group {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  color: var(--rust);
  margin: clamp(2.5rem, 7vw, 4rem) 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
}
.carta-group:first-child { margin-top: 0; }

.menu-section { scroll-margin-top: calc(var(--header-h) + 4rem); margin-bottom: clamp(2.25rem, 6vw, 3.5rem); }
.menu-section__title {
  font-size: clamp(1.3rem, 3.6vw, 1.75rem);
  margin-bottom: 1rem;
}
.menu-section__sub {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--brass);
  margin: 1.6rem 0 0.7rem;
}
.menu-section__note {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 62ch;
  margin-bottom: 1.1rem;
}

/* Dishes with description */
.dish-list { display: grid; gap: 1.1rem; }
.dish {
  display: grid;
  gap: 0.3rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px dashed var(--border);
}
.dish:last-child { border-bottom: none; padding-bottom: 0; }
.dish__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.dish__name {
  font-family: "Karla", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}
.dish__ctry { font-size: 0.95rem; }
.dish__price {
  flex: 0 0 auto;
  font-family: "Oswald", sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  color: var(--brass);
  white-space: nowrap;
}
.dish__desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 68ch;
}
.dish__flag {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
  border: 1px solid var(--rust);
  border-radius: 2px;
  padding: 0.05rem 0.32rem;
  vertical-align: middle;
  white-space: nowrap;
}
.dish__flag--veg { color: var(--sea); border-color: var(--sea); }

/* Bottle / plain price rows */
.bottle-list {
  display: grid;
  gap: 0.55rem 2rem;
  grid-template-columns: 1fr;
}
.bottle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}
.bottle__name { color: var(--text); }
.bottle__price {
  flex: 0 0 auto;
  font-family: "Oswald", sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 0.86rem;
  color: var(--brass);
  white-space: nowrap;
}

.wine-cols { display: grid; gap: 0 2.5rem; }

.carta-foot-note {
  margin-top: clamp(2.5rem, 7vw, 4rem);
  padding-top: clamp(1.75rem, 5vw, 2.5rem);
  border-top: 2px solid var(--border);
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}
.carta-foot-note .menu-note { color: var(--text-muted); font-size: 0.95rem; max-width: 62ch; }

/* ============================ RESPONSIVE ============================ */

/* ---- ≥ 30rem (480px) ---- */
@media (min-width: 30rem) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .events__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- ≥ 48rem (768px) : tablet — layouts open up, nav stays a drawer ---- */
@media (min-width: 48rem) {
  :root { --header-h: 4.75rem; }

  .sticky-cta { display: none; }  /* JS also guards, but hard stop past mobile */

  .historia__grid  { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .bar__grid       { grid-template-columns: 1fr 1fr; align-items: start; }
  .contact__grid   { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .negroni-grid    { grid-template-columns: repeat(2, 1fr); }
  .events__grid    { grid-template-columns: repeat(4, 1fr); }

  /* Map fills the column so it ends level with the social buttons */
  .contact__grid > * { min-width: 0; }
  .contact__mapframe { aspect-ratio: auto; min-height: 100%; height: 100%; }

  /* Negronis: image left, copy + cards right (mirrors the Bar) */
  .negronis__grid  { grid-template-columns: 0.82fr 1.18fr; align-items: start; }
  .negronis__media {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }

  /* Experiencias: copy left-aligned on the shared .wrap edge, vertically
     centred within the cinematic band (same treatment as every other section). */
  .experiencias {
    display: grid;
    align-content: center;
    min-height: min(78vh, 620px);
    text-align: left;
  }
  .experiencias__inner { justify-items: start; }
  .experiencias__inner p { margin-inline: 0; }
  .experiencias__inner .btn { justify-self: start; }

  /* Carta page: denser bottle lists */
  .bottle-list { grid-template-columns: repeat(2, 1fr); }
  .wine-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---- ≥ 60rem (960px) : nav goes inline, drawer retires ---- */
@media (min-width: 60rem) {
  .site-nav__toggle { display: none; }
  .site-nav__close { display: none; }
  body::after { display: none; }
  .nav-open { overflow: visible; }

  .site-nav {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: clamp(0.85rem, 2vw, 1.8rem);
    margin-left: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    overflow: visible;
  }
  .site-nav__link { font-size: 0.8rem; padding: 0; }
  .site-nav__cta { margin-top: 0; margin-left: 0.3rem; }
}

/* ---- ≥ 64rem (1024px) : desktop ---- */
@media (min-width: 64rem) {
  body { font-size: 1.09375rem; }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }

  /* Carta page: two-column dish lists, three-column bottle lists */
  .dish-list { grid-template-columns: repeat(2, 1fr); gap: 1.1rem 2.5rem; }
  .dish { align-content: start; }
  .bottle-list { grid-template-columns: repeat(3, 1fr); }
}

/* ---- ≥ 80rem (1280px) : ultra-wide ---- */
@media (min-width: 80rem) {
  :root { --wrap: 1240px; }
  .hero__inner > * { max-width: 46rem; }
}
