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

:root {
  --black:  #070707;
  --dark:   #111111;
  --dark2:  #171717;
  --gold:   #c9a96e;
  --white:  #f5f0e8;
  --muted:  #7a7570;
  --serif:  'Playfair Display', Georgia, serif;
  --sans:   'Raleway', system-ui, sans-serif;
}

/* overflow-x: clip (no crea scroll-container) — 'hidden' trencaria position:sticky */
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

/* Visible per a lectors de pantalla i cercadors, invisible en pantalla */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  height: 76px;
  transition: background .6s, border-color .6s, height .4s;
  border-bottom: 1px solid transparent;
}
nav.solid {
  background: rgba(7,7,7,.97);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-color: rgba(201,169,110,.14);
  height: 66px;
}
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(245,240,232,.6);
  transition: color .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
/* Enllaç "en directe": mentre hi ha cartelera nova, el text de Monòlegs
   llueix en daurat amb un reflex que el recorre i un subratllat que respira.
   En visitar els monòlegs (is-seen) torna a ser un enllaç normal. */
.nav-live:not(.is-seen) {
  position: relative;
  background: linear-gradient(100deg,
    var(--gold) 0%, var(--gold) 38%,
    #f8ecd2 50%,
    var(--gold) 62%, var(--gold) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
  animation: nav-shine 3s linear infinite;
}
.nav-live:not(.is-seen)::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -5px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform-origin: center;
  animation: nav-breathe 3s ease-in-out infinite;
}
@keyframes nav-shine {
  0%   { background-position: 125% 0; }
  100% { background-position: -125% 0; }
}
@keyframes nav-breathe {
  0%, 100% { opacity: .2; transform: scaleX(.35); }
  50%      { opacity: 1;  transform: scaleX(1); }
}
/* El subratllat propi de l'enllaç actiu ja fa la feina a la pàgina de monòlegs */
.nav-links a.active.nav-live:not(.is-seen)::after { display: none; }
.mob-menu .nav-live:not(.is-seen)::after { bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .nav-live:not(.is-seen) { animation: none !important; }
  .nav-live:not(.is-seen)::after { animation: none !important; opacity: .7; transform: none; }
}
.nav-links a.active {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; border: none; background: none; padding: 4px;
}
.burger span {
  display: block; width: 24px; height: 1px;
  background: var(--white); transition: all .3s;
}
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mob-menu {
  display: none; position: fixed; inset: 0;   /* pantalla completa: res no es veu per darrere */
  padding-top: 76px;                          /* deixa lloc a la barra superior (logo + tancar) */
  background: #070707; z-index: 800;   /* opac del tot: res no es transparenta */
  flex-direction: column; align-items: center;
  gap: clamp(12px, 3.2vh, 34px);
  overflow-y: auto;                           /* pantalles molt baixes: scroll, mai solapament */
}
.mob-menu.open { display: flex; }
.mob-menu > a {
  font-family: var(--serif); font-size: clamp(26px, 4.4vh, 38px); font-weight: 400;
  font-style: italic; letter-spacing: .02em; color: var(--white); transition: color .3s;
}
.mob-menu > a:first-of-type { margin-top: auto; }   /* centra els enllaços a l'espai lliure */
.mob-menu > a:hover { color: var(--gold); }

.mob-contact {
  margin-top: auto;                        /* flux normal: mai trepitja els enllaços */
  width: 100%;
  padding: 16px 24px calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(201,169,110,.07);
  text-align: center;
}
/* Horari per dies dins el menú mòbil */
.mob-hours {
  list-style: none;
  width: min(240px, 100%);
  margin: 0 auto 12px; padding: 0;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.mob-hours li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 3px 0;
  color: rgba(245,240,232,.4); line-height: 1.6;
}
.mob-hours li em { font-style: normal; color: rgba(245,240,232,.55); }
.mob-hours li em.closed { color: rgba(201,169,110,.3); }
.mob-hours li.is-today span,
.mob-hours li.is-today em { color: var(--gold); }
.mob-contact-phone {
  display: block;
  font-family: var(--serif); font-size: 20px; font-weight: 300; font-style: italic;
  color: rgba(245,240,232,.50); transition: color .3s;
}
.mob-contact-phone:hover { color: var(--gold); }

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(201,169,110,.10);
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 300px;
  background: url('img/african-pattern.jpg') center top / cover;
  opacity: .04;
  pointer-events: none;
}

