/* Contenedor principal */
.banner-marcas {
  position: relative;
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px 10px;
  box-sizing: border-box;
}

/* Viewport con overflow oculto */
.marcas-viewport {
  overflow: hidden;
  width: 100%;
}

/* Lista de logos */
.marcas-lista {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 10px;
  margin: 0;
  list-style: none;
  transition: transform 1.2s ease;
  will-change: transform;
}

/* Item */
.marcas-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}

/* Imagen */
.marcas-item img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  display: block;
}

/* Botones */
.btn-anterior,
.btn-siguiente {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 10px 12px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  font-size: 18px;
}
.btn-anterior { left: 8px; }
.btn-siguiente { right: 8px; }

/* Mostrar botones en hover */
.banner-marcas:hover .btn-anterior,
.banner-marcas:hover .btn-siguiente {
  display: block;
}

@media (max-width: 900px) {
  .marcas-item { min-width: 120px; }
  .marcas-item img { max-height: 50px; }
}
@media (max-width: 480px) {
  .marcas-item { min-width: 90px; }
  .marcas-item img { max-height: 36px; }
  .btn-anterior, .btn-siguiente { display: none; }
}