Simple spatial scaling rules behind complex cities