/* ═══════════════════════════════════════════════════════════
   MERCADER DEL MAR — Hoja de estilos principal
   Fuentes: Cinzel (headings) · Montserrat (body) — autoalojadas
   Paleta: navy #2C3A4F · gold #CEBD88 · cream #F1F0E8
═══════════════════════════════════════════════════════════ */

/* Fuentes autoalojadas — GDPR-safe, sin petición a Google */
@import url('fonts.css');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --gold:        #CEBD88;
  --gold-dk:     #8B7A45;
  --bg:          #F1F0E8;
  --navy:        #2C3A4F;
  --n12:         rgba(44, 58, 79, .12);
  --n50:         rgba(44, 58, 79, .50); /* sólo para bordes y elementos decorativos */
  --text-muted:  rgba(44, 58, 79, .65); /* subido de .50 → .65 para cumplir WCAG AA */
  --font-hl:     'Cinzel', Georgia, serif;
  --font:        'Montserrat', sans-serif;
}

/* ── SKIP LINK — accesibilidad teclado ───────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: .5rem 1.25rem;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: top .2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* ── FOCUS VISIBLE ───────────────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Elimina el delay de 300ms en iOS al tocar botones y enlaces */
a, button, .af-btn, .af-reset, .nav-link, .lang-btn, .float-btn {
  touch-action: manipulation;
}

/* ── RESET ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

/* ── BODY ────────────────────────────────────────────────── */
body {
  position: relative;
  width: 100%;
  font-synthesis: none;
  font-family: var(--font);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(44, 58, 79, .035) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  /* clip en lugar de hidden: no crea scroll container y preserva position:sticky */
  overflow-x: clip;
}

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--n12); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(400px, 70vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--navy);
  overflow: hidden;
  padding: 2rem 2rem 0;
}


