.koe-alliances-section {
  background-color: #edf5fb;
  background-image: linear-gradient(rgba(244, 249, 253, .88), rgba(244, 249, 253, .9)), url("https://koe.la/img/alianzas/fondo-alianzas.webp") !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  padding: 4.5rem 1rem !important;
}

/* Adaptador para secciones heredadas de Elementor. El componente mantiene
   el ancho completo y evita que el fondo o el espaciado anterior lo enmarquen. */
.elementor-section:has(.koe-alliances-section) {
  background: transparent !important;
  padding: 0 !important;
}

.elementor-section:has(.koe-alliances-section) > .elementor-container {
  max-width: none !important;
  width: 100% !important;
}

.elementor-section:has(.koe-alliances-section) .elementor-column,
.elementor-section:has(.koe-alliances-section) .elementor-widget-wrap,
.elementor-section:has(.koe-alliances-section) .elementor-widget-html,
.elementor-section:has(.koe-alliances-section) .elementor-widget-container {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.koe-alliances-section .koe-alliances-heading {
  margin: 0 auto 2.25rem;
  max-width: 760px;
  text-align: center;
}

.koe-alliances-section .koe-alliances-title {
  background: none;
  color: #175291;
  display: block;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0;
  padding: 0;
  text-transform: none;
}

.koe-alliances-section .koe-alliances-intro {
  color: #35536f;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 1rem auto 0;
  max-width: 700px;
}

.koe-alliances-section .koe-alliances-viewport {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  justify-content: center;
  list-style: none;
  margin: 0 auto;
  max-width: 1180px;
  overflow-x: auto;
  padding: .5rem .25rem 1.25rem;
  scrollbar-width: none;
}

.koe-alliances-section .koe-alliances-viewport::-webkit-scrollbar {
  display: none;
}

.koe-alliances-section .koe-alliances-viewport.is-scrollable {
  justify-content: flex-start;
}

.koe-alliances-section .koe-alliances-viewport:focus-visible {
  border-radius: 1rem;
  outline: 3px solid #175291;
  outline-offset: 4px;
}

.koe-alliances-section .koe-alliances-card {
  align-items: center;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(23, 82, 145, .09);
  border-radius: 1.35rem;
  box-shadow: 0 18px 40px rgba(14, 43, 77, .14);
  box-sizing: border-box;
  display: flex;
  flex: 0 0 235px;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
  padding: 1.4rem;
}

.koe-alliances-section .koe-alliances-card img {
  height: 112px;
  margin: 0 auto .8rem;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.koe-alliances-section .koe-alliances-card h3 {
  color: #0f2f52;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  min-height: 44px;
  text-align: center;
}

.koe-alliances-section .koe-alliances-footer {
  margin-top: 1.75rem;
  text-align: center;
}

.koe-alliances-section .koe-alliances-button {
  background: transparent;
  border: 1px solid #175291;
  border-radius: .3rem;
  color: #175291;
  display: inline-block;
  font-weight: 700;
  padding: .55rem 1rem;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.koe-alliances-section .koe-alliances-button:hover,
.koe-alliances-section .koe-alliances-button:focus-visible {
  background: #175291;
  color: #fff;
  outline: 3px solid rgba(23, 82, 145, .25);
  outline-offset: 3px;
  text-decoration: none;
  transform: translateY(-2px);
}

.koe-alliances-section .koe-alliances-error {
  color: #6b7280;
  margin: 1rem auto;
  text-align: center;
}

@media (max-width: 767px) {
  .koe-alliances-section {
    padding: 3.25rem .75rem !important;
  }

  .koe-alliances-section .koe-alliances-title {
    font-size: 2.15rem;
  }

  .koe-alliances-section .koe-alliances-intro {
    font-size: .95rem;
  }

  .koe-alliances-section .koe-alliances-card {
    flex-basis: 160px;
    min-height: 180px;
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .koe-alliances-section .koe-alliances-button {
    transition: none;
  }
}
