/* 

.clients-section {
  background: radial-gradient(circle at 50% 50%, #fff 0%, #fff 100%);
  color: #050505;
  text-align: left;
  padding: 80px 8%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  position: relative;
}

.clients-text {
  flex: 1 1 350px;
  max-width: 480px;
  z-index: 2;
}

.clients-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #050505;
  margin-bottom: 16px;
}

.clients-text p {
  color: #050505;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.6;
}

.clients-logos {
  flex: 1 1 550px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  justify-items: center;
  align-items: center;
  gap: 36px;
  perspective: 1000px;
  position: relative;
  width: 100%;
  max-width: 550px;
  min-height: 360px;
  margin-left: auto;
  margin-right: 0;
  padding: 10px 0;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
}

.client-logo {
  width: clamp(80px, 20vw, 110px);
  height: auto;
  opacity: 0;
  position: absolute;
  transition: opacity 0.6s ease, transform 0.4s ease;
  filter: brightness(0.7);
  transform: scale(0.85);
  will-change: transform, opacity;
}

.client-logo.active {
  opacity: 1;
  position: relative;
  transform: scale(1);
  justify-self: center;
  align-self: center;
}

.client-logo:hover {
  filter: brightness(1) drop-shadow(0 0 8px rgba(255, 0, 0, 0.6));
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .clients-section {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 60px 5%;
  }

  .clients-text {
    margin-bottom: 20px;
  }

  .clients-logos {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 28px;
    max-width: 450px;
    min-height: 320px;
    margin: 0 auto;
    justify-content: center;
    align-content: center;
  }
}

@media (max-width: 600px) {
  .clients-section {
    padding: 50px 5% 70px;
    gap: 18px;
    justify-content: center;
    align-items: center;
  }

  .clients-text {
    flex: 1 1 auto;
    max-width: 340px;
    margin-bottom: 10px;
  }

  .clients-text h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .clients-text p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .clients-logos {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 16px;
    max-width: 320px;
    min-height: 280px;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }

  .client-logo {
    width: clamp(64px, 22vw, 88px);
    position: relative;
    top: auto;
    left: auto;
    transform: scale(1);
  }
} */


.clients-section {
  background: #fff;
  color: #050505;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.clients-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  font-family: Jost, sans-serif;
  color: #E73137;
}

.clients-text p {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: #333;
  line-height: 1.5;
}

/* === Cuadrícula 3×3 === */
.clients-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  justify-items: center;
  align-items: center;
  gap: 50px; /* más espacio entre logos */
  perspective: 1000px;
  width: 100%;
  max-width: 100%; /* ocupa toda la columna */
  min-width: 600px; /* asegura tamaño visual cómodo */
  min-height: 420px; /* cuadrícula proporcionada */
  margin: 0 auto;
  position: relative;
}

/* Cada celda */
.client-cell {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logos */
.client-logo {
  width: clamp(90px, 18vw, 140px);
  height: auto;
  opacity: 0;
  position: absolute;
  transition: opacity 0.6s ease, transform 0.4s ease;
  filter: brightness(0.75);
  transform: scale(0.9);
}

.client-logo.active {
  opacity: 1;
  position: relative;
  transform: scale(1);
}

.client-logo:hover {
  filter: brightness(1) drop-shadow(0 0 8px rgba(255, 0, 0, 0.4));
  transform: scale(1.05);
}

/* === Responsive === */
@media (max-width: 1199.98px) {
  .clients-logos {
    gap: 40px;
    min-width: 500px;
    min-height: 380px;
  }
}

@media (max-width: 991.98px) {
  .clients-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 0;
  }

  .clients-logos {
    margin-top: 30px;
    min-width: 420px;
    min-height: 340px;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .clients-logos {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    min-width: 300px;
    min-height: 280px;
  }

  .client-logo {
    width: clamp(65px, 23vw, 90px);
  }

  .clients-text h2 {
    font-size: 1.6rem;
  }

  .clients-text p {
    font-size: 0.95rem;
  }
}
