:root {
  --navy: #34495a;
  --navy-deep: #2a3b49;
  --green: #557268;
  --green-dark: #486158;
  --white: #f7f8f7;
  --soft-white: rgba(247, 248, 247, .82);
  --line: rgba(247, 248, 247, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 8rem; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--white);
  background: var(--navy);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
main { min-height: 100vh; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: var(--green);
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(100%, 1600px);
  min-height: 7.25rem;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 2vw, 1.5rem);
}
.project-name { color: var(--white); text-decoration: none; }
.project-name h1 {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.12;
}
.project-name p {
  margin: .35rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav a,
.site-nav span {
  color: var(--white);
  text-decoration: none;
}
.site-nav a { border-bottom: 1px solid transparent; }
.site-nav a:hover,
.site-nav a:focus-visible { border-bottom-color: var(--white); outline: 0; }

.map-shell {
  width: 100%;
  padding: clamp(.75rem, 2vw, 1.5rem);
  background: var(--navy);
}
.map-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 1600px);
  min-height: 3.5rem;
  margin: 0 auto;
}
.construction-notice {
  margin: 0;
  font-size: clamp(.78rem, 1.2vw, .92rem);
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.fullscreen-link {
  flex: none;
  margin-left: auto;
  padding: .75rem 1.15rem;
  border: 2px solid var(--white);
  border-radius: .25rem;
  background: transparent;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .22);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}
.fullscreen-link:hover,
.fullscreen-link:focus-visible {
  color: var(--navy-deep);
  background: var(--white);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.map-frame {
  width: min(100%, 1600px);
  margin: .5rem auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .2);
}
.flourish-embed { width: 100%; margin: 0; }
.flourish-embed iframe { display: block; width: 100%; border: 0; }
.map-instruction {
  width: min(100%, 1600px);
  margin: 1rem auto .25rem;
  color: var(--soft-white);
  font-size: clamp(.95rem, 1.25vw, 1.08rem);
}

.image-band {
  position: relative;
  width: 100%;
  height: clamp(230px, 26vw, 390px);
  margin: 0;
  overflow: hidden;
  background: var(--navy-deep);
}
.image-band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-band-roca { height: clamp(340px, 34vw, 500px); }
.image-band-roca img { object-position: center center; }
.image-band-gallego { height: clamp(250px, 27vw, 410px); }
.image-band-gallego img { object-position: center top; }
.image-band-programa { height: clamp(230px, 25vw, 380px); }
.image-band-programa img { object-position: center 49%; }
.image-band-opinion { height: clamp(430px, 45vw, 720px); }
.image-band-opinion img { object-position: center center; }

.content-section {
  padding: clamp(1.5rem, 2.5vw, 2.5rem) clamp(1.25rem, 4vw, 4rem);
  background: var(--green);
}
.content-section.cinemas,
.content-section.project { background: var(--green); }
.content-section.sources { background: var(--navy); }
.section-inner { width: min(100%, 1440px); margin: 0 auto; }
.section-heading { max-width: 54rem; margin-bottom: clamp(1rem, 1.8vw, 1.5rem); }
.section-heading h2 {
  margin: 0;
  font-size: clamp(.9rem, 1.25vw, 1.15rem);
  line-height: 1;
  letter-spacing: .06em;
}

.cinema-groups {
  columns: 3;
  column-gap: clamp(1.5rem, 3vw, 3rem);
}
.cinema-group { break-inside: avoid; margin: 0 0 1.25rem; }
.cinema-group h3,
.sources-flow h3 {
  margin: 0 0 .7rem;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: clamp(.82rem, 1vw, .95rem);
  line-height: 1.2;
}
.cinema-group ul,
.sources-flow ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cinema-group li,
.sources-flow li {
  padding: .3rem 0;
  border-bottom: 0;
  font-size: .88rem;
  line-height: 1.25;
}
.cinema-group li { font-weight: 400; }
.cinema-group li span { color: var(--soft-white); font-weight: 400; white-space: nowrap; }

.sources-flow {
  columns: 2;
  column-gap: clamp(2rem, 5vw, 5rem);
}
.sources-flow li { color: var(--soft-white); break-inside: avoid; }
.sources-flow .sources-divider {
  height: 1px;
  margin: .7rem 0;
  padding: 0;
  background: var(--line);
}

.project-inner { max-width: 1100px; }
.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, .75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  font-size: .88rem;
  line-height: 1.25;
}
.project-credits {
  margin: 0;
  padding: 0;
  border-top: 0;
}
.project-credits p { margin: 0 0 1rem; padding: 0; border-bottom: 0; }
.project-copy {
  max-width: 850px;
  color: var(--soft-white);
  font-size: inherit;
}
.project-copy p { margin: 0 0 .9rem; }

.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 7vw, 5.5rem);
  min-height: 13rem;
  padding: 3.25rem 1.5rem;
  background: var(--navy);
}
.logo { display: flex; align-items: center; justify-content: center; }
.cea-logo img { display: block; width: min(280px, 31vw); height: auto; }
.filo-logo img { display: block; width: min(320px, 35vw); height: auto; }

@media (max-width: 980px) {
  .cinema-groups { columns: 2; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 1rem; }
  .site-header { position: relative; }
  .site-header-inner { align-items: flex-start; flex-direction: column; gap: 1rem; min-height: 0; }
  .site-nav { justify-content: flex-start; flex-wrap: wrap; gap: .8rem 1.25rem; }
  .map-shell { padding: .65rem; }
  .map-bar { align-items: stretch; flex-direction: column; padding: .35rem 0 .5rem; }
  .fullscreen-link { text-align: center; }
  .map-instruction { margin: .85rem auto .35rem; padding: 0 .15rem; }
  .image-band { height: clamp(190px, 48vw, 270px); }
  .image-band-roca { height: clamp(300px, 76vw, 410px); }
  .image-band-gallego,
  .image-band-programa,
  .image-band-opinion { height: clamp(320px, 74vw, 470px); }
  .content-section { padding: 1.5rem 1.25rem 2.5rem; }
  .section-heading { margin-bottom: 1.25rem; }
  .cinema-groups { columns: 1; }
  .sources-flow { columns: 1; }
  .project-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .logos { flex-direction: column; gap: 1.5rem; min-height: 14rem; }
  .cea-logo img { width: min(250px, 70vw); }
  .filo-logo img { width: min(290px, 78vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
