.container { width: min(100% - 2 * var(--page-gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.section--tight { padding-block: clamp(32px, 5vw, 64px) var(--section-space); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60; background: linear-gradient(180deg, #fff 0%, #eef4f8 100%);
  transition: background-color var(--duration-medium) var(--ease-emphasis), box-shadow var(--duration-medium) var(--ease-emphasis);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .94); box-shadow: 0 6px 24px rgba(9, 40, 62, .10); }
/* Sin backdrop-filter: crearía un containing block para el menú móvil (position: fixed). */
.header__bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 8px; }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
.header__actions { display: flex; align-items: center; gap: 2px; }

/* Hero */
.hero { position: relative; isolation: isolate; color: var(--text-inverse); background: var(--brand-deep); padding-block: 44px 120px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 29, 44, .9) 0%, rgba(6, 29, 44, .74) 55%, rgba(6, 29, 44, .4) 100%);
}
.hero__parallax { position: absolute; left: 0; right: 0; top: -15%; height: 130%; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 30%; }
.hero__inner { display: grid; gap: 32px; }
.hero__content { display: grid; gap: 20px; align-content: start; }
.hero__title { display: grid; gap: 0; margin-top: -4px; text-shadow: 0 2px 24px rgba(6, 29, 44, .35); }
.hero__line { display: block; }
.hero__lead { color: var(--text-inverse-soft); max-width: 34ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* Value strip */
.value-strip { position: relative; z-index: 3; margin-top: -64px; }
.value-strip__panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px;
  background: linear-gradient(135deg, #0d4062, #0b3550 30%, var(--brand-navy));
  border-radius: var(--radius-lg); color: var(--text-inverse); box-shadow: var(--shadow-lift); border: 1px solid rgba(255, 255, 255, .08);
}

/* Resources */
.resources__layout { display: grid; gap: 32px; }
.resources__intro { display: grid; gap: 16px; align-content: start; }
.resources__grid { display: grid; gap: 14px; }

/* About */
.about__layout { display: grid; gap: 28px; align-items: center; }
.about__text { display: grid; gap: 18px; justify-items: start; }
.axes { display: grid; gap: 14px 24px; }

/* Impact */
.impact { background: linear-gradient(100deg, var(--brand-deep), var(--brand-navy) 55%, #0b3a58); color: var(--text-inverse); padding-block: 32px; }
.impact__list { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* News */
.news__layout { display: grid; gap: 28px; }
.news__intro { display: grid; gap: 16px; align-content: start; }
.news__main { display: grid; gap: 16px; }
.news__more { justify-self: end; }
.news__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }


/* Join */
.join { background: #fff; padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--border-soft); }
.join__layout { display: grid; gap: 16px; align-items: center; }
.join__head { display: grid; gap: 6px; }
/* "Lo bueno de pertenecer": frase de valor de la banda final, con más cuerpo que un título de sección común. */
.join__title { font-size: clamp(2.2rem, 7vw, 3.9rem); line-height: 1.05; letter-spacing: -.04em; color: var(--brand-navy); }
.join__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { position: relative; isolation: isolate; color: var(--text-inverse); background: linear-gradient(var(--footer-angle), #0c4a78 0%, var(--brand-navy) 55%, var(--brand-deep) 100%); overflow: hidden; }
.footer__grid { display: grid; gap: 32px; padding-block: 48px 36px; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; }
.footer__brand img { width: 190px; filter: brightness(0) invert(1); }
.footer__col:last-of-type { grid-column: 1 / -1; }
/* Foto institucional del edificio. El fundido usa el mismo ángulo y colores que el fondo del footer. */
.footer__art { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url('../../assets/img/footer-goldenhour.jpg') 65% 35% / cover no-repeat; }
.site-footer::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--footer-angle), #0c4a78 0%, rgba(11, 62, 100, .95) 30%, rgba(9, 40, 62, .86) 55%, rgba(6, 29, 44, .5) 100%);
}
.footer__legal { position: relative; background: rgba(6, 29, 44, .55); border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__legal-inner { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; padding-block: 14px; font-size: .85rem; color: var(--text-inverse-soft); }
.footer__legal-inner ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