.foot-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 52px;
  padding: 72px 52px 56px;
  border-bottom: 1px solid rgba(201,169,110,.06);
  position: relative;
}
.foot-col-label {
  font-size: 9px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.foot-address {
  font-style: normal;
  font-family: var(--serif); font-size: 16px; font-weight: 400;
  color: rgba(245,240,232,.72); line-height: 1.7; margin-bottom: 22px;
}
.foot-address a { color: inherit; transition: color .3s; }
.foot-address a:hover { color: var(--gold); }
.foot-hours { margin-bottom: 22px; max-width: 250px; }
.foot-hour-row {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.045);
}
.foot-hour-row:last-child { border-bottom: none; }
.foot-hour-row span {
  font-size: 11px; color: rgba(245,240,232,.35);
  letter-spacing: .04em; flex-shrink: 0;
}
.foot-hour-row em { font-style: normal; font-size: 13px; color: rgba(245,240,232,.65); }
.foot-hour-row em.closed { color: rgba(201,169,110,.32); }
/* Fila del footer que aplica avui */
.foot-hour-row.is-today span,
.foot-hour-row.is-today em { color: var(--gold); }
.foot-hour-row.is-today span::before {
  content: ''; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); margin-right: 8px; vertical-align: 2px;
}

/* ── Horari per dies (pàgina de contacte) ── */
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 14px; line-height: 1.6;
}
.hours-list li span { color: rgba(245,240,232,.62); }
.hours-list li em { font-style: normal; color: rgba(245,240,232,.85); white-space: nowrap; }
.hours-list li em.closed { color: rgba(201,169,110,.35); }
.hours-list li.is-today span,
.hours-list li.is-today em { color: var(--gold); }
.hours-list li.is-today span::after {
  content: 'Avui';
  font-family: var(--sans); font-size: 8px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: #1a140a; background: var(--gold);
  padding: 3px 7px 2px; border-radius: 2px;
  margin-left: 10px; vertical-align: 2px;
}
.hours-note {
  margin-top: 14px; font-size: 11.5px; line-height: 1.7;
  color: rgba(245,240,232,.4);
}
.foot-phone {
  display: inline-block;
  font-size: 12px; letter-spacing: .12em;
  color: rgba(245,240,232,.38); transition: color .3s;
}
.foot-phone:hover { color: var(--gold); }