.hero-blob {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-blob-a,
.hero-blob-b {
  position: absolute;
  border-radius: 50%;
  /* will-change sólo aquí porque son los únicos elementos con animación continua */
  will-change: transform;
  top: 50%;
  left: 50%;
}

.hero-blob-a {
  width: 140%;
  height: 45%;
  background: radial-gradient(ellipse at center,
    rgba(206,185,136,.52) 0%,
    rgba(206,185,136,.18) 38%,
    transparent 62%
  );
}

.hero-blob-b {
  width: 120%;
  height: 30%;
  background: radial-gradient(ellipse at center,
    rgba(206,185,136,.28) 0%,
    rgba(206,185,136,.07) 42%,
    transparent 64%
  );
}

.hero-grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 1;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  animation: grainShift 4s steps(1) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(  0%,  0%); }
  20%  { transform: translate( -4%,  7%); }
  40%  { transform: translate(  5%, -6%); }
  60%  { transform: translate( -7%,  3%); }
  80%  { transform: translate(  3%,  8%); }
  100% { transform: translate(  0%,  0%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-grain { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .32em;
  color: rgba(255, 255, 255, .85);
  padding-bottom: .7rem;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-family: var(--font-hl);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: normal;
  letter-spacing: 0.03em;
  line-height: .88;
  color: #F1F0E8;
  margin-bottom: 1.5rem;
}

.hero h1 .go { color: var(--gold); }

.hero-rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  opacity: .55;
  margin: 0 auto 1.5rem;
}

.hero-tagline {
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(206, 189, 136, .9);
  margin-bottom: 3rem;
}

/* ── STICKY NAV ──────────────────────────────────────────── */
.nav {
  position: sticky;
  transform: translateZ(0);
  top: 0;
  z-index: 200;
  padding: .55rem 2.5rem .3rem;
  background: rgba(241, 240, 232, .98);
  border-bottom: 1px solid var(--n12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem 1rem;
  overflow: visible;
}

/* ── FILTRO DE CATEGORÍAS (inyectado por JS) ─────────────── */
.cat-bar {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
}

.cat-btn {
  padding: .27rem .85rem;
  font-family: var(--font);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--n12);
  cursor: pointer;
  line-height: 1.2;
  transition: color .18s, background .18s, border-color .18s;
}
.cat-btn:hover  { color: var(--navy); border-color: rgba(44,58,79,.4); }
.cat-btn.active { color: var(--bg); background: var(--navy); border-color: var(--navy); }

/* ── ESTADOS OCULTOS ─────────────────────────────────────── */
.sec--hidden       { display: none !important; }
.page-rule--hidden { display: none !important; }

/* Efecto vidrio esmerilado sólo si el navegador lo soporta */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .nav {
    background: rgba(241, 240, 232, .95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  display: block;
  height: 22px;
  width: auto;
  max-width: 100px;
}

.nav-links {
  order: 10;
  width: 100%;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  border-top: 1px solid var(--n12);
  padding-top: .15rem;
  margin-top: .05rem;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
  white-space: nowrap;
  padding: .4rem .85rem;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
  scroll-snap-align: start;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

/* ── SELECTOR DE IDIOMA ──────────────────────────────────── */
.lang-sel {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: .35rem .45rem;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
  line-height: 1;
  text-decoration: none;
}

.lang-btn:hover  { color: var(--navy); }
.lang-btn.active { color: var(--navy); border-bottom-color: var(--gold); }

.lang-sep {
  width: 1px;
  height: 10px;
  background: var(--n12);
}

.nav-group-sep {
  width: 1px;
  height: 16px;
  background: var(--n12);
  flex-shrink: 0;
  align-self: center;
  margin: 0 .2rem;
}

/* ── SECTION SCAFFOLD ────────────────────────────────────── */
.sec {
  contain: layout paint; /* crea BFC propio; clipa pintura sin afectar sticky del padre */
  scroll-margin-top: 105px;
  position: relative;
  overflow: hidden;
}

.sec-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 2rem 2.5rem 2.5rem;
  position: relative;
  z-index: 1;
}

/* ── ANIMACIONES DE ENTRADA ──────────────────────────────── */
/* will-change se gestiona vía JS: se añade antes de animar y se libera al terminar */
.will-animate,
.fade-up {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease;
}

.will-animate.visible,
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .will-animate,
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ── ALÉRGENOS ───────────────────────────────────────────── */
.allergens {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .4rem;
}

/* imágenes oficiales de alérgenos (26×26 px) */
.allergen {
  width: 26px;
  height: 18px;
  object-fit: cover;
  object-position: center top;
  cursor: default;
  user-select: none;
  display: block;
  flex-shrink: 0;
}

/* ── FILTRO ALÉRGENOS ────────────────────────────────────── */
.allergen-filter-section {
  background: var(--bg);
  border-bottom: 1px solid var(--n12);
  padding: 1rem 2.5rem;
}

.af-inner { max-width: 1020px; margin: 0 auto; }

.af-title {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--gold-dk);
  margin-bottom: 0;
}

.af-sub {
  font-size: .72rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Botón de apertura del sidebar ────────────────────── */
.af-open-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: none;
  border: 1px solid var(--n12);
  padding: .55rem 1.1rem;
  cursor: pointer;
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--gold-dk);
  transition: border-color .18s, background .18s;
  touch-action: manipulation;
}

.af-open-btn:hover {
  border-color: rgba(206, 185, 136, .45);
  background: rgba(206, 185, 136, .06);
}

/* ── Sidebar alérgenos ────────────────────────────────── */
.af-no-scroll { overflow: hidden; }

.af-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(320px, 90vw);
  background: var(--bg);
  z-index: 600;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 40px rgba(44, 58, 79, .18);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.af-sidebar.open { transform: translateX(0); }

.af-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 58, 79, .45);
  z-index: 599;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.af-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.af-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--n12);
  flex-shrink: 0;
}

.af-sidebar-head .af-title { margin-bottom: 0; }

.af-sidebar-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color .18s, background .18s;
  touch-action: manipulation;
}

.af-sidebar-close:hover {
  color: var(--navy);
  background: var(--n12);
}

.af-sidebar-sub {
  padding: .75rem 1.5rem;
  border-bottom: 1px solid var(--n12);
  flex-shrink: 0;
}

.af-sidebar-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.af-sidebar-body .af-btns {
  flex-direction: column;
  align-items: stretch;
  gap: .3rem;
}

.af-sidebar-body .af-btn {
  justify-content: flex-start;
  padding: .55rem .75rem;
}

.af-sidebar-body .af-reset {
  margin-top: .5rem;
  text-align: left;
}

.af-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}

