.allies-hero {
  position: relative;
  display: flex;
  min-height: 650px;
  align-items: center;
  padding: 82px 8vw 90px;
  overflow: hidden;
  isolation: isolate;
  background: #ead7b5;
}

.allies-hero::before,
.allies-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 0;
}

.allies-hero::before {
  background: url("/assets/empresas-aliadas-hero.webp") center 43% / cover no-repeat;
  filter: saturate(.78) contrast(.9) brightness(1.04);
}

.allies-hero::after {
  background: linear-gradient(90deg, #f6f2e9f2 0%, #f6f2e9e8 32%, #f6f2e9c9 55%, #f6f2e91f 100%),
    linear-gradient(0deg, #183c3829, #f6f2e91a);
}

.allies-hero-copy {
  width: min(100%, 980px);
  padding: 34px 42px 40px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f6f2e9e8 0%, #f6f2e9d9 76%, #f6f2e900 100%);
}

.allies-hero h1 {
  max-width: 980px;
  margin: 0 0 26px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.02;
}

.allies-lead {
  max-width: 760px;
  margin: 0;
  color: #49645d;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.allies-hero .button {
  margin-top: 30px;
}

.allies-how,
.allies-directory {
  padding: 82px 8vw 100px;
}

.allies-how {
  background: #edf0e8;
}

.allies-section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.allies-section-heading h2,
.allies-cta h2 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1.06;
}

.allies-section-heading > p:last-child {
  margin: 16px 0 0;
  color: #557069;
  font-size: 1.05rem;
}

.allies-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.allies-steps article {
  padding: 30px;
  border: 1px solid #d9dfd5;
  border-radius: 22px;
  background: #fffdf9;
}

.allies-steps article > span,
.ally-type {
  color: #b97b2f;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.allies-steps h3,
.ally-card h3 {
  margin: 12px 0 8px;
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.12;
}

.allies-steps p,
.ally-card p {
  margin: 0;
  color: #557069;
}

.allies-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.ally-card {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid #d9dfd5;
  border-radius: 24px;
  background: #fffdf9;
  box-shadow: 0 12px 32px #183c380a;
}

.ally-wordmark {
  display: flex;
  width: 100%;
  min-height: 145px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border-radius: 16px;
  background: #f6f2e9;
}

.ally-roes strong {
  color: #2869a5;
  font-family: Arial, sans-serif;
  font-size: clamp(3rem, 6vw, 4.7rem);
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: .95;
}

.ally-roes span {
  color: #2869a5;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
}

.ally-coope {
  flex-direction: row;
  gap: 12px;
  background: #edf0e8;
}

.ally-coope-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: #1d6657;
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
}

.ally-coope strong {
  color: #1d6657;
  font-size: 1.6rem;
  letter-spacing: .08em;
}

.ally-card h3 {
  margin-top: 22px;
}

.ally-card p {
  margin-bottom: 20px;
}

.ally-type {
  display: inline-flex;
  margin-top: auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f6f2e9;
  letter-spacing: .08em;
}

.allies-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 70px;
  padding: 38px;
  border-radius: 24px;
  background: #edf0e8;
}

.allies-cta .eyebrow {
  margin-bottom: 12px;
}

@media (max-width: 850px) {
  .allies-hero,
  .allies-how,
  .allies-directory {
    padding: 68px 7vw 76px;
  }

  .allies-hero {
    min-height: 760px;
    align-items: flex-start;
    padding-top: 68px;
  }

  .allies-hero::before {
    background-position: 56% center;
  }

  .allies-hero::after {
    background: linear-gradient(180deg, #f6f2e9ed 0%, #f6f2e9dc 58%, #f6f2e95c 100%),
      linear-gradient(0deg, #183c3829, #f6f2e91a);
  }

  .allies-hero-copy {
    padding: 20px 24px 34px;
    background: linear-gradient(180deg, #f6f2e9e8 0%, #f6f2e9d9 82%, #f6f2e900 100%);
  }

  .allies-steps {
    grid-template-columns: 1fr;
  }

  .allies-grid {
    grid-template-columns: 1fr;
  }

  .ally-card {
    min-height: 0;
  }

  .allies-cta {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 48px;
    padding: 28px;
  }
}
