/* ==========================================================================
   RMarin · Clients
   Client logos block (Home, Nosotros).
   ========================================================================== */

/* ---------- Clients ---------- */
.clients {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-space) var(--gutter) 0;
  text-align: center;
}

.clients__title {
  max-width: 720px;
  margin: 0 auto;
  color: var(--color-heading-gray);
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.clients__logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
  gap: 32px 16px;
  /* margin: 40px 0 20px; */
  margin: 28px 0;
}

.clients__logos li:last-child {
  grid-column: 1 / -1;
}

.clients__logos img {
  transition: transform var(--duration) var(--ease);
}

.clients__logos li:nth-child(1) img { width: 80px; }
.clients__logos li:nth-child(2) img { width: 150px; }
.clients__logos li:nth-child(3) img { width: 120px; }
.clients__logos li:nth-child(4) img { width: 130px; }
.clients__logos li:nth-child(5) img { width: 140px; }

.clients__logos li:hover img {
  transform: scale(1.06);
}

.clients .btn--lg {
  padding: 0 48px;
}

@media (min-width: 480px) {
  .clients__logos { grid-template-columns: repeat(3, 1fr); }

  .clients__logos li:last-child { grid-column: auto; }
}

@media (min-width: 768px) {
  .clients__logos { margin-bottom: 40px; }
}

@media (min-width: 1024px) {
  .clients {
    padding: var(--section-space) calc(180 * var(--u)) 0;
  }

  .clients__title {
    max-width: calc(1240 * var(--u));
    font-size: calc(32 * var(--u));
  }

  .clients__logos {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin: calc(40 * var(--u)) 0 0;
  }

  .clients__logos li:nth-child(1) img { width: calc(125 * var(--u)); }
  .clients__logos li:nth-child(2) img { width: calc(239 * var(--u)); }
  .clients__logos li:nth-child(3) img { width: calc(174 * var(--u)); }
  .clients__logos li:nth-child(4) img { width: calc(168 * var(--u)); }
  .clients__logos li:nth-child(5) img { width: calc(209 * var(--u)); }

  .clients .btn--lg {
    padding: 0 calc(75 * var(--u));
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients__logos li:hover img {
    transform: none;
  }
}