.foot-brand {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.foot-logo { height: 40px; width: auto; opacity: .72; margin-bottom: 14px; }
.foot-tagline {
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(201,169,110,.38);
}
.foot-socials { display: flex; gap: 10px; margin-top: 26px; }

.foot-col-r {
  display: flex; flex-direction: column; align-items: flex-end;
}
.foot-nav { list-style: none; }
.foot-nav li { margin-bottom: 9px; }
.foot-nav a {
  font-size: 12px; letter-spacing: .08em;
  color: rgba(245,240,232,.40); transition: color .3s;
}
.foot-nav a:hover { color: var(--gold); }

.foot-bottom {
  padding: 22px 52px;
  display: grid; grid-template-columns: 1fr auto 1fr;   /* laterals simètrics → correu centrat de debò */
  align-items: center; gap: 16px;
}
.foot-bottom > p { justify-self: start; }
.foot-bottom > a[href^="mailto"] { justify-self: center; }
.foot-bottom > .cc-prefs-link { justify-self: end; }
.foot-legal {
  justify-self: end;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 18px;
}
.foot-bottom p {
  font-size: 11px; letter-spacing: .06em; color: rgba(245,240,232,.18);
}
.foot-bottom a {
  font-size: 11px; letter-spacing: .06em;
  color: rgba(245,240,232,.18); transition: color .3s;
}
.foot-bottom a:hover { color: rgba(245,240,232,.45); }

@media (max-width: 860px) {
  .foot-top {
    grid-template-columns: 1fr;
    padding: 52px 24px 44px;
    text-align: center;
    gap: 44px;
  }
  .foot-brand { order: -1; }
  .foot-col-r { align-items: center; }
  .foot-hours { margin-left: auto; margin-right: auto; }   /* bloc centrat, files alineades */
  .foot-socials { justify-content: center; }
  .foot-address { font-size: 15px; }
  .foot-bottom {
    padding: 20px 24px;
    display: flex; flex-direction: column; gap: 8px; text-align: center;
  }
  .foot-legal { justify-content: center; }
}

/* ── SHARED ATOMS ── */
.sec-label {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.sec-title {
  font-family: var(--serif); font-weight: 300; line-height: 1.1; color: var(--white);
}
.sec-title em { font-style: italic; }
.rule { width: 44px; height: 1px; background: var(--gold); margin: 22px 0; }
.rule.c { margin: 22px auto; }

.btn {
  display: inline-block; border: 1px solid var(--gold);
  color: var(--gold); font-family: var(--sans); font-size: 10px;
  font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  padding: 13px 32px; transition: background .35s, color .35s, letter-spacing .35s, box-shadow .35s;
}
.btn:hover {
  background: var(--gold); color: var(--black);
  box-shadow: 0 0 24px rgba(201,169,110,.2);
}

/* ── PAGE HERO (subpages) ── */
.page-hero {
  position: relative; height: 100vh; height: 100svh; min-height: 520px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,7,7,.3) 0%, rgba(7,7,7,.55) 60%, rgba(7,7,7,1) 100%);
}
.page-hero-content {
  position: relative; z-index: 2; text-align: center; padding: 0 24px;
  padding-top: 76px;
}
.page-hero-title {
  font-family: var(--serif); font-size: clamp(60px, 10vw, 120px);
  font-weight: 300; color: var(--white); line-height: 1;
  text-shadow: 0 2px 40px rgba(0,0,0,.5);
}
.page-hero-title em { font-style: italic; }
.page-hero-sub {
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(245,240,232,.52); margin-top: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

/* ── REVEAL ── */
.reveal, .reveal-l, .reveal-r {
  opacity: 0; transition: opacity 1.1s cubic-bezier(.22,1,.36,1), transform 1.1s cubic-bezier(.22,1,.36,1);
}
.reveal      { transform: translateY(36px); }
.reveal-l    { transform: translateX(-48px); }
.reveal-r    { transform: translateX(48px); }
.reveal.on, .reveal-l.on, .reveal-r.on { opacity: 1; transform: none; }

/* ── LIGHTBOX ── */
.lb {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.96); z-index: 9999;
  align-items: center; justify-content: center;
}
.lb.open { display: flex; }
.lb img { max-width: 90vw; max-height: 90vh; object-fit: contain; display: block; }
.lb-close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none; color: rgba(245,240,232,.5);
  font-size: 36px; font-weight: 300; cursor: pointer;
  font-family: var(--sans); line-height: 1; transition: color .3s;
}
.lb-close:hover { color: var(--white); }

/* ── SOCIAL BUTTONS ── */
.socials { display: flex; gap: 12px; margin-top: 22px; }
.soc-btn {
  width: 40px; height: 40px; border: 1px solid rgba(201,169,110,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: border-color .3s, color .3s;
}
.soc-btn:hover { border-color: var(--gold); color: var(--gold); }
.soc-btn svg { width: 15px; height: 15px; fill: currentColor; display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .burger { display: flex; }
}
@media (max-width: 540px) {
  .page-hero-title { font-size: clamp(44px, 12vw, 72px); }
}

/* ── AFRICAN PATTERN BAND ── */
.african-band {
  position: relative;
  background-image: url('img/interior-bw.jpg');
  background-size: cover;
  background-position: center 40%;
  padding: 110px 24px;
  text-align: center;
  overflow: hidden;
}
.african-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7,7,7,.88) 0%,
    rgba(7,7,7,.72) 20%,
    rgba(7,7,7,.60) 50%,
    rgba(7,7,7,.70) 80%,
    rgba(7,7,7,.90) 100%
  );
}
.african-band > * { position: relative; z-index: 2; }
.af-ornament { display: none; }
.af-quote {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  line-height: 1.18;
  letter-spacing: -.01em;
  margin-bottom: 36px;
}

