:root {
  --bg: #edf3fb;
  --surface: #ffffff;
  --surface-soft: #f7fafe;
  --text: #143356;
  --text-soft: #35587c;
  --line: rgba(31, 82, 141, 0.16);
  --accent: #0d64c6;
  --accent-strong: #0a4e9d;
  --gold: #f6c66f;
  --shadow: 0 28px 60px rgba(10, 58, 117, 0.12);
  --radius: 28px;
  --container: 1040px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(130, 86, 228, 0.24), transparent 25%),
    radial-gradient(circle at top right, rgba(34, 161, 255, 0.18), transparent 20%),
    linear-gradient(180deg, #f4f8fe 0%, #eef4fb 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.page-shell {
  overflow: clip;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 42px 0 88px;
  background:
    linear-gradient(100deg, rgba(122, 73, 213, 0.74), rgba(26, 118, 214, 0.62) 48%, rgba(7, 73, 144, 0.82)),
    url("images/bglp.jpg") 30% center / cover no-repeat;
  color: #fff;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 23% 48%, rgba(255, 255, 255, 0.2), transparent 20%),
    radial-gradient(circle at 18% 34%, rgba(179, 228, 255, 0.22), transparent 11%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  margin: 0 0 24px;
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  text-align: center;
}

.hero__title {
  margin: 0 auto 8px;
  max-width: 900px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.95rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(380px, 1.45fr) minmax(250px, 0.72fr);
  align-items: center;
  gap: 24px;
}

.hero__spacer {
  position: relative;
  width: min(100%, 560px);
  min-height: 430px;
  margin: 0 auto;
}

.hero__copy {
  justify-self: end;
  max-width: 330px;
  text-align: left;
}

.hero__copy p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.72;
  text-shadow: 0 1px 12px rgba(5, 41, 86, 0.28);
}

.hero__inline-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.hero__inline-link:hover,
.hero__inline-link:focus-visible {
  color: var(--gold);
}

.hero__brand {
  margin-top: 50px;
  width: 238px;
  height: 114px;
  object-fit: contain;
  object-position: center;
}

.intro {
  padding: 40px 0 16px;
}

.intro p {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.86;
  color: var(--text-soft);
}

.section-heading {
  padding: 30px 0 30px;
  border-top: 1px solid var(--line);
}

.section-heading h2,
.cta h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 800;
}

.section-heading h2 {
  color: var(--accent);
  text-align: center;
}

.allies {
  padding: 10px 0 28px;
}

.allies__list {
  display: grid;
  gap: 18px;
}

.ally-card {
  padding: 28px 28px 22px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 8px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94)),
    var(--surface);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.ally-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 68px rgba(10, 58, 117, 0.15);
  border-color: rgba(13, 100, 198, 0.28);
}

.ally-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 180px);
  gap: 20px;
  align-items: start;
}

.ally-card__lead h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.22;
  font-weight: 800;
}

.ally-card__subtitle {
  margin: -2px 0 12px;
  color: var(--accent-strong);
  font-weight: 700;
}

.ally-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.78;
  font-size: 0.98rem;
}

.ally-card a:hover,
.ally-card a:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.ally-card__body {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.ally-card__logo {
  display: grid;
  place-items: center;
  align-self: start;
  margin: 0;
  padding: 4px 0 0;
  min-height: 92px;
}

.ally-card__logo img {
  width: 100%;
  max-height: 132px;
  object-fit: contain;
  object-position: center top;
}

.ally-card__logo--small img {
  max-width: 118px;
  max-height: 108px;
}

.ally-card__logo--small.ally-card__logo--boost img {
  max-width: 170px;
  max-height: 156px;
}

.ally-card__logo--small.ally-card__logo--mirada img {
  max-width: 153px;
  max-height: 140px;
}

.ally-card__logo--medium img {
  max-width: 148px;
  max-height: 122px;
}

.ally-card__logo--medium.ally-card__logo--boost img {
  max-width: 178px;
  max-height: 146px;
}

.ally-card__logo--medium.ally-card__logo--pdd img {
  max-width: 231px;
  max-height: 190px;
}

.ally-card__logo--wide img {
  max-width: 154px;
  max-height: 108px;
}

.ally-card__logo--wide.ally-card__logo--natu img {
  max-width: 185px;
  max-height: 130px;
}

.ally-card__logo--tall img {
  max-width: 126px;
  max-height: 124px;
}

.ally-card__logo--tall.ally-card__logo--ecuador img {
  max-width: 164px;
  max-height: 161px;
}

.cta {
  padding: 28px 0 72px;
}

.cta__inner {
  position: relative;
  overflow: hidden;
  padding: 34px 30px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #0c5abb, #093f82);
  box-shadow: var(--shadow);
}

.cta__inner::after {
  content: "";
  position: absolute;
  inset: auto -8% -55% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 198, 111, 0.5), rgba(246, 198, 111, 0.05) 62%, transparent 72%);
}

.cta__inner p {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 12px auto 20px;
  line-height: 1.8;
  text-align: center;
}

.cta h2 {
  color: #f8c96c;
  text-align: center;
}

.cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.cta__button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 50px;
  padding: 0 24px;
  margin: 0 auto;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: #0a4387;
  background: linear-gradient(180deg, #ffe5a4, #f8c96c);
  box-shadow: 0 16px 30px rgba(2, 20, 45, 0.22);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.cta__button--secondary {
  color: #f8fbff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 30px rgba(2, 20, 45, 0.18);
}

.cta__button:hover,
.cta__button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px rgba(2, 20, 45, 0.26);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ally-card.is-active {
  border-color: rgba(13, 100, 198, 0.4);
  box-shadow: 0 34px 74px rgba(10, 58, 117, 0.18);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-bottom: 62px;
    background:
      linear-gradient(rgba(3, 98, 188, 0.5), rgba(3, 98, 188, 0.5)),
      url("images/bglp.jpg") center center / cover no-repeat;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero__copy {
    justify-self: center;
    max-width: 640px;
    text-align: center;
  }

  .hero__spacer {
    display: none;
  }

  .hero__brand {
    margin-inline: auto;
  }

  .ally-card {
    padding: 24px 22px 20px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .hero {
    padding-top: 34px;
  }

  .hero__eyebrow {
    font-size: 0.82rem;
  }

  .hero__title {
    max-width: 350px;
    margin-bottom: 24px;
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .intro {
    padding-top: 28px;
  }

  .ally-card {
    padding: 22px 16px 18px;
    border-radius: 20px;
  }

  .ally-card__top {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ally-card__lead {
    order: 1;
  }

  .ally-card__logo {
    order: 2;
    justify-self: center;
    min-height: auto;
    padding-top: 0;
  }

  .ally-card__body {
    margin-top: 10px;
    order: 3;
  }

  .ally-card__lead h3 {
    font-size: 1.12rem;
  }

  .ally-card p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .cta__inner {
    padding: 28px 18px;
  }

  .cta__actions {
    flex-direction: column;
  }

  .cta__button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
