:root {
  --ink: #222;
  --muted: #555;
  --mint: #8bd6d2;
  --footer-bg: #0c273c;
  --rule: #232323;
  --page: #fff;
  --content-max: 1390px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.shell {
  width: min(var(--content-max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header { padding: 8px 0 10px; }
.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  color: #111;
  text-decoration: none;
}
.brand-logo {
  width: clamp(250px, 28vw, 380px);
  height: auto;
}
.about-link {
  margin-top: 30px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .015em;
}
.about-link:hover { text-decoration: underline; }

.hero { margin-top: 0; }
.hero-media {
  width: 100%;
  margin-inline: auto;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.9 / 1;
  object-fit: cover;
  object-position: center;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: clamp(38px, 4vw, 62px);
  align-items: start;
  padding-top: 68px;
  padding-bottom: 54px;
}

.content_qs {
  display: grid;
	gap: clamp(38px, 4vw, 62px);
  align-items: start;
  padding-top: 68px;
  padding-bottom: 54px;
}

.main-copy { min-width: 0; }
.campaign-heading { margin-bottom: 20px; }
h1 {
  margin: 0 0 4px;
  font-size: clamp(27px, 2.05vw, 34px);
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: -.025em;
}
.campaign-kicker,
.project-title {
  margin: 0;
  line-height: 1.28;
  letter-spacing: -.012em;
}
.campaign-kicker {
  font-size: clamp(19px, 1.55vw, 24px);
  font-weight: 400;
}
.project-title {
  margin-top: 5px;
  font-size: clamp(22px, 1.75vw, 28px);
  font-weight: 300;
}
.funding-note {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 38px !important;
}

.main-copy p {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 400;
}
.main-copy strong { font-weight: 700; }

.text-section { margin-top: 42px; }
.text-section h2 {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: .01em;
}
.reservation,
.places {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}

.sidebar {
  padding-top: 108px;
  color: #4b4b4b;
}
.side-block { margin-bottom: 30px; }
.sidebar h2,
.downloads h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
}
.sidebar p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.38;
}
.sidebar strong { font-weight: 700; }
.important-dates { margin-bottom: 38px; }
.poster {
  width: 185px;
  margin: 32px 0 44px;
}
.downloads h2 { margin-bottom: 12px; }
.download-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin: 0 0 28px;
  color: #111;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}
.download-link:hover { text-decoration: underline; }
.pdf-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 39px;
  height: 46px;
  border: 2px solid #ef3b3b;
  border-radius: 2px;
  color: #ef3b3b;
  background: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.pdf-icon::after {
  content: "↓";
  position: absolute;
  right: -9px;
  bottom: -9px;
  color: #e31c24;
  font-size: 28px;
  line-height: 1;
}

.site-footer { background: var(--footer-bg); }
.footer-inner {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo {
  width: min(260px, 78vw);
  height: auto;
}
.about-copy > p,
.about-copy .text-section p {
  text-align: justify;
}

@media (max-width: 1020px) {
  .content {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 38px;
  }
  .sidebar { padding-top: 102px; }
}

@media (max-width: 820px) {
  .shell { width: min(100% - 32px, 760px); }
  .site-header { padding-top: 12px; }
  .about-link { margin-top: 20px; font-size: 11px; }
  .hero-media { width: 100%; }
  .content {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 46px;
  }
  .sidebar {
    padding-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 34px;
    border-top: 1px solid #aaa;
    margin-top: 18px;
  }
  .side-block { margin: 0; }
  .important-dates { grid-column: 1 / -1; margin: 0; }
  .poster { width: min(220px, 100%); margin: 0; }
  .downloads { align-self: start; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .shell { width: calc(100% - 28px); }
  .header-inner { align-items: center; }
  .brand-logo { width: min(250px, 62vw); }
  .about-link { margin-top: 0; font-size: 9px; white-space: nowrap; }
  .hero-media img {
    aspect-ratio: 2.25 / 1;
    object-position: center;
  }
  .content { padding-top: 36px; padding-bottom: 38px; }
  .campaign-heading { margin-bottom: 18px; }
  h1 { font-size: 25px; }
  .campaign-kicker { font-size: 18px; }
  .project-title { font-size: 21px; }
  .funding-note { font-size: 14px !important; margin-bottom: 32px !important; }
  .main-copy p { margin-bottom: 21px; font-size: 15px; line-height: 1.62; }
  .text-section { margin-top: 35px; }
  .text-section h2 { font-size: 15px; margin-bottom: 16px; }
  .reservation,
  .places { padding-top: 21px; }
  .sidebar {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 10px;
    padding-top: 28px;
  }
  .important-dates { grid-column: auto; }
  .sidebar h2,
  .downloads h2 { font-size: 15px; }
  .sidebar p { font-size: 13px; line-height: 1.45; }
  .poster { width: 190px; }
  .downloads { padding-top: 4px; }
  .download-link { margin-bottom: 22px; }
  .site-footer { margin-top: 8px; }
  .footer-inner { min-height: 105px; }
}

/* Ajustes específicos de la portada (index) */
.home-page .hero-media {
  width: 100%;
}

.home-page .hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.home-page .main-copy > p,
.home-page .text-section p,
.home-page .sidebar p {
  text-align: justify;
}

/* Portada de inicio: mostrar la imagen completa, sin recorte */
.home-hero-media {
  width: 100%;
  overflow: visible;
}

.home-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