/* ── PROGRAMME (homepage) ── */
.nuba-programme {
  background: var(--black);
  padding: 100px 52px 96px;
  border-top: 1px solid rgba(201,169,110,.06);
}
.nuba-prog-head { margin-bottom: 60px; }
.nuba-prog-lead {
  max-width: 540px; margin-top: 20px;
  font-size: 14.5px; line-height: 1.9;
  color: var(--muted);
}
.nuba-prog-head .sec-title { font-size: clamp(36px,4.5vw,60px); }
.nuba-prog-list { border-top: 1px solid rgba(201,169,110,.08); }
.nuba-prog-item {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(201,169,110,.08);
}
.nuba-prog-day {
  font-family: var(--serif);
  font-size: clamp(34px,4vw,58px);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36%;
}
.nuba-prog-day em { font-style: italic; color: var(--gold); }
.nuba-prog-rule {
  flex: 1;
  height: 1px;
  background: rgba(201,169,110,.10);
  align-self: center;
}
.nuba-prog-event { flex-shrink: 0; text-align: right; }
.nuba-prog-name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(18px,2vw,26px);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  margin-bottom: 6px;
}
.nuba-prog-meta {
  display: block;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(201,169,110,.60);
}
.nuba-prog-note {
  margin-top: 36px;
  font-size: 12px;
  font-style: italic;
  color: rgba(245,240,232,.42);
  letter-spacing: .02em;
  line-height: 1.7;
}
.nuba-prog-note a {
  color: var(--gold);
  border-bottom: 1px solid rgba(201,169,110,.3);
  transition: border-color .3s;
}
.nuba-prog-note a:hover { border-color: var(--gold); }

/* ── FOUNDING YEAR SECTION (nosaltres) ── */
.nuba-founded {
  background: var(--black);
  padding: 100px 52px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(201,169,110,.06);
}
.nuba-founded-year {
  position: absolute;
  font-family: var(--serif);
  font-size: clamp(180px, 22vw, 300px);
  font-weight: 300;
  color: rgba(201,169,110,.055);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  right: -10px;
  bottom: -50px;
  letter-spacing: -.02em;
}
.nuba-founded-content { position: relative; z-index: 1; max-width: 600px; }
.nuba-founded-content .sec-title { font-size: clamp(44px,5.5vw,72px); }
.nuba-founded-content p {
  font-size: 15px;
  color: rgba(245,240,232,.58);
  line-height: 1.9;
  margin-bottom: 22px;
}

/* ── PHOTO STRIP (4 col) ── */
.photo-strip-4 {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 3px;
  height: 34vh;
  min-height: 200px;
}
.ps-item { overflow: hidden; }
.ps-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .95s ease;
}
.ps-item:hover img { transform: scale(1.09); }

/* ── VIDEO SHOWCASE ── */
.vid-showcase {
  background: var(--black);
  padding: 52px;
}
.vid-inner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  max-height: 68vh;
}
.vid-inner video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.vid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,7,7,.75) 0%, rgba(7,7,7,.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px,4vw,64px);
}
.vid-title {
  font-family: var(--serif);
  font-size: clamp(44px, 6.5vw, 90px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.0;
  margin-top: 10px;
}
.vid-title em { font-style: italic; }


/* ── ZEBRA BAND ── */
.zebra-band {
  position: relative;
  height: 44vh;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zebra-band img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.zebra-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7,7,7,.58);
}
.zebra-band-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.zebra-band-text blockquote {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 54px);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0,0,0,.6);
}

/* ── CATERING PHOTO STRIP ── */
.catering-strip {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 3px;
  height: 46vh;
  min-height: 280px;
}
.cs-item { overflow: hidden; }
.cs-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.cs-item:hover img { transform: scale(1.06); }

/* ── SPACER + AFRICAN BAND MOBILE ── */
.mob-spacer { display: none; }