.af-btn img {
  display: block;
  width: 18px;
  height: 12px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.af-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .75rem;
  border: 1px solid var(--n12);
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: .63rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background .15s, border-color .15s, color .15s;
  user-select: none;
}

.af-btn:hover { border-color: rgba(206,185,136,.45); color: var(--navy); }
.af-btn.active {
  background: rgba(206,185,136,.15);
  border-color: var(--gold);
  color: var(--navy);
}

.af-reset {
  border-color: transparent;
  color: var(--text-muted);
  font-size: .72rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  font-family: var(--font);
  font-weight: 600;
  padding: .35rem .5rem;
}
.af-reset:hover { color: var(--navy); }

.mi.mi-hidden {
  opacity: .12 !important;
  pointer-events: none;
}

/* ── SECTION LABELS ──────────────────────────────────────── */
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--gold-dk);
  margin-bottom: .6rem;
}

.sec-label svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.sec-title {
  font-family: var(--font-hl);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: normal;
  letter-spacing: 0.02em;
  line-height: 1;
}

.sec-title .go { color: var(--gold); }
.sec-title .fd { color: rgba(44, 58, 79, .18); }

.sec-sub {
  font-size: .77rem;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
  margin-top: .5rem;
}

.sec-rule {
  clear: both;
  height: 1px;
  margin: 1.75rem 0 2rem;
  background: rgba(206, 189, 136, .4);
}

.page-rule {
  height: 1px;
  background: rgba(206, 189, 136, .4);
  max-width: 1020px;
  margin: 0 auto;
}

/* ── MENU LIST ───────────────────────────────────────────── */
.mlist {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .mlist.c2 {
    grid-template-columns: 1fr 1fr;
    column-gap: 4rem;
  }
}

.mi {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .95rem .6rem;
  margin: 0 -.6rem;
  border-bottom: 1px solid var(--n12);
  /* transition se usa sólo para hover; will-change gestionado por JS en fade-in */
  transition: opacity .45s ease, transform .45s ease,
              background-color .18s ease, border-bottom-color .18s ease;
  cursor: default;
}

.mi:last-child { border-bottom: none; }

.mi:hover {
  background-color: rgba(206, 189, 136, .08);
  border-bottom-color: rgba(206, 189, 136, .28);
}

.mi-l {
  flex: 1;
  min-width: 0;
}

.mi-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.38;
}

.mi-desc {
  font-size: .72rem;
  color: rgba(44, 58, 79, .72);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  margin-top: .15rem;
}

/* ── TAGS ────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  font-size: .54rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .1rem .35rem;
  margin-left: .4rem;
  vertical-align: middle;
}

.tag-gold {
  background: rgba(206, 189, 136, .16);
  color: var(--gold-dk);
  border: 1px solid rgba(206, 189, 136, .35);
}

.tag-blue {
  background: rgba(107, 143, 171, .12);
  color: #4A7A9B;
  border: 1px solid rgba(107, 143, 171, .28);
}

/* ── PRECIOS ─────────────────────────────────────────────── */
.mi-price {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.mi-psm {
  font-size: .64rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text-muted);
  border: 1px solid var(--n12);
  padding: .18rem .44rem;
}

/* ── NOTAS ───────────────────────────────────────────────── */
.note {
  margin-top: 2.25rem;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: rgba(206, 189, 136, .06);
}

.note p {
  font-size: .74rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.65;
}

.note strong {
  color: var(--navy);
  font-style: normal;
}

/* ── AVISO PAELLA ────────────────────────────────────────── */
.paella-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  margin-bottom: 2.75rem;
  border: 1px solid rgba(206, 189, 136, .28);
  background: rgba(206, 189, 136, .08);
}

.paella-notice svg {
  width: 17px;
  height: 17px;
  color: var(--gold-dk);
  flex-shrink: 0;
  margin-top: 2px;
}

.paella-notice p {
  font-size: .76rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.paella-notice strong { color: var(--navy); }

/* ── CHIPS (menú infantil) ───────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .75rem;
  border: 1px solid rgba(206, 189, 136, .3);
  background: rgba(206, 189, 136, .08);
  color: var(--gold-dk);
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.chip svg { width: 11px; height: 11px; }

/* ── SUBSECCIONES ────────────────────────────────────────── */
.subsec { margin-top: 2.5rem; }
.subsec:first-child { margin-top: 0; }

.subsec-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--gold-dk);
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(206, 189, 136, .4);
  margin-bottom: .25rem;
}

