.fondo-nuestros-clientes{

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
/* padding: 0 0 4.5rem; */
  text-align: center;
      height: auto;
}

.nuestros-clientes{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 3rem;
}
#titulo-clientes::after{
    content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #1f6ba7;
  margin: 10px auto 0;
  border-radius: 2px;
}



.logos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3rem;
}

.logos-grid img {
    width: clamp(0.5rem, 8rem, 10vw);
    border-radius: 10px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 300ms ease-in-out;
}

.logos-grid img:hover {
    transform: scale(0.97);
}


@media screen and (max-width: 1000px) and (max-height: 500px) {
.logos-grid img {
    width: 4rem;
}
}

/* Tablets grandes y pantallas medias */
@media (max-width: 1024px) {
  .logos-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 logos por fila */
  }
  .fondo-nuestros-clientes{
margin-top: 2rem;
}

@media screen and (max-width: 1000px) and (max-height: 500px) {
  .logos-grid {
    grid-template-columns: repeat(7, 1fr);
}
}

}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 768px) {
  .logos-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 logos por fila */
  }
}

/* Móviles medianos */
@media (max-width: 480px) {
  .logos-grid {
    grid-template-columns: repeat(3, 1fr); /* 2 logos por fila */
  }
  .logos-grid img {
    width: 5.3rem;
        box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
}
}

/* Móviles muy pequeños */
@media (max-width: 320px) {
  .logos-grid {
    grid-template-columns: repeat(1, 1fr); /* 1 logo por fila */
  }
}