@media (max-width: 860px) {
  /* Espacio negro sólido entre secciones — 100% garantizado */
  .mob-spacer {
    display: block;
    height: 72px;
    background: #070707;
  }

  .african-band {
    padding: 52px 24px 64px;
    margin-top: 0;
  }
  .af-quote { font-size: clamp(28px, 8vw, 46px); }

  /* Gradiente: negro al top para la transición, patrón visible progresivamente */
  .african-band::before {
    background: linear-gradient(
      180deg,
      #070707 0%,
      #070707 10%,
      rgba(7,7,7,.72) 32%,
      rgba(7,7,7,.55) 60%,
      rgba(7,7,7,.48) 100%
    );
  }
  .african-band::after { display: none; }
}

/* ── RESPONSIVE NEW SECTIONS ── */
@media (max-width: 860px) {
  .photo-strip-4 { grid-template-columns: repeat(2,1fr); height: auto; }
  .ps-item { height: 44vw; }
  .vid-showcase { padding: 3px; }
  .catering-strip { grid-template-columns: 1fr; height: auto; }
  .cs-item { height: 60vw; }

  .nuba-programme { padding: 72px 24px 60px; }
  .nuba-prog-item { flex-wrap: wrap; gap: 10px; padding: 32px 0; }
  .nuba-prog-day { min-width: unset; font-size: clamp(28px,8vw,46px); }
  .nuba-prog-rule { display: none; }
  .nuba-prog-event { text-align: left; width: 100%; }

  .nuba-founded { padding: 72px 24px; }
  .nuba-founded-year { font-size: clamp(110px,28vw,190px); right: -8px; bottom: -30px; }

  .african-band { padding: 72px 24px 80px; }
  .african-band::before {
    background: linear-gradient(
      180deg,
      rgba(7,7,7,.92) 0%,
      rgba(7,7,7,.80) 20%,
      rgba(7,7,7,.70) 55%,
      rgba(7,7,7,.82) 100%
    );
  }
  .african-band::after { display: none; }
  .af-quote { font-size: clamp(28px,8vw,46px); }
}

/* ============================================================
   COOKIES — banner + modal de consentiment (RGPD)
   ============================================================ */
.cc-root { font-family: var(--sans); }

.cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: rgba(12,12,12,.985);
  border-top: 1px solid rgba(201,169,110,.28);
  box-shadow: 0 -18px 60px rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: cc-rise .5s cubic-bezier(.16,.84,.44,1) both;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.cc-banner[hidden] { display: none; }
@keyframes cc-rise { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }

.cc-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 52px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.cc-banner-text { flex: 1 1 auto; }
.cc-banner-title {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.cc-banner-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245,240,232,.62);
  max-width: 680px;
}
.cc-banner-desc .cc-link,
.cc-link { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,169,110,.4); }
.cc-link:hover { color: var(--white); }

.cc-banner-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Botons ── */
.cc-btn {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.cc-btn--primary { background: var(--gold); color: #1a140a; }
.cc-btn--primary:hover { background: #d9bd88; }
.cc-btn--ghost {
  background: transparent;
  color: rgba(245,240,232,.72);
  border-color: rgba(201,169,110,.32);
}
.cc-btn--ghost:hover { color: var(--white); border-color: var(--gold); }
/* Rebuig amb el MATEIX pes visual que acceptar (RGPD, sense dark pattern) */
.cc-btn--solid {
  background: rgba(245,240,232,.14);
  color: var(--white);
  border-color: rgba(201,169,110,.5);
}
.cc-btn--solid:hover { background: rgba(245,240,232,.22); border-color: var(--gold); }
/* Terciari: "Configurar" */
.cc-btn--text {
  background: transparent;
  color: rgba(245,240,232,.7);
  border-color: transparent;
  padding-left: 14px;
  padding-right: 14px;
}
.cc-btn--text:hover { color: var(--gold); }
.cc-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Modal de preferències ── */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cc-modal[hidden] { display: none; }
.cc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,4,4,.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: cc-fade .3s ease both;
}
@keyframes cc-fade { from { opacity: 0; } to { opacity: 1; } }

.cc-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--dark);
  border: 1px solid rgba(201,169,110,.18);
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
  animation: cc-pop .4s cubic-bezier(.16,.84,.44,1) both;
}
@keyframes cc-pop { from { transform: translateY(14px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }

.cc-dialog-head {
  position: relative;
  padding: 34px 40px 22px;
  border-bottom: 1px solid rgba(201,169,110,.12);
}
.cc-dialog-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.cc-dialog-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--white);
}
.cc-close {
  position: absolute;
  top: 24px; right: 26px;
  background: none;
  border: none;
  color: rgba(245,240,232,.5);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: color .3s;
}
.cc-close:hover { color: var(--gold); }