/* ── VINOS — columnas precio ─────────────────────────────── */
.wine-cols {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  padding: .4rem .6rem .2rem;
}

.wine-cols span {
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 44px;
  text-align: right;
}

.mi-price-dual {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.mi-price-dual .mi-price {
  min-width: 44px;
  text-align: right;
}

.mi-price-empty {
  min-width: 44px;
  text-align: right;
  color: var(--text-muted);
  font-size: .75rem;
}

/* ── FLOAT BUTTON ────────────────────────────────────────── */
.float-btn {
  position: fixed;
  /* env() protege del notch/home bar en iPhone */
  bottom: max(2rem, calc(1.5rem + env(safe-area-inset-bottom)));
  right: max(2rem, calc(1.5rem + env(safe-area-inset-right)));
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1.05rem 1.8rem;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  text-decoration: none;
  box-shadow: 0 8px 40px rgba(44, 58, 79, .22), 0 2px 8px rgba(44, 58, 79, .1);
  transition: background .22s, color .22s, transform .22s, box-shadow .22s;
}

.float-btn:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 14px 50px rgba(206, 189, 136, .28);
}

.float-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 5rem 2.5rem max(3rem, calc(2rem + env(safe-area-inset-bottom)));
}

.footer-grid {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.f-logo {
  font-family: var(--font-hl);
  font-size: 1.55rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  color: #F1F0E8;
  margin-bottom: .75rem;
}

.f-logo .go { color: var(--gold); }

.f-brand p {
  font-size: .8rem;
  line-height: 1.75;
  color: rgba(241, 240, 232, .48); /* subido de .42 → .48, ratio ~4.9:1 */
}

.f-col h5 {
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.f-col a,
.f-col p {
  display: block;
  font-size: .82rem;
  line-height: 1.9;
  color: rgba(241, 240, 232, .48); /* subido de .42 → .48 */
  text-decoration: none;
}

.f-col a:hover { color: var(--gold); }

/* reemplaza los inline styles del footer */
.f-col-note {
  margin-top: .75rem;
  font-size: .72rem !important;
  line-height: 1.7 !important;
}

.f-bottom {
  max-width: 1020px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(241, 240, 232, .07);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .65rem;
  color: rgba(241, 240, 232, .35); /* subido de .22 → .35 para mejorar contraste */
  letter-spacing: .02em;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .allergen-filter-section { padding: .85rem 1.5rem; }

  .nav {
    padding: .4rem 1.5rem .2rem;
    gap: .15rem;
  }

  .nav-brand { flex: 1; }
  .lang-sel  { }

  .cat-bar {
    order: 2;
    flex: none;
    width: 100%;
    justify-content: flex-start;
    gap: .2rem;
    border-top: 1px solid var(--n12);
    padding-top: .2rem;
    margin-top: .1rem;
  }
  .cat-btn { font-size: .56rem; padding: .22rem .5rem; }

  .nav-links {
    order: 3;
    border-top: 1px solid var(--n12);
    padding: .15rem 2rem .1rem 0;
    margin-top: .05rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    gap: 0;
  }

  .nav-links::-webkit-scrollbar { display: none; }

  .nav-link {
    flex-shrink: 0;
    padding: .4rem .65rem;
    font-size: .58rem;
  }

  .nav-group-sep { display: none; }

  .sec { scroll-margin-top: 130px; }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }

  .sec-inner { padding: 1rem 1.5rem 1.5rem; }

  .float-btn {
    padding: .9rem 1.4rem;
    font-size: .7rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── VOLVER ARRIBA ───────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: max(2rem, calc(1.5rem + env(safe-area-inset-bottom)));
  left:   max(2rem, calc(1.5rem + env(safe-area-inset-left)));
  z-index: 500;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 58, 79, .88);
  border: 1px solid rgba(206, 189, 136, .3);
  cursor: pointer;
  font-family: inherit;
  /* oculto por defecto — JS añade .visible */
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .18s, border-color .18s;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--navy);
  border-color: var(--gold);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .back-to-top {
    width: 40px;
    height: 40px;
  }
}

