/* Estilos especificos de la seccion clientes */
.clientes {
  --clientes-carousel-reserved-height: 5.5rem;
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.25rem;
  background-color: #007f89;
  background-image: url("../../assets/images/bg-clientes.png");
  background-position: center;
  background-size: cover;
  scroll-margin-top: 5rem;
}

.clientes__container {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin-inline: auto;
}

.clientes__header {
  max-width: 48rem;
  margin: 0 auto 2rem;
  color: #ffffff;
  text-align: center;
}

.clientes__title {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 700;
  line-height: 1.08;
}

.clientes__title strong {
  color: #aeec02;
  font-weight: inherit;
}

.clientes__subtitle {
  max-width: 43rem;
  margin: 0.75rem auto 0;
  color: #ffffff;
  font-size: clamp(0.94rem, 2.8vw, 1.08rem);
  font-weight: 400;
  line-height: 1.5;
}

.clientes__groups {
  display: grid;
  gap: 0.9rem;
}

.clientes__group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 0.45rem 1rem rgba(0, 20, 40, 0.12);
}

.clientes__group-copy {
  min-width: 0;
}

.clientes__group-accent {
  display: block;
  width: 2.5rem;
  height: 0.2rem;
  margin-bottom: 0.6rem;
  border-radius: 999px;
  background: #aeec02;
}

.clientes__group-title {
  margin: 0;
  color: #001428;
  font-size: clamp(1.2rem, 5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.15;
}

.clientes__group-description {
  margin: 0.4rem 0 0;
  color: #34414d;
  font-size: 0.84rem;
  line-height: 1.4;
}

.clientes__carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.clientes__viewport {
  position: relative;
  z-index: 0;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--clientes-carousel-reserved-height);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.clientes__carousel.is-ready .clientes__viewport {
  visibility: visible;
  opacity: 1;
}

.clientes__track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: max-content;
  min-width: max-content;
  max-width: none;
  margin: 0;
  padding: 0.6rem 3.2rem 0.6rem 0.75rem;
  list-style: none;
  will-change: transform;
}

.clientes__logo-item {
  position: relative;
  display: flex;
  flex: 0 0 9.5rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 4.25rem;
  padding: 0 1rem;
}

.clientes__logo-item::after {
  content: "";
  position: absolute;
  top: 15%;
  right: 0;
  width: 1px;
  height: 70%;
  background: rgba(0, 127, 137, 0.2);
}

.clientes__logo-item img {
  display: block;
  width: auto;
  height: auto;
  max-width: var(--clientes-logo-max-width, 100%);
  max-height: var(--clientes-logo-max-height, 4.25rem);
  object-fit: contain;
}

.clientes__logo-item img[data-logo-shape="wide"] {
  --clientes-logo-max-width: 8.5rem;
}

.clientes__logo-item img[data-logo-shape="medium"] {
  --clientes-logo-max-width: 7.5rem;
}

.clientes__logo-item img[data-logo-shape="compact"] {
  --clientes-logo-max-width: 5.5rem;
}

.clientes__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid rgba(0, 188, 200, 0.18);
  border-radius: 50%;
  background: #f9f9f9;
  color: #00bcc8;
  font-family: inherit;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0.25rem 0.65rem rgba(0, 20, 40, 0.16);
  cursor: pointer;
  transform: translateY(-50%);
}

.clientes__arrow:focus-visible {
  outline: 3px solid #aeec02;
  outline-offset: 2px;
}

.clientes__arrow--next { right: 0.35rem; }

@media (min-width: 768px) {
  .clientes {
    padding: 4.25rem 2rem;
    background-position: center center;
  }

  .clientes__header { margin-bottom: 2.25rem; }

  .clientes__group {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem 0.9rem 1.25rem;
  }

  .clientes__carousel {
    border-left: 1px solid rgba(0, 127, 137, 0.18);
  }

  .clientes__logo-item {
    flex-basis: 10rem;
  }
}

@media (min-width: 1024px) {
  .clientes {
    --clientes-carousel-reserved-height: 5.25rem;
    padding: 4.5rem 2rem;
  }

  .clientes__header { margin-bottom: 2.4rem; }

  .clientes__title {
    font-size: clamp(2.4rem, 3.4vw, 3rem);
  }

  .clientes__groups { gap: 1rem; }

  .clientes__group {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 1.25rem;
    min-height: 7.5rem;
    padding: 0.9rem 1.25rem 0.9rem 1.5rem;
  }

  .clientes__group-title { font-size: 1.35rem; }

  .clientes__group-description {
    max-width: 14rem;
    font-size: 0.8rem;
  }

  .clientes__track { padding-block: 0.5rem; }

  .clientes__logo-item {
    flex-basis: 10.5rem;
    height: 4.25rem;
  }
}

@media (min-width: 1440px) {
  .clientes__container { width: min(100%, 1180px); }
  .clientes__logo-item { flex-basis: 11rem; }
}

@media (prefers-reduced-motion: reduce) {
  .clientes__viewport { transition: none; }
}