.cc-dialog-body { padding: 26px 40px 6px; }
.cc-dialog-intro {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(245,240,232,.6);
  margin-bottom: 22px;
}

.cc-cat {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.cc-cat-info { flex: 1 1 auto; }
.cc-cat-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--white);
  margin-bottom: 6px;
}
.cc-cat-desc {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(245,240,232,.52);
}
/* ── Interruptor (toggle) ── */
.cc-switch {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-top: 2px;
}
.cc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-switch-track {
  width: 46px;
  height: 26px;
  border-radius: 40px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  position: relative;
  transition: background .3s, border-color .3s;
}
.cc-switch-dot {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 18px; height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: rgba(245,240,232,.7);
  transition: transform .3s, background .3s;
}
.cc-switch input:checked + .cc-switch-track {
  background: rgba(201,169,110,.9);
  border-color: var(--gold);
}
.cc-switch input:checked + .cc-switch-track .cc-switch-dot {
  transform: translateX(20px);
  background: #1a140a;
}
.cc-switch input:focus-visible + .cc-switch-track { outline: 2px solid var(--gold); outline-offset: 2px; }
.cc-switch--locked { opacity: .9; cursor: default; }
.cc-switch--locked .cc-switch-track { background: rgba(201,169,110,.85); border-color: var(--gold); }
.cc-switch--locked .cc-switch-dot { transform: translateX(20px); background: #1a140a; }

.cc-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 22px 40px 32px;
  margin-top: 8px;
  border-top: 1px solid rgba(201,169,110,.12);
}

/* ── Enllaç al peu + pastilla flotant ── */
.cc-prefs-link {
  color: rgba(245,240,232,.72);
  font-size: inherit;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.cc-prefs-link:hover { color: var(--gold); border-color: rgba(201,169,110,.4); }
.cc-prefs-float {
  position: fixed;
  left: 18px; bottom: 18px;
  z-index: 1100;
  background: rgba(12,12,12,.9);
  border: 1px solid rgba(201,169,110,.3);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 9px 14px;
  border-radius: 30px;
}

/* ── Placeholder del mapa (fins al consentiment) ── */
.map-embed { width: 100%; height: 100%; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: invert(90%) hue-rotate(180deg); }
.map-consent {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 32px 24px;
  background:
    linear-gradient(rgba(7,7,7,.82), rgba(7,7,7,.82)),
    url('img/mandala-pattern.jpg') center/cover;
}
.map-consent-txt {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245,240,232,.66);
  max-width: 360px;
}

@media (max-width: 860px) {
  .cc-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 22px 22px;
  }
  .cc-banner-actions { flex-wrap: wrap; }
  .cc-banner-actions .cc-btn { flex: 1 1 auto; text-align: center; }
  .cc-banner-actions .cc-btn--primary { flex-basis: 100%; order: -1; }
  .cc-dialog { max-height: 92vh; }
  .cc-modal { padding: 0; align-items: flex-end; }
  .cc-dialog {
    max-width: 100%;
    animation: cc-sheet .42s cubic-bezier(.16,.84,.44,1) both;
  }
  .cc-dialog-head { padding: 28px 24px 18px; }
  .cc-dialog-body { padding: 20px 24px 4px; }
  .cc-dialog-actions { padding: 18px 24px 26px; }
  .cc-dialog-actions .cc-btn { flex: 1 1 auto; text-align: center; }
}
@keyframes cc-sheet { from { transform: translateY(100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .cc-banner, .cc-modal-backdrop, .cc-dialog { animation: none !important; }
  .cc-switch-dot, .cc-btn { transition: none !important; }
}