@media print {
  .back-to-top { display: none !important; }
}

/* ── MENÚ DEL DÍA ────────────────────────────────────────── */
.mdia-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.mdia-price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1rem;
  border: 1px solid rgba(206, 189, 136, .3);
  background: rgba(206, 189, 136, .06);
  text-align: center;
  gap: .4rem;
}

.mdia-price-label {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--text-muted);
}

.mdia-price-amount {
  font-family: var(--font-hl);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 400;
  color: var(--gold-dk);
  line-height: 1;
}

.mdia-price-time {
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--n50);
  text-transform: uppercase;
}

.mdia-includes {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(206, 189, 136, .08);
  border: 1px solid rgba(206, 189, 136, .25);
}

.mdia-includes-label {
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--gold-dk);
  white-space: nowrap;
  padding-top: .1rem;
}

.mdia-include-items {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.mdia-include-items span {
  font-size: .76rem;
  color: var(--navy);
  line-height: 1.5;
}

.mdia-include-items em {
  color: var(--text-muted);
  font-style: normal;
}

.mdia-course { margin-top: 2.25rem; }
.mdia-course:first-of-type { margin-top: 0; }

.mdia-course-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(206, 189, 136, .4);
  margin-bottom: .2rem;
}

.mdia-course-header h3 {
  font-family: var(--font-hl);
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: .04em;
  color: var(--gold-dk);
}

.mdia-course-header p {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--text-muted);
}

.sec-menu-dia .paella-notice { margin-bottom: .25rem; }

.mdia-legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem 2rem;
  margin-top: 1.5rem;
  list-style: none;
}

.mdia-legal li {
  font-size: .67rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding-left: .9rem;
  position: relative;
}

.mdia-legal li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold-dk);
}

@media (max-width: 640px) {
  .mdia-prices     { grid-template-columns: 1fr; }
  .mdia-legal      { grid-template-columns: 1fr; }
  .mdia-includes   { flex-direction: column; gap: .5rem; }
  .mdia-price-card { padding: 1.25rem .75rem; }
}

/* ── STRIP ATMOSFÉRICO ───────────────────────────────────── */
.atm-strip {
  width: 100%;
  height: clamp(240px, 38vw, 480px);
  overflow: hidden;
}

.atm-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

/* ── FOTOS DE SECCIÓN ────────────────────────────────────── */
.sec-photo {
  float: right;
  width: 170px;
  height: 170px;
  margin: 0 0 0.5rem 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  shape-outside: border-box;
}

.sec-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .sec-photo {
    width: 120px;
    height: 120px;
    margin: 0 0 0.5rem 1rem;
  }
}

/* ── LIGHTBOX ────────────────────────────────────────────── */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  z-index: 9998;
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lb-overlay.open {
  display: flex;
}

.lb-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 60px rgba(0, 0, 0, .6);
  pointer-events: none;
}

.sec-photo img {
  cursor: zoom-in;
}

/* ── PRINT ───────────────────────────────────────────────── */
@media print {
  /* sobreescribe tokens para impresión en B/N */
  :root {
    --gold:    #000;
    --gold-dk: #000;
    --navy:    #000;
    --bg:      #fff;
    --text-muted: rgba(0,0,0,.6);
  }

  .nav,
  .float-btn,
  .allergen-filter-section,
  .hero-grain,
  .hero-blob,
  .sec-photo,
  .atm-strip { display: none !important; }

  body {
    background: #fff;
    background-image: none;
    color: #000;
    font-size: 11pt;
  }

  .hero {
    min-height: auto;
    background: #fff;
    padding: 1.5rem;
    color: #000;
  }

  .hero h1    { color: #000; font-size: 1.8rem; line-height: 1.2; }
  .hero-rule  { display: none; }
  .hero-eyebrow,
  .hero-tagline { color: #555; }

  .sec { page-break-inside: avoid; break-inside: avoid; overflow: visible; }
  .sec-inner { padding: .75rem 0; }

  .footer {
    background: #fff;
    padding: 1rem 0;
    color: #000;
  }

  .f-logo,
  .f-brand p,
  .f-col a,
  .f-col p,
  .f-bottom { color: #000; }

  /* evita imprimir URLs de los enlaces */
  a[href]::after { content: none; }
}
